/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ |
D | Version.java | 48 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/ |
D | Version.java | 33 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/ |
D | PackageAccessTest.java | 52 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/ |
D | RestoreAnyVersionTest.java | 71 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/ |
D | PackageUtil.java | 91 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/ |
D | InstallUtils.java | 75 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/ |
D | PackageManagerTest.java | 252 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 …]
|
D | ConfigurationInfoTest.java | 35 PackageInfo pkgInfo = pm.getPackageInfo(getContext().getPackageName(), in testConfigPreferences()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | PackageInstallerTestBase.kt | 105 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/ |
D | PackageUtil.java | 77 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getVersionString() 94 .getPackageInfo(packageName, PackageManager.GET_SIGNATURES); in computePackageSignatureDigest()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | RequiredComponentsTest.java | 93 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/ |
D | V3RotationTest.java | 105 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/ |
D | AttestationApplicationId.java | 51 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/ |
D | NoPermissionTests.kt | 154 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/ |
D | VersionTest.java | 35 PackageInfo pi = pm.getPackageInfo(InstrumentationRegistry.getContext().getPackageName(), in testCheckVersion()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | NormalService.java | 59 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
D | ExposedActivity.java | 61 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
D | NormalWebActivity.java | 64 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
D | ExposedService.java | 74 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
D | NormalActivity.java | 70 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/src/com/android/cts/implicitapp/ |
D | ImplicitActivity.java | 60 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/ |
D | VerifyDuplicatePermissionTest.java | 44 for (PermissionInfo permInfo : sPm.getPackageInfo(pkg, GET_PERMISSIONS).permissions) { in getDeclaredPermission()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | MainlineNetworkStackPermissionTest.java | 54 PackageInfo packageInfo = packageManager.getPackageInfo(permissioninfo.packageName, in testPackageWithMainlineNetworkStackPermission()
|
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ |
D | DeviceAdminTest.java | 37 final PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(), /* flags =*/ 0); in testTargetApiLevel()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | PrivappPermissionsTest.java | 88 PackageInfo platformPackage = pm.getPackageInfo(PLATFORM_PACKAGE_NAME, in privappPermissionsNeedToBeWhitelisted() 112 .getPackageInfo(packageName, MATCH_FACTORY_ONLY | GET_PERMISSIONS in privappPermissionsNeedToBeWhitelisted()
|