Home
last modified time | relevance | path

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

12

/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.java72 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()
DApplicationInfoTest.java207 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()
DPackageManagerTest.java488 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()
DActivityInfoTest.java82 assertEquals(mActivityInfo.applicationInfo.theme, mActivityInfo.getThemeResource()); in testGetThemeResource()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java47 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/
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/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java82 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/
DPermissionLockdownTestActivity.java87 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()
DByodIconSamplerActivity.java88 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/
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/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/tests/tests/os/src/android/os/cts/
DRequiredComponentsTest.java62 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/
DDeviceAdminTest.java39 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/
DAgentBindingTest.java54 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/
DNoPermissionTests.kt154 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/
DDownloadManagerTest.java453 = 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/
DCreateAndManageUserTest.java360 .map(applicationInfo -> applicationInfo.packageName) in assertAllSystemAppsInstalled()
366 .map(applicationInfo -> applicationInfo.packageName) in assertAllSystemAppsInstalled()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DBaseDeviceAdminTest.java96 return pi.applicationInfo.targetSdkVersion; in getTargetApiLevel()
DPermissionsTest.java347 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/
DSharedPreferencesTest.java60 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/
DInstallDexMetadataTest.java142 return packageInfo.applicationInfo; in getAppInfo()
/cts/tests/tests/permission/src/android/permission/cts/
DProviderPermissionTest.java243 final boolean isSystem = pkg.applicationInfo.uid == android.os.Process.SYSTEM_UID; in testWriteMediaStorage()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPrivappPermissionsTest.java106 if (!pkg.applicationInfo.isPrivilegedApp() in privappPermissionsNeedToBeWhitelisted()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java247 if ((serviceInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testAtLeastOneEncryptionAwareInputMethodIsAvailable()

12