summaryrefslogtreecommitdiff
path: root/nearby/framework/java/android
Commit message (Collapse)AuthorAgeFilesLines
* Fix NearbyDeviceParcelable read and write bugXinyi Zhou2022-05-141-2/+14
| | | | | | | Bug: 230030362 Test: -m Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: I57c3cfcdd42b43c82bc3d5ccb594dd06ecec6e55
* Add log for stopXXX methods when the callback never registeredXinyi Zhou2022-05-131-0/+6
| | | | | | Test: -m Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: Id15e4adf23cb05887feb5d71e442eae69bdf8c65
* Enforce permissions in stopBroadcast and unregisterScanListener methodsXinyi Zhou2022-05-132-4/+8
| | | | | | | Bug: 29338477 Test: -m Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: Ic9c3773aa95c01129138202b564024379d4583b3
* Fix ScanRequest parceling issueXinyi Zhou2022-05-121-3/+5
| | | | | | | | | | This causes Parcel error and NPE when using the NearbyManager#startScan API Ignore-AOSP-First: nearby_not_in_aosp_yet Test: -m Fix: 232317796 Change-Id: I4f03bd7c9127056d0c63e1abd0e4d21484166fb0
* Merge "Enforce permission check in NearbyService" into tm-devXinyi Zhou2022-04-294-7/+26
|\
| * Enforce permission check in NearbyServiceXinyi Zhou2022-04-284-7/+26
| | | | | | | | | | | | | | Test: -m confirmed logs in discovery and unit tests Bug: 229338477 Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: I801cf1c8867cb45d7de08ba96bd9f7354f9053b8
* | Add NearbyDeviceParcelable to PresenceDevice conversion in NearbyManagerXinyi Zhou2022-04-273-9/+94
|/ | | | | | | | | Add empty salt field in callers. Test: -m Bug: 230030362 Change-Id: I30d4f4144f41f2e72e6673868b565f7f3c5d84b1 Ignore-AOSP-First: nearby_not_in_aosp_yet
* Add null check for scancallbackXinyi Zhou2022-04-061-8/+18
| | | | | | | fix: 228059372 Test: -m Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: I0bb99100d0c07d886762aec1c1567b4f94a6a63f
* Remove fast pair scan APIXinyi Zhou2022-03-311-0/+2
| | | | | | | Bug: 227513829 Test: Built and verified no FP UI in settings Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: I4bdf8653d0b3a85fbb53786818adb4c3ca39567a
* Remove Fast Pair system APIs.Chun Zhang2022-03-316-166/+0
| | | | | | | Bug: 227513829 Test: cts test Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: I21b33cb8dcb7f6eee1ecc39115fc153e9a975e7c
* Merge "Improve the comments of getMedium." into tm-devWei Wang2022-03-302-10/+10
|\
| * Improve the comments of getMedium.Wei Wang2022-03-292-10/+10
| | | | | | | | | | | | | | | | | | | | Also remove public identity type as it's not used. Bug:222291470 Test: atest CtsNearbyFastPairTestCases Ignore-AOSP-First: new project Change-Id: I938fbabc4c042da91b1d316b0bf892cb377db1ba
* | Remove unused system apis.Chun Zhang2022-03-297-610/+3
|/ | | | | | | Test: CTS Bug: 204780849 Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: Ifb09499f600450c43a8f8b56354e646d38a108e7
* Merge "Require Permission Manifest.permission.WRITE_SECURE_SETTINGS on ↵Chun Zhang2022-03-251-0/+1
|\ | | | | | | setFastPairScanEnabled API." into tm-dev
| * Require Permission Manifest.permission.WRITE_SECURE_SETTINGS on ↵Chun Zhang2022-03-251-0/+1
| | | | | | | | | | | | | | | | | | | | setFastPairScanEnabled API. Test: CTS Bug: 216590902 Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: I017af7de2ba930aa15d862138684eb4dce884348
* | Merge "Rename FastPairClient API and add cancel api for ban logic" into tm-devXinyi Zhou2022-03-252-102/+5
|\ \
| * | Rename FastPairClient API and add cancel api for ban logicXinyi Zhou2022-03-242-102/+5
| | | | | | | | | | | | | | | | | | | | | Test: m Bug: 226432882 Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: I5782eba0b9aaa34ee848f465e958bb8143730cd4
* | | Hook CHRE host implementation with Presence API.Chen Wang2022-03-254-187/+300
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Demo Nearby nanoapp e2e. To test on device, once the device is booted, screen on will update the fitler and the filtered result will show in the log: adb logcat -s NearbyService -s CHRE Ignore-AOSP-First: internal mainline development. Works together with cl/433682470. Flash with CHRE update first before device testing. Test: atest NearbyUnitTests, atest android.nearby.cts, and on device test as above. Bug: 221082271 Change-Id: I335ed77d68884c40d687118e23319a2f128c744c
* | Add txPower to FastPairDeviceXinyi Zhou2022-03-243-8/+72
| | | | | | | | | | | | Test: m Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: Ic8106e9dbf42bf8e204b07ff6a928abdf36c4cbc
* | Resolve API council feedbackXinyi Zhou2022-03-231-3/+2
|/ | | | | | | Test: built and verified logs Fix: 225116248 Ignore-AOSP-First: nearby_not_in_aosp_yet Change-Id: Ic30aee650fd41287d3a363491fa602cd990467a8
* Merge "Address API review feedback" into tm-devChun Zhang2022-03-181-15/+12
|\
| * Address API review feedbackChun Zhang2022-03-181-15/+12
| | | | | | | | | | | | | | | | "Can you use a Service instead of having a non-service Base class?". Bug: 218682005 Test: existing CTS/UNIT test Change-Id: I1c9bdd3886255a2b184623cba5cb4af82e2167b2
* | Merge "Return status to startScan() API" into tm-devXinyi Zhou2022-03-182-17/+54
|\ \ | |/ |/|
| * Return status to startScan() APIXinyi Zhou2022-03-172-17/+54
| | | | | | | | | | | | Bug: 216294721 Test: Build and flash Change-Id: I19e4e00bf61f2ae8ff1fffb3563b5d85afb95563
* | Address API review feedback.Chun Zhang2022-03-166-70/+655
|/ | | | | | | | | | | | * Byte array parameters have no format specification. * Consider using more appropriate types (e.g. Icon for setImage) or if not possible, specify the format. * Request javadoc needs to explain what is being requested. * getModelId has no documentation of the format of the result array. * FastPairDeviceMetadata: javadoc needs to explain what is being returned by each method Bug: 218682005 Test: existing CTS/UNIT test Change-Id: I50ab7835bd366efc32a8548ebfb1855e7b0ba970
* Merge "Address API review feedback" into tm-devChun Zhang2022-03-177-39/+101
|\
| * Address API review feedbackChun Zhang2022-03-167-39/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | "Can the getters be made public so this can be CTS tested?" "Please add getters and mark them @TestApi so CTS can use them." "Antispoofkey and AntiSpoofkey should be AntispoofKey." "please rename accountKey to something like deviceAccountKey" Getters are added as SystemApi since @TestApi doesn't work well with mainline. BUG: 218682005 BUG: 222489854 Test: unit test Change-Id: Ia4cb720ac266e8e07650829a4d3473806e437522
* | Merge "Address API council review comments." into tm-devTreeHugger Robot2022-03-1610-169/+175
|\ \
| * | Address API council review comments.Wei Wang2022-03-1510-169/+175
| |/ | | | | | | | | | | | | | | | | | | | | | | Bug:222291473 Bug:222291491 Bug:222291420 Bug:222291565 Test: atest CtsNearbyFastPairTestCases Test: atest NearbyUnitTests Change-Id: Ib9dc5e3c7f123ab757cabb6d926d47e54c8c7dfd
* / Hide NearbyDeviceParcelableXinyi Zhou2022-03-151-2/+0
|/ | | | | | Bug: 216294721 Test: Build and flash Change-Id: Ia1c271c43a770254354fbf18d8c014da53acdb74
* Merge "Resolve API council comments" into tm-devXinyi Zhou2022-03-142-16/+16
|\
| * Resolve API council commentsXinyi Zhou2022-03-102-16/+16
| | | | | | | | | | | | | | | | | | 1. Rename isEnableBle to isBleEnabled 2. Make NearbyFrameworkInitializer a module-libraries SystemAPI Bug: 216294721 Test: Compiled Change-Id: If0fcd99d6e38b1586033c5d78eaa5943d255ef57
* | Enable CTS for nearby brodacast.Wei Wang2022-03-111-1/+5
| | | | | | | | | | | | | | | | | | Also fixed a few bugs related to broadcast. Test: atest CtsNearbyFastPairTestCases Bug: 219768328 Change-Id: Icf7561267137142eadfd2fffb75b19a18faa2f5e
* | Merge "Address API Council review comments." into tm-devTreeHugger Robot2022-03-115-79/+91
|\ \
| * | Address API Council review comments.Wei Wang2022-03-105-79/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:222291418 Bug:222291433 Bug:222291394 Bug:222291470 Bug:222291434 Bug:222291543 Bug:222291565 Bug:219768328 Test: atest CtsNearbyFastPairTestCases Change-Id: Icc258efcc9230bc3bb1cef87abf91cf483916283
* | | Address API feedback: rename to AntispoofKeyChun Zhang2022-03-106-55/+55
|/ / | | | | | | | | | | | | | | [Antispoofkey and AntiSpoofkey should be AntispoofKey] Bug: 218682005 Test: Unit Test Change-Id: I7328663895d8937eb9bdfc5ffebb18572692ccdd
* | Merge "Implement Presence Broadcast." into tm-devTreeHugger Robot2022-03-104-2/+116
|\ \ | |/ |/|
| * Implement Presence Broadcast.Wei Wang2022-03-094-2/+116
| | | | | | | | | | | | | | | | Bug: 218187205 Test: atest NearbyUnitTests Change-Id: Idaafc590e1ee12abe29699013098435ea26c400c (cherry picked from commit 7ab6e30f394311eeb233445d4e811c67324bc6f6) Merged-In: Idaafc590e1ee12abe29699013098435ea26c400c
* | Add FAST_PAIR_SCAN_ENABLED to NearbyManagerXinyi Zhou2022-03-081-2/+34
|/ | | | | | Fix: 216590902 Test: Flashed and confirmed logs Change-Id: I0c160fcc057be7c8d404353ca3fd16140c5e5303
* Add AccountKeys to FastPairAccountDevicesMetadataRequest.Chun Zhang2022-03-023-2/+67
| | | | | | | Test: CTS test. Bug: 204780849 Change-Id: I93d94a89e760189b9a537db4ceabfad75c759e52 Merged-In: I93d94a89e760189b9a537db4ceabfad75c759e52
* [DO NOT MERGE] Add FastPairService in serverXinyi Zhou2022-02-251-0/+5
| | | | | | | Test: Built band verified flow manually Bug: 196262706 Change-Id: I391a4c8e7cd083f346c8c63a60d3e0edf2b9b06a (cherry picked from commit 68f559c25b78dce90f4aee5e581b0c3dcc86ae02)
* [DO NOT MERGE] Add FastPairClientXinyi Zhou2022-02-231-0/+94
| | | | | | | | | This works as an API interface for UX to communitcate with backend. Test: Built band verified flow manually Bug: 196262706 Change-Id: I018e0f967f50d58772b746618bbf15391072b490 (cherry picked from commit 314456f8aa7a1cb48ee617e5930601009e9bfa6a)
* Add filtering for Presence data.Wei Wang2022-02-211-4/+28
| | | | | | Bug: 195695593 Test: atest NearbyUnitTests Change-Id: I86a2d4cdb58334056eda1e553bc70236c03905fb
* Clean up half sheet codeXinyi Zhou2022-02-183-3/+3
| | | | | | | | | | | | Pure clean up, no logic change at all. 1. Use TAG instead hard code string for log. 2. Remove unused code. 3. Fix some annotation. Test: Build Bug: 218771606 Change-Id: Ia1d2bad318901e38bcb246cac29c063d4da4f9d0
* Setup AIDL files for service and activity (client) communicationXinyi Zhou2022-02-106-0/+262
| | | | | | Test: Built band verified logs Bug: 196262706 Change-Id: Ia948798c8c56ba60423d07f4521d6b2bc477398f
* Merge "Expose PresenceClient System API for scan filter."TreeHugger Robot2022-02-1015-321/+292
|\
| * Expose PresenceClient System API for scan filter.Wei Wang2022-02-0915-321/+292
| | | | | | | | | | | | Bug: 217283281 Test: atest CtsNearbyFastPairTests Change-Id: I41951a381077cca5bc1f7360a5a0ff28176df5ff
* | Merge "Add name to FastPairDeviceMetadata."Chun Zhang2022-02-092-0/+24
|\ \ | |/ |/|
| * Add name to FastPairDeviceMetadata.Chun Zhang2022-02-092-0/+24
| | | | | | | | | | | | Test: cts test Bug: 205591293 Change-Id: I869dcc3291adc47d36eae7c7b1a539f57ac42430
* | Improvements of Presence APIs.Wei Wang2022-02-089-110/+200
|/ | | | | | | | | | | - use int instead of String for DataElement key - add a version to the BroadcastRequest - use DataElement and PublicCredential for PresenceScanFilter - add CTS tests for scan APIs. Bug: 217283281 Test: atest CtsNearbyFastPairTests Change-Id: Ida965f9fece2c655048acedba1a210db69f5d991