diff options
| author | Android Build Merger (Role) <noreply-android-build-merger@google.com> | 2018-01-25 23:03:11 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2018-01-25 23:03:11 +0000 |
| commit | 6b3dd70b1f92b6728396dc36bb263b68eeaebae5 (patch) | |
| tree | cb7b42e36d112791456dd7a1bccb4d1a8bc861c5 /core/java | |
| parent | 5ec90cc6a31109f910f92050183cdd7add6b5d84 (diff) | |
| parent | 954ba2c6a1671b75cd1e588e0b5f0ccb4b3abc61 (diff) | |
Merge "Merge "ActivityManager: Add support for agents on startup" am: d5cba89b98 am: ebc0afd811" into oc-mr1-dev-plus-aosp
am: 954ba2c6a1
Change-Id: I218eb054ef0da896c72674c597249c6a5120500d
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/IActivityManager.aidl | 1 | ||||
| -rw-r--r-- | core/java/android/app/ProfilerInfo.java | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/app/IActivityManager.aidl b/core/java/android/app/IActivityManager.aidl index 5382e6656bf1..b25deeac75cb 100644 --- a/core/java/android/app/IActivityManager.aidl +++ b/core/java/android/app/IActivityManager.aidl @@ -146,6 +146,7 @@ interface IActivityManager { void publishService(in IBinder token, in Intent intent, in IBinder service); void activityResumed(in IBinder token); void setDebugApp(in String packageName, boolean waitForDebugger, boolean persistent); + void setAgentApp(in String packageName, @nullable String agent); void setAlwaysFinish(boolean enabled); boolean startInstrumentation(in ComponentName className, in String profileFile, int flags, in Bundle arguments, in IInstrumentationWatcher watcher, diff --git a/core/java/android/app/ProfilerInfo.java b/core/java/android/app/ProfilerInfo.java index 0ed1b0824946..6fbe9c6efb40 100644 --- a/core/java/android/app/ProfilerInfo.java +++ b/core/java/android/app/ProfilerInfo.java @@ -87,6 +87,15 @@ public class ProfilerInfo implements Parcelable { } /** + * Return a new ProfilerInfo instance, with fields populated from this object, + * and {@link agent} and {@link attachAgentDuringBind} as given. + */ + public ProfilerInfo setAgent(String agent, boolean attachAgentDuringBind) { + return new ProfilerInfo(this.profileFile, this.profileFd, this.samplingInterval, + this.autoStopProfiler, this.streamingOutput, agent, attachAgentDuringBind); + } + + /** * Close profileFd, if it is open. The field will be null after a call to this function. */ public void closeFd() { |
