Home
last modified time | relevance | path

Searched refs:applicationInfo (Results 1 – 25 of 54) sorted by relevance

123

/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/
DIsolatedService.java38 ApplicationInfo applicationInfo = getApplicationInfo();
40 assertDirDoesNotExist(applicationInfo.dataDir);
41 assertDirDoesNotExist(applicationInfo.deviceProtectedDataDir);
50 applicationInfo.dataDir));
52 applicationInfo.deviceProtectedDataDir));
59 applicationInfo.dataDir));
61 applicationInfo.deviceProtectedDataDir));
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java46 componentInfo.applicationInfo = new ApplicationInfo(); in testConstructor()
81 mComponentInfo.applicationInfo = new ApplicationInfo(); in testLoadIcon()
119 ci.applicationInfo = new ApplicationInfo(); in testDumpBack()
138 mComponentInfo.applicationInfo = new ApplicationInfo(); in testGetIconResource()
145 assertEquals(mComponentInfo.applicationInfo.icon, mComponentInfo.getIconResource()); in testGetIconResource()
150 mComponentInfo.applicationInfo = new ApplicationInfo(); in testIsEnabled()
157 mComponentInfo.applicationInfo.enabled = false; in testIsEnabled()
173 ci.applicationInfo = new ApplicationInfo(); in testDumpFront()
193 mComponentInfo.applicationInfo = new ApplicationInfo(); in testLoadLabel()
207 mComponentInfo.applicationInfo = in testLoadLabel()
[all …]
DPackageInfoTest.java70 ApplicationInfo ai = mPackageInfo.applicationInfo; in testApplicationInfoSame()
77 assertSame("component=" + ci.getComponentName(), ai, ci.applicationInfo); in testApplicationInfoSame()
88 if (expected.applicationInfo != null) { in checkPkgInfoSame()
89 assertNotNull(actual.applicationInfo); in checkPkgInfoSame()
90 checkAppInfo(expected.applicationInfo, actual.applicationInfo); in checkPkgInfoSame()
92 assertNull(actual.applicationInfo); in checkPkgInfoSame()
DProviderInfoListTest.java59 assertEquals(destList.get(0).applicationInfo, destList.get(i).applicationInfo); in testApplicationInfoSquashed()
DApplicationInfoTest.java217 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testDirectBootUnawareAppIsNotEncryptionAware() local
219 assertFalse(applicationInfo.isEncryptionAware()); in testDirectBootUnawareAppIsNotEncryptionAware()
231 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testPartiallyDirectBootAwareAppIsEncryptionAware() local
233 assertTrue(applicationInfo.isEncryptionAware()); in testPartiallyDirectBootAwareAppIsEncryptionAware()
308 assertTrue(packageName + " is not product package.", info.applicationInfo.isProduct()); in testIsProduct()
321 assertTrue(packageName + " is not vendor package.", info.applicationInfo.isVendor()); in testIsVendor()
334 assertTrue(packageName + " is not oem package.", info.applicationInfo.isOem()); in testIsOem()
DPackageManagerTest.java571 int uid1 = mPackageManager.getPackageInfo(PACKAGE_NAME, 0).applicationInfo.uid; in testCheckSignaturesMatch_byUid()
572 int uid2 = mPackageManager.getPackageInfo("com.android.cts.stub", 0).applicationInfo.uid; in testCheckSignaturesMatch_byUid()
589 int uid1 = mPackageManager.getPackageInfo(PACKAGE_NAME, 0).applicationInfo.uid; in testCheckSignaturesNoMatch_byUid()
590 int uid2 = mPackageManager.getPackageInfo("android", 0).applicationInfo.uid; in testCheckSignaturesNoMatch_byUid()
749 ApplicationInfo appInfo = pkgInfo.applicationInfo; in assertTestPackageInfo()
826 assertEquals(0, pkgInfo.applicationInfo.flags & FLAG_SYSTEM); in testGetInstalledPackages_OtherPackages()
830 assertEquals(FLAG_SYSTEM, pkgInfo.applicationInfo.flags & FLAG_SYSTEM); in testGetInstalledPackages_OtherPackages()
1127 assertThat(info.applicationInfo.metaData).isNull(); in testGetInfo_noMetaData_InPackage()
1197 checkMetaData(new PackageItemInfo(info.applicationInfo)); in testGetInfo_checkMetaData_InPackage()
1338 assertThat(packageInfo.applicationInfo.sourceDir).isEqualTo( in assertShimApexInfoIsCorrect()
[all …]
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java49 ApplicationInfo applicationInfo = mContext.getApplicationInfo(); in testCanNotAccessAppADataDir() local
50 assertDirDoesNotExist(replacePackageBWithPackageA(applicationInfo.dataDir)); in testCanNotAccessAppADataDir()
51 assertDirDoesNotExist(replacePackageBWithPackageA(applicationInfo.deviceProtectedDataDir)); in testCanNotAccessAppADataDir()
60 ApplicationInfo applicationInfo = mContext.getApplicationInfo(); in testCanAccessAppADataDir() local
61 assertDirIsAccessible(replacePackageBWithPackageA(applicationInfo.dataDir)); in testCanAccessAppADataDir()
62 assertDirIsAccessible(replacePackageBWithPackageA(applicationInfo.deviceProtectedDataDir)); in testCanAccessAppADataDir()
/cts/hostsidetests/install/app/src/android/cts/install/
DSamegradeTest.java131 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in action_systemApex_phase()
133 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) in action_systemApex_phase()
151 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in assert_systemApex_postReboot_phase()
153 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) in assert_systemApex_postReboot_phase()
155 assertThat(shim.applicationInfo.sourceDir) in assert_systemApex_postReboot_phase()
157 assertThat(shim.applicationInfo.publicSourceDir) in assert_systemApex_postReboot_phase()
158 .isEqualTo(shim.applicationInfo.sourceDir); in assert_systemApex_postReboot_phase()
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java95 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); in testAccessPrivateData() local
96 File privateFile = new File(applicationInfo.dataDir, "files/" + PRIVATE_FILE_NAME); in testAccessPrivateData()
113 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); in testAccessPublicData() local
114 File publicFile = new File(applicationInfo.dataDir, "files/" + PUBLIC_FILE_NAME); in testAccessPublicData()
129 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); in testStatPrivateDataDir() local
130 String path = applicationInfo.dataDir; in testStatPrivateDataDir()
/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/src/android/appsecurity/cts/keyrotationtest/service/
DSignatureQueryService.java307 ApplicationInfo applicationInfo = packageManager.getApplicationInfo(packageName, 0); in verifyHasSigningCertificate() local
308 uid = applicationInfo.uid; in verifyHasSigningCertificate()
357 ApplicationInfo applicationInfo = packageManager.getApplicationInfo(packageName, 0); in verifyCheckSignatures() local
358 uid = applicationInfo.uid; in verifyCheckSignatures()
363 ApplicationInfo applicationInfo = in verifyCheckSignatures() local
365 companionUid = applicationInfo.uid; in verifyCheckSignatures()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/
DMainActivity.java55 info.applicationInfo.packageName = getPackageName(); in onCreate()
56 info.applicationInfo.sourceDir = getApplicationInfo().sourceDir; in onCreate()
57 info.applicationInfo.appComponentFactory = null; in onCreate()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTelecomAvailabilityTest.java63 ApplicationInfo applicationInfo = packageInfo.applicationInfo; in testTelecomIsPreinstalledAndSystem() local
65 (applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0); in testTelecomIsPreinstalledAndSystem()
66 Log.d(TAG, String.format("Telecom APK is FLAG_SYSTEM %d", applicationInfo.flags)); in testTelecomIsPreinstalledAndSystem()
/cts/tests/tests/os/src/android/os/cts/
DRequiredComponentsTest.java62 if (!resolveInfo.activityInfo.applicationInfo.isPrivilegedApp()) { in testPackageInstallerPresent()
80 (packageInfo.applicationInfo.flags in testExtServicesPresent()
142 + requiredHostAppFlags, (packageInfo.applicationInfo.flags in enforceSharedLibPresentAndProperlyHosted()
146 + requiredHostAppPrivateFlags, (packageInfo.applicationInfo.privateFlags in enforceSharedLibPresentAndProperlyHosted()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java53 ApplicationInfo applicationInfo = packageManager.getApplicationInfo( in getMetadata() local
55 String value = applicationInfo.metaData.getString(name); in getMetadata()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DDeviceAdminTest.java39 assertTrue(getTargetApiLevel() == pi.applicationInfo.targetSdkVersion || in testTargetApiLevel()
40 Build.VERSION_CODES.CUR_DEVELOPMENT == pi.applicationInfo.targetSdkVersion); in testTargetApiLevel()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java1056 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM).isEqualTo( in testSamegradeSystemApex_Commit()
1058 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED).isEqualTo( in testSamegradeSystemApex_Commit()
1074 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM).isEqualTo(0); in testSamegradeSystemApex_VerifyPostReboot()
1075 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED).isEqualTo( in testSamegradeSystemApex_VerifyPostReboot()
1077 assertThat(shim.applicationInfo.sourceDir) in testSamegradeSystemApex_VerifyPostReboot()
1079 assertThat(shim.applicationInfo.publicSourceDir).isEqualTo(shim.applicationInfo.sourceDir); in testSamegradeSystemApex_VerifyPostReboot()
1249 boolean isSystemApp = (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testApexSetsUpdatedSystemAppFlag_preUpdate()
1251 (info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in testApexSetsUpdatedSystemAppFlag_preUpdate()
1260 boolean isSystemApp = (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testApexSetsUpdatedSystemAppFlag_postUpdate()
1262 (info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in testApexSetsUpdatedSystemAppFlag_postUpdate()
[all …]
/cts/tests/signature/intent-check/src/android/signature/cts/intent/
DIntentTest.java148 private static boolean isSystemApp(ApplicationInfo applicationInfo) { in isSystemApp() argument
149 return (applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemApp()
152 private static boolean isUpdatedSystemApp(ApplicationInfo applicationInfo) { in isUpdatedSystemApp() argument
153 return (applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in isUpdatedSystemApp()
/cts/tests/backup/src/android/backup/cts/
DAgentBindingTest.java54 private static void unbindBackupAgent(ApplicationInfo applicationInfo) throws Exception { in unbindBackupAgent() argument
58 new Object[] {applicationInfo}); in unbindBackupAgent()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBaseDefaultPermissionGrantPolicyTest.java238 if (packageInfo.applicationInfo.targetSdkVersion < Build.VERSION_CODES.M) { in getMsdkTargetingPackagesUsingRuntimePerms()
267 return (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isPackageOnSystemImage()
306 properties.put("targetSDK", info.applicationInfo.targetSdkVersion); in getPackageProperties()
308 properties.put("uid", UserHandle.getAppId(info.applicationInfo.uid)); in getPackageProperties()
309 properties.put("priv app", info.applicationInfo.isPrivilegedApp()); in getPackageProperties()
310 properties.put("persistent", ((info.applicationInfo.flags in getPackageProperties()
337 if (!packageInfo.applicationInfo.isSystemApp()) { in addException()
386 final int uid = packageInfo.applicationInfo.uid; in addException()
394 packageInfo.applicationInfo.targetSdkVersion)) { in addException()
475 int targetSdk = pkg.applicationInfo.targetSandboxVersion; in addSplitFromNonDangerousPermissions()
[all …]
DPackageUtil.java163 ApplicationInfo applicationInfo; in computePackageFileDigest() local
165 applicationInfo = getPackageManager().getApplicationInfo(pkgInfo.packageName, 0); in computePackageFileDigest()
170 File apkFile = new File(applicationInfo.publicSourceDir); in computePackageFileDigest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DPermissionLockdownTestActivity.java100 ApplicationInfo applicationInfo = null; in buildLayout() local
104 applicationInfo = packageManager.getApplicationInfo( in buildLayout()
113 packageIconImageView.setImageDrawable(packageManager.getApplicationIcon(applicationInfo)); in buildLayout()
115 packageNameTextView.setText(packageManager.getApplicationLabel(applicationInfo)); in buildLayout()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DUserControlDisabledPackagesTest.java87 boolean stopped = (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_STOPPED) in isPackageStopped()
91 + Integer.toHexString(packageInfo.applicationInfo.flags) + ". Stopped: " + stopped); in isPackageStopped()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java653 ApplicationInfo applicationInfo = new ApplicationInfo(); in applicationInfoForUserPreQ() local
654 applicationInfo.packageName = mPackageName; in applicationInfoForUserPreQ()
655 applicationInfo.uid = -1; // TODO: Get the actual uid... in applicationInfoForUserPreQ()
657 return applicationInfo; in applicationInfoForUserPreQ()
696 .applicationInfo.flags; in forceStop()
741 ApplicationInfo applicationInfo = applicationInfoForUser(user, /* flags= */ 0); in uid() local
742 if (applicationInfo == null) { in uid()
747 return applicationInfo.uid; in uid()
/cts/hostsidetests/packagemanager/codepath/app/src/com/android/tests/codepath/app/
DCodePathDeviceTest.java38 String apkPath = pi.applicationInfo.sourceDir; in testCodePathMatchesExpected()
/cts/tests/tests/permission3/UsePermissionAppLatest/src/android/permission3/cts/usepermission/
DCheckCalendarAccessActivity.kt33 val supportsRuntimePermissions = applicationInfo.targetSdkVersion >= Build.VERSION_CODES.M in onCreate()

123