summaryrefslogtreecommitdiff
path: root/core/java/android/uwb
Commit message (Collapse)AuthorAgeFilesLines
* Move existing UWB API classes to UWB apexRoshan Pius2021-08-1023-3107/+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
* Remove mIsRegistered check for setUwbEnabledJoy Babafemi2021-06-111-9/+6
| | | | | | | | | Settings is the only client that uses the setUwbEnabled API and does not need to register a callback. Bug: 190599683 Test: CTS and Robotest Change-Id: I2f360189c03b74f2636410dc21fda7041a35f376
* UWB: Add getAdapterState System APIJoy Babafemi2021-04-233-15/+42
| | | | | | Test: Updated tests for AdapterStateListener.java Bug: 183254940 Change-Id: I9a7472be2c7cf835cda8910261ba641bf2345b27
* UWB: Add setUwbEnabled System API.Joy Babafemi2021-04-215-14/+161
| | | | | | | Test: Test updated for AdapterStateListener.java Bug: 183254940 Change-Id: I269d24c995d8064f8e62c80a1566fa0646e96580
* Merge "Fix oneway error on IUwbRangingCallbacks calls" into sc-devTreeHugger Robot2021-04-211-1/+1
|\
| * Fix oneway error on IUwbRangingCallbacks callsMat Bevilacqua2021-04-201-1/+1
| | | | | | | | | | | | | | Bug: 185948331 Test: atest android.uwb.cts.UwbManagerTest Test: atest android.uwb Change-Id: Ifd35f7cced39937c8e0766be6a1efde655c014fb
* | UwbService: Enforce UWB_RANGING runtime permissionRoshan Pius2021-04-132-3/+5
|/ | | | | | | | | | | | i. Use the provided AttributionSource for runtime permission checks. ii. Check for preflight permissions when the callbacks are registered during openRanging. iii. Check for data delivery permission when the callback is providing a new ranging result. Bug: 183904955 Test: Compiles Change-Id: I8f3b42d865ac0d33d579ad4558b3aad6470bba94
* Uwb: Create a new Uwb system serviceRoshan Pius2021-04-131-3/+1
| | | | | | | | | | | | | | | | | | This thin AOSP service layer will trampoline all API calls to the vendor UWB service. In follow up CL's, i. The AOSP service will perform all the permission checks necessary for this API surface before forwarding the call to the vendor UWB service. ii. Similarly, it will perform necessary permission checks + noteOp before forwarding the ranging callbacks from the vendor service back to the apps. Bug: 183904955 Test: atest android.uwb.cts.UwbManagerTest Test: atest com.android.server.uwb Change-Id: I2b367d1b6accc2f4e075cacb5c8e3c51f1faf5db
* Merge "UWB: Add Reason to onRangingStop()" into sc-devThierry Strudel2021-04-083-6/+15
|\
| * UWB: Add Reason to onRangingStop()Harpreet Eli Sangha2021-04-073-6/+15
| | | | | | | | | | | | | | Bug: 184689372 Test: atest android.uwb Signed-off-by: Harpreet Eli Sangha <eliptus@google.com> Change-Id: Iff880ac6d8343df784fb8cb830ec830749351820
* | Merge "UWB: Annotate DistanceMeasurement Parameters" am: 159a635593 am: ↵Harpreet "Eli" Sangha2021-04-081-2/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | b2a10a7811 am: a647964125 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1666840 Change-Id: I893fbffddc10e92c9cd902f14fa91a288f4d7fdd
| * \ Merge "UWB: Annotate DistanceMeasurement Parameters"Harpreet "Eli" Sangha2021-04-081-2/+4
| |\ \
| | * | UWB: Annotate DistanceMeasurement ParametersHarpreet Eli Sangha2021-04-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 184204591 Test: Build Signed-off-by: Harpreet Eli Sangha <eliptus@google.com> Change-Id: Ifabfef88773db111cc119e4376183281f0ef3970
* | | | Merge "UWB: Remove Unused RTSU Constants" am: f617f30ee0 am: bb579654f9 am: ↵Harpreet "Eli" Sangha2021-04-081-10/+0
|\| | | | |_|/ |/| | | | | | | | | | | | | | | | | d0a00f0bd9 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1666999 Change-Id: I31ee24ac7aee38fe047166ac0f7bd4e7abaae9b7
| * | UWB: Remove Unused RTSU ConstantsHarpreet Eli Sangha2021-04-071-10/+0
| |/ | | | | | | | | | | | | Bug: 184691885 Test: Build Signed-off-by: Harpreet Eli Sangha <eliptus@google.com> Change-Id: I92a3b5ec96bd152544b9b46dfacfdd970e5b7d1f
* / UwbManager: Use AttributionSource for runtime permission enforcementRoshan Pius2021-04-052-12/+27
|/ | | | | | | | | | | | | | This attribution source is going to be used by Gmscore to proxy the blame for uwb_ranging runtime permission check (since Gmscore which is the direct caller of this surface is in most cases proxying the request from 1p/3p apps). Note: This CL just adds the skeletal API to start the API reviews. The actual implementation needs a major refactor of the stack which is WIP. Bug: 183904955 Test: atest android.uwb Change-Id: Ia0338b573306f44c493bf1c136e68b4f46877816
* UWB: Annotate AngleMeasurement ParametersHarpreet Eli Sangha2021-03-241-1/+4
| | | | | | | Bug: 180395817 Test: Build Signed-off-by: Harpreet Eli Sangha <eliptus@google.com> Change-Id: Ic4ea2049086ba7593021dbbc2ef7b8f6283d8540
* Pass SessionHandle to UWB Service when opening a sessionBrian Stack2021-03-102-20/+15
| | | | | | | | | | | | | Instead of having the UWB Service generate a SessionHandle for each call to IUwbAdapter#openRanging, now the framework must select and pass in a SessionHandle. This helps to improve consistency across the API surface and simplifies the implementation of IUwbAdapter#openRanging. Bug: 179273688 Test: atest UwbManagerTests Change-Id: Ie08216638c8a5bf7260fff8752a46aad06f53fcb Merged-In: Ie08216638c8a5bf7260fff8752a46aad06f53fcb
* Return CancellationSignal when opening UWB sessionBrian Stack2021-03-102-5/+11
| | | | | | | | | | Returns a CancellationSignal instead of an AutoCloseable when calling UwbManager#openRangingSession per API feedback. Bug: 180396069 Test: atest UwbManagerTests CtsUwbTestCases Change-Id: I74482c56d1a3686b570c90e7d3c11e45ec2f0adc Merged-In: I74482c56d1a3686b570c90e7d3c11e45ec2f0adc
* Address UWB API feedbackBrian Stack2021-03-102-99/+29
| | | | | | | | | | Update AngleOfArrivalMeasurement and AngleMeasurement to address feedback received on API surface. Bug: 180395817 Test: atest UwbManagerTests CtsUwbTestCases Change-Id: Iec572ed9df22440a5b068d9e7fbf73026970d5d3 Merged-In: Iec572ed9df22440a5b068d9e7fbf73026970d5d3
* Merge "Remove unnecessary UWB functions"Brian Stack2021-02-253-278/+0
|\
| * Remove unnecessary UWB functionsBrian Stack2021-02-243-278/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The removed functions provided no added benefit to the current UWB API. For instance, the supported channels for an individual protocol may be different than what UwbManager#getSupportedChannelsNumbers would return. Instead, the supported channels are provided through the UwbManager#getSpecificationInfo API which allows a client to easily see which channels (and other parameters) a particular protocol supports. Bug: 180533171 Test: atest UwbManagerTests CtsUwbTestCases Change-Id: I81675429d73486f0b002e76acabaa4883990ab11 Merged-In: I81675429d73486f0b002e76acabaa4883990ab11
* | Merge "Update UWB OWNERS"Brian Stack2021-02-181-0/+1
|\ \
| * | Update UWB OWNERSBrian Stack2021-02-171-0/+1
| |/ | | | | | | | | | | Bug: 180514254 Test: N/A Change-Id: I5998d024976ce4c171421a0c84d951914ccd5403
* / Move UWB Tests to CTSBrian Stack2021-02-171-1/+4
|/ | | | | | Bug: 179961516 Test: atest UwbManagerTests Change-Id: I3bebae28e543e6931578488a75bfa30b4171b6ae
* Merge "Add new android.permission.UWB_PRIVILEGED"Brian Stack2021-02-172-0/+20
|\
| * Add new android.permission.UWB_PRIVILEGEDBrian Stack2021-02-022-0/+20
| | | | | | | | | | | | | | Bug: 170323306 Bug: 179051092 Test: atest UwbManagerTests Change-Id: I79803ea71c706da558dbac11a075e65d1eece813
* | Implement SessionHandle.hashCode()Brian Stack2021-02-081-0/+7
| | | | | | | | | | | | Bug: 178807258 Test: atest UwbManagerTests Change-Id: Ib3d518c136282393f4f3bb06388404f76fad5b73
* | Fix log message errors in RangingManagerBrian Stack2021-02-051-2/+3
|/ | | | | | Bug: 179492073 Test: atest UwbManagerTests Change-Id: I0fc429cc95e52bb16e40a6d24900bc657fefc9d3
* Add UWB APIs to SystemApiBrian Stack2021-01-218-10/+24
| | | | | | Bug: 170323306 Test: atest UwbManagerTests Change-Id: Id05accd44918ac6b9f11e78ee742fbd007896f7a
* Add control functions to RangingSessionBrian Stack2021-01-077-195/+564
| | | | | | | | | | | | | | | | | | | | | | 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-153-9/+290
| | | | | | | | Bug: 170323306 Test: atest UwbManagerTests Test: New RangingManagerTest and RangingSessionTest pass Change-Id: I544cca2dc80c68c18994584247bb5e831bb734a2
* Merge "Ensure UWB conforms to API guidelines"Brian Stack2020-12-168-18/+53
|\
| * Ensure UWB conforms to API guidelinesBrian Stack2020-12-048-18/+53
| | | | | | | | | | | | | | | | | | | | | | 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
* | Add OWNERS to UWBBrian Stack2020-12-151-0/+5
|/ | | | | | Bug: 175698723 Test: Manual Change-Id: Ia1982ed3864bbffcce5f4f9192a3cb681085e387
* Implement UWB AdapterStateListenerBrian Stack2020-12-033-4/+163
| | | | | | | | | 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
* Implement UwbManager functionsBrian Stack2020-12-032-11/+78
| | | | | | | | | Provides implementations for the basic UwbManager functions that directly query the UWB Service. Bug: 170323306 Test: atest UwbManagerTests Change-Id: Ic45aa87ce90c414642e3186890f6ef08e1fd8486
* Expose UwbManager through Context.getSystemServiceBrian Stack2020-12-021-2/+30
| | | | | | | Bug: 170323306 Test: atest UwbManagerTests Change-Id: I04c1263a191fcfeee5824be5d6d1944354819d02 Merged-In: I04c1263a191fcfeee5824be5d6d1944354819d02
* Add UWB AIDLBrian Stack2020-11-1712-0/+649
| | | | | | | | | Adds the UWB AIDL interface used to communicate with the UWB Service Bug: 170323306 Test: atest UwbManagerTests Change-Id: I746a5b7c453a54cc3c8c34dc356d8165df20c739
* Merge "Remove UWB RangingParams"Treehugger Robot2020-11-123-485/+12
|\
| * Remove UWB RangingParamsBrian Stack2020-11-043-485/+12
| | | | | | | | | | | | | | | | | | Replace the RangingParams with a PersistableBundle in order to allow parameter creation to be consolidated. Bug: 170323306 Test: atest UwbManagerTests Change-Id: I3d86c66acda367c819c2ad1ff884564ba8ca47c7
* | Fix typo in AngleOfArrivalSupportType valuesBrian Stack2020-11-091-3/+2
|/ | | | | | Bug: 170323306 Test: Builds Change-Id: Ic7721a7bba8fe40d57652df3a3a62abf39cf2852
* Add UWB Tests to verify Builders and ParcelsBrian Stack2020-11-037-0/+186
| | | | | | | | | Bug: 170323306 Test: atest UwbManagerTests Test: Runnng `atest` in frameworks/base/core/java/android/uwb runs UwbManagerTests Change-Id: I4d46baf7886376cd0255fb9ae78fc12bc94f10a6
* Implement parcelable for UWB typesBrian Stack2020-10-307-9/+256
| | | | | | | | | | Make the UWB objects parcelable so that they may be re-used in AIDL interfaces. Bug: 170323306 Test: Builds Change-Id: I8d3b81a581e66f2c777bedfd42a877548a51e875
* Implement UWB AddressBrian Stack2020-10-301-8/+27
| | | | | | | Bug: 170323306 Test: Builds Change-Id: I36a6c9f1dd995e3a1d50f5eea3c4ef14d15a123e
* Implement RangingReport and BuilderBrian Stack2020-10-201-1/+58
| | | | | | Bug: 170323306 Test: Builds Change-Id: I732f0e78c55cc0fbae46c26ba8f82b81bff3d49d
* Implement RangingMeasurement and BuilderBrian Stack2020-10-191-5/+121
| | | | | | Bug: 170323306 Test: Builds Change-Id: I7a8f668c247ec9163ac9068ef549a88f05b7dc8b
* Implement DistanceMeasurement and associated BuilderBrian Stack2020-10-191-3/+87
| | | | | | Bug: 170323306 Test: Builds Change-Id: I1f439621afa2fac75ff4027fdba016b3862dc567
* Implement AngleOfArrivalMeasurement and AngleMeasurementBrian Stack2020-10-192-5/+140
| | | | | | Bug: 170323306 Test: Builds Change-Id: I55122a7b0c34cc69d2b0be3fc230d45f24a18c87
* Implement RangingParams and BuilderBrian Stack2020-10-191-16/+222
| | | | | | | | | Implements the RangingParams.Builder class and implements RangingParams functions. Bug: 170323306 Test: Builds Change-Id: I83c4349706c2e4426a2e349850c763e0689434ce