Java Code Examples for android.app.ProfilerInfo

The following examples show how to use android.app.ProfilerInfo. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: AndroidComponentPlugin   Source File: LaunchActivityItem.java    License: Apache License 2.0 6 votes vote down vote up
/** Obtain an instance initialized with provided params. */
public static LaunchActivityItem obtain(Intent intent, int ident, ActivityInfo info,
        Configuration curConfig, Configuration overrideConfig, CompatibilityInfo compatInfo,
        String referrer, IVoiceInteractor voiceInteractor, int procState, Bundle state,
        PersistableBundle persistentState, List<ResultInfo> pendingResults,
        List<ReferrerIntent> pendingNewIntents, boolean isForward, ProfilerInfo profilerInfo) {
    LaunchActivityItem instance = ObjectPool.obtain(LaunchActivityItem.class);
    if (instance == null) {
        instance = new LaunchActivityItem();
    }
    setValues(instance, intent, ident, info, curConfig, overrideConfig, compatInfo, referrer,
            voiceInteractor, procState, state, persistentState, pendingResults,
            pendingNewIntents, isForward, profilerInfo);

    return instance;
}
 
Example 2
Source Project: AndroidComponentPlugin   Source File: LaunchActivityItem.java    License: Apache License 2.0 6 votes vote down vote up
private static void setValues(LaunchActivityItem instance, Intent intent, int ident,
        ActivityInfo info, Configuration curConfig, Configuration overrideConfig,
        CompatibilityInfo compatInfo, String referrer, IVoiceInteractor voiceInteractor,
        int procState, Bundle state, PersistableBundle persistentState,
        List<ResultInfo> pendingResults, List<ReferrerIntent> pendingNewIntents,
        boolean isForward, ProfilerInfo profilerInfo) {
    instance.mIntent = intent;
    instance.mIdent = ident;
    instance.mInfo = info;
    instance.mCurConfig = curConfig;
    instance.mOverrideConfig = overrideConfig;
    instance.mCompatInfo = compatInfo;
    instance.mReferrer = referrer;
    instance.mVoiceInteractor = voiceInteractor;
    instance.mProcState = procState;
    instance.mState = state;
    instance.mPersistentState = persistentState;
    instance.mPendingResults = pendingResults;
    instance.mPendingNewIntents = pendingNewIntents;
    instance.mIsForward = isForward;
    instance.mProfilerInfo = profilerInfo;
}
 
Example 3
Source Project: android_9.0.0_r45   Source File: LaunchActivityItem.java    License: Apache License 2.0 6 votes vote down vote up
/** Obtain an instance initialized with provided params. */
public static LaunchActivityItem obtain(Intent intent, int ident, ActivityInfo info,
        Configuration curConfig, Configuration overrideConfig, CompatibilityInfo compatInfo,
        String referrer, IVoiceInteractor voiceInteractor, int procState, Bundle state,
        PersistableBundle persistentState, List<ResultInfo> pendingResults,
        List<ReferrerIntent> pendingNewIntents, boolean isForward, ProfilerInfo profilerInfo) {
    LaunchActivityItem instance = ObjectPool.obtain(LaunchActivityItem.class);
    if (instance == null) {
        instance = new LaunchActivityItem();
    }
    setValues(instance, intent, ident, info, curConfig, overrideConfig, compatInfo, referrer,
            voiceInteractor, procState, state, persistentState, pendingResults,
            pendingNewIntents, isForward, profilerInfo);

    return instance;
}
 
Example 4
Source Project: android_9.0.0_r45   Source File: LaunchActivityItem.java    License: Apache License 2.0 6 votes vote down vote up
private static void setValues(LaunchActivityItem instance, Intent intent, int ident,
        ActivityInfo info, Configuration curConfig, Configuration overrideConfig,
        CompatibilityInfo compatInfo, String referrer, IVoiceInteractor voiceInteractor,
        int procState, Bundle state, PersistableBundle persistentState,
        List<ResultInfo> pendingResults, List<ReferrerIntent> pendingNewIntents,
        boolean isForward, ProfilerInfo profilerInfo) {
    instance.mIntent = intent;
    instance.mIdent = ident;
    instance.mInfo = info;
    instance.mCurConfig = curConfig;
    instance.mOverrideConfig = overrideConfig;
    instance.mCompatInfo = compatInfo;
    instance.mReferrer = referrer;
    instance.mVoiceInteractor = voiceInteractor;
    instance.mProcState = procState;
    instance.mState = state;
    instance.mPersistentState = persistentState;
    instance.mPendingResults = pendingResults;
    instance.mPendingNewIntents = pendingNewIntents;
    instance.mIsForward = isForward;
    instance.mProfilerInfo = profilerInfo;
}
 
