Searched refs:pkgInfo (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/uidmigration/src/android/uidmigration/cts/ |
D | SharedUserMigrationTest.kt | 69 var pkgInfo = mPm.getPackageArchiveInfo(InstallTest.APK4, FLAG_ZERO).assertNotNull() in testNewInstallOnly() variable 70 assertNull(pkgInfo.sharedUserId) in testNewInstallOnly() 76 pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testNewInstallOnly() 77 assertNotNull(pkgInfo.sharedUserId) in testNewInstallOnly() 88 pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testNewInstallOnly() 89 assertNull(pkgInfo.sharedUserId) in testNewInstallOnly() 94 assertEquals(checkNotNull(pkgInfo.applicationInfo).uid, in testNewInstallOnly() 105 var pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testBestEffort() variable 106 assertNotNull(pkgInfo.sharedUserId) in testBestEffort() 119 pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testBestEffort() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PermissionUtils.java | 260 PackageInfo pkgInfo = pm.getPackageInfo(packageName, GET_PERMISSIONS); in isPkgHasPrivilegedPermGranted() local 261 if (pkgInfo.requestedPermissions == null || pkgInfo.requestedPermissionsFlags == null) { in isPkgHasPrivilegedPermGranted() 269 pkgInfo.packageName, in isPkgHasPrivilegedPermGranted() 270 pkgInfo.requestedPermissions.length, in isPkgHasPrivilegedPermGranted() 271 pkgInfo.requestedPermissionsFlags.length), in isPkgHasPrivilegedPermGranted() 272 pkgInfo.requestedPermissions.length, in isPkgHasPrivilegedPermGranted() 273 pkgInfo.requestedPermissionsFlags.length); in isPkgHasPrivilegedPermGranted() 274 for (int i = 0; i < pkgInfo.requestedPermissions.length; i++) { in isPkgHasPrivilegedPermGranted() 275 if ((pkgInfo.requestedPermissionsFlags[i] & PackageInfo.REQUESTED_PERMISSION_GRANTED) in isPkgHasPrivilegedPermGranted() 279 pkgInfo.requestedPermissions[i], 0); in isPkgHasPrivilegedPermGranted() [all …]
|
D | PackageUtil.java | 162 public static String computePackageFileDigest(PackageInfo pkgInfo) { in computePackageFileDigest() argument 165 applicationInfo = getPackageManager().getApplicationInfo(pkgInfo.packageName, 0); in computePackageFileDigest()
|
D | CarrierPrivilegeUtils.java | 210 final PackageInfo pkgInfo = c.getPackageManager() in getCertHashForThisPackage() local 213 final byte[] certHash = md.digest(pkgInfo.signatures[0].toByteArray()); in getCertHashForThisPackage()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ConfigurationInfoTest.java | 35 PackageInfo pkgInfo = pm.getPackageInfo(getContext().getPackageName(), in testConfigPreferences() local 37 ConfigurationInfo[] configInfoArray = pkgInfo.configPreferences; in testConfigPreferences()
|
D | PackageManagerTest.java | 914 PackageInfo pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() local 917 apkName, pkgInfo.packageName); in testGetPackageArchiveInfo() 919 + " flag is specified", pkgInfo.signingInfo); in testGetPackageArchiveInfo() 921 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 924 + " flag is specified", pkgInfo.signatures); in testGetPackageArchiveInfo() 926 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 931 pkgInfo.signingInfo); in testGetPackageArchiveInfo() 934 pkgInfo.signatures); in testGetPackageArchiveInfo() 936 pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, in testGetPackageArchiveInfo() 939 + " flag is specified", pkgInfo.activities); in testGetPackageArchiveInfo() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/ |
D | ApplicationVisibilityCrossUserTest.java | 298 for (PackageInfo pkgInfo : packageList) { in isAppInPackageList() 299 if (pkgInfo.packageName.equals(packageName)) { in isAppInPackageList()
|