Home
last modified time | relevance | path

Searched refs:packageInfo (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java56 for (PackageInfo packageInfo : allPackageInfos) { in testPackageSignatures()
57 String packageName = packageInfo.packageName; in testPackageSignatures()
59 for (Signature signature : packageInfo.signatures) { in testPackageSignatures()
61 badPackages.add(packageInfo.packageName); in testPackageSignatures()
169 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, in writeSignature() local
172 int numSignatures = packageInfo.signatures.length; in writeSignature()
175 Signature signature = packageInfo.signatures[i]; in writeSignature()
/cts/hostsidetests/backup/RestoreAnyVersion/src/
DRestoreAnyVersionTest.java71 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in checkAppVersionIsNew() local
73 assertEquals(NEW_VERSION, packageInfo.versionCode); in checkAppVersionIsNew()
90 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in checkAppVersionIsOld() local
92 assertEquals(OLD_VERSION, packageInfo.versionCode); in checkAppVersionIsOld()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java252 PackageInfo packageInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, in testGetInfo() local
254 assertEquals(PACKAGE_NAME, packageInfo.packageName); in testGetInfo()
873 PackageInfo packageInfo = mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, in testGetPackageInfo_ApexSupported_ApexPackage_MatchesApex() local
875 assertShimApexInfoIsCorrect(packageInfo); in testGetPackageInfo_ApexSupported_ApexPackage_MatchesApex()
929 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexSupported_MatchesApex()
943 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexSupported_DoesNotMatchApex()
957 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexNotSupported_MatchesApex()
970 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexNotSupported_DoesNotMatchApex()
979 private static void assertShimApexInfoIsCorrect(PackageInfo packageInfo) { in assertShimApexInfoIsCorrect() argument
980 assertThat(packageInfo.packageName).isEqualTo(SHIM_APEX_PACKAGE_NAME); in assertShimApexInfoIsCorrect()
[all …]
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollback.java32 Rollback(PackageRollbackInfo packageInfo) { in Rollback() argument
33 mFrom = packageInfo.getVersionRolledBackFrom(); in Rollback()
34 mTo = packageInfo.getVersionRolledBackTo(); in Rollback()
/cts/tests/tests/permission/src/android/permission/cts/
DMainlineNetworkStackPermissionTest.java54 PackageInfo packageInfo = packageManager.getPackageInfo(permissioninfo.packageName, in testPackageWithMainlineNetworkStackPermission() local
57 packageInfo.permissions); in testPackageWithMainlineNetworkStackPermission()
59 for (PermissionInfo permission : packageInfo.permissions) { in testPackageWithMainlineNetworkStackPermission()
DShellPermissionTest.java70 final PackageInfo packageInfo = pm.getPackageInfo(pkg, PackageManager.GET_PERMISSIONS); in testBlacklistedPermissions() local
71 assertNotNull("No permissions found for " + pkg, packageInfo.requestedPermissions); in testBlacklistedPermissions()
73 for (String permission : packageInfo.requestedPermissions) { in testBlacklistedPermissions()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java922 final PackageInfo packageInfo = packageManager.getPackageInfo(PKG, in getPermissionsOfAppWithAnyOfFlags() local
926 for (String permission : packageInfo.requestedPermissions) { in getPermissionsOfAppWithAnyOfFlags()
962 final PackageInfo packageInfo = packageManager.getPackageInfo(PKG, in assertRestrictedPermissionWhitelisted() local
1011 packageInfo.applicationInfo.uid, PKG)).named(op).isIn(possibleModes); in assertRestrictedPermissionWhitelisted()
1018 final PackageInfo packageInfo = packageManager.getPackageInfo( in assertAllRestrictedPermissionGranted() local
1020 if (packageInfo.requestedPermissions != null) { in assertAllRestrictedPermissionGranted()
1021 final int permissionCount = packageInfo.requestedPermissions.length; in assertAllRestrictedPermissionGranted()
1023 final String permission = packageInfo.requestedPermissions[i]; in assertAllRestrictedPermissionGranted()
1027 assertThat((packageInfo.requestedPermissionsFlags[i] in assertAllRestrictedPermissionGranted()
1041 final PackageInfo packageInfo = packageManager.getPackageInfo( in assertRestrictedPermissionGranted() local
[all …]
DPermissionPolicyTest.java423 PackageInfo packageInfo = context.getPackageManager() in getPermissionsForPackage() local
427 for (PermissionInfo declaredPermission : packageInfo.permissions) { in getPermissionsForPackage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListActivity.java54 PackageInfo packageInfo = pm.getPackageInfo( in onCreate() local
57 if (packageInfo.requestedPermissions != null) { in onCreate()
58 for (String permission : packageInfo.requestedPermissions) { in onCreate()
70 requestPermissions(packageInfo.requestedPermissions, in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodIconSamplerActivity.java86 PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), in getAppIcon() local
88 if (packageInfo.applicationInfo != null) { in getAppIcon()
89 return getResources().getDrawable(packageInfo.applicationInfo.icon); in getAppIcon()
/cts/tests/security/src/android/keystore/cts/
DAttestationApplicationId.java51 PackageInfo packageInfo = pm.getPackageInfo(packageName, 0); in AttestationApplicationId() local
52 packageInfos.add(new AttestationPackageInfo(packageName, packageInfo.versionCode)); in AttestationApplicationId()
59 PackageInfo packageInfo = pm.getPackageInfo(packageNames[0], PackageManager.GET_SIGNATURES); in AttestationApplicationId() local
60 for (Signature signature : packageInfo.signatures) { in AttestationApplicationId()
/cts/tests/tests/os/src/android/os/cts/
DRequiredComponentsTest.java134 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0); in enforceSharedLibPresentAndProperlyHosted() local
137 + requiredHostAppFlags, (packageInfo.applicationInfo.flags in enforceSharedLibPresentAndProperlyHosted()
141 + requiredHostAppPrivateFlags, (packageInfo.applicationInfo.privateFlags in enforceSharedLibPresentAndProperlyHosted()
/cts/hostsidetests/dexmetadata/app/src/com/android/cts/dexmetadata/
DInstallDexMetadataTest.java139 android.content.pm.PackageInfo packageInfo; in getAppInfo() local
141 packageInfo = pm.getPackageInfo(pkg, 0); in getAppInfo()
142 return packageInfo.applicationInfo; in getAppInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DDeviceAdminUninstallTestActivity.java118 PackageInfo packageInfo = null; in isPackageInstalled() local
120 packageInfo = getPackageManager().getPackageInfo(packageName, 0); in isPackageInstalled()
124 return packageInfo != null; in isPackageInstalled()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/mainline/
DModuleDetector.java86 PackageInfo packageInfo = pm.getPackageInfo(module.packageName, flag); in getSignatureDigest() local
88 messageDigest.update(packageInfo.signingInfo.getApkContentsSigners()[0].toByteArray()); in getSignatureDigest()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPackageUtil.java93 PackageInfo packageInfo = getPackageManager() in computePackageSignatureDigest() local
96 messageDigest.update(packageInfo.signatures[0].toByteArray()); in computePackageSignatureDigest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/forcestop/
DRecentTaskRemovalTestActivity.java106 PackageInfo packageInfo = null; in isPackageInstalled() local
108 packageInfo = getPackageManager().getPackageInfo(HELPER_APP_NAME, 0); in isPackageInstalled()
112 return packageInfo != null; in isPackageInstalled()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTelecomAvailabilityTest.java62 PackageInfo packageInfo = findOnlyTelecomPackageInfo(mPackageManager); in testTelecomIsPreinstalledAndSystem() local
63 ApplicationInfo applicationInfo = packageInfo.applicationInfo; in testTelecomIsPreinstalledAndSystem()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java125 PackageInfo packageInfo = getPackageManager() in computePackageSignatureDigest() local
128 messageDigest.update(packageInfo.signatures[0].toByteArray()); in computePackageSignatureDigest()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java365 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in assertCannotSetPermissionGrantStateAppPreM() local
368 checkPermission(PERMISSION_NAME, packageInfo.applicationInfo.uid, in assertCannotSetPermissionGrantStateAppPreM()
385 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in assertCanSetPermissionGrantStateAppPreM() local
390 boolean isGranted = (checkPermission(PERMISSION_NAME, packageInfo.applicationInfo.uid, in assertCanSetPermissionGrantStateAppPreM()
/cts/tests/tests/print/src/android/print/cts/
DPrintServicesTest.java401 PackageInfo packageInfo = packageManager.getPackageInfo(
403 ApplicationInfo appInfo = packageInfo.applicationInfo;