summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Marco Loaiza <loaizamontoya@google.com> 2022-12-08 17:46:50 +0000
committer Marco Loaiza <loaizamontoya@google.com> 2022-12-20 12:01:22 +0000
commit01d21e8d5e772b0cd980d68ec25886faeae68b9c (patch)
tree4631f1c2e8335a2396d48313820726ede78613d8 /libs/androidfw/ConfigDescription.cpp
parent2bd7f4bc7b2630c2b2881126567d9bba8fbf22fa (diff)
Add APIs to update and listen to deviceId changes in Context
- Adds a updateDeviceId @hide API that can be used by the system to update the device association of a Context that is not explicitly created as a Device Context. - Adds a listener that would be notified whenever the deviceId of the Context has changed. - Adds an isDeviceContext() API that can be used to determine if the device ID returned by getDeviceId() is reliable for this Context instance. These APIs will enable implicit deviceId association for Contexts that are not Device Contexts. Test: atest DeviceAssociationTest Bug: 253201821 Change-Id: I8ef7a5f7a82ee341fb98236a01940b4be1e4fb23
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions