Commit Graph

17 Commits

Author SHA1 Message Date
Brian Stack
06ed05563c Add UWB AIDL
Adds the UWB AIDL interface used to communicate with the UWB Service

Bug: 170323306
Test: atest UwbManagerTests

Change-Id: I746a5b7c453a54cc3c8c34dc356d8165df20c739
2020-11-17 10:37:07 -08:00
Treehugger Robot
412a12977c Merge "Remove UWB RangingParams" 2020-11-12 02:37:44 +00:00
Brian Stack
82b760990c Fix typo in AngleOfArrivalSupportType values
Bug: 170323306
Test: Builds
Change-Id: Ic7721a7bba8fe40d57652df3a3a62abf39cf2852
2020-11-09 16:15:00 -08:00
Brian Stack
a2bac82063 Remove UWB RangingParams
Replace the RangingParams with a PersistableBundle in order to allow
parameter creation to be consolidated.

Bug: 170323306
Test: atest UwbManagerTests
Change-Id: I3d86c66acda367c819c2ad1ff884564ba8ca47c7
2020-11-04 12:29:53 -08:00
Brian Stack
1a702459c5 Add UWB Tests to verify Builders and Parcels
Bug: 170323306
Test: atest UwbManagerTests
Test: Runnng `atest` in frameworks/base/core/java/android/uwb runs
      UwbManagerTests

Change-Id: I4d46baf7886376cd0255fb9ae78fc12bc94f10a6
2020-11-03 09:15:05 -08:00
Brian Stack
3c99301acb Implement parcelable for UWB types
Make the UWB objects parcelable so that they may be re-used in AIDL
interfaces.

Bug: 170323306
Test: Builds

Change-Id: I8d3b81a581e66f2c777bedfd42a877548a51e875
2020-10-30 15:31:18 -07:00
Brian Stack
9ae9b395e0 Implement UWB Address
Bug: 170323306
Test: Builds

Change-Id: I36a6c9f1dd995e3a1d50f5eea3c4ef14d15a123e
2020-10-30 15:31:13 -07:00
Brian Stack
ff9bc76580 Implement RangingReport and Builder
Bug: 170323306
Test: Builds
Change-Id: I732f0e78c55cc0fbae46c26ba8f82b81bff3d49d
2020-10-20 09:35:30 -07:00
Brian Stack
f6fff8a75b Implement RangingMeasurement and Builder
Bug: 170323306
Test: Builds
Change-Id: I7a8f668c247ec9163ac9068ef549a88f05b7dc8b
2020-10-19 17:30:20 -07:00
Brian Stack
c19667c5ca Implement DistanceMeasurement and associated Builder
Bug: 170323306
Test: Builds
Change-Id: I1f439621afa2fac75ff4027fdba016b3862dc567
2020-10-19 17:30:20 -07:00
Brian Stack
9c1359a73a Implement AngleOfArrivalMeasurement and AngleMeasurement
Bug: 170323306
Test: Builds
Change-Id: I55122a7b0c34cc69d2b0be3fc230d45f24a18c87
2020-10-19 17:30:20 -07:00
Brian Stack
77fffb5192 Implement RangingParams and Builder
Implements the RangingParams.Builder class and implements
RangingParams functions.

Bug: 170323306
Test: Builds
Change-Id: I83c4349706c2e4426a2e349850c763e0689434ce
2020-10-19 17:30:20 -07:00
Brian Stack
5f566d6888 Add UWB RangingSession
Introduces the UWB RangingSession used to control ranging. Also
introduces a function to UwbManager to start ranging.

Bug: 170323306
Test: Builds
Change-Id: I014ebb203cff064b3009b246acb967d018833b06
2020-10-19 17:30:16 -07:00
Brian Stack
17e71839ef Add UWB RangingParameters
RangingParameters define how a UWB Ranging Session should be
performed.

Bug: 170323306
Test: Builds
Change-Id: Ie238e8e5748cfb050e0dc6560ca35a2effe09967
2020-10-15 14:51:36 -07:00
Brian Stack
7952df19b7 Add UWB Ranging Measurement classes
Adds the types needed to report UWB ranging and angle of arrival
information.

Bug: 170323306
Test: Builds
Change-Id: I113e33a77202d0b8d59f48de58fcc0bda4a8bc39
2020-10-15 14:51:31 -07:00
Brian Stack
4bde2ef7b4 Add UwbAddress to represent a UWB device
Bug: 170323306
Test: Builds
Change-Id: I2bd30993760b3edd665eab1660bb6befaec7cf0d
2020-10-15 14:41:49 -07:00
Brian Stack
0b216e365c Add UwbManager API Stubs
Adds the initial API stubs for checking a device's Ultra Wideband
capabilities.

Bug: 170323306
Test: Builds

Change-Id: I6bd58a5fcee1deb151f2120ad3b18f5f7554ae8f
2020-10-08 11:51:36 -07:00