Home
last modified time | relevance | path

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

12345678910>>...13

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DAppBackupUtilsTest.java70 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_backupNotAllowed_returnsFalse() local
71 applicationInfo.flags = 0; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
72 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
73 applicationInfo.backupAgentName = CUSTOM_BACKUP_AGENT_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
74 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
76 boolean isEligible = AppBackupUtils.appIsEligibleForBackup(applicationInfo, in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
85 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() local
86 applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse()
87 applicationInfo.uid = Process.SYSTEM_UID; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse()
88 applicationInfo.backupAgentName = null; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse()
[all …]
DTarBackupReaderTest.java320 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore()
321 packageInfo.applicationInfo.flags = ~ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore()
345 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore()
346 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore()
347 packageInfo.applicationInfo.uid = Process.SYSTEM_UID; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore()
348 packageInfo.applicationInfo.backupAgentName = null; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore()
374 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
375 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
376 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
377 packageInfo.applicationInfo.backupAgentName = null; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
[all …]
/frameworks/base/core/java/android/content/pm/
DComponentInfo.java39 public ApplicationInfo applicationInfo; field in ComponentInfo
91 applicationInfo = orig.applicationInfo; in ComponentInfo()
105 ApplicationInfo ai = applicationInfo; in loadUnsafeLabel()
129 return enabled && applicationInfo.enabled; in isEnabled()
140 return icon != 0 ? icon : applicationInfo.icon; in getIconResource()
151 return logo != 0 ? logo : applicationInfo.logo; in getLogoResource()
162 return banner != 0 ? banner : applicationInfo.banner; in getBannerResource()
192 if (applicationInfo != null) { in dumpBack()
194 applicationInfo.dump(pw, prefix + " ", dumpFlags); in dumpBack()
208 applicationInfo.writeToParcel(dest, parcelableFlags); in writeToParcel()
[all …]
DPackageInfo.java132 public ApplicationInfo applicationInfo; field in PackageInfo
450 if (applicationInfo != null) { in writeToParcel()
452 applicationInfo.writeToParcel(dest, parcelableFlags); in writeToParcel()
518 applicationInfo = ApplicationInfo.CREATOR.createFromParcel(source); in PackageInfo()
554 if (applicationInfo != null) { in PackageInfo()
555 propagateApplicationInfo(applicationInfo, activities); in PackageInfo()
556 propagateApplicationInfo(applicationInfo, receivers); in PackageInfo()
557 propagateApplicationInfo(applicationInfo, services); in PackageInfo()
558 propagateApplicationInfo(applicationInfo, providers); in PackageInfo()
565 ci.applicationInfo = appInfo; in propagateApplicationInfo()
DPackageParser.java690 if (!checkUseInstalledOrHidden(flags, state, p.applicationInfo) || !p.isMatch(flags)) { in generatePackageInfo()
703 pi.applicationInfo = generateApplicationInfo(p, flags, state, userId); in generatePackageInfo()
707 if ((pi.applicationInfo.flags&ApplicationInfo.FLAG_SYSTEM) != 0 in generatePackageInfo()
708 || (pi.applicationInfo.flags&ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in generatePackageInfo()
838 pi.applicationInfo.sourceDir = apexFile.getPath(); in generatePackageInfo()
839 pi.applicationInfo.publicSourceDir = apexFile.getPath(); in generatePackageInfo()
841 pi.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in generatePackageInfo()
843 pi.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in generatePackageInfo()
846 pi.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in generatePackageInfo()
848 pi.applicationInfo.flags &= ~ApplicationInfo.FLAG_INSTALLED; in generatePackageInfo()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperInfo.java108 Resources res = pm.getResourcesForApplication(si.applicationInfo); in WallpaperInfo()
239 mService.serviceInfo.applicationInfo); in loadThumbnail()
248 ApplicationInfo applicationInfo = null; in loadAuthor() local
251 applicationInfo = mService.serviceInfo.applicationInfo; in loadAuthor()
253 return pm.getText(packageName, mAuthorResource, applicationInfo); in loadAuthor()
261 ApplicationInfo applicationInfo = null; in loadDescription() local
264 applicationInfo = mService.serviceInfo.applicationInfo; in loadDescription()
268 applicationInfo); in loadDescription()
273 mService.serviceInfo.applicationInfo); in loadDescription()
285 ApplicationInfo applicationInfo = null; in loadContextUri() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DCompatConfigTest.java196 ApplicationInfo applicationInfo = ApplicationInfoBuilder.create() in testPreventAddOverride() local
202 .thenReturn(applicationInfo); in testPreventAddOverride()
211 assertThat(compatConfig.isChangeEnabled(1234L, applicationInfo)).isFalse(); in testPreventAddOverride()
230 ApplicationInfo applicationInfo = ApplicationInfoBuilder.create() in testPreventRemoveOverride() local
234 .thenReturn(applicationInfo); in testPreventRemoveOverride()
239 assertThat(compatConfig.isChangeEnabled(1234L, applicationInfo)).isTrue(); in testPreventRemoveOverride()
248 assertThat(compatConfig.isChangeEnabled(1234L, applicationInfo)).isTrue(); in testPreventRemoveOverride()
257 ApplicationInfo applicationInfo = ApplicationInfoBuilder.create() in testAllowRemoveOverrideNoOverride() local
261 .thenReturn(applicationInfo); in testAllowRemoveOverrideNoOverride()
278 ApplicationInfo applicationInfo = ApplicationInfoBuilder.create() in testRemovePackageOverride() local
[all …]
DApplicationInfoBuilder.java50 final ApplicationInfo applicationInfo = new ApplicationInfo(); in build() local
52 applicationInfo.flags |= ApplicationInfo.FLAG_DEBUGGABLE; in build()
54 applicationInfo.packageName = mPackageName; in build()
55 applicationInfo.targetSdkVersion = mTargetSdk; in build()
56 return applicationInfo; in build()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageAbiHelper.java95 pkg.applicationInfo.nativeLibraryRootDir = nativeLibraryRootDir; in applyTo()
96 pkg.applicationInfo.nativeLibraryRootRequiresIsa = nativeLibraryRootRequiresIsa; in applyTo()
97 pkg.applicationInfo.nativeLibraryDir = nativeLibraryDir; in applyTo()
98 pkg.applicationInfo.secondaryNativeLibraryDir = secondaryNativeLibraryDir; in applyTo()
116 this(pkg.applicationInfo.primaryCpuAbi, pkg.applicationInfo.secondaryCpuAbi); in Abis()
120 pkg.applicationInfo.primaryCpuAbi = primary; in applyTo()
121 pkg.applicationInfo.secondaryCpuAbi = secondary; in applyTo()
DPackageAbiHelperImpl.java136 pkg.applicationInfo.sourceDir, pkg.applicationInfo.isSystemApp(), in getNativeLibraryPaths()
137 pkg.applicationInfo.isUpdatedSystemApp()); in getNativeLibraryPaths()
205 final String apkName = deriveCodePathName(pkg.applicationInfo.getCodePath()); in getBundledAppAbis()
209 final String apkRoot = calculateBundledApkRoot(pkg.applicationInfo.sourceDir); in getBundledAppAbis()
275 if ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_MULTIARCH) == 0) { in getBundledAppAbi()
302 pkg.applicationInfo.sourceDir, pkg.applicationInfo.isSystemApp(), in derivePackageAbi()
303 pkg.applicationInfo.isUpdatedSystemApp()); in derivePackageAbi()
330 if ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_MULTIARCH) != 0) { in derivePackageAbi()
461 pkg.codePath, pkg.applicationInfo.sourceDir, in derivePackageAbi()
462 pkg.applicationInfo.isSystemApp(), in derivePackageAbi()
[all …]
DPackageDexOptimizer.java114 if ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) == 0) { in canOptimizePackage()
131 if (pkg.applicationInfo.uid == -1) { in performDexOpt()
139 final long acquireTime = acquireWakeLockLI(pkg.applicationInfo.uid); in performDexOpt()
159 targetInstructionSets : getAppDexInstructionSets(pkg.applicationInfo); in performDexOptLI()
163 int sharedGid = UserHandle.getSharedAppGid(pkg.applicationInfo.uid); in performDexOptLI()
165 Slog.wtf(TAG, "Well this is awkward; package " + pkg.applicationInfo.name + " had UID " in performDexOptLI()
166 + pkg.applicationInfo.uid, new Throwable()); in performDexOptLI()
174 pathsWithCode[0] = (pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0; in performDexOptLI()
179 pkg.applicationInfo, sharedLibraries, pathsWithCode); in performDexOptLI()
183 String[] splitCodePaths = pkg.applicationInfo.getSplitCodePaths(); in performDexOptLI()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DScanTests.java392 assertThat(scanResult.request.pkg.applicationInfo.flags, in updateSystemApp_applicationInfoFlagSet()
408 assertThat(scanResult.request.pkg.applicationInfo.flags, in factoryTestFlagSet()
498 final ApplicationInfo applicationInfo = pkgSetting.pkg.applicationInfo;
499 assertBasicApplicationInfo(scanResult, applicationInfo);
518 ApplicationInfo applicationInfo) {
519 assertThat(applicationInfo.processName, is(scanResult.request.pkg.packageName));
521 final int uid = applicationInfo.uid;
525 applicationInfo.volumeUuid, UserHandle.USER_SYSTEM,
527 assertThat(applicationInfo.credentialProtectedDataDir, is(calculatedCredentialId));
528 assertThat(applicationInfo.dataDir, is(applicationInfo.credentialProtectedDataDir));
[all …]
DPackageBuilder.java31 mPkg.applicationInfo.setCodePath(codePath); in setApplicationInfoCodePath()
36 mPkg.applicationInfo.setResourcePath(resourcePath); in setApplicationInfoResourcePath()
58 mPkg.applicationInfo.nativeLibraryRootDir = dir; in setApplicationInfoNativeLibraryRootDir()
90 mPkg.applicationInfo.volumeUuid = volumeUuid; in setApplicationInfoVolumeUuid()
119 mPkg.applicationInfo.flags |= flag; in addApplicationInfoFlag()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java193 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addSystemAppsWithRequiredAccounts()
194 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addSystemAppsWithRequiredAccounts()
197 mInstalledAppInfos.add(packageInfo.applicationInfo); in addSystemAppsWithRequiredAccounts()
215 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addInstalledApp()
216 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addInstalledApp()
217 mInstalledAppInfos.add(packageInfo.applicationInfo); in addInstalledApp()
223 ri.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
224 ri.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
230 final ApplicationInfo applicationInfo = new ApplicationInfo(); in createResolveInfo() local
231 applicationInfo.packageName = packageName; in createResolveInfo()
[all …]
/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/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/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java125 ApplicationInfo applicationInfo = packageInfo.applicationInfo; in appIsRunningAndEligibleForBackupWithTransport() local
126 if (!appIsEligibleForBackup(applicationInfo, userId) in appIsRunningAndEligibleForBackupWithTransport()
127 || appIsStopped(applicationInfo) in appIsRunningAndEligibleForBackupWithTransport()
128 || appIsDisabled(applicationInfo, userId)) { in appIsRunningAndEligibleForBackupWithTransport()
192 if (pkg.applicationInfo.backupAgentName != null) { in appGetsFullBackup()
194 return (pkg.applicationInfo.flags & ApplicationInfo.FLAG_FULL_BACKUP_ONLY) != 0; in appGetsFullBackup()
238 if ((target.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in signaturesMatch()
/frameworks/base/services/core/java/com/android/server/compat/
DOverrideValidatorImpl.java72 ApplicationInfo applicationInfo; in getOverrideAllowedState() local
74 applicationInfo = packageManager.getApplicationInfo(packageName, 0); in getOverrideAllowedState()
78 int appTargetSdk = applicationInfo.targetSdkVersion; in getOverrideAllowedState()
80 if ((applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) == 0) { in getOverrideAllowedState()
92 if (disabled || applicationInfo.targetSdkVersion < minTargetSdk) { in getOverrideAllowedState()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRootActivityContainerTests.java552 info.applicationInfo = new ApplicationInfo(); in testCanStartHomeWhenInstrumented()
621 info.applicationInfo = new ApplicationInfo(); in testStartResolverActivityForHome()
622 info.applicationInfo.packageName = "android"; in testStartResolverActivityForHome()
683 aInfoSecondary.applicationInfo = new ApplicationInfo(); in testResolveSecondaryHomeActivityForced()
684 aInfoSecondary.applicationInfo.packageName = secondaryComp.getPackageName(); in testResolveSecondaryHomeActivityForced()
690 aInfoDefault.applicationInfo = new ApplicationInfo(); in testResolveSecondaryHomeActivityForced()
691 aInfoDefault.applicationInfo.packageName = "fakeHomePackage"; in testResolveSecondaryHomeActivityForced()
700 resolveInfo1.activityInfo.applicationInfo = aInfoDefault.applicationInfo; in testResolveSecondaryHomeActivityForced()
708 resolveInfo2.activityInfo.applicationInfo = aInfoSecondary.applicationInfo; in testResolveSecondaryHomeActivityForced()
720 resolvedInfo.first.applicationInfo.packageName); in testResolveSecondaryHomeActivityForced()
[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/om/
DIdmapManager.java77 final int sharedGid = UserHandle.getSharedAppGid(targetPackage.applicationInfo.uid); in createIdmap()
78 final String targetPath = targetPackage.applicationInfo.getBaseCodePath(); in createIdmap()
79 final String overlayPath = overlayPackage.applicationInfo.getBaseCodePath(); in createIdmap()
122 return new File(getIdmapPath(overlayPackage.applicationInfo.getBaseCodePath(), userId)) in idmapExists()
149 final ApplicationInfo ai = overlayPackage.applicationInfo; in enforceOverlayable()
172 final ApplicationInfo ai = overlayPackage.applicationInfo; in calculateFulfilledPolicies()
/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/core/java/com/android/internal/app/
DHarmfulAppWarningActivity.java61 final ApplicationInfo applicationInfo; in onCreate() local
63 applicationInfo = getPackageManager().getApplicationInfo(mPackageName, 0 /*flags*/); in onCreate()
72 p.mView = createView(applicationInfo); in onCreate()
82 private View createView(ApplicationInfo applicationInfo) { in createView() argument
86 .setText(applicationInfo.loadSafeLabel(getPackageManager(), in createView()
/frameworks/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DSmsApplicationTest.java197 phonePackageInfo.applicationInfo = phoneApplicationInfo; in setupPackageInfosForCoreApps()
204 mmsPackageInfo.applicationInfo = mmsApplicationInfo; in setupPackageInfosForCoreApps()
211 bluetoothPackageInfo.applicationInfo = bluetoothApplicationInfo; in setupPackageInfosForCoreApps()
218 telephonyProviderPackageInfo.applicationInfo = telephonyProviderApplicationInfo; in setupPackageInfosForCoreApps()
239 ApplicationInfo applicationInfo = new ApplicationInfo(); in makeSmsApplicationInfo() local
240 applicationInfo.uid = SMS_APP_UID; in makeSmsApplicationInfo()
241 return applicationInfo; in makeSmsApplicationInfo()
247 activityInfo.applicationInfo = makeSmsApplicationInfo(); in makeSmsDeliverResolveInfo()

12345678910>>...13