Example 5
Source Project: AndroidComponentPlugin   Source File: LaunchActivityItem.java    License: Apache License 2.0 5 votes vote down vote up
/** Read from Parcel. */
private LaunchActivityItem(Parcel in) {
    setValues(this, in.readTypedObject(Intent.CREATOR), in.readInt(),
            in.readTypedObject(ActivityInfo.CREATOR), in.readTypedObject(Configuration.CREATOR),
            in.readTypedObject(Configuration.CREATOR),
            in.readTypedObject(CompatibilityInfo.CREATOR), in.readString(),
            IVoiceInteractor.Stub.asInterface(in.readStrongBinder()), in.readInt(),
            in.readBundle(getClass().getClassLoader()),
            in.readPersistableBundle(getClass().getClassLoader()),
            in.createTypedArrayList(ResultInfo.CREATOR),
            in.createTypedArrayList(ReferrerIntent.CREATOR), in.readBoolean(),
            in.readTypedObject(ProfilerInfo.CREATOR));
}
 
Example 6
Source Project: android_9.0.0_r45   Source File: LaunchActivityItem.java    License: Apache License 2.0 5 votes vote down vote up
/** Read from Parcel. */
private LaunchActivityItem(Parcel in) {
    setValues(this, in.readTypedObject(Intent.CREATOR), in.readInt(),
            in.readTypedObject(ActivityInfo.CREATOR), in.readTypedObject(Configuration.CREATOR),
            in.readTypedObject(Configuration.CREATOR),
            in.readTypedObject(CompatibilityInfo.CREATOR), in.readString(),
            IVoiceInteractor.Stub.asInterface(in.readStrongBinder()), in.readInt(),
            in.readBundle(getClass().getClassLoader()),
            in.readPersistableBundle(getClass().getClassLoader()),
            in.createTypedArrayList(ResultInfo.CREATOR),
            in.createTypedArrayList(ReferrerIntent.CREATOR), in.readBoolean(),
            in.readTypedObject(ProfilerInfo.CREATOR));
}
 
Example 7
Source Project: GPT   Source File: ActivityManagerNativeWorker.java    License: Apache License 2.0 5 votes vote down vote up
public int startActivity(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType,
                         IBinder resultTo, String resultWho, int requestCode, int flags, ProfilerInfo profilerInfo, Bundle options) {

    RemapingUtil.remapActivityIntent(mHostContext, intent);

    return mTarget.startActivity(caller, callingPackage, intent, resolvedType, resultTo, resultWho, requestCode,
            flags, profilerInfo, options);
}
 
Example 8
public final int startActivity(IApplicationThread caller, String callingPackage,
                               Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode,
                               int startFlags, ProfilerInfo profilerInfo, Bundle bOptions) {
    return PreventRunningUtils.onStartActivity(
            startActivity$Pr(caller, callingPackage,
                    intent, resolvedType, resultTo, resultWho, requestCode,
                    startFlags, profilerInfo, bOptions),
            caller, callingPackage, intent);
}
 
Example 9
Source Project: android_9.0.0_r45   Source File: ActivityStarter.java    License: Apache License 2.0 4 votes vote down vote up
ActivityStarter setProfilerInfo(ProfilerInfo info) {
    mRequest.profilerInfo = info;
    return this;
}
 
Example 10
public final int startActivity$Pr(IApplicationThread caller, String callingPackage,
                                  Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode,
                                  int startFlags, ProfilerInfo profilerInfo, Bundle bOptions) {
    throw new UnsupportedOperationException();
}