summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Tom Chan <tomchan@google.com> 2024-04-09 17:18:51 +0000
committer Tom Chan <tomchan@google.com> 2024-04-09 17:24:26 +0000
commitbeaca7ff0534176cae2831b482ac08f14054b363 (patch)
treea176b918767ab9539ef8eefcf4a5e97284c5b8f8 /libs/androidfw/StringPool.cpp
parent7dca5acb828f5ad978494275be26ff2114e6b9d6 (diff)
Add log to tell if a provided data stream is read-only or not.
Implementation adapted from https://source.corp.google.com/h/googleplex-android/platform/superproject/main/+/main:frameworks/base/services/core/java/com/android/server/ondeviceintelligence/BundleUtil.java;l=313;drc=6cdf7ce91a2643e02156d5ab8fb0f1c416f80c29 This helps with inspectability when we use the provideDataStream API to send a read-only data stream into WearableSensingService. Test: Tried on device. It correctly logs true for the read end of a PFD pipe and false for a socket pair and the write end of a pipe. Bug: 332871862 Change-Id: I171fcf7b70db56237ed82c19a6bfa07627f5bd99
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions