Commit graph android_packages_modules_Co.../nearby/framework
Message SHA1
Merge changes I57b37ea7,I00772535 into main
* changes:
  Introduce Powered Off Finding API
  Add Powered Off Finding operations to NearbyService

Yahav Nussbaum   authored and   Gerrit Code Review   commited 2024-02-13 14:34:22 +00:00
c412fd3987
Introduce Powered Off Finding API
Bug: 307898240
Test: atest CtsNearbyFastPairTestCases
Test: atest NearbyIntegrationPrivilegedTests
Test: atest NearbyIntegrationUntrustedTests
Change-Id: I57b37ea796c0791d72fec931f731a0143e816dac

Yahav Nussbaum   commited 2024-02-13 09:23:00 +00:00
c712a571dc
Add Powered Off Finding operations to NearbyService
Interface only change, without actual use of the HAL API.

Bug: 307898240
Test: atest NearbyUnitTests
Change-Id: I00772535a8f9247794ff59e465ed2b5af19576b4

Yahav Nussbaum   commited 2024-02-06 16:41:36 +00:00
2122a9c58e
[DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
<add g3 doc link>

Bug: 304529413
Test: N/A
Change-Id: I243f17b3f0ad7af9ffa15ca242456e36688733f5
Merged-In: I243f17b3f0ad7af9ffa15ca242456e36688733f5

Aditya Choudhary   commited 2024-01-31 12:34:50 +00:00
01b5ede2b2
[nearby] Catches NPE in ChreDiscoveryProvider
Test: -m
Ignore-AOSP-First: neary not in aosp yet
Fix: 298597342
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5d07eee4c1671a3d1d6b6669c338d098cfe488f9)
Merged-In: I1ef411aea6db6d0c169aa08c303f4234c77baed9
Change-Id: I1ef411aea6db6d0c169aa08c303f4234c77baed9

Xinyi Zhou   authored and   Android Build Cherrypicker Worker   commited 2023-12-13 02:21:17 +00:00
e899d26468
[nearby][framework] Sync DataElement value with spec
Note DataType in DataElement is used for internal implementation only.
We only keep those data element types used for encoding and decoding.
Please use the spec as the only source.

go/nearby-specs-working-doc

Bug: 234155151
Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8182ac22c14e044c5161483a9a96bf594c403e61)
Merged-In: I71754e645742ca4fe20d346763796a1a5e5dae75
Change-Id: I71754e645742ca4fe20d346763796a1a5e5dae75

Xinyi Zhou   authored and   Android Build Cherrypicker Worker   commited 2023-12-08 22:36:58 +00:00
947c01ddc6
Fix typedef retention
Typedef annotations are meant to have SOURCE retention, as they're
only analyzed by metalava to produce a separate file that's actually
consumed by the tools. Update typedefs as such.

Bug: 309971481
Test: m checkapi
Change-Id: Ic603db350af0825c87f4d99cff2ca4f4b7e57215

Anton Hansson   commited 2023-11-10 13:28:07 +00:00
f5fa3c6c72
Make FlaggedAPI available to CtsThreadNetworkTestCases
FlaggedAPI will be ignored in udc-mainline-prod.
This makes CtsThreadNetworkTestCases build fail.
This CL updates CtsThreadNetworkTestCases to build against FlaggedAPI
and also updates framework-connectivity-jarjar-rules not to jarjar
FlaggedAPI.

Test: TH
Test: m CtsThreadNetworkTestCases
Change-Id: Ida8872b3bf61b7a59733f5fcec9e7d250efd3e58

Motomu Utsumi   commited 2023-11-07 12:21:45 +09:00
ada9e9877c
[nearby][clean up] Delete all Fast Pair AOSP and HalfSheetUX code
Test: -m
Fix: 292812342
Fix: 297413048
Fix: 214879640
Ignore-AOSP-First: merge conflicts, need to be merged in downstream first
Change-Id: I7efa92469f0c061a972a7dadf6a38686b78c61b4
Merged-In: I7efa92469f0c061a972a7dadf6a38686b78c61b4

