summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2017-11-07 18:49:43 -0800
committerAndreas Gampe <agampe@google.com>2018-02-14 08:00:56 -0800
commit1d875ad3ae5bb27016f9650b5bf4c39c08b6570e (patch)
tree2344bf7d126d9287bbaae8e0a575a8f2b46c10bb /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1b37daa810c929938a642f56cb7aeb75c4f89766 (diff)
Add SystemApis to expose runtime profile information
The API allows a system apps which acquired {@code android.permission.READ_RUNTIME_PROFILE} to snapshot the runtime profiles of installed packages. The API is implemented in a new service class (AndroidRuntimeManager) accessible from the context using context().getPackageManager().getAndroidRuntimeManager(). The main functionality is exposed as a one way call into the AndroidRuntimeManager with the result being posted on a callback. The profile is available to the caller as a read-only ParcelFileDescriptor. This CL only adds the API interfaces and validation. It does not fully implement the functionality. oneway void snapshotRuntimeProfile(in String packageName, in String codePath, in ISnapshotRuntimeProfileCallback callback) (cherry picked from commit 45f8b29ce0ca9f80c586850c4be3a1e552bc6c2f) Bug: 30934496 Test: gts-tradefed -m GtsAndroidRuntimeManagerHostTestCases Merged-In: Iaa6be4715840f24508acba3162ea9c1ab725bd38 Change-Id: Iaa6be4715840f24508acba3162ea9c1ab725bd38
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions