android.content.ComponentName#toShortString ( )源码实例Demo

下面列出了android.content.ComponentName#toShortString ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: AndroidComponentPlugin   文件: ActivityThread.java
public final Activity startActivityNow(Activity parent, String id,
    Intent intent, ActivityInfo activityInfo, IBinder token, Bundle state,
    Activity.NonConfigurationInstances lastNonConfigurationInstances) {
    ActivityClientRecord r = new ActivityClientRecord();
        r.token = token;
        r.ident = 0;
        r.intent = intent;
        r.state = state;
        r.parent = parent;
        r.embeddedID = id;
        r.activityInfo = activityInfo;
        r.lastNonConfigurationInstances = lastNonConfigurationInstances;
    if (localLOGV) {
        ComponentName compname = intent.getComponent();
        String name;
        if (compname != null) {
            name = compname.toShortString();
        } else {
            name = "(Intent " + intent + ").getComponent() returned null";
        }
        Slog.v(TAG, "Performing launch: action=" + intent.getAction()
                + ", comp=" + name
                + ", token=" + token);
    }
    return performLaunchActivity(r, null);
}
 
源代码2 项目: AndroidComponentPlugin   文件: ActivityThread.java
public final Activity startActivityNow(Activity parent, String id,
    Intent intent, ActivityInfo activityInfo, IBinder token, Bundle state,
    Activity.NonConfigurationInstances lastNonConfigurationInstances) {
    ActivityClientRecord r = new ActivityClientRecord();
        r.token = token;
        r.ident = 0;
        r.intent = intent;
        r.state = state;
        r.parent = parent;
        r.embeddedID = id;
        r.activityInfo = activityInfo;
        r.lastNonConfigurationInstances = lastNonConfigurationInstances;
    if (localLOGV) {
        ComponentName compname = intent.getComponent();
        String name;
        if (compname != null) {
            name = compname.toShortString();
        } else {
            name = "(Intent " + intent + ").getComponent() returned null";
        }
        Slog.v(TAG, "Performing launch: action=" + intent.getAction()
                + ", comp=" + name
                + ", token=" + token);
    }
    return performLaunchActivity(r, null);
}
 
源代码3 项目: AndroidComponentPlugin   文件: ActivityThread.java
public String toString() {
    ComponentName componentName = intent != null ? intent.getComponent() : null;
    return "ActivityRecord{"
        + Integer.toHexString(System.identityHashCode(this))
        + " token=" + token + " " + (componentName == null
                ? "no component name" : componentName.toShortString())
        + "}";
}
 
源代码4 项目: AndroidComponentPlugin   文件: ActivityThread.java
public String toString() {
    ComponentName componentName = intent.getComponent();
    return "ActivityRecord{"
        + Integer.toHexString(System.identityHashCode(this))
        + " token=" + token + " " + (componentName == null
                ? "no component name" : componentName.toShortString())
        + "}";
}
 
源代码5 项目: AndroidComponentPlugin   文件: ActivityThread.java
private static String safeToComponentShortString(Intent intent) {
    ComponentName component = intent.getComponent();
    return component == null ? "[Unknown]" : component.toShortString();
}
 
源代码6 项目: AndroidComponentPlugin   文件: ActivityThread.java
private static String safeToComponentShortString(Intent intent) {
    ComponentName component = intent.getComponent();
    return component == null ? "[Unknown]" : component.toShortString();
}
 
源代码7 项目: android_9.0.0_r45   文件: ZenLog.java
private static String componentToString(ComponentName component) {
    return component != null ? component.toShortString() : null;
}