/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | JsonPrinter.java | 123 AppInfo appInfo = entry.getAppInfo(); in writeAppInfo() local 128 mJsonWriter.name("package_name").value(appInfo.getPackageName()); in writeAppInfo() 129 mJsonWriter.name("version_code").value(appInfo.getVersionCode()); in writeAppInfo() 130 mJsonWriter.name("version_name").value(appInfo.getVersionName()); in writeAppInfo() 131 mJsonWriter.name("sdk_version").value(appInfo.getSdkVersion()); in writeAppInfo() 132 mJsonWriter.name("target_sdk_version").value(appInfo.getTargetSdkVersion()); in writeAppInfo() 133 writeFeatureCollection("uses_features", appInfo.getUsesFeaturesList()); in writeAppInfo() 134 writeLibraryCollection("uses_libraries", appInfo.getUsesLibrariesList()); in writeAppInfo() 135 writeStringCollection("native_code", appInfo.getNativeCodeList()); in writeAppInfo() 136 writeStringCollection("uses_permissions", appInfo.getUsesPermissionsList()); in writeAppInfo() [all …]
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | DefaultManifestAttributesTest.java | 45 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/libs/helpers/core/tests/src/com/android/cts/helpers/ |
D | DeviceInteractionHelperRuleTest.java | 46 ApplicationInfo appInfo = new ApplicationInfo(); in makeApplicationInfo() local 47 appInfo.packageName = packageName; in makeApplicationInfo() 48 appInfo.publicSourceDir = dir; in makeApplicationInfo() 49 appInfo.metaData = new Bundle(); in makeApplicationInfo() 51 appInfo.metaData.putString("interaction-helpers-prefix", prefix); in makeApplicationInfo() 53 return appInfo; in makeApplicationInfo() 58 ApplicationInfo appInfo = in testMissingProperty() local 62 .thenReturn(appInfo); in testMissingProperty() 76 ApplicationInfo appInfo = in testEmptyProperty() local 80 .thenReturn(appInfo); in testEmptyProperty() [all …]
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PackageDeviceInfo.java | 144 final ApplicationInfo appInfo = pkg.applicationInfo; in collectionApplicationInfo() local 145 if (appInfo != null) { in collectionApplicationInfo() 146 String dir = appInfo.sourceDir; in collectionApplicationInfo() 149 store.addResult(MIN_SDK, appInfo.minSdkVersion); in collectionApplicationInfo() 150 store.addResult(TARGET_SDK, appInfo.targetSdkVersion); in collectionApplicationInfo() 152 store.addResult(HAS_SYSTEM_UID, appInfo.uid < Process.FIRST_APPLICATION_UID); in collectionApplicationInfo() 154 final boolean canInstall = sharesUidWithInstallerPackage(pm, appInfo.uid); in collectionApplicationInfo() 157 store.addResult(UID, appInfo.uid); in collectionApplicationInfo()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageItemInfoIconTest.java | 78 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testFromAppInfo() local 82 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromAppInfo() 92 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testFromActivity() local 97 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromActivity() 120 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testDelegatedFromAppInfo() local 122 Drawable icon = appInfo.loadUnbadgedIcon(mPackageManager); in testDelegatedFromAppInfo()
|
D | PackageManagerTest.java | 165 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testQuery() local 167 appInfo.uid, 0); in testQuery() 241 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testGetInfo() local 244 CharSequence appText = mPackageManager.getText(PACKAGE_NAME, discriptionRes, appInfo); in testGetInfo() 258 assertEquals(appLabel, mPackageManager.getApplicationLabel(appInfo)); in testGetInfo() 259 assertEquals(PACKAGE_NAME, appInfo.processName); in testGetInfo() 274 checkPackagesNameForUid(PACKAGE_NAME, mPackageManager.getPackagesForUid(appInfo.uid)); in testGetInfo() 275 assertEquals(PACKAGE_NAME, mPackageManager.getNameForUid(appInfo.uid)); in testGetInfo() 469 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testGetIcon() local 470 assertNotNull(mPackageManager.getDrawable(PACKAGE_NAME, iconRes, appInfo)); in testGetIcon() [all …]
|
D | ProviderInfoTest.java | 45 ApplicationInfo appInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testProviderInfo() local 46 List<ProviderInfo> providers = pm.queryContentProviders(PACKAGE_NAME, appInfo.uid, 0); in testProviderInfo()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | RemovePermissionTest.java | 69 PackageInfo appInfo = mContext.getPackageManager().getPackageInfo(pkgName, in permissionGranted() local 72 for (int i = 0; i < appInfo.requestedPermissions.length; i++) { in permissionGranted() 73 if (appInfo.requestedPermissions[i].equals(permName) in permissionGranted() 74 && ((appInfo.requestedPermissionsFlags[i] & REQUESTED_PERMISSION_GRANTED) in permissionGranted()
|
D | PermissionGroupChange.java | 123 PackageInfo appInfo = mContext.getPackageManager().getPackageInfo(APP_PKG_NAME, in waitUntilPermissionGranted() local 126 for (int i = 0; i < appInfo.requestedPermissions.length; i++) { in waitUntilPermissionGranted() 127 if (appInfo.requestedPermissions[i].equals(permName) in waitUntilPermissionGranted() 128 && ((appInfo.requestedPermissionsFlags[i] & REQUESTED_PERMISSION_GRANTED) in waitUntilPermissionGranted()
|
/cts/tools/release-parser/tests/src/com/android/cts/releaseparser/ |
D | SoParserTest.java | 67 AppInfo appInfo = aParser.getAppInfo(); in testSoParser() local 77 fileName, txtProtobufFileName, TextFormat.printToString(appInfo)), in testSoParser() 78 appInfo.equals(expectedAppInfoBuilder.build())); in testSoParser()
|
/cts/tests/signature/intent-check/src/android/signature/cts/intent/ |
D | IntentTest.java | 84 for (ApplicationInfo appInfo : packages) { in shouldNotFindUnexpectedIntents() 85 if (!isSystemApp(appInfo) && !isUpdatedSystemApp(appInfo)) { in shouldNotFindUnexpectedIntents() 90 Set<String> activeIntents = lookupActiveIntents(appInfo.packageName); in shouldNotFindUnexpectedIntents() 102 appInfo.packageName, invalidIntents); in shouldNotFindUnexpectedIntents()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceProcessController.java | 89 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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | DeviceOwnerProvisioningTest.java | 111 .map((ApplicationInfo appInfo) -> appInfo.packageName) in getPackageNameList()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessStateTest.java | 271 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in testUidImportanceListener() local 274 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE, WAIT_TIME); in testUidImportanceListener() 297 appInfo.uid, IMPORTANCE_CACHED, WAIT_TIME); in testUidImportanceListener() 300 WatchUidRunner uidWatcher = new WatchUidRunner(getInstrumentation(), appInfo.uid, in testUidImportanceListener() 453 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in testBackgroundCheckService() local 457 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE, WAIT_TIME); in testBackgroundCheckService() 460 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_EMPTY, WAIT_TIME); in testBackgroundCheckService() 463 WatchUidRunner uidWatcher = new WatchUidRunner(getInstrumentation(), appInfo.uid, in testBackgroundCheckService() 618 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in testBackgroundCheckStopsService() local 622 appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE, WAIT_TIME); in testBackgroundCheckStopsService() [all …]
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | AtomTests.java | 448 ApplicationInfo appInfo = context.getPackageManager() in testWriteRawTestAtom() local 450 int[] uids = {1234, appInfo.uid}; in testWriteRawTestAtom() 462 int[] uids2 = {9999, appInfo.uid}; in testWriteRawTestAtom() 470 appInfo.uid, "tag1", -256, -1234567890L, 42.01f, "Test non chained", true, in testWriteRawTestAtom() 474 StatsLogStatsdCts.write_non_chained(StatsLogStatsdCts.TEST_ATOM_REPORTED, appInfo.uid, null, in testWriteRawTestAtom()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | ZygotePreload.java | 31 synchronized public void doPreload(ApplicationInfo appInfo) { in doPreload() argument
|
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/ |
D | ApplicationVisibilityCrossUserTest.java | 165 for (ApplicationInfo appInfo : applicationList) { in isAppInApplicationList() 166 if (appInfo.packageName.equals(packageName)) { in isAppInApplicationList()
|
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/ |
D | UseSharedLibraryTest.java | 196 ApplicationInfo appInfo = InstrumentationRegistry.getInstrumentation() in testAppCanSeeOnlyLibrariesItDependOn() local 198 assertEquals(STATIC_LIB_PROVIDER_PKG, appInfo.packageName); in testAppCanSeeOnlyLibrariesItDependOn()
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 285 PackageInfo appInfo = sContext.getPackageManager().getPackageInfo(packageName, in getPermissions() local 288 return Arrays.asList(appInfo.requestedPermissions); in getPermissions()
|
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/ |
D | LauncherAppsTests.java | 301 ApplicationInfo appInfo = activity.getApplicationInfo(); in testNoSystemAppHasSyntheticAppDetailsActivityInjected() local 302 boolean isSystemApp = ((appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) in testNoSystemAppHasSyntheticAppDetailsActivityInjected() 303 || ((appInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0); in testNoSystemAppHasSyntheticAppDetailsActivityInjected()
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | ZygotePreload.java | 76 synchronized public void doPreload(ApplicationInfo appInfo) { in doPreload() argument
|
/cts/tests/tests/netsecpolicy/src/android/security/ |
D | NetworkSecurityPolicyTestBase.java | 59 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/ |
D | PrintServicesTest.java | 403 ApplicationInfo appInfo = packageInfo.applicationInfo; 404 Drawable printServiceIcon = appInfo.loadIcon(packageManager);
|
/cts/tests/tests/graphics/jni/ |
D | VulkanPreTransformTestHelpers.cpp | 150 const VkApplicationInfo appInfo = { in init() local 163 .pApplicationInfo = &appInfo, in init()
|
D | VulkanTestHelpers.cpp | 73 VkApplicationInfo appInfo = { in init() local 97 .pApplicationInfo = &appInfo, in init()
|