當前位置: 首頁>>代碼示例>>Java>>正文


Java PackageParserJellyBean17類代碼示例

本文整理匯總了Java中mirror.android.content.pm.PackageParserJellyBean17的典型用法代碼示例。如果您正苦於以下問題:Java PackageParserJellyBean17類的具體用法?Java PackageParserJellyBean17怎麽用?Java PackageParserJellyBean17使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PackageParserJellyBean17類屬於mirror.android.content.pm包,在下文中一共展示了PackageParserJellyBean17類的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: parsePackage

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static Package parsePackage(PackageParser parser, File packageFile, int flags) throws Throwable {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.parsePackage.callWithException(parser, packageFile, flags);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    } else {
        return mirror.android.content.pm.PackageParser.parsePackage.callWithException(parser, packageFile, null,
                new DisplayMetrics(), flags);
    }
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:19,代碼來源:PackageParserCompat.java

示例2: generatePackageInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static PackageInfo generatePackageInfo(Package p, int flags, long firstInstallTime, long lastUpdateTime) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null, sUserState);
    } else if (API_LEVEL >= LOLLIPOP) {
        if (PackageParserLollipop22.generatePackageInfo != null) {
            return PackageParserLollipop22.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                    null, sUserState);
        } else {
            return PackageParserLollipop.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                    null, sUserState);
        }
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generatePackageInfo.call(p, GIDS, flags, firstInstallTime, lastUpdateTime,
                null);
    } else {
        return mirror.android.content.pm.PackageParser.generatePackageInfo.call(p, GIDS, flags, firstInstallTime,
                lastUpdateTime);
    }
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:24,代碼來源:PackageParserCompat.java

示例3: collectCertificates

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static void collectCertificates(PackageParser parser, Package p, int flags) throws Throwable {
    if (API_LEVEL >= N) {
        PackageParserNougat.collectCertificates.callWithException(p, flags);
    } else if (API_LEVEL >= M) {
        PackageParserMarshmallow.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        PackageParserLollipop22.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= LOLLIPOP) {
        PackageParserLollipop.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        PackageParserJellyBean17.collectCertificates.callWithException(parser, p, flags);
    } else if (API_LEVEL >= JELLY_BEAN) {
        PackageParserJellyBean.collectCertificates.callWithException(parser, p, flags);
    } else {
        mirror.android.content.pm.PackageParser.collectCertificates.call(parser, p, flags);
    }
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:18,代碼來源:PackageParserCompat.java

示例4: createParser

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static PackageParser createParser(File packageFile) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.ctor.newInstance();
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.ctor.newInstance();
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.ctor.newInstance();
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.ctor.newInstance(packageFile.getAbsolutePath());
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.ctor.newInstance(packageFile.getAbsolutePath());
    } else {
        return mirror.android.content.pm.PackageParser.ctor.newInstance(packageFile.getAbsolutePath());
    }
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:16,代碼來源:PackageParserCompat.java

示例5: generateServiceInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
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);
    }
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:16,代碼來源:PackageParserCompat.java

示例6: generateApplicationInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static ApplicationInfo generateApplicationInfo(Package p, int flags) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generateApplicationInfo.call(p, flags, sUserState);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generateApplicationInfo.call(p, flags, false, 1);
    } else {
        return mirror.android.content.pm.PackageParser.generateApplicationInfo.call(p, flags);
    }
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:16,代碼來源:PackageParserCompat.java

示例7: generateActivityInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
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);
    }
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:16,代碼來源:PackageParserCompat.java

示例8: generateProviderInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static ProviderInfo generateProviderInfo(Provider provider, int flags) {
    if (API_LEVEL >= M) {
        return PackageParserMarshmallow.generateProviderInfo.call(provider, flags, sUserState, myUserId);
    } else if (API_LEVEL >= LOLLIPOP_MR1) {
        return PackageParserLollipop22.generateProviderInfo.call(provider, flags, sUserState, myUserId);
    } else if (API_LEVEL >= LOLLIPOP) {
        return PackageParserLollipop.generateProviderInfo.call(provider, flags, sUserState, myUserId);
    } else if (API_LEVEL >= JELLY_BEAN_MR1) {
        return PackageParserJellyBean17.generateProviderInfo.call(provider, flags, sUserState, myUserId);
    } else if (API_LEVEL >= JELLY_BEAN) {
        return PackageParserJellyBean.generateProviderInfo.call(provider, flags, false, 1, myUserId);
    } else {
        return mirror.android.content.pm.PackageParser.generateProviderInfo.call(provider, flags);
    }
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:16,代碼來源:PackageParserCompat.java

示例9: generatePackageInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static PackageInfo generatePackageInfo(Package p, int flags, long firstInstallTime, long lastUpdateTime) {
	if (SDK >= M) {

		return PackageParserMarshmallow.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
				null, sUserState);

	} else if (SDK >= LOLLIPOP) {
		if (PackageParserLollipop22.generatePackageInfo != null) {
			return PackageParserLollipop22.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
					null, sUserState);
		} else {
			return PackageParserLollipop.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
					null, sUserState);
		}

	} else if (SDK >= JELLY_BEAN_MR1) {

		return PackageParserJellyBean17.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
				null, sUserState);

	} else if (SDK >= JELLY_BEAN) {

		return PackageParserJellyBean.generatePackageInfo.call(p, gids, flags, firstInstallTime, lastUpdateTime,
				null);

	} else {
		return mirror.android.content.pm.PackageParser.generatePackageInfo.call(p, gids, flags, firstInstallTime,
				lastUpdateTime);
	}
}
 
