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

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

        if (SDK >= M) {

            return PackageParserMarshmallow.generateServiceInfo.call(service, flags, sUserState, myUserId);

        } else if (SDK >= LOLLIPOP_MR1) {

            return PackageParserLollipop22.generateServiceInfo.call(service, flags, sUserState, myUserId);

        } else if (SDK >= LOLLIPOP) {

            return PackageParserLollipop.generateServiceInfo.call(service, flags, sUserState, myUserId);

        } else if (SDK >= JELLY_BEAN_MR1) {

            return PackageParserJellyBean17.generateServiceInfo.call(service, flags, sUserState, myUserId);

        } else if (SDK >= JELLY_BEAN) {

            return PackageParserJellyBean.generateServiceInfo.call(service, flags, false, 1, myUserId);

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