Java 类android.content.pm.PackageParser.Activity 实例源码

项目:VirtualHook    文件:PackageParserCompat.java   
public static ActivityInfo generateActivityInfo(Activity activity, int flags) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generateActivityInfo.call(activity, flags, sUserState, myUserId);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.generateActivityInfo.call(activity, flags, sUserState, myUserId);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.generateActivityInfo.call(activity, flags, sUserState, myUserId);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generateActivityInfo.call(activity, flags, sUserState, myUserId);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generateActivityInfo.call(activity, flags, false, 1, myUserId);
    } else {
        return mirror.android.content.pm.PackageParser.generateActivityInfo.call(activity, flags);
    }
}
项目:TPlayer    文件:PackageParserCompat.java   
public static ActivityInfo generateActivityInfo(Activity activity, int flags) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generateActivityInfo.call(activity, flags, sUserState, myUserId);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.generateActivityInfo.call(activity, flags, sUserState, myUserId);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.generateActivityInfo.call(activity, flags, sUserState, myUserId);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generateActivityInfo.call(activity, flags, sUserState, myUserId);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generateActivityInfo.call(activity, flags, false, 1, myUserId);
    } else {
        return mirror.android.content.pm.PackageParser.generateActivityInfo.call(activity, flags);
    }
}
项目:container    文件:PackageParserCompat.java   
public static ActivityInfo generateActivityInfo(Activity activity, int flags) {

        if (SDK >= M) {

            return PackageParserMarshmallow.generateActivityInfo.call(activity, flags, sUserState, myUserId);

        } else if (SDK >= LOLLIPOP_MR1) {

            return PackageParserLollipop22.generateActivityInfo.call(activity, flags, sUserState, myUserId);

        } else if (SDK >= LOLLIPOP) {

            return PackageParserLollipop.generateActivityInfo.call(activity, flags, sUserState, myUserId);

        } else if (SDK >= JELLY_BEAN_MR1) {

            return PackageParserJellyBean17.generateActivityInfo.call(activity, flags, sUserState, myUserId);

        } else if (SDK >= JELLY_BEAN) {

            return PackageParserJellyBean.generateActivityInfo.call(activity, flags, false, 1, myUserId);

        } else {
            return mirror.android.content.pm.PackageParser.generateActivityInfo.call(activity, flags);
        }
    }