/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ApplicationInfoTest.java | 104 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testWriteToParcel() local 108 applicationInfo.writeToParcel(p, 0); in testWriteToParcel() 112 assertEquals(applicationInfo.taskAffinity, info.taskAffinity); in testWriteToParcel() 113 assertEquals(applicationInfo.permission, info.permission); in testWriteToParcel() 114 assertEquals(applicationInfo.processName, info.processName); in testWriteToParcel() 115 assertEquals(applicationInfo.className, info.className); in testWriteToParcel() 116 assertEquals(applicationInfo.theme, info.theme); in testWriteToParcel() 117 assertEquals(applicationInfo.flags, info.flags); in testWriteToParcel() 118 assertEquals(applicationInfo.sourceDir, info.sourceDir); in testWriteToParcel() 119 assertEquals(applicationInfo.publicSourceDir, info.publicSourceDir); in testWriteToParcel() [all …]
|
D | ComponentInfoTest.java | 78 componentInfo.applicationInfo = new ApplicationInfo(); in testConstructor() 115 mComponentInfo.applicationInfo = new ApplicationInfo(); in testLoadIcon() 154 ci.applicationInfo = new ApplicationInfo(); in testDumpBack() 175 mComponentInfo.applicationInfo = new ApplicationInfo(); in testGetIconResource() 184 assertEquals(mComponentInfo.applicationInfo.icon, mComponentInfo.getIconResource()); in testGetIconResource() 190 mComponentInfo.applicationInfo = new ApplicationInfo(); in testIsEnabled() 197 mComponentInfo.applicationInfo.enabled = false; in testIsEnabled() 214 ci.applicationInfo = new ApplicationInfo(); in testDumpFront() 236 mComponentInfo.applicationInfo = new ApplicationInfo(); in testLoadLabel() 250 mComponentInfo.applicationInfo = in testLoadLabel() [all …]
|
D | PackageInfoTest.java | 103 ApplicationInfo ai = packageInfo.applicationInfo; in testApplicationInfoSame() 110 assertSame("component=" + ci.getComponentName(), ai, ci.applicationInfo); in testApplicationInfoSame() 125 if (expected.applicationInfo != null) { in checkPkgInfoSame() 126 assertNotNull(actual.applicationInfo); in checkPkgInfoSame() 127 checkAppInfo(expected.applicationInfo, actual.applicationInfo); in checkPkgInfoSame() 129 assertNull(actual.applicationInfo); in checkPkgInfoSame()
|
D | PackageInstallerArchiveTest.java | 191 packageInfo.applicationInfo.storageUuid, in archiveApp_dataIsKept() 211 packageInfo.applicationInfo.storageUuid, in archiveApp_dataIsKept() 233 ApplicationInfo applicationInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, in archiveApp_getApplicationIcon() local 234 PackageInfoFlags.of(MATCH_ARCHIVED_PACKAGES)).applicationInfo; in archiveApp_getApplicationIcon() 235 Drawable actualIcon = mPackageManager.getApplicationIcon(applicationInfo); in archiveApp_getApplicationIcon() 254 ApplicationInfo applicationInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, in archiveApp_getApplicationIcon_compatOptionsOn() local 255 PackageInfoFlags.of(MATCH_ARCHIVED_PACKAGES)).applicationInfo; in archiveApp_getApplicationIcon_compatOptionsOn() 256 Drawable overlaidIcon = mPackageManager.getApplicationIcon(applicationInfo); in archiveApp_getApplicationIcon_compatOptionsOn() 262 Drawable rawIcon = mPackageManager.getApplicationIcon(applicationInfo); in archiveApp_getApplicationIcon_compatOptionsOn() 353 MATCH_UNINSTALLED_PACKAGES)).applicationInfo.isArchived).isTrue(); in matchArchivedPackages() [all …]
|
D | ProviderInfoListTest.java | 62 assertEquals(destList.get(0).applicationInfo, destList.get(i).applicationInfo); in testApplicationInfoSquashed()
|
D | PackageManagerTest.java | 808 PackageManager.PackageInfoFlags.of(0)).applicationInfo.uid; in testCheckSignaturesMatch_byUid() 810 PackageManager.PackageInfoFlags.of(0)).applicationInfo.uid; in testCheckSignaturesMatch_byUid() 828 PackageManager.PackageInfoFlags.of(0)).applicationInfo.uid; in testCheckSignaturesNoMatch_byUid() 830 PackageManager.PackageInfoFlags.of(0)).applicationInfo.uid; in testCheckSignaturesNoMatch_byUid() 967 ApplicationInfo applicationInfo = null; in runTestGetPackageArchiveInfoSameApplicationInfo() local 970 if (applicationInfo == null) { in runTestGetPackageArchiveInfoSameApplicationInfo() 971 applicationInfo = ac.applicationInfo; in runTestGetPackageArchiveInfoSameApplicationInfo() 973 assertSame(applicationInfo, ac.applicationInfo); in runTestGetPackageArchiveInfoSameApplicationInfo() 979 if (applicationInfo == null) { in runTestGetPackageArchiveInfoSameApplicationInfo() 980 applicationInfo = ac.applicationInfo; in runTestGetPackageArchiveInfoSameApplicationInfo() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/ |
D | IsolatedService.java | 38 ApplicationInfo applicationInfo = getApplicationInfo(); 40 assertDirDoesNotExist(applicationInfo.dataDir); 41 assertDirDoesNotExist(applicationInfo.deviceProtectedDataDir); 50 applicationInfo.dataDir)); 52 applicationInfo.deviceProtectedDataDir)); 59 applicationInfo.dataDir)); 61 applicationInfo.deviceProtectedDataDir));
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/ |
D | AppBTests.java | 47 ApplicationInfo applicationInfo = mContext.getApplicationInfo(); in testCanNotAccessAppADataDir() local 48 assertDirDoesNotExist(replacePackageBWithPackageA(applicationInfo.dataDir)); in testCanNotAccessAppADataDir() 49 assertDirDoesNotExist(replacePackageBWithPackageA(applicationInfo.deviceProtectedDataDir)); in testCanNotAccessAppADataDir() 58 ApplicationInfo applicationInfo = mContext.getApplicationInfo(); in testCanAccessAppADataDir() local 59 assertDirIsAccessible(replacePackageBWithPackageA(applicationInfo.dataDir)); in testCanAccessAppADataDir() 60 assertDirIsAccessible(replacePackageBWithPackageA(applicationInfo.deviceProtectedDataDir)); in testCanAccessAppADataDir()
|
/cts/hostsidetests/install/app/src/android/cts/install/ |
D | SamegradeTest.java | 132 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in action_systemApex_phase() 134 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) in action_systemApex_phase() 151 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) 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/KeyRotationTest/src/android/appsecurity/cts/keyrotationtest/service/ |
D | SignatureQueryService.java | 307 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/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
D | AccessPrivateDataTest.java | 95 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/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/ |
D | MainActivity.java | 55 info.applicationInfo.packageName = getPackageName(); in onCreate() 56 info.applicationInfo.sourceDir = getApplicationInfo().sourceDir; in onCreate() 57 info.applicationInfo.appComponentFactory = null; in onCreate()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | RequiredComponentsTest.java | 64 if (!resolveInfo.activityInfo.applicationInfo.isPrivilegedApp()) { in testPackageInstallerPresent() 82 (packageInfo.applicationInfo.flags in testExtServicesPresent() 144 + requiredHostAppFlags, (packageInfo.applicationInfo.flags in enforceSharedLibPresentAndProperlyHosted() 148 + requiredHostAppPrivateFlags, (packageInfo.applicationInfo.privateFlags in enforceSharedLibPresentAndProperlyHosted()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 69 ApplicationInfo applicationInfo = packageInfo.applicationInfo; in testTelecomIsPreinstalledAndSystem() local 71 (applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0); in testTelecomIsPreinstalledAndSystem() 72 Log.d(TAG, String.format("Telecom APK is FLAG_SYSTEM %d", applicationInfo.flags)); in testTelecomIsPreinstalledAndSystem()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | Version.java | 53 ApplicationInfo applicationInfo = packageManager.getApplicationInfo( in getMetadata() local 55 String value = applicationInfo.metaData.getString(name); in getMetadata()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodRegistrationTest.java | 95 ri -> ri.serviceInfo.applicationInfo.className != null in verifyTestSetup_initiallyDisabledImes_AreFound() 97 ComponentName.createRelative(ri.serviceInfo.applicationInfo.packageName, in verifyTestSetup_initiallyDisabledImes_AreFound() 98 ri.serviceInfo.applicationInfo.className)) in verifyTestSetup_initiallyDisabledImes_AreFound() 101 ri -> ri.serviceInfo.applicationInfo.className != null in verifyTestSetup_initiallyDisabledImes_AreFound() 103 ComponentName.createRelative(ri.serviceInfo.applicationInfo.packageName, in verifyTestSetup_initiallyDisabledImes_AreFound() 104 ri.serviceInfo.applicationInfo.className)) in verifyTestSetup_initiallyDisabledImes_AreFound()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiResourceUtil.java | 55 !info.activityInfo.applicationInfo.sourceDir.startsWith(WIFI_APEX_PATH)); in getWifiResources() 58 sWifiResourcesPackageName = resolveInfos.get(0).activityInfo.applicationInfo.packageName; in getWifiResources()
|
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ |
D | DeviceAdminTest.java | 39 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/ |
D | StagedInstallTest.java | 1016 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM).isEqualTo( in testSamegradeSystemApex_Commit() 1018 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED).isEqualTo( in testSamegradeSystemApex_Commit() 1033 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) in testSamegradeSystemApex_VerifyPostReboot() 1035 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED).isEqualTo( in testSamegradeSystemApex_VerifyPostReboot() 1037 assertThat(shim.applicationInfo.sourceDir) in testSamegradeSystemApex_VerifyPostReboot() 1039 assertThat(shim.applicationInfo.publicSourceDir).isEqualTo(shim.applicationInfo.sourceDir); in testSamegradeSystemApex_VerifyPostReboot() 1207 boolean isSystemApp = (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testApexSetsUpdatedSystemAppFlag_preUpdate() 1209 (info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in testApexSetsUpdatedSystemAppFlag_preUpdate() 1218 boolean isSystemApp = (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testApexSetsUpdatedSystemAppFlag_postUpdate() 1220 (info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in testApexSetsUpdatedSystemAppFlag_postUpdate() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BaseDefaultPermissionGrantPolicyTest.java | 249 if (packageInfo.applicationInfo.targetSdkVersion < Build.VERSION_CODES.M) { in getMsdkTargetingPackagesUsingRuntimePerms() 278 return (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isPackageOnSystemImage() 317 properties.put("targetSDK", info.applicationInfo.targetSdkVersion); in getPackageProperties() 319 properties.put("uid", UserHandle.getAppId(info.applicationInfo.uid)); in getPackageProperties() 320 properties.put("priv app", info.applicationInfo.isPrivilegedApp()); in getPackageProperties() 321 properties.put("persistent", ((info.applicationInfo.flags in getPackageProperties() 348 if (!packageInfo.applicationInfo.isSystemApp()) { in addException() 399 final int uid = packageInfo.applicationInfo.uid; in addException() 407 packageInfo.applicationInfo.targetSdkVersion)) { in addException() 488 int targetSdk = pkg.applicationInfo.targetSdkVersion; in addSplitFromNonDangerousPermissions() [all …]
|
D | PackageUtil.java | 163 ApplicationInfo applicationInfo; in computePackageFileDigest() local 165 applicationInfo = getPackageManager().getApplicationInfo(pkgInfo.packageName, 0); in computePackageFileDigest() 170 File apkFile = new File(applicationInfo.publicSourceDir); in computePackageFileDigest()
|
/cts/tests/signature/intent-check/src/android/signature/cts/intent/ |
D | IntentTest.java | 148 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/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | PermissionLockdownTestActivity.java | 100 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()
|
D | ByodIconSamplerActivity.java | 88 if (packageInfo.applicationInfo != null) { in getAppIcon() 89 return getResources().getDrawable(packageInfo.applicationInfo.icon); in getAppIcon()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | UpdateOwnershipEnforcementTest.kt | 275 val applicationInfo: ApplicationInfo? = context.packageManager.getPackageInfo( in updateArchivedAppViaSessionByNonOwner_showConfirmDialog() constant 278 ).applicationInfo in updateArchivedAppViaSessionByNonOwner_showConfirmDialog() 279 assertEquals((applicationInfo!!.flags and ApplicationInfo.FLAG_INSTALLED).toLong(), 0) in updateArchivedAppViaSessionByNonOwner_showConfirmDialog() 282 Assert.assertTrue(applicationInfo.isArchived) in updateArchivedAppViaSessionByNonOwner_showConfirmDialog()
|