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
Loading
Please register or sign in to comment