Home
last modified time | relevance | path

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

12

/cts/tools/release-parser/src/com/android/cts/releaseparser/
DJsonPrinter.java123 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/
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/os/src/android/os/cts/
DEnvironmentTest.java152 (appInfo) -> appInfo.credentialProtectedDataDir in testDataCePackageDirectoryForUser()
161 (appInfo) -> appInfo.deviceProtectedDataDir in testDataDePackageDirectoryForUser()
168 var appInfo = sContext.getApplicationInfo(); in testDataPackageDirectoryForUser() local
170 assertThat(publicApi.apply(appInfo.storageUuid, sContext.getUser()).getAbsolutePath()) in testDataPackageDirectoryForUser()
171 .isEqualTo(publicProperty.apply(appInfo)); in testDataPackageDirectoryForUser()
/cts/tests/tests/content/src/android/content/res/cts/
DResources_RegisterResourcePathsTest.java97 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(TEST_LIB, 0); in testExistingResourcesAfterRegistration() local
98 Resources.registerResourcePaths(TEST_LIB, appInfo); in testExistingResourcesAfterRegistration()
102 String[] resourcePaths = appInfo.getAllApkPaths(); in testExistingResourcesAfterRegistration()
125 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(TEST_LIB, 0); in testNewResourcesAfterRegistration() local
126 Resources.registerResourcePaths(TEST_LIB, appInfo); in testNewResourcesAfterRegistration()
134 String[] resourcePaths = appInfo.getAllApkPaths(); in testNewResourcesAfterRegistration()
167 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(TEST_LIB, 0); in testExistingResourcesCreatedByConstructorAfterResourcePathsRegistration() local
168 Resources.registerResourcePaths(TEST_LIB, appInfo); in testExistingResourcesCreatedByConstructorAfterResourcePathsRegistration()
172 String[] resourcePaths = appInfo.getAllApkPaths(); in testExistingResourcesCreatedByConstructorAfterResourcePathsRegistration()
199 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(TEST_LIB, 0); in testNewResourcesWithOutdatedImplAfterResourcePathsRegistration() local
[all …]
/cts/libs/helpers/core/tests/src/com/android/cts/helpers/
DDeviceInteractionHelperRuleTest.java46 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/tools/release-parser/tests/src/com/android/cts/releaseparser/
DSoParserTest.java67 AppInfo appInfo = aParser.getAppInfo(); in testSoParser() local
77 fileName, txtProtobufFileName, TextFormat.printToString(appInfo)), in testSoParser()
78 appInfo.equals(expectedAppInfoBuilder.build())); in testSoParser()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageItemInfoIconTest.java79 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, in testFromAppInfo() local
84 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromAppInfo()
97 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, in testFromActivity() local
103 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromActivity()
127 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, in testDelegatedFromAppInfo() local
130 Drawable icon = appInfo.loadUnbadgedIcon(mPackageManager); in testDelegatedFromAppInfo()
DPackageManagerShellCommandInstallTest.java1076 ApplicationInfo appInfo = getPackageManager().getApplicationInfo(TEST_SDK1_PACKAGE, in testSdkInstallAndUpdate_sdkLibsBeAppsHasAppId() local
1079 assertThat(appInfo.uid).isGreaterThan(Process.INVALID_UID); in testSdkInstallAndUpdate_sdkLibsBeAppsHasAppId()
1104 ApplicationInfo appInfo = getPackageManager().getApplicationInfo(TEST_SDK1_PACKAGE, in testSdkInstallAndUpdate_blockSdkLibsBeAppsNoAppId() local
1107 assertThat(appInfo.uid).isEqualTo(Process.INVALID_UID); in testSdkInstallAndUpdate_blockSdkLibsBeAppsNoAppId()
1188 ApplicationInfo appInfo = getPackageManager().getApplicationInfo(TEST_SDK1_PACKAGE, in testGetApplicationInfoForSdk_systemOrShell() local
1192 assertThat(appInfo).isNotNull(); in testGetApplicationInfoForSdk_systemOrShell()
1193 assertThat(appInfo.icon).isGreaterThan(0); in testGetApplicationInfoForSdk_systemOrShell()
1195 assertThat(appInfo.targetSdkVersion).isEqualTo(34); in testGetApplicationInfoForSdk_systemOrShell()
1196 assertThat(appInfo.minSdkVersion).isEqualTo(30); in testGetApplicationInfoForSdk_systemOrShell()
1437 ApplicationInfo appInfo = getPackageManager().getApplicationInfo(TEST_SDK_USER_PACKAGE, in testAppUsingSdkRequiredInstallAndUpdate() local
[all …]
DProviderInfoTest.java75 ApplicationInfo appInfo = pm.getApplicationInfo(PACKAGE_NAME, in testProviderInfo() local
77 List<ProviderInfo> providers = pm.queryContentProviders(PACKAGE_NAME, appInfo.uid, in testProviderInfo()
/cts/hostsidetests/securitybulletin/test-apps/BUG-311374917/src/android/security/cts/BUG_311374917/
DDeviceTest.java41 ApplicationInfo appInfo = in testBUG_311374917() local
47 .that(appInfo.isPrivilegedApp()) in testBUG_311374917()
/cts/tests/signature/intent-check/src/android/signature/cts/intent/
DIntentTest.java84 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/
DBadProviderTest.java63 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in testExitOnCreate() local
66 appInfo.uid, WAIT_TIME); in testExitOnCreate()
81 appInfo.uid, WAIT_TIME); in testExitOnCreate()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java238 final ApplicationInfo appInfo = pkg.applicationInfo; in collectionApplicationInfo() local
239 if (appInfo != null) { in collectionApplicationInfo()
240 store.addResult(DIR, appInfo.sourceDir); in collectionApplicationInfo()
241 store.addResult(SYSTEM_PRIV, appInfo.isPrivilegedApp()); in collectionApplicationInfo()
243 store.addResult(MIN_SDK, appInfo.minSdkVersion); in collectionApplicationInfo()
244 store.addResult(TARGET_SDK, appInfo.targetSdkVersion); in collectionApplicationInfo()
246 store.addResult(HAS_SYSTEM_UID, appInfo.uid < Process.FIRST_APPLICATION_UID); in collectionApplicationInfo()
248 final boolean canInstall = sharesUidWithInstallerPackage(pm, appInfo.uid); in collectionApplicationInfo()
251 store.addResult(UID, appInfo.uid); in collectionApplicationInfo()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceProcessController.java91 ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo( in ServiceProcessController() local
93 mUid = appInfo.uid; in ServiceProcessController()
96 mUidForegroundListener = new UidImportanceListener(mContext, appInfo.uid, in ServiceProcessController()
99 mUidGoneListener = new UidImportanceListener(mContext, appInfo.uid, in ServiceProcessController()
103 mUidWatcher = new WatchUidRunner(instrumentation, appInfo.uid, mDefaultWaitTime); in ServiceProcessController()
/cts/tests/tests/security/testdata/src/android/security/cts/packageinstallertestapp/
DBackgroundReceiver.java92 final RunningAppProcessInfo appInfo = appProcesses.stream() in isAppInBackground() local
95 if (appInfo != null in isAppInBackground()
96 && appInfo.importance >= RunningAppProcessInfo.IMPORTANCE_SERVICE) { in isAppInBackground()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_VulkanFeaturesTest.cpp65 const VkApplicationInfo appInfo = { in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() local
78 &appInfo, in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
162 const VkApplicationInfo appInfo = { in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport() local
175 &appInfo, in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport()
/cts/hostsidetests/tagging/sdk_30/src/android/cts/tagging/sdk30/
DZygotePreload.java23 public void doPreload(ApplicationInfo appInfo) {} in doPreload() argument
/cts/hostsidetests/tagging/sdk_30_memtag/src/android/cts/tagging/sdk30memtag/
DZygotePreload.java23 public void doPreload(ApplicationInfo appInfo) {} in doPreload() argument
/cts/tests/app/app/src/android/app/stubs/
DZygotePreload.java31 synchronized public void doPreload(ApplicationInfo appInfo) { in doPreload() argument
/cts/hostsidetests/graphics/gpuprofiling/app/jni/
Dandroid_graphics_cts_GpuRenderStages.cpp47 const VkApplicationInfo appInfo = { in initVulkan() local
60 &appInfo, in initVulkan()
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/
DIncrementalAppErrorStatsTestsHelper.java72 final ApplicationInfo appInfo = context.getPackageManager() in loadingApks() local
74 final String codePath = appInfo.sourceDir; in loadingApks()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPermissionUtils.java118 PackageInfo appInfo = getTargetContext().getPackageManager().getPackageInfo(packageName, in getPermissions() local
121 return appInfo.requestedPermissions == null in getPermissions()
123 : Arrays.asList(appInfo.requestedPermissions); in getPermissions()
/cts/hostsidetests/packagemanager/installedloadingprogess/deviceside/src/com/android/tests/loadingprogress/device/
DLoadingProgressTest.java102 ApplicationInfo appInfo = mLauncherApps.getApplicationInfo( in testReadAllBytes() local
104 final String codePath = appInfo.sourceDir; in testReadAllBytes()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DAtomTests.java803 ApplicationInfo appInfo = context.getPackageManager() in testWriteRawTestAtom() local
805 int[] uids = {1234, appInfo.uid}; in testWriteRawTestAtom()
828 int[] uids2 = {9999, appInfo.uid}; in testWriteRawTestAtom()
836 StatsLogStatsdCts.write_non_chained(StatsLogStatsdCts.TEST_ATOM_REPORTED, appInfo.uid, in testWriteRawTestAtom()
842 StatsLogStatsdCts.write_non_chained(StatsLogStatsdCts.TEST_ATOM_REPORTED, appInfo.uid, null, in testWriteRawTestAtom()
850 ApplicationInfo appInfo = context.getPackageManager() in testWriteExtensionTestAtom() local
852 int[] uids = {1234, appInfo.uid}; in testWriteExtensionTestAtom()
878 int[] uids2 = {9999, appInfo.uid}; in testWriteExtensionTestAtom()
888 appInfo.uid, in testWriteExtensionTestAtom()
896 appInfo.uid, null, in testWriteExtensionTestAtom()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/content/pm/
DPackageManagerHelperTest.java91 ApplicationInfo appInfo = pkgInfoUser.applicationInfo; in testGetPackageInfoAsUser() local
95 assertThat(appInfo).isNotNull(); in testGetPackageInfoAsUser()
96 assertThat(appInfo.descriptionRes).isEqualTo(R.string.app_description); in testGetPackageInfoAsUser()

12