Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DBackupEligibilityRulesTest.java95 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_backupNotAllowed_returnsFalse() local
96 applicationInfo.flags = 0; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
97 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
98 applicationInfo.backupAgentName = CUSTOM_BACKUP_AGENT_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
99 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
101 boolean isEligible = mBackupEligibilityRules.appIsEligibleForBackup(applicationInfo); in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
111 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_systemUid_nonSystemUser_notAllowedPackage_returnsFalse() local
112 applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in appIsEligibleForBackup_systemUid_nonSystemUser_notAllowedPackage_returnsFalse()
113 applicationInfo.uid = Process.SYSTEM_UID; in appIsEligibleForBackup_systemUid_nonSystemUser_notAllowedPackage_returnsFalse()
114 applicationInfo.backupAgentName = CUSTOM_BACKUP_AGENT_NAME; in appIsEligibleForBackup_systemUid_nonSystemUser_notAllowedPackage_returnsFalse()
[all …]
DTarBackupReaderTest.java330 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore()
331 packageInfo.applicationInfo.flags = ~ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore()
355 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore()
356 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore()
357 packageInfo.applicationInfo.uid = Process.SYSTEM_UID; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore()
358 packageInfo.applicationInfo.backupAgentName = null; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore()
384 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
385 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
386 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
387 packageInfo.applicationInfo.backupAgentName = null; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DCompatConfigTest.java270 ApplicationInfo applicationInfo = ApplicationInfoBuilder.create() in testPreventAddOverride() local
276 .thenReturn(applicationInfo); in testPreventAddOverride()
285 assertThat(compatConfig.isChangeEnabled(1234L, applicationInfo)).isFalse(); in testPreventAddOverride()
298 ApplicationInfo applicationInfo = ApplicationInfoBuilder.create() in testInstallerCanAddOverrides() local
304 .thenReturn(applicationInfo); in testInstallerCanAddOverrides()
320 assertThat(compatConfig.isChangeEnabled(disabledChangeId1, applicationInfo)).isTrue(); in testInstallerCanAddOverrides()
321 assertThat(compatConfig.isChangeEnabled(disabledChangeId2, applicationInfo)).isFalse(); in testInstallerCanAddOverrides()
324 assertThat(compatConfig.isChangeEnabled(unknownChangeId, applicationInfo)).isTrue(); in testInstallerCanAddOverrides()
383 ApplicationInfo applicationInfo = ApplicationInfoBuilder.create() in testPreventInstallerSetNonOverridable() local
389 .thenReturn(applicationInfo); in testPreventInstallerSetNonOverridable()
[all …]
DApplicationInfoBuilder.java56 final ApplicationInfo applicationInfo = new ApplicationInfo(); in build() local
58 applicationInfo.flags |= ApplicationInfo.FLAG_DEBUGGABLE; in build()
60 applicationInfo.packageName = mPackageName; in build()
61 applicationInfo.targetSdkVersion = mTargetSdk; in build()
62 applicationInfo.longVersionCode = mVersionCode; in build()
63 return applicationInfo; in build()
/frameworks/base/core/java/android/content/pm/
DComponentInfo.java46 public ApplicationInfo applicationInfo; field in ComponentInfo
113 applicationInfo = orig.applicationInfo; in ComponentInfo()
128 ApplicationInfo ai = applicationInfo; in loadUnsafeLabel()
152 return enabled && applicationInfo.enabled; in isEnabled()
163 return icon != 0 ? icon : applicationInfo.icon; in getIconResource()
174 return logo != 0 ? logo : applicationInfo.logo; in getLogoResource()
185 return banner != 0 ? banner : applicationInfo.banner; in getBannerResource()
224 if (applicationInfo != null) { in dumpBack()
226 applicationInfo.dump(pw, prefix + " ", dumpFlags); in dumpBack()
236 applicationInfo.writeToParcel(dest, parcelableFlags); in writeToParcel()
[all …]
DConstrainDisplayApisConfig.java96 public boolean getNeverConstrainDisplayApis(ApplicationInfo applicationInfo) { in getNeverConstrainDisplayApis() argument
101 return flagHasMatchingPackageEntry(mNeverConstrainConfigMap, applicationInfo); in getNeverConstrainDisplayApis()
110 public boolean getAlwaysConstrainDisplayApis(ApplicationInfo applicationInfo) { in getAlwaysConstrainDisplayApis() argument
111 return flagHasMatchingPackageEntry(mAlwaysConstrainConfigMap, applicationInfo); in getAlwaysConstrainDisplayApis()
188 ApplicationInfo applicationInfo) { in flagHasMatchingPackageEntry() argument
192 if (!configMap.containsKey(applicationInfo.packageName)) { in flagHasMatchingPackageEntry()
195 return matchesApplicationInfo(configMap.get(applicationInfo.packageName), applicationInfo); in flagHasMatchingPackageEntry()
208 ApplicationInfo applicationInfo) { in matchesApplicationInfo() argument
209 return applicationInfo.longVersionCode >= minMaxVersionCodes.first in matchesApplicationInfo()
210 && applicationInfo.longVersionCode <= minMaxVersionCodes.second; in matchesApplicationInfo()
/frameworks/base/core/java/android/app/
DWallpaperInfo.java108 Resources res = pm.getResourcesForApplication(si.applicationInfo); in WallpaperInfo()
245 mService.serviceInfo.applicationInfo); in loadThumbnail()
254 ApplicationInfo applicationInfo = null; in loadAuthor() local
257 applicationInfo = mService.serviceInfo.applicationInfo; in loadAuthor()
259 return pm.getText(packageName, mAuthorResource, applicationInfo); in loadAuthor()
267 ApplicationInfo applicationInfo = null; in loadDescription() local
270 applicationInfo = mService.serviceInfo.applicationInfo; in loadDescription()
274 applicationInfo); in loadDescription()
279 mService.serviceInfo.applicationInfo); in loadDescription()
291 ApplicationInfo applicationInfo = null; in loadContextUri() local
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java195 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addSystemAppsWithRequiredAccounts()
196 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addSystemAppsWithRequiredAccounts()
199 mInstalledAppInfos.add(packageInfo.applicationInfo); in addSystemAppsWithRequiredAccounts()
217 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addInstalledApp()
218 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addInstalledApp()
219 mInstalledAppInfos.add(packageInfo.applicationInfo); in addInstalledApp()
225 ri.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
226 ri.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
232 final ApplicationInfo applicationInfo = new ApplicationInfo(); in createResolveInfo() local
233 applicationInfo.packageName = packageName; in createResolveInfo()
[all …]
DAppCopyingHelperTest.java210 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addInstalledApp()
211 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addInstalledApp()
213 mTestUserInstalledAppInfos.add(packageInfo.applicationInfo); in addInstalledApp()
215 mCurrUserInstalledAppInfos.add(packageInfo.applicationInfo); in addInstalledApp()
222 ri.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
223 ri.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
229 final ApplicationInfo applicationInfo = new ApplicationInfo(); in createResolveInfo() local
230 applicationInfo.packageName = packageName; in createResolveInfo()
232 activityInfo.applicationInfo = applicationInfo; in createResolveInfo()
237 serviceInfo.applicationInfo = applicationInfo; in createResolveInfo()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DScanTests.java395 final ApplicationInfo applicationInfo = PackageInfoUtils.generateApplicationInfo( in scanFirstBoot_apexDontDeriveAbis() local
397 assertThat(applicationInfo.primaryCpuAbi, nullValue()); in scanFirstBoot_apexDontDeriveAbis()
398 assertThat(applicationInfo.primaryCpuAbi, nullValue()); in scanFirstBoot_apexDontDeriveAbis()
399 assertThat(applicationInfo.secondaryCpuAbi, nullValue()); in scanFirstBoot_apexDontDeriveAbis()
401 assertThat(applicationInfo.nativeLibraryRootDir, nullValue()); in scanFirstBoot_apexDontDeriveAbis()
403 assertThat(applicationInfo.nativeLibraryRootRequiresIsa, is(false)); in scanFirstBoot_apexDontDeriveAbis()
404 assertThat(applicationInfo.nativeLibraryDir, nullValue()); in scanFirstBoot_apexDontDeriveAbis()
405 assertThat(applicationInfo.secondaryNativeLibraryDir, nullValue()); in scanFirstBoot_apexDontDeriveAbis()
616 final ApplicationInfo applicationInfo = PackageInfoUtils.generateApplicationInfo(
618 assertBasicApplicationInfo(scanResult, applicationInfo);
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastSkipPolicy.java93 info.activityInfo.applicationInfo.packageName, in shouldSkipMessage()
97 (info.activityInfo.applicationInfo.targetSdkVersion in shouldSkipMessage()
99 info.activityInfo.applicationInfo.targetSdkVersion in shouldSkipMessage()
102 + " targets " + info.activityInfo.applicationInfo.targetSdkVersion in shouldSkipMessage()
109 !brOptions.testRequireCompatChange(info.activityInfo.applicationInfo.uid)) { in shouldSkipMessage()
111 + " to uid " + info.activityInfo.applicationInfo.uid + " due to compat change " in shouldSkipMessage()
115 component.getPackageName(), info.activityInfo.applicationInfo.uid)) { in shouldSkipMessage()
120 r.callingPid, r.resolvedType, info.activityInfo.applicationInfo.uid)) { in shouldSkipMessage()
125 r.callingPid, r.callingUid, info.activityInfo.applicationInfo.uid, in shouldSkipMessage()
131 + " is not exported from uid " + info.activityInfo.applicationInfo.uid; in shouldSkipMessage()
[all …]
/frameworks/base/media/java/android/media/tv/
DTvContentRatingSystemInfo.java47 ApplicationInfo applicationInfo) { in createTvContentRatingSystemInfo() argument
50 .authority(applicationInfo.packageName) in createTvContentRatingSystemInfo()
53 return new TvContentRatingSystemInfo(uri, applicationInfo); in createTvContentRatingSystemInfo()
56 private TvContentRatingSystemInfo(Uri xmlUri, ApplicationInfo applicationInfo) { in TvContentRatingSystemInfo() argument
58 mApplicationInfo = applicationInfo; in TvContentRatingSystemInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java81 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_systemApplication_returnsTrue()
82 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in signaturesMatch_systemApplication_returnsTrue()
103 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
122 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
139 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_targetSignatureEmpty_returnsFalse()
156 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_targetSignatureNull_returnsFalse()
172 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_bothSignaturesNull_returnsFalse()
186 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_bothSignaturesEmpty_returnsFalse()
205 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_equalSignatures_returnsTrue()
227 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_extraSignatureInTarget_returnsTrue()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DMediaDataUtils.java47 ApplicationInfo applicationInfo; in getAppLabel() local
49 applicationInfo = packageManager.getApplicationInfo(packageName, 0); in getAppLabel()
51 applicationInfo = null; in getAppLabel()
54 (String) (applicationInfo != null in getAppLabel()
55 ? packageManager.getApplicationLabel(applicationInfo) in getAppLabel()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/
DAppInfoTest.kt46 applicationInfo = APP in appInfoLabel_isDisplayed()
62 applicationInfo = APP in appInfoVersion_whenDisplayVersionIsFalse()
79 applicationInfo = APP in appInfoVersion_whenDisplayVersionIsTrue()
96 applicationInfo = APP in footerAppVersion_versionIsDisplayed()
115 applicationInfo = APP in footerAppVersion_developmentEnabled_packageNameIsDisplayed()
133 applicationInfo = APP in footerAppVersion_developmentDisabled_packageNameDoesNotExist()
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DWatchdogRollbackLoggerTest.java96 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageParentKeyIsNull()
112 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageHasParentKey()
132 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageNameNotFound()
151 ApplicationInfo applicationInfo = new ApplicationInfo(); in testApexdLoggingCallsWithParents() local
154 applicationInfo.metaData = bundle; in testApexdLoggingCallsWithParents()
155 packageInfo.applicationInfo = applicationInfo; in testApexdLoggingCallsWithParents()
175 packageInfo.applicationInfo = new ApplicationInfo(); in testApexdLoggingCallsWithNoParents()
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/ktx/
DPackageManagerKtx.kt27 val applicationInfo = checkNotNull(pkgInfo.applicationInfo) in PackageManager() constant
28 applicationInfo.loadSafeLabel( in PackageManager()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DTestUtils.java59 ApplicationInfo applicationInfo = mock(ApplicationInfo.class); in createFakeServiceInfo() local
60 applicationInfo.targetSdkVersion = Build.VERSION_CODES.R; in createFakeServiceInfo()
64 resolveInfo.serviceInfo.applicationInfo = applicationInfo; in createFakeServiceInfo()
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
DStagedInstallInternalTest.java119 return (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystem()
123 return (info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in isUpdatedSystem()
450 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testRebootlessUpdates()
452 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) in testRebootlessUpdates()
454 assertThat(apex.applicationInfo.sourceDir).startsWith("/system/apex"); in testRebootlessUpdates()
464 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) in testRebootlessUpdates()
466 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) in testRebootlessUpdates()
468 assertThat(apex.applicationInfo.sourceDir).startsWith("/data/apex/active"); in testRebootlessUpdates()
474 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testRebootlessUpdates()
476 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) in testRebootlessUpdates()
[all …]
/frameworks/base/core/java/com/android/internal/pm/parsing/
DPackageInfoCommonUtils.java89 ApplicationInfo applicationInfo = generateApplicationInfo(pkg, flags, userId); in generate() local
103 info.applicationInfo = applicationInfo; in generate()
105 if ((info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 in generate()
106 || (info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in generate()
185 info.applicationInfo.privateFlagsExt in generate()
188 info.applicationInfo.privateFlagsExt in generate()
192 info.applicationInfo.privateFlagsExt in generate()
235 res[num++] = generateActivityInfo(a, flags, applicationInfo); in generate()
249 res[num++] = generateActivityInfo(a, flags, applicationInfo); in generate()
263 res[num++] = generateServiceInfo(s, flags, applicationInfo); in generate()
[all …]
/frameworks/base/core/java/android/webkit/
DUserPackage.java70 return mPackageInfo.applicationInfo.enabled; in isEnabledPackage()
78 return (((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) != 0) in isInstalledPackage()
79 && ((mPackageInfo.applicationInfo.privateFlags in isInstalledPackage()
88 return packageInfo.applicationInfo.targetSdkVersion >= MINIMUM_SUPPORTED_SDK; in hasCorrectTargetSdkVersion()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java125 ApplicationInfo applicationInfo = generateApplicationInfo(pkg, flags, state, userId, in generateWithComponents() local
127 if (applicationInfo == null) { in generateWithComponents()
140 info.applicationInfo = applicationInfo; in generateWithComponents()
142 if ((info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 in generateWithComponents()
143 || (info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in generateWithComponents()
234 info.applicationInfo.privateFlagsExt in generateWithComponents()
237 info.applicationInfo.privateFlagsExt in generateWithComponents()
241 info.applicationInfo.privateFlagsExt in generateWithComponents()
285 applicationInfo, userId, pkgSetting); in generateWithComponents()
300 res[num++] = generateActivityInfo(pkg, a, flags, state, applicationInfo, in generateWithComponents()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DFakeContextBuilder.java116 ApplicationInfo applicationInfo = invocation.getArgument(0); in build() local
117 return mAppLabels.get(applicationInfo.packageName); in build()
141 info.activityInfo.applicationInfo = new ApplicationInfo(); in getResolveInfo()
142 info.activityInfo.applicationInfo.packageName = component.getPackageName(); in getResolveInfo()
143 info.activityInfo.applicationInfo.icon = 0; in getResolveInfo()
/frameworks/base/services/core/java/com/android/server/wm/
DLaunchWarningWindow.java46 icon.setImageDrawable(next.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow()
49 next.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow()
51 icon.setImageDrawable(cur.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow()
54 cur.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow()
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/
DUriGrantsMockContext.java169 pi.applicationInfo = new ApplicationInfo(); in buildCameraProvider()
170 pi.applicationInfo.uid = UserHandle.getUid(userId, UID_CAMERA); in buildCameraProvider()
180 pi.applicationInfo = new ApplicationInfo(); in buildPrivateProvider()
181 pi.applicationInfo.uid = UserHandle.getUid(userId, UID_PRIVATE); in buildPrivateProvider()
191 pi.applicationInfo = new ApplicationInfo(); in buildPublicProvider()
192 pi.applicationInfo.uid = UserHandle.getUid(userId, UID_PUBLIC); in buildPublicProvider()
203 pi.applicationInfo = new ApplicationInfo(); in buildForceProvider()
204 pi.applicationInfo.uid = UserHandle.getUid(userId, UID_FORCE); in buildForceProvider()
214 pi.applicationInfo = new ApplicationInfo(); in buildComplexProvider()
215 pi.applicationInfo.uid = UserHandle.getUid(userId, UID_COMPLEX); in buildComplexProvider()

12345678910>>...19