Home
last modified time | relevance | path

Searched refs:ApplicationInfo (Results 1 – 25 of 100) sorted by relevance

1234

/cts/libs/helpers/core/tests/src/com/android/cts/helpers/
DDeviceInteractionHelperRuleTest.java22 import android.content.pm.ApplicationInfo;
45 ApplicationInfo makeApplicationInfo(String packageName, String dir, String prefix) { in makeApplicationInfo()
46 ApplicationInfo appInfo = new ApplicationInfo(); in makeApplicationInfo()
58 ApplicationInfo appInfo = in testMissingProperty()
76 ApplicationInfo appInfo = in testEmptyProperty()
94 ApplicationInfo appInfo = in testExplicitDefaultProperty()
112 ApplicationInfo baseInfo = in testOnePackageExplicitDefault()
114 ApplicationInfo bInfo = makeApplicationInfo("test.b", "/tmp/b", "BPrefix"); in testOnePackageExplicitDefault()
133 ApplicationInfo baseInfo = in testOnePackage()
135 ApplicationInfo bInfo = makeApplicationInfo("test.b", "/tmp/b", "BPrefix"); in testOnePackage()
[all …]
/cts/tests/tests/dpi/src/android/dpi/cts/
DDefaultManifestAttributesTest.java19 import android.content.pm.ApplicationInfo;
45 private ApplicationInfo appInfo;
47 protected ApplicationInfo getAppInfo() { in getAppInfo()
73 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS) != 0); in testSmallScreenDefault()
80 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_NORMAL_SCREENS) != 0); in testNormalScreenDefault()
85 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS) != 0); in testLargeScreenDefault()
90 (getAppInfo().flags & ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS) != 0); in testResizableDefault()
95 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES) != 0); in testAnyDensityDefault()
/cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/
DPrivilegedAppDisableTest.java23 import android.content.pm.ApplicationInfo;
38 assertEquals(0, (getApplicationFlags() & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)); in testPrivAppAndEnabled()
44 assertEquals(0, (getApplicationFlags() & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)); in testPrivAppAndDisabled()
50 assertEquals(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP, in testUpdatedPrivAppAndEnabled()
51 (getApplicationFlags() & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)); in testUpdatedPrivAppAndEnabled()
57 assertEquals(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP, in testUpdatedPrivAppAndDisabled()
58 (getApplicationFlags() & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)); in testUpdatedPrivAppAndDisabled()
66 ApplicationInfo aInfo = pm.getApplicationInfo(PRIVILEGED_SHIM_PKG, in getApplicationFlags()
/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfo_DisplayNameComparatorTest.java19 import android.content.pm.ApplicationInfo;
20 import android.content.pm.ApplicationInfo.DisplayNameComparator;
49 mDisplayNameComparator = new ApplicationInfo.DisplayNameComparator(pm); in testCompare()
51 ApplicationInfo info1 = new ApplicationInfo(); in testCompare()
52 ApplicationInfo info2 = new ApplicationInfo(); in testCompare()
62 info1 = new ApplicationInfo(); in testCompare()
DApplicationInfoTest.java19 import static android.content.pm.ApplicationInfo.CATEGORY_ACCESSIBILITY;
20 import static android.content.pm.ApplicationInfo.CATEGORY_MAPS;
21 import static android.content.pm.ApplicationInfo.CATEGORY_PRODUCTIVITY;
22 import static android.content.pm.ApplicationInfo.CATEGORY_UNDEFINED;
23 import static android.content.pm.ApplicationInfo.FLAG_MULTIARCH;
24 import static android.content.pm.ApplicationInfo.FLAG_SUPPORTS_RTL;
38 import android.content.pm.ApplicationInfo;
93 ApplicationInfo info = new ApplicationInfo(); in testConstructor()
97 ApplicationInfo copy = new ApplicationInfo(info); in testConstructor()
104 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testWriteToParcel()
[all …]
DComponentInfoTest.java27 import android.content.pm.ApplicationInfo;
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()
190 mComponentInfo.applicationInfo = new ApplicationInfo(); in testIsEnabled()
214 ci.applicationInfo = new ApplicationInfo(); in testDumpFront()
236 mComponentInfo.applicationInfo = new ApplicationInfo(); in testLoadLabel()
273 mComponentInfo.applicationInfo = new ApplicationInfo(); in testWriteToParcel()
/cts/hostsidetests/install/app/src/android/cts/install/
DSamegradeTest.java25 import android.content.pm.ApplicationInfo;
132 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in action_systemApex_phase()
133 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in action_systemApex_phase()
134 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) in action_systemApex_phase()
135 .isEqualTo(ApplicationInfo.FLAG_INSTALLED); in action_systemApex_phase()
151 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) in assert_systemApex_postReboot_phase()
152 .isEqualTo(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP); in assert_systemApex_postReboot_phase()
153 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) in assert_systemApex_postReboot_phase()
154 .isEqualTo(ApplicationInfo.FLAG_INSTALLED); in assert_systemApex_postReboot_phase()
/cts/hostsidetests/tagging/sdk_30/src/android/cts/tagging/sdk30/
DZygotePreload.java19 import android.content.pm.ApplicationInfo;
23 public void doPreload(ApplicationInfo appInfo) {} in doPreload()
/cts/hostsidetests/tagging/sdk_30_memtag/src/android/cts/tagging/sdk30memtag/
DZygotePreload.java19 import android.content.pm.ApplicationInfo;
23 public void doPreload(ApplicationInfo appInfo) {} in doPreload()
/cts/tests/app/app/src/android/app/stubs/
DZygotePreload.java19 import android.content.pm.ApplicationInfo;
31 synchronized public void doPreload(ApplicationInfo appInfo) { in doPreload()
/cts/tests/signature/intent-check/src/android/signature/cts/intent/
DIntentTest.java18 import android.content.pm.ApplicationInfo;
82 List<ApplicationInfo> packages = in shouldNotFindUnexpectedIntents()
84 for (ApplicationInfo appInfo : packages) { in shouldNotFindUnexpectedIntents()
148 private static boolean isSystemApp(ApplicationInfo applicationInfo) { in isSystemApp()
149 return (applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemApp()
152 private static boolean isUpdatedSystemApp(ApplicationInfo applicationInfo) { in isUpdatedSystemApp()
153 return (applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in isUpdatedSystemApp()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java19 import android.content.pm.ApplicationInfo;
42 ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP;
72 ApplicationInfo ai = getPackageManager().getApplicationInfo(packageName, in isSystemApp()
86 ApplicationInfo ai = getPackageManager().getApplicationInfo(packageName, in isPrivilegedSystemApp()
163 ApplicationInfo applicationInfo; in computePackageFileDigest()
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/
DPathClassLoaderFactory.java18 import android.content.pm.ApplicationInfo;
26 public ClassLoader instantiateClassLoader(ClassLoader defaultCL, ApplicationInfo aInfo) { in instantiateClassLoader()
DInMemoryDexClassLoaderFactory.java18 import android.content.pm.ApplicationInfo;
30 public ClassLoader instantiateClassLoader(ClassLoader defaultCL, ApplicationInfo aInfo) { in instantiateClassLoader()
/cts/tests/tests/externalservice/service/src/android/externalservice/service/
DZygotePreload.java19 import android.content.pm.ApplicationInfo;
38 public void doPreload(ApplicationInfo info) { in doPreload()
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java26 import android.content.pm.ApplicationInfo;
111 final List<ApplicationInfo> applicationList = in testApplicationVisibility_currentUser()
120 final List<ApplicationInfo> applicationList = in testApplicationVisibility_anyUserCrossUserGrant()
131 final List<ApplicationInfo> applicationList = in testApplicationVisibility_anyUserCrossUserNoGrant()
141 final List<ApplicationInfo> applicationList = in testApplicationVisibility_otherUserGrant()
152 final List<ApplicationInfo> applicationList = in testApplicationVisibility_otherUserNoGrant()
307 String packageName, List<ApplicationInfo> applicationList) { in isAppInApplicationList()
308 for (ApplicationInfo appInfo : applicationList) { in isAppInApplicationList()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java24 import android.content.pm.ApplicationInfo;
47 ApplicationInfo applicationInfo = mContext.getApplicationInfo(); in testCanNotAccessAppADataDir()
58 ApplicationInfo applicationInfo = mContext.getApplicationInfo(); in testCanAccessAppADataDir()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2024_0046.java29 import android.content.pm.ApplicationInfo;
69 & ApplicationInfo.FLAG_SYSTEM)) in testPocCVE_2024_0046()
70 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testPocCVE_2024_0046()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java38 import android.content.pm.ApplicationInfo;
1016 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM).isEqualTo( in testSamegradeSystemApex_Commit()
1017 ApplicationInfo.FLAG_SYSTEM); in testSamegradeSystemApex_Commit()
1018 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED).isEqualTo( in testSamegradeSystemApex_Commit()
1019 ApplicationInfo.FLAG_INSTALLED); in testSamegradeSystemApex_Commit()
1033 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) in testSamegradeSystemApex_VerifyPostReboot()
1034 .isEqualTo(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP); in testSamegradeSystemApex_VerifyPostReboot()
1035 assertThat(shim.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED).isEqualTo( in testSamegradeSystemApex_VerifyPostReboot()
1036 ApplicationInfo.FLAG_INSTALLED); in testSamegradeSystemApex_VerifyPostReboot()
1207 boolean isSystemApp = (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testApexSetsUpdatedSystemAppFlag_preUpdate()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/BUG-311374917/src/android/security/cts/BUG_311374917/
DDeviceTest.java27 import android.content.pm.ApplicationInfo;
41 ApplicationInfo appInfo = in testBUG_311374917()
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java24 import android.content.pm.ApplicationInfo;
95 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); in testAccessPrivateData()
113 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); in testAccessPublicData()
129 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); in testStatPrivateDataDir()
215 private ApplicationInfo getApplicationInfo(String packageName) { in getApplicationInfo()
/cts/tests/tests/os/src/android/os/cts/
DRequiredComponentsTest.java27 import android.content.pm.ApplicationInfo;
83 & ApplicationInfo.FLAG_SYSTEM) == ApplicationInfo.FLAG_SYSTEM); in testExtServicesPresent()
91 ApplicationInfo.FLAG_SYSTEM, 0); in testSharedLibraryPresent()
/cts/hostsidetests/dexmetadata/app/src/com/android/cts/dexmetadata/
DInstallDexMetadataTest.java25 import android.content.pm.ApplicationInfo;
72 ApplicationInfo info = getAppInfo(sSplitAppPackage); in setUp()
136 private ApplicationInfo getAppInfo(String pkg) { in getAppInfo()
154 private static ArrayMap<String, String> buildPackageApkToDexMetadataMap(ApplicationInfo info) { in buildPackageApkToDexMetadataMap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java20 import android.content.pm.ApplicationInfo;
53 ApplicationInfo applicationInfo = packageManager.getApplicationInfo( in getMetadata()
/cts/tests/app/src/android/app/cts/
DActivityManagerFgsBgStartTest.java57 import android.content.pm.ApplicationInfo;
222 ApplicationInfo app1Info = mContext.getPackageManager().getApplicationInfo( in testFgsLocationStartFromBG()
330 ApplicationInfo app1Info = mContext.getPackageManager().getApplicationInfo( in testFgsLocationStartFromBGTwoProcesses()
332 ApplicationInfo app2Info = mContext.getPackageManager().getApplicationInfo( in testFgsLocationStartFromBGTwoProcesses()
418 ApplicationInfo app1Info = mContext.getPackageManager().getApplicationInfo( in testFgsLocationPendingIntent()
420 ApplicationInfo app2Info = mContext.getPackageManager().getApplicationInfo( in testFgsLocationPendingIntent()
542 ApplicationInfo app1Info = mContext.getPackageManager().getApplicationInfo( in testFgsLocationStartFromBGWithBind()
589 ApplicationInfo app1Info = mContext.getPackageManager().getApplicationInfo( in testUpdateUidProcState()
593 ApplicationInfo app2Info = mContext.getPackageManager().getApplicationInfo( in testUpdateUidProcState()
597 ApplicationInfo app3Info = mContext.getPackageManager().getApplicationInfo( in testUpdateUidProcState()
[all …]

1234