Xinyi Zhou   commited 2023-09-05 18:53:04 +00:00
dadd8bddfd
Remove unnecessary override of Parcelable.getStability()
Ignore-AOSP-First: Needed in udc-dev
Bug: 289094281
Test: TARGET_BUILD_APPS=com.google.android.tethering vendor/google/build/mainline_modules_sdks.sh --build-release=Tiramisu
      # Check the contents of the filtered-stub-flags.csv file to make sure it does not include `getStability()`.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:26026f3256e751b986d7d6ac60d7d29a478adb5b)
Merged-In: I454aa062ce53a4a9e8e323ba49d55ac7f6e1f113
Change-Id: I454aa062ce53a4a9e8e323ba49d55ac7f6e1f113

Paul Duffin   authored and   Android Build Coastguard Worker   commited 2023-07-11 00:39:16 +00:00
c0f65ef449
Fix CTS for M-08
Test: Test against CTS r4
Bug: 283345506
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I762c3cd9e4446d64d4546dbfc016d03dc36acf55

Xinyi Zhou   commited 2023-06-07 17:58:04 -07:00
b5fcc6d04a
[automerge] Moves the test DEs to the last index 2p: f25cb2c88c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/22434747

Bug: 276836981
Change-Id: Ic79fe68ae3db79e7f1c6a5817cbf731af4774b56

Presubmit Automerger Backend   commited 2023-04-06 18:34:13 +00:00
1061587e02
Moves the test DEs to the last index
Bug: 276836981
Test: on device test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I82f9ff90b2081f21ad47fba6a3f846f4936ec99e

Jayden Kim   commited 2023-04-06 18:33:34 +00:00
f25cb2c88c
Merge "Add androidx.annotation_annotation library" am: 9d5066b806 am: 41d8502be9
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2501921

Change-Id: If0e399b4632f5f1e451970aa46487f219c41ce80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

Treehugger Robot   authored and   Automerger Merge Worker   commited 2023-03-28 02:18:04 +00:00
ca2dc5fccd
Merge "Add androidx.annotation_annotation library" am: 9d5066b806
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2501921

Change-Id: I2b46a014c207f3c5d2e7e7bdeda82729b6c93a6a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

Treehugger Robot   authored and   Automerger Merge Worker   commited 2023-03-28 01:51:42 +00:00
41d8502be9
Add androidx.annotation_annotation library
Change-Id: Ia8b745d674262a312044cd4e2b4320917d550725
Test: TH
Bug: 272150669

Xinyi Zhou   commited 2023-03-24 05:40:37 +00:00
0d195ae5d4
Merge "Use filegroup defaults for framework sources" am: 41ad986490 am: 2b246a30df
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2489555

Change-Id: Ia00a74bb0665cda921f8ab8194c4e0dfced721be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

Anton Hansson   authored and   Automerger Merge Worker   commited 2023-03-16 10:01:06 +00:00
893cd2592c
Merge "Use filegroup defaults for framework sources" am: 41ad986490
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2489555

Change-Id: Ib228177586d24d210a1abf808af2557d929141c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

Anton Hansson   authored and   Automerger Merge Worker   commited 2023-03-16 09:27:51 +00:00
2b246a30df
Use filegroup defaults for framework sources
There's now a shared defaults module for this kind of filegroup. Use
that and remove the previously duplicated prop.

Bug: 271816210
Test: m
Change-Id: Ia4547984a73179fdfc98c427482dd10246f9722c

Anton Hansson   commited 2023-03-15 10:36:52 +00:00
57f3d69fd5
Add deviceId to NearbyDeviceParcelable
Test: -m
Bug: 263893748
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ie05defa603640d38a7349396f0194a1b396ef03e

Xinyi Zhou   commited 2023-03-10 01:48:46 +00:00
4349a68168
[Service] Add error code parameter to the IScanListener
This makes internal listener same signature as the public API.

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Bug: 263893748
Change-Id: Ie1e03fea8c79af1682ac64418498a8af5492b85d

Xinyi Zhou   commited 2023-02-22 22:48:31 +00:00
b75023e545
[Fast Pair] Remove unused fast pair enabling
Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I414fd532ef66930e0b7f2313443b0f1358a53662

Xinyi Zhou   commited 2023-02-15 12:19:41 -08:00
372eb95e68
Merge "[API] Add CTS test for #isOffloadOnly"
Xinyi Zhou   authored and   Android (Google) Code Review   commited 2023-02-15 01:13:26 +00:00
509633da39
[API] Add CTS test for #isOffloadOnly
Test: -m
Fix: b/268396014
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ib6d2808abd270c2a2922bcc6cd004b636c1cecff

