summaryrefslogtreecommitdiff
path: root/core/java/android/uwb/RangingSession.java
Commit message (Collapse)AuthorAgeFilesLines
* Move existing UWB API classes to UWB apexRoshan Pius2021-08-101-496/+0
| | | | | | | | | Following instructions from go/mainline-java-lib to move the existing UWB API classes to the new apex. Bug: 194906542 Test: Compiles Change-Id: I08801b418c7ba42c76952f5a80745cd0057ca329
* UWB: Add Reason to onRangingStop()Harpreet Eli Sangha2021-04-071-3/+7
| | | | | | | Bug: 184689372 Test: atest android.uwb Signed-off-by: Harpreet Eli Sangha <eliptus@google.com> Change-Id: Iff880ac6d8343df784fb8cb830ec830749351820
* Add new android.permission.UWB_PRIVILEGEDBrian Stack2021-02-021-0/+6
| | | | | | | Bug: 170323306 Bug: 179051092 Test: atest UwbManagerTests Change-Id: I79803ea71c706da558dbac11a075e65d1eece813
* Add UWB APIs to SystemApiBrian Stack2021-01-211-0/+2
| | | | | | Bug: 170323306 Test: atest UwbManagerTests Change-Id: Id05accd44918ac6b9f11e78ee742fbd007896f7a
* Add control functions to RangingSessionBrian Stack2021-01-071-66/+297
| | | | | | | | | | | | | | | | | | | | | | Adds start, stop and reconfigure functions to UWB's RangingSession along with associated callbacks in RangingSession.Callback. This change also modifies the UwbManager.openRangingSession function to only open a ranging session and not actively start ranging. In order to start ranging, use RangingSession.start() once RangingSession.Callback.onRangingOpened has been called. The Ranging Session API now consists of: UwbManager.openRangingSession RangingSession.start RangingSession.stop RangingSession.reconfigure RangingSession.close Bug: 173799002 Bug: 170323306 Test: atest UwbManagerTests Change-Id: I4cc7fbc1bb1cd3b0e75aa9cc57a1ad59d39d6f50
* Implements UWB RangingManager and RangingSessionBrian Stack2020-12-151-7/+108
| | | | | | | | Bug: 170323306 Test: atest UwbManagerTests Test: New RangingManagerTest and RangingSessionTest pass Change-Id: I544cca2dc80c68c18994584247bb5e831bb734a2
* Ensure UWB conforms to API guidelinesBrian Stack2020-12-041-2/+6
| | | | | | | | | | | Adds the necessarily @NonNull and @hide annotations to the UWB classes to be in alignment with API guidelines. Also ensures that getters and setters for the same values have consistent names. Bug: 170323306 Test: atest UwbManagerTests Change-Id: I26ce17c9ef1eaa63261d83fa341451e04b164970
* Remove UWB RangingParamsBrian Stack2020-11-041-5/+5
| | | | | | | | | Replace the RangingParams with a PersistableBundle in order to allow parameter creation to be consolidated. Bug: 170323306 Test: atest UwbManagerTests Change-Id: I3d86c66acda367c819c2ad1ff884564ba8ca47c7
* Add UWB RangingSessionBrian Stack2020-10-191-0/+148
Introduces the UWB RangingSession used to control ranging. Also introduces a function to UwbManager to start ranging. Bug: 170323306 Test: Builds Change-Id: I014ebb203cff064b3009b246acb967d018833b06