Home
last modified time | relevance | path

Searched refs:appInfo (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/dpi/src/android/dpi/cts/
DDefaultManifestAttributesTest.java45 private ApplicationInfo appInfo; field in DefaultManifestAttributesTest
48 return appInfo; in getAppInfo()
58 appInfo = pm.getApplicationInfo(packageName, 0); in setUp()
61 if (appInfo.targetSdkVersion <= 3) { in setUp()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java115 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testQuery() local
117 appInfo.uid, 0); in testQuery()
190 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testGetInfo() local
193 CharSequence appText = mPackageManager.getText(PACKAGE_NAME, discriptionRes, appInfo); in testGetInfo()
207 assertEquals(appLabel, mPackageManager.getApplicationLabel(appInfo)); in testGetInfo()
208 assertEquals(PACKAGE_NAME, appInfo.processName); in testGetInfo()
223 checkPackagesNameForUid(PACKAGE_NAME, mPackageManager.getPackagesForUid(appInfo.uid)); in testGetInfo()
224 assertEquals(PACKAGE_NAME, mPackageManager.getNameForUid(appInfo.uid)); in testGetInfo()
404 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testGetIcon() local
405 assertNotNull(mPackageManager.getDrawable(PACKAGE_NAME, iconRes, appInfo)); in testGetIcon()
[all …]
DProviderInfoTest.java43 ApplicationInfo appInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testProviderInfo() local
44 List<ProviderInfo> providers = pm.queryContentProviders(PACKAGE_NAME, appInfo.uid, 0); in testProviderInfo()
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionGroupChange.java112 PackageInfo appInfo = mContext.getPackageManager().getPackageInfo(APP_PKG_NAME, in waitUntilPermissionGranted() local
115 for (int i = 0; i < appInfo.requestedPermissions.length; i++) { in waitUntilPermissionGranted()
116 if (appInfo.requestedPermissions[i].equals(permName) in waitUntilPermissionGranted()
117 && ((appInfo.requestedPermissionsFlags[i] & REQUESTED_PERMISSION_GRANTED) in waitUntilPermissionGranted()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceProcessController.java89 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in ServiceProcessController() local
91 mUid = appInfo.uid; in ServiceProcessController()
93 mUidForegroundListener = new UidImportanceListener(mContext, appInfo.uid, in ServiceProcessController()
96 mUidGoneListener = new UidImportanceListener(mContext, appInfo.uid, in ServiceProcessController()
100 mUidWatcher = new WatchUidRunner(instrumentation, appInfo.uid, mDefaultWaitTime); in ServiceProcessController()
/cts/tests/signature/intent-check/src/android/signature/cts/intent/
DIntentTest.java81 for (ApplicationInfo appInfo : packages) { in shouldNotFindUnexpectedIntents()
82 if (!isSystemApp(appInfo) && !isUpdatedSystemApp(appInfo)) { in shouldNotFindUnexpectedIntents()
87 Set<String> activeIntents = lookupActiveIntents(appInfo.packageName); in shouldNotFindUnexpectedIntents()
99 appInfo.packageName, invalidIntents); in shouldNotFindUnexpectedIntents()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DDeviceOwnerProvisioningTest.java111 .map((ApplicationInfo appInfo) -> appInfo.packageName) in getPackageNameList()
/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java190 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in testUidImportanceListener() local
193 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE, WAIT_TIME); in testUidImportanceListener()
216 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_CACHED, WAIT_TIME); in testUidImportanceListener()
219 WatchUidRunner uidWatcher = new WatchUidRunner(getInstrumentation(), appInfo.uid, in testUidImportanceListener()
382 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in testBackgroundCheckService() local
386 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE, WAIT_TIME); in testBackgroundCheckService()
389 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_EMPTY, WAIT_TIME); in testBackgroundCheckService()
392 WatchUidRunner uidWatcher = new WatchUidRunner(getInstrumentation(), appInfo.uid, in testBackgroundCheckService()
548 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in testBackgroundCheckStopsService() local
552 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE, WAIT_TIME); in testBackgroundCheckStopsService()
[all …]
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java157 for (ApplicationInfo appInfo : applicationList) { in isAppInApplicationList()
158 if (appInfo.packageName.equals(packageName)) { in isAppInApplicationList()
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/
DUseSharedLibraryTest.java189 ApplicationInfo appInfo = InstrumentationRegistry.getInstrumentation() in testAppCanSeeOnlyLibrariesItDependOn() local
191 assertEquals(STATIC_LIB_PROVIDER_PKG, appInfo.packageName); in testAppCanSeeOnlyLibrariesItDependOn()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java59 ApplicationInfo appInfo = getContext().getApplicationInfo(); in testApplicationInfoFlag() local
62 assertEquals(expectedValue, appInfo.flags & ApplicationInfo.FLAG_USES_CLEARTEXT_TRAFFIC); in testApplicationInfoFlag()
/cts/tests/tests/print/src/android/print/cts/
DPrintServicesTest.java414 ApplicationInfo appInfo = packageInfo.applicationInfo;
415 Drawable printServiceIcon = appInfo.loadIcon(packageManager);
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp142 const VkApplicationInfo appInfo = { in init() local
155 .pApplicationInfo = &appInfo, in init()
DVulkanTestHelpers.cpp73 VkApplicationInfo appInfo = { in init() local
97 .pApplicationInfo = &appInfo, in init()