/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ComponentInfoTest.java | 46 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 …]
|
D | PackageInfoTest.java | 72 if (expected.applicationInfo != null) { in checkPkgInfoSame() 73 assertNotNull(actual.applicationInfo); in checkPkgInfoSame() 74 checkAppInfo(expected.applicationInfo, actual.applicationInfo); in checkPkgInfoSame() 76 assertNull(actual.applicationInfo); in checkPkgInfoSame()
|
D | ApplicationInfoTest.java | 207 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testDirectBootUnawareAppIsNotEncryptionAware() local 209 assertFalse(applicationInfo.isEncryptionAware()); in testDirectBootUnawareAppIsNotEncryptionAware() 214 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testPartiallyDirectBootAwareAppIsEncryptionAware() local 216 assertTrue(applicationInfo.isEncryptionAware()); in testPartiallyDirectBootAwareAppIsEncryptionAware()
|
D | PackageManagerTest.java | 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() 651 ApplicationInfo appInfo = pkgInfo.applicationInfo; in assertTestPackageInfo() 715 assertEquals(0, pkgInfo.applicationInfo.flags & FLAG_SYSTEM); in testGetInstalledPackages_OtherPackages() 719 assertEquals(FLAG_SYSTEM, pkgInfo.applicationInfo.flags & FLAG_SYSTEM); in testGetInstalledPackages_OtherPackages() 983 assertThat(packageInfo.applicationInfo.sourceDir).isEqualTo( in assertShimApexInfoIsCorrect()
|
D | ActivityInfoTest.java | 82 assertEquals(mActivityInfo.applicationInfo.theme, mActivityInfo.getThemeResource()); in testGetThemeResource()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PackageDeviceInfo.java | 47 if (pkg.applicationInfo != null) { in collectDeviceInfo() 48 String dir = pkg.applicationInfo.sourceDir; in collectDeviceInfo() 51 store.addResult(MIN_SDK, pkg.applicationInfo.minSdkVersion); in collectDeviceInfo() 52 store.addResult(TARGET_SDK, pkg.applicationInfo.targetSdkVersion); in collectDeviceInfo()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 63 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/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
D | AccessPrivateDataTest.java | 82 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); in testAccessPrivateData() local 83 File privateFile = new File(applicationInfo.dataDir, "files/" + PRIVATE_FILE_NAME); in testAccessPrivateData() 109 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); in testAccessPublicData() local 110 File publicFile = new File(applicationInfo.dataDir, "files/" + PUBLIC_FILE_NAME); in testAccessPublicData()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | PermissionLockdownTestActivity.java | 87 ApplicationInfo applicationInfo = null; in buildLayout() local 91 applicationInfo = packageManager.getApplicationInfo( in buildLayout() 100 packageIconImageView.setImageDrawable(packageManager.getApplicationIcon(applicationInfo)); in buildLayout() 102 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/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/ |
D | Version.java | 53 ApplicationInfo applicationInfo = packageManager.getApplicationInfo( in getMetadata() local 55 String value = applicationInfo.metaData.getString(name); in getMetadata()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | RequiredComponentsTest.java | 62 if (!resolveInfo.activityInfo.applicationInfo.isPrivilegedApp()) { in testPackageInstallerPresent() 137 + requiredHostAppFlags, (packageInfo.applicationInfo.flags in enforceSharedLibPresentAndProperlyHosted() 141 + requiredHostAppPrivateFlags, (packageInfo.applicationInfo.privateFlags in enforceSharedLibPresentAndProperlyHosted()
|
/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/tests/backup/src/android/backup/cts/ |
D | AgentBindingTest.java | 54 private static void unbindBackupAgent(ApplicationInfo applicationInfo) throws Exception { in unbindBackupAgent() argument 58 new Object[] {applicationInfo}); in unbindBackupAgent()
|
/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/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 453 = cannonicalizeProcessName(downloadInfo.processName, downloadInfo.applicationInfo); in testProviderAcceptsCleartext() 456 if (downloadProcess.equals(cannonicalizeProcessName(pi.applicationInfo))) { in testProviderAcceptsCleartext() 457 assertTrue("package: " + pi.applicationInfo.packageName in testProviderAcceptsCleartext() 459 ,(pi.applicationInfo.flags & ApplicationInfo.FLAG_USES_CLEARTEXT_TRAFFIC) in testProviderAcceptsCleartext()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | CreateAndManageUserTest.java | 360 .map(applicationInfo -> applicationInfo.packageName) in assertAllSystemAppsInstalled() 366 .map(applicationInfo -> applicationInfo.packageName) in assertAllSystemAppsInstalled()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | BaseDeviceAdminTest.java | 96 return pi.applicationInfo.targetSdkVersion; in getTargetApiLevel()
|
D | PermissionsTest.java | 347 packageInfo.applicationInfo.uid, SIMPLE_PRE_M_APP_PACKAGE_NAME)); in assertCannotSetPermissionGrantStateAppPreM() 369 packageInfo.applicationInfo.uid, SIMPLE_PRE_M_APP_PACKAGE_NAME) in assertCanSetPermissionGrantStateAppPreM()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | SharedPreferencesTest.java | 60 ApplicationInfo applicationInfo = mContext.getPackageManager().getApplicationInfo( in setUp() local 62 mPrefsFile = new File(applicationInfo.dataDir, in setUp()
|
/cts/hostsidetests/dexmetadata/app/src/com/android/cts/dexmetadata/ |
D | InstallDexMetadataTest.java | 142 return packageInfo.applicationInfo; in getAppInfo()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ProviderPermissionTest.java | 243 final boolean isSystem = pkg.applicationInfo.uid == android.os.Process.SYSTEM_UID; in testWriteMediaStorage()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | PrivappPermissionsTest.java | 106 if (!pkg.applicationInfo.isPrivilegedApp() in privappPermissionsNeedToBeWhitelisted()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodInfoTest.java | 247 if ((serviceInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testAtLeastOneEncryptionAwareInputMethodIsAvailable()
|