開發者ID:codehz,項目名稱:container,代碼行數:31,代碼來源:PackageParserCompat.java

示例10: generateServiceInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
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);
		}
	}
 
開發者ID:codehz,項目名稱:container,代碼行數:27,代碼來源:PackageParserCompat.java

示例11: generateApplicationInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static ApplicationInfo generateApplicationInfo(Package p, int flags) {
	if (SDK >= M) {

		return PackageParserMarshmallow.generateApplicationInfo.call(p, flags, sUserState);

	} else if (SDK >= LOLLIPOP_MR1) {

		return PackageParserLollipop22.generateApplicationInfo.call(p, flags, sUserState);

	} else if (SDK >= LOLLIPOP) {

		return PackageParserLollipop.generateApplicationInfo.call(p, flags, sUserState);

	} else if (SDK >= JELLY_BEAN_MR1) {

		return PackageParserJellyBean17.generateApplicationInfo.call(p, flags, sUserState);

	} else if (SDK >= JELLY_BEAN) {

		return PackageParserJellyBean.generateApplicationInfo.call(p, flags, false, 1);

	} else {
		return mirror.android.content.pm.PackageParser.generateApplicationInfo.call(p, flags);
	}
}
 
開發者ID:codehz,項目名稱:container,代碼行數:26,代碼來源:PackageParserCompat.java

示例12: generateActivityInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
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);
		}
	}
 
開發者ID:codehz,項目名稱:container,代碼行數:27,代碼來源:PackageParserCompat.java

示例13: generateProviderInfo

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static ProviderInfo generateProviderInfo(Provider provider, int flags) {

		if (SDK >= M) {

			return PackageParserMarshmallow.generateProviderInfo.call(provider, flags, sUserState, myUserId);

		} else if (SDK >= LOLLIPOP_MR1) {

			return PackageParserLollipop22.generateProviderInfo.call(provider, flags, sUserState, myUserId);

		} else if (SDK >= LOLLIPOP) {

			return PackageParserLollipop.generateProviderInfo.call(provider, flags, sUserState, myUserId);

		} else if (SDK >= JELLY_BEAN_MR1) {

			return PackageParserJellyBean17.generateProviderInfo.call(provider, flags, sUserState, myUserId);

		} else if (SDK >= JELLY_BEAN) {

			return PackageParserJellyBean.generateProviderInfo.call(provider, flags, false, 1, myUserId);

		} else {
			return mirror.android.content.pm.PackageParser.generateProviderInfo.call(provider, flags);
		}
	}
 
開發者ID:codehz,項目名稱:container,代碼行數:27,代碼來源:PackageParserCompat.java

示例14: collectCertificates

import mirror.android.content.pm.PackageParserJellyBean17; //導入依賴的package包/類
public static void collectCertificates(PackageParser parser, Package p, int flags) {
	if (SDK >= M) {

		PackageParserMarshmallow.collectCertificates.call(parser, p, flags);

	} else if (SDK >= LOLLIPOP_MR1) {

		PackageParserLollipop22.collectCertificates.call(parser, p, flags);

	} else if (SDK >= LOLLIPOP) {

		PackageParserLollipop.collectCertificates.call(parser, p, flags);

	} else if (SDK >= JELLY_BEAN_MR1) {

		 PackageParserJellyBean17.collectCertificates.call(parser, p, flags);

	} else if (SDK >= JELLY_BEAN) {

		PackageParserJellyBean.collectCertificates.call(parser, p, flags);

	} else {
		mirror.android.content.pm.PackageParser.collectCertificates.call(parser, p, flags);
	}
}
 
開發者ID:codehz,項目名稱:container,代碼行數:26,代碼來源:PackageParserCompat.java


注:本文中的mirror.android.content.pm.PackageParserJellyBean17類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。