Xinyi Zhou   commited 2023-02-14 20:40:08 +00:00
8bede07510
Revert "Add back getFastPairScanEnabled and setFastPairScanEnabled System API"
This reverts commit 4af0e0f784.

Reason for revert: not support the feature anymore

Test: -m
Change-Id: I26c1f1dd5f36ecb6c1386ccf6ec84118fd93017d

Xinyi Zhou   commited 2023-02-14 20:16:56 +00:00
960d69d821
Revert "Revert "Remove Fast Pair system APIs.""
This reverts commit f6f8c64989.

Reason for revert: not pass PWG review

Change-Id: Ie6c7536c45d53cc4da31811a19fff6ee23852eef
Bug: 239750900

Chun Zhang   commited 2023-02-14 16:24:37 +00:00
4aad023afb
[API] Add “ERROR_” prefix for consistency with others
Test: -m
Fix: 268195420
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ia9b58c8d134669de36094254270547629a92192a

Xinyi Zhou   commited 2023-02-12 06:22:51 +00:00
75200b1999
Allows Test Data Elements with Filter
Bug: 259299293
Test: atest NearbyUnitTests and on device test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Merged-In: I2d0a537d38ac7b602bc49dcf2113c43f1b654cb2
Change-Id: I2d0a537d38ac7b602bc49dcf2113c43f1b654cb2

Jayden Kim   commited 2023-02-05 22:16:28 +00:00
ca54255b85
[API] Add more error codes
go/presence_api_u

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Fix: 265353983
Change-Id: I0c1fd8ff72c0f52189330a471b5ff5865a3446b4

Xinyi Zhou   commited 2023-02-03 23:07:21 +00:00
5f5f292cf6
[API] Add offloadOnly API
go/presence_api_u

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Bug: 265353983
Change-Id: Ib423285439ec62949ae59487081164b44f1580a6

Xinyi Zhou   commited 2023-02-01 15:11:06 -08:00
8fe45419d0
[API] Upadate queryOffloadCapability API
go/presence_api_u

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Bug: 265353983
Change-Id: Ic7e95cf0f65c3eb60d8b08d402ac56783821bac1

Xinyi Zhou   commited 2023-02-01 14:59:08 -08:00
e73c76f9c3
Merge "[Clean up] Delete extra lines in PresenceDevice"
Xinyi Zhou   authored and   Android (Google) Code Review   commited 2023-01-31 22:00:44 +00:00
5fb09e83bf
[Clean up] Delete extra lines in PresenceDevice
Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Iaf6008d2890da07c2a3a53a300e4e216b5f0b5d5

Xinyi Zhou   commited 2023-01-30 21:47:53 -08:00
3f679d3c65
Merge "Allows Test Data Elements with Filter"
Jayden Kim   authored and   Android (Google) Code Review   commited 2023-01-26 00:46:33 +00:00
b1f44528ae
Allows Test Data Elements with Filter
Bug: 259299293
Test: atest NearbyUnitTests and on device test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I2d0a537d38ac7b602bc49dcf2113c43f1b654cb2

Jayden Kim   commited 2023-01-25 20:56:31 +00:00
99ba7e5fb3
[automerge] [Offload] Follow up change for ag/20546515 2p: 2d09493338
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/20592586

Bug: 260002423
Change-Id: I6d33d81c6c4b9cbae9b1dff363e2fe9f39fb7caa
Ignore-AOSP-First: nearby_not_in_aosp_yet

Presubmit Automerger Backend   authored and   Xinyi Zhou   commited 2023-01-25 20:32:59 +00:00
6774cf34dd
[Offload] Follow up change for ag/20546515
Add comment only

Test: no need, just added comment
Bug: 260002423
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ia30232fca98f6f6baee8482b64931d13688a5f3b

Xinyi Zhou   commited 2023-01-25 20:32:46 +00:00
7eb04e6418
[API] Add Offload Callback API
go/presence_api_u

Test: -m
Ignore-AOSP-First: nearby_not_in_aosp_yet
Bug: 265353983
Change-Id: Ie00a1bd5bcdf42d7b4678a3ffbaf18ebfbe735e6

