Commit graph android_packages_modules_Co.../nearby/framework
Message SHA1
Convert uses of @hide to block tag
In most places the `@hide` doctag is treated as a block tag on its own
line. However, there are a few places where it is treated as an inline
doctag, e,g. `{@hide}`, and some places where it looks like a block
tag but is inline in the text, e.g. `Some text. @hide`. Dealing with
all the types increases the complexity of Metalava and makes it
slightly slower.

This change replaces the non-block tag forms with a block tag.

Flag: EXEMPT change the form of @hide does not change the API or behavior
Bug: 429965593
Test: m checkapi
Change-Id: I4ffe44a329dbcb7f0a7bd61af16c3bd99cacdac4

Paul Duffin   commited 2025-08-29 21:19:30 +00:00
6eaa841657
Replace .toList() with .collect() am: 725078a6bd am: 6586d080f6
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/3473841

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

Cole Faust   authored and   Automerger Merge Worker   commited 2025-02-03 17:40:50 -08:00
1441db0378
Replace .toList() with .collect()
.toList() was only introduced to android in api level 34, which is newer than
this module's min_sdk_version. Replace it with .collect().

This was found while updating android lint.

Flag: EXEMPT refactor
Bug: 394096385
Test: Presubmits
Change-Id: I472bff7749aebb21bd8681ecf4235ce7a6cfc7de

Cole Faust   commited 2025-02-03 14:18:40 -08:00
725078a6bd
CredentialElement uses Parcel#createByteArray to read the bytes.
This avoids allocating a size which is read in from another process, which can cause OOM conditions and a crash.

Bug: 370353559
Change-Id: Iff9d4c8f63ba44ae64414d5143bfbb69b9966132
Test: TH

Steven Moreland   commited 2024-12-18 17:19:10 -08:00
335aac7c49
[nearby]Remove out of date APIs for Fast Pair.
The APIs were not deleted to support the CTS before R5 test. Now that CTS R5 (without calling the APIs) is rolled out, we can remove these APIs.

Test: -m
Fix: 286137024
Bug: 376002171
Change-Id: I0812792b445a30a9cd366b41515dd39b981ef5d3

Xinyi Zhou   commited 2024-10-29 21:20:02 +00:00
2dc574bf1b
Add persist.bluetooth.finder.supported property
Bug: 365462615
Test: Covered by existing tests

Change-Id: I4389295c8b43d70356582388f5a6bf82bb3e47b2

Yahav Nussbaum   commited 2024-09-23 09:41:36 +00:00
95d26ae188
Make java_sdk_library dependencies explicit
modules should specify the submodule of java_sdk_library that the module
actually depends on

Test: CI
Bug: 358613520
Change-Id: I0367068c901df98483f6cf95160d3e7801881b0a

Jihoon Kang   commited 2024-09-10 00:01:31 +00:00
8401b6a9f0
Use java_aconfig_library for nearby and thread flags
Connectivity repo now can use java_aconfig_library since this target is
available on all downstream branches.

Bug: 345121279
Test: TH
Change-Id: I6d267ddac89731a8efbef2ee98a3baa1df754ff5

Motomu Utsumi   commited 2024-08-16 16:59:08 +09:00
dbb82c0581
Baseline Lint FlaggedApi violations
The Lint FlaggedApi checks are currently configured as warnings. Add
existing violations to baselines files to prepare for turning the
FlaggedApi checks into errors.

Bug: 303434307
Test: treehugger
Flag: EXEMPT not possible to flag baseline changes
Merged-In: I990ce57cd5cdac44ee8b93565b45aa15790ad697
Change-Id: I990ce57cd5cdac44ee8b93565b45aa15790ad697

Mårten Kongstad   commited 2024-06-20 09:05:51 +02:00
4ece737f4f
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