Home
last modified time | relevance | path

Searched refs:getPackageInfo (Results 1 – 25 of 69) sorted by relevance

123

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DVersion.java48 return getPackageInfo(context).versionCode; in getVersionCode()
52 return getPackageInfo(context).versionName.split(" "); in getVersionNameStrings()
55 static PackageInfo getPackageInfo(Context context) { in getPackageInfo() method in Version
58 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java33 return getPackageInfo(context).versionName; in getVersionName()
37 return getPackageInfo(context).versionCode; in getVersionCode()
40 static PackageInfo getPackageInfo(Context context) { in getPackageInfo() method in Version
43 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/
DPackageAccessTest.java52 PackageInfo pi = pm.getPackageInfo(TINY_PKG, 0); in testPackageAccess_inUser()
63 PackageInfo pi = pm.getPackageInfo(TINY_PKG, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testPackageAccess_inUserUninstalled()
74 PackageInfo pi = pm.getPackageInfo(TINY_PKG, 0); in testPackageAccess_notInOtherUser()
85 PackageInfo pi = pm.getPackageInfo(TINY_PKG, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testPackageAccess_notInOtherUserUninstalled()
/cts/hostsidetests/backup/RestoreAnyVersion/src/
DRestoreAnyVersionTest.java71 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in checkAppVersionIsNew()
90 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in checkAppVersionIsOld()
106 .getPackageInfo(mContext.getPackageName(), 0).versionCode); in saveAppVersionCodeToSharedPreference()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java91 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getVersionString()
106 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getLongVersionCode()
126 .getPackageInfo(packageName, PackageManager.GET_SIGNATURES); in computePackageSignatureDigest()
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java75 PackageInfo info = pm.getPackageInfo(packageName, PackageManager.MATCH_APEX); in getInstalledVersion()
131 public static PackageInfo getPackageInfo(String packageName) { in getPackageInfo() method in InstallUtils
135 return pm.getPackageInfo(packageName, PackageManager.MATCH_APEX); in getPackageInfo()
257 PackageInfo pi = getPackageInfo(packageName); in isSystemAppWithoutUpdate()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java252 PackageInfo packageInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, in testGetInfo()
488 int uid1 = mPackageManager.getPackageInfo(PACKAGE_NAME, 0).applicationInfo.uid; in testCheckSignaturesMatch_byUid()
489 int uid2 = mPackageManager.getPackageInfo("com.android.cts.stub", 0).applicationInfo.uid; in testCheckSignaturesMatch_byUid()
506 int uid1 = mPackageManager.getPackageInfo(PACKAGE_NAME, 0).applicationInfo.uid; in testCheckSignaturesNoMatch_byUid()
507 int uid2 = mPackageManager.getPackageInfo("android", 0).applicationInfo.uid; in testCheckSignaturesNoMatch_byUid()
623 PackageInfo pkgInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, GET_META_DATA in testGetPackageInfo()
631 mPackageManager.getPackageInfo("this.package.does.not.exist", 0); in testGetPackageInfo_notFound()
873 PackageInfo packageInfo = mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, in testGetPackageInfo_ApexSupported_ApexPackage_MatchesApex()
888 mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, 0 /* flags */); in testGetPackageInfo_ApexSupported_ApexPackage_DoesNotMatchApex()
901 mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testGetPackageInfo_ApexNotSupported_ApexPackage_MatchesApex()
[all …]
DConfigurationInfoTest.java35 PackageInfo pkgInfo = pm.getPackageInfo(getContext().getPackageName(), in testConfigPreferences()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DPackageInstallerTestBase.kt105 context.packageManager.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
177 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
182 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPackageUtil.java77 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getVersionString()
94 .getPackageInfo(packageName, PackageManager.GET_SIGNATURES); in computePackageSignatureDigest()
/cts/tests/tests/os/src/android/os/cts/
DRequiredComponentsTest.java93 pm.getPackageInfo(packageName, 0); in testNoPackageInfoAccess()
134 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0); in enforceSharedLibPresentAndProperlyHosted()
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/
DV3RotationTest.java105 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNATURES); in testGetSignaturesShowsOld()
117 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetSigningCertificatesShowsAll()
/cts/tests/security/src/android/keystore/cts/
DAttestationApplicationId.java51 PackageInfo packageInfo = pm.getPackageInfo(packageName, 0); in AttestationApplicationId()
59 PackageInfo packageInfo = pm.getPackageInfo(packageNames[0], PackageManager.GET_SIGNATURES); in AttestationApplicationId()
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt154 if (pm.getPackageInfo(packageName, 0).applicationInfo.targetSdkVersion in <lambda>()
166 if (pm.getPackageInfo(packageName, 0).applicationInfo.targetSdkVersion in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/MajorVersionApp/src-common/com/android/cts/majorversion/
DVersionTest.java35 PackageInfo pi = pm.getPackageInfo(InstrumentationRegistry.getContext().getPackageName(), in testCheckVersion()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DNormalService.java59 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
DExposedActivity.java61 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
DNormalWebActivity.java64 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
DExposedService.java74 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
DNormalActivity.java70 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/src/com/android/cts/implicitapp/
DImplicitActivity.java60 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/
DVerifyDuplicatePermissionTest.java44 for (PermissionInfo permInfo : sPm.getPackageInfo(pkg, GET_PERMISSIONS).permissions) { in getDeclaredPermission()
/cts/tests/tests/permission/src/android/permission/cts/
DMainlineNetworkStackPermissionTest.java54 PackageInfo packageInfo = packageManager.getPackageInfo(permissioninfo.packageName, in testPackageWithMainlineNetworkStackPermission()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DDeviceAdminTest.java37 final PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(), /* flags =*/ 0); in testTargetApiLevel()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPrivappPermissionsTest.java88 PackageInfo platformPackage = pm.getPackageInfo(PLATFORM_PACKAGE_NAME, in privappPermissionsNeedToBeWhitelisted()
112 .getPackageInfo(packageName, MATCH_FACTORY_ONLY | GET_PERMISSIONS in privappPermissionsNeedToBeWhitelisted()

123