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
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
The AdapterStateListener registers with the underlying UWB Service for
UWB Adapter state changes and notifies registered client callbacks.
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: Ie8ba8208909652b98ee2df15e08433627542f28b
Provides implementations for the basic UwbManager functions that
directly query the UWB Service.
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: Ic45aa87ce90c414642e3186890f6ef08e1fd8486
Adds the UWB AIDL interface used to communicate with the UWB Service
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: I746a5b7c453a54cc3c8c34dc356d8165df20c739
Replace the RangingParams with a PersistableBundle in order to allow
parameter creation to be consolidated.
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: I3d86c66acda367c819c2ad1ff884564ba8ca47c7
Make the UWB objects parcelable so that they may be re-used in AIDL
interfaces.
Bug: 170323306
Test: Builds
Change-Id: I8d3b81a581e66f2c777bedfd42a877548a51e875
Implements the RangingParams.Builder class and implements
RangingParams functions.
Bug: 170323306
Test: Builds
Change-Id: I83c4349706c2e4426a2e349850c763e0689434ce
Introduces the UWB RangingSession used to control ranging. Also
introduces a function to UwbManager to start ranging.
Bug: 170323306
Test: Builds
Change-Id: I014ebb203cff064b3009b246acb967d018833b06
RangingParameters define how a UWB Ranging Session should be
performed.
Bug: 170323306
Test: Builds
Change-Id: Ie238e8e5748cfb050e0dc6560ca35a2effe09967
Adds the types needed to report UWB ranging and angle of arrival
information.
Bug: 170323306
Test: Builds
Change-Id: I113e33a77202d0b8d59f48de58fcc0bda4a8bc39
Adds the initial API stubs for checking a device's Ultra Wideband
capabilities.
Bug: 170323306
Test: Builds
Change-Id: I6bd58a5fcee1deb151f2120ad3b18f5f7554ae8f