Xinyi Zhou   commited 2023-01-12 21:44:59 -08:00
b90b2015db
[API] Add onError API
go/presence_api_u

Test: Unit test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Fix: 263907284
Change-Id: I87df0b4592b32f241eb7d22405357bc039766cb8

Xinyi Zhou   commited 2023-01-11 15:41:45 -08:00
9afce39c43
Return UNKNOWN code when CHRE is not ready
Test: Unit test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Fix: 263890209
Change-Id: I45b3eec6c83848e129704ed9ec5f2c4a49f982fb
(cherry picked from commit 89346d4793)

Xinyi Zhou   commited 2023-01-09 20:04:03 +00:00
861141d713
Return UNKNOWN code when CHRE is not ready
Test: Unit test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Fix: 263890209
Change-Id: I45b3eec6c83848e129704ed9ec5f2c4a49f982fb

Xinyi Zhou   commited 2023-01-06 15:36:41 -08:00
89346d4793
[Offload] Add DataElement to filter CHRE only scan request
Test: Unit test
Bug: 263431028
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I913f61dc34e31f1e944593ed6c880e7fbd3ae5bb
(cherry picked from commit 99168606c4)

Xinyi Zhou   commited 2023-01-05 04:43:01 +00:00
2d966b23c7
[Offload] Add DataElement to filter CHRE only scan request
Test: Unit test
Bug: 263431028
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I913f61dc34e31f1e944593ed6c880e7fbd3ae5bb

Xinyi Zhou   commited 2022-12-22 16:28:21 -08:00
99168606c4
[automerge] [NearbyManager] Do not call back for null result 2p: 7c97969baa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/20546515

Change-Id: Ic1c6733c14b0700e42042f37c669ee54c6c85305
Ignore-AOSP-First: nearby_not_in_aosp_yet

Presubmit Automerger Backend   authored and   Xinyi Zhou   commited 2022-11-29 23:06:06 +00:00
317d0265be
[NearbyManager] Do not call back for null result
Test: -m
Fix: 260002423
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I195c17c54cff9cd7d31db0f4838175e3d861c2f8

Xinyi Zhou   commited 2022-11-29 19:58:06 +00:00
7c97969baa
[Fast Pair] Add log in #setFastPairScanEnabled
Test: Verified logs
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: If1c8f504a9727289f188aee95d41331197b3f2b3

Xinyi Zhou   commited 2022-10-24 16:15:12 -07:00
36872ef948
Fast Pair AOSP Resources maintenance
Doc: https://docs.google.com/document/d/1dS4Ja-04y6VyQCiYlEPDH7v6LNYULt7Hqy_oAcrcgtA/edit#heading=h.u4lgcjo6ojj
Bug: b/244185052
Test: unit test and manual test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Icfd731fa46e0c86c5b7a4363198cc7abeb84a880

Qin Wang   commited 2022-09-28 22:43:16 +00:00
616f5a1578
[automerge] Fix CTS-13_r1 2p: 63ab6041f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19914696

Bug: 245997827
Change-Id: I0e2c582dcee76499f281775af07f21a1eb2f7cdf
Ignore-AOSP-First: nearby_not_in_aosp_yet

Xinyi Zhou   commited 2022-09-12 17:09:41 +00:00
ff361c75c3
Fix CTS-13_r1
We changed the code to unblock OEM

Fix: 243759495
Bug: 245997827
Ignore-AOSP-First: nearby_not_in_aosp_yet
Test: -m
Change-Id: I3ea80b28107657b55e8501a98cd5ba1208a7f68f

Xinyi Zhou   commited 2022-09-09 16:19:19 -07:00
63ab6041f5
Merge changes from topics "presubmit-am-2d43f693904f4e0b905048db5b06fbb9", "presubmit-am-4c8a87f356f548f383fd0845aecc022d", "presubmit-am-9ed775d7532a4390a37558866487d8e9", "presubmit-am-9fcce12d783049f788a644fa78e9675f" into tm-mainline-prod am: c43c69bbb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/19634275

Change-Id: I9b8241df45f79b0d6570574dc0f506dc3f4a188d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>

Xinyi Zhou   authored and   Automerger Merge Worker   commited 2022-08-25 02:19:50 +00:00
157e2cf9d8