Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit beaca7ff authored by Tom Chan's avatar Tom Chan
Browse files

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
parent 7dca5acb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment