/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | ApplicationsStateRoboTest.java | 126 protected Drawable getBadgedIcon(ApplicationInfo appInfo) { in getBadgedIcon() argument 226 ApplicationInfo appInfo = new ApplicationInfo(); in createApplicationInfo() local 227 appInfo.sourceDir = "foo"; in createApplicationInfo() 228 appInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in createApplicationInfo() 229 appInfo.storageUuid = UUID.randomUUID(); in createApplicationInfo() 230 appInfo.packageName = packageName; in createApplicationInfo() 231 appInfo.uid = uid; in createApplicationInfo() 232 return appInfo; in createApplicationInfo() 235 private AppEntry createAppEntry(ApplicationInfo appInfo, int id) { in createAppEntry() argument 236 AppEntry appEntry = new AppEntry(RuntimeEnvironment.application, appInfo, id); in createAppEntry() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageHelperTests.java | 235 ApplicationInfo appInfo = new ApplicationInfo(); in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big() local 236 appInfo.volumeUuid = sInternalVolUuid; in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big() 238 mockedInterface.setMockValues(appInfo, false /*force allow on external*/, in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big() 245 mockedInterface.setMockValues(appInfo, true /*force allow on external*/, in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big() 255 ApplicationInfo appInfo = new ApplicationInfo(); in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big_adopted() local 258 appInfo.volumeUuid = sAdoptedVolUuid; in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big_adopted() 259 mockedInterface.setMockValues(appInfo, false /*force allow on external*/, in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big_adopted() 265 mockedInterface.setMockValues(appInfo, true /*force allow on external*/, in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big_adopted() 271 mockedInterface.setMockValues(appInfo, false /*force allow on external*/, in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big_adopted() 277 mockedInterface.setMockValues(appInfo, true /*force allow on external*/, in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big_adopted() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 117 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() local 121 USER_ID)).thenReturn(appInfo); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 141 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() local 142 appInfo.packageName = CARRIER_APP; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 143 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 152 USER_ID)).thenReturn(appInfo); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 162 new String[] {appInfo.packageName}, USER_ID); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 168 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() local 169 appInfo.packageName = CARRIER_APP; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 170 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SoftRestrictedPermissionPolicy.java | 89 @NonNull ApplicationInfo appInfo, @NonNull UserHandle user) { in getMinimumTargetSDK() argument 92 int minimumTargetSDK = appInfo.targetSdkVersion; in getMinimumTargetSDK() 94 String[] uidPkgs = pm.getPackagesForUid(appInfo.uid); in getMinimumTargetSDK() 97 if (!uidPkg.equals(appInfo.packageName)) { in getMinimumTargetSDK() 126 @Nullable ApplicationInfo appInfo, @Nullable UserHandle user, in forPermission() argument 139 if (appInfo != null) { in forPermission() 141 flags = pm.getPermissionFlags(permission, appInfo.packageName, user); in forPermission() 144 targetSDK = getMinimumTargetSDK(context, appInfo, user); in forPermission() 147 appInfo.hasRequestedLegacyExternalStorage(); in forPermission() 152 String[] uidPkgs = pm.getPackagesForUid(appInfo.uid); in forPermission() [all …]
|
/frameworks/base/core/java/android/util/ |
D | IconDrawableFactory.java | 52 protected boolean needsBadging(ApplicationInfo appInfo, @UserIdInt int userId) { in needsBadging() argument 53 return appInfo.isInstantApp() || mUm.isManagedProfile(userId); in needsBadging() 57 public Drawable getBadgedIcon(ApplicationInfo appInfo) { in getBadgedIcon() argument 58 return getBadgedIcon(appInfo, UserHandle.getUserId(appInfo.uid)); in getBadgedIcon() 61 public Drawable getBadgedIcon(ApplicationInfo appInfo, @UserIdInt int userId) { in getBadgedIcon() argument 62 return getBadgedIcon(appInfo, appInfo, userId); in getBadgedIcon() 66 public Drawable getBadgedIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo, in getBadgedIcon() argument 68 Drawable icon = mPm.loadUnbadgedItemIcon(itemInfo, appInfo); in getBadgedIcon() 69 if (!mEmbedShadow && !needsBadging(appInfo, userId)) { in getBadgedIcon() 74 if (appInfo.isInstantApp()) { in getBadgedIcon()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 83 ApplicationInfo appInfo, View snippetView) { in initSnippetForInstalledApp() argument 84 return initSnippetForInstalledApp(pContext, appInfo, snippetView, null); in initSnippetForInstalledApp() 99 ApplicationInfo appInfo, View snippetView, UserHandle user) { in initSnippetForInstalledApp() argument 101 Drawable icon = appInfo.loadIcon(pm); in initSnippetForInstalledApp() 107 appInfo.loadLabel(pm), in initSnippetForInstalledApp() 128 Activity pContext, ApplicationInfo appInfo, File sourceFile) { in getAppSnippet() argument 137 if (appInfo.labelRes != 0) { in getAppSnippet() 139 label = res.getText(appInfo.labelRes); in getAppSnippet() 144 label = (appInfo.nonLocalizedLabel != null) ? in getAppSnippet() 145 appInfo.nonLocalizedLabel : appInfo.packageName; in getAppSnippet() [all …]
|
D | PackageInstalledNotificationUtils.java | 106 private static String getAppLabel(@NonNull Context context, @NonNull ApplicationInfo appInfo, in getAppLabel() argument 108 CharSequence label = appInfo.loadSafeLabel(context.getPackageManager(), in getAppLabel() 124 private static Icon getAppLargeIcon(@NonNull ApplicationInfo appInfo) { in getAppLargeIcon() argument 125 if (appInfo.icon != 0) { in getAppLargeIcon() 126 return Icon.createWithResource(appInfo.packageName, appInfo.icon); in getAppLargeIcon() 141 @NonNull ApplicationInfo appInfo) { in getAppNotificationIcon() argument 142 if (appInfo.metaData == null) { in getAppNotificationIcon() 146 int iconResId = appInfo.metaData.getInt( in getAppNotificationIcon() 149 return Icon.createWithResource(appInfo.packageName, iconResId); in getAppNotificationIcon() 163 @NonNull ApplicationInfo appInfo) { in getAppNotificationColor() argument [all …]
|
D | InstallSuccess.java | 56 ApplicationInfo appInfo = in onCreate() local 65 as = new PackageUtil.AppSnippet(pm.getApplicationLabel(appInfo), in onCreate() 66 pm.getApplicationIcon(appInfo)); in onCreate() 69 as = PackageUtil.getAppSnippet(this, appInfo, sourceFile); in onCreate() 79 if (appInfo.packageName != null) { in onCreate() 80 Log.i(LOG_TAG, "Finished installing " + appInfo.packageName); in onCreate() 88 appInfo.packageName); in onCreate()
|
D | UninstallFinish.java | 67 ApplicationInfo appInfo = intent.getParcelableExtra( in onReceive() local 110 if (dpm.packageHasActiveAdmins(appInfo.packageName, user.id)) { in onReceive() 119 Log.d(LOG_TAG, "Uninstall failed because " + appInfo.packageName in onReceive() 126 Log.d(LOG_TAG, "Uninstall failed because " + appInfo.packageName in onReceive() 144 if (packageManager.getBlockUninstallForUser(appInfo.packageName, in onReceive() 164 "Uninstall failed for " + appInfo.packageName + " with code " in onReceive() 182 Log.d(LOG_TAG, "Uninstall blocked for " + appInfo.packageName in onReceive() 187 Log.d(LOG_TAG, "Uninstall failed for " + appInfo.packageName + " with code " in onReceive()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 80 public void reportChange(long changeId, ApplicationInfo appInfo) { in reportChange() argument 82 reportChange(changeId, appInfo.uid, in reportChange() 89 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in reportChangeByPackageName() local 90 if (appInfo == null) { in reportChangeByPackageName() 93 reportChange(changeId, appInfo); in reportChangeByPackageName() 103 public boolean isChangeEnabled(long changeId, ApplicationInfo appInfo) { in isChangeEnabled() argument 105 if (mCompatConfig.isChangeEnabled(changeId, appInfo)) { in isChangeEnabled() 106 reportChange(changeId, appInfo.uid, in isChangeEnabled() 110 reportChange(changeId, appInfo.uid, in isChangeEnabled() 119 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in isChangeEnabledByPackageName() local [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AppZygoteInit.java | 74 protected void handlePreloadApp(ApplicationInfo appInfo) { in handlePreloadApp() argument 75 Log.i(TAG, "Beginning application preload for " + appInfo.packageName); in handlePreloadApp() 76 LoadedApk loadedApk = new LoadedApk(null, appInfo, null, null, false, true, false); in handlePreloadApp() 79 Zygote.allowAppFilesAcrossFork(appInfo); in handlePreloadApp() 81 if (appInfo.zygotePreloadName != null) { in handlePreloadApp() 85 ComponentName preloadName = ComponentName.createRelative(appInfo.packageName, in handlePreloadApp() 86 appInfo.zygotePreloadName); in handlePreloadApp() 94 preloadObject.doPreload(appInfo); in handlePreloadApp() 98 + appInfo.zygotePreloadName, e); in handlePreloadApp()
|
D | WebViewZygoteInit.java | 75 protected void handlePreloadApp(ApplicationInfo appInfo) { in handlePreloadApp() argument 76 Log.i(TAG, "Beginning application preload for " + appInfo.packageName); in handlePreloadApp() 77 LoadedApk loadedApk = new LoadedApk(null, appInfo, null, null, false, true, false); in handlePreloadApp() 79 doPreload(loader, WebViewFactory.getWebViewLibrary(appInfo)); in handlePreloadApp() 81 Zygote.allowAppFilesAcrossFork(appInfo); in handlePreloadApp()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 106 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() argument 110 if (appInfo.targetSdkVersion < VERSION_CODES.O) { in CompatibilityInfo() 113 if (appInfo.requiresSmallestWidthDp != 0 || appInfo.compatibleWidthLimitDp != 0 in CompatibilityInfo() 114 || appInfo.largestWidthLimitDp != 0) { in CompatibilityInfo() 116 int required = appInfo.requiresSmallestWidthDp != 0 in CompatibilityInfo() 117 ? appInfo.requiresSmallestWidthDp in CompatibilityInfo() 118 : appInfo.compatibleWidthLimitDp; in CompatibilityInfo() 120 required = appInfo.largestWidthLimitDp; in CompatibilityInfo() 122 int compat = appInfo.compatibleWidthLimitDp != 0 in CompatibilityInfo() 123 ? appInfo.compatibleWidthLimitDp : required; in CompatibilityInfo() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | ApplicationPackageManagerTest.java | 180 ApplicationInfo appInfo = new ApplicationInfo(); in testGetCandidateVolumes_3rdParty_internalOnly() local 196 appInfo.installLocation = location; in testGetCandidateVolumes_3rdParty_internalOnly() 199 appInfo, storageManager, pm); in testGetCandidateVolumes_3rdParty_internalOnly() 203 candidates = appPkgMgr.getPackageCandidateVolumes(appInfo, storageManager, pm); in testGetCandidateVolumes_3rdParty_internalOnly() 209 ApplicationInfo appInfo = new ApplicationInfo(); in testGetCandidateVolumes_3rdParty_auto() local 222 appInfo.installLocation = location; in testGetCandidateVolumes_3rdParty_auto() 223 appInfo.flags = 0; in testGetCandidateVolumes_3rdParty_auto() 225 appInfo.volumeUuid = sInternalVolUuid; in testGetCandidateVolumes_3rdParty_auto() 229 appInfo, storageManager, pm); in testGetCandidateVolumes_3rdParty_auto() 232 appInfo.volumeUuid = sInternalVolUuid; in testGetCandidateVolumes_3rdParty_auto() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | AppsQueryHelper.java | 90 final ApplicationInfo appInfo = mAllApps.get(i); in queryApps() local 91 if (systemAppsOnly && !appInfo.isSystemApp()) { in queryApps() 94 result.add(appInfo.packageName); in queryApps() 111 final ApplicationInfo appInfo = mAllApps.get(i); in queryApps() local 112 if (systemAppsOnly && !appInfo.isSystemApp()) { in queryApps() 115 final String packageName = appInfo.packageName; in queryApps() 155 final ApplicationInfo appInfo = mAllApps.get(i); in queryApps() local 156 if (systemAppsOnly && !appInfo.isSystemApp()) { in queryApps() 159 if (appInfo.isRequiredForSystemUser()) { in queryApps() 160 result.add(appInfo.packageName); in queryApps()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BackupRecord.java | 30 final ApplicationInfo appInfo; // information about BackupAgent's app field in BackupRecord 38 appInfo = _appInfo; in BackupRecord() 50 .append(' ').append(appInfo.packageName) in toString() 51 .append(' ').append(appInfo.name) in toString() 52 .append(' ').append(appInfo.backupAgentName).append('}'); in toString()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | DynamicCodeLogger.java | 99 ApplicationInfo appInfo; in logDynamicCodeLoading() local 101 appInfo = appInfoByUser.get(userId); in logDynamicCodeLoading() 103 appInfo = null; in logDynamicCodeLoading() 108 appInfo = ownerInfo == null ? null : ownerInfo.applicationInfo; in logDynamicCodeLoading() 112 appInfoByUser.put(userId, appInfo); in logDynamicCodeLoading() 113 if (appInfo == null) { in logDynamicCodeLoading() 120 if (appInfo == null) { in logDynamicCodeLoading() 126 if (fileIsUnder(filePath, appInfo.credentialProtectedDataDir)) { in logDynamicCodeLoading() 128 } else if (fileIsUnder(filePath, appInfo.deviceProtectedDataDir)) { in logDynamicCodeLoading() 142 hash = mInstaller.hashSecondaryDexFile(filePath, packageName, appInfo.uid, in logDynamicCodeLoading() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 109 final ApplicationInfo appInfo = resolveInfo.activityInfo.applicationInfo; in verifyRemaining() local 115 if (appInfo.packageName.equals(expectedAppInfo.packageName) in verifyRemaining() 116 && UserHandle.getUserId(appInfo.uid) == UserHandle in verifyRemaining() 123 errorMsg.append(appInfo.packageName).append("@") in verifyRemaining() 124 .append('u').append(UserHandle.getUserId(appInfo.uid)).append(' '); in verifyRemaining() 135 final ApplicationInfo appInfo = new ApplicationInfo(); in createResolveInfo() local 136 appInfo.packageName = packageName; in createResolveInfo() 137 appInfo.uid = uid; in createResolveInfo() 138 activityInfo.applicationInfo = appInfo; in createResolveInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | AppButtonData.java | 27 public final AppInfo appInfo; field in AppButtonData 32 public AppButtonData(AppInfo appInfo, boolean pinned) { in AppButtonData() argument 33 this.appInfo = appInfo; in AppButtonData()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | DefaultAppInfo.java | 82 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadLabel() local 84 return appInfo.loadLabel(mPm); in loadLabel() 103 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon() local 106 return factory.getBadgedIcon(componentInfo, appInfo, userId); in loadIcon() 108 return factory.getBadgedIcon(appInfo); in loadIcon() 116 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon() local 118 return factory.getBadgedIcon(packageItemInfo, appInfo, userId); in loadIcon()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverDataProvider.java | 82 public ApplicationInfo appInfo; field in ResolverDataProvider.PackageManagerMockedInfo 121 ApplicationInfo appInfo = new ApplicationInfo() { in createPackageManagerMockedInfo() local 127 appInfo.labelRes = 1; in createPackageManagerMockedInfo() 136 activityInfo.applicationInfo = appInfo; in createPackageManagerMockedInfo() 150 mockedInfo.appInfo = appInfo; in createPackageManagerMockedInfo()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | UnsupportedCompileSdkDialog.java | 37 ApplicationInfo appInfo) { in UnsupportedCompileSdkDialog() argument 38 mPackageName = appInfo.packageName; in UnsupportedCompileSdkDialog() 41 final CharSequence label = appInfo.loadSafeLabel(pm, in UnsupportedCompileSdkDialog() 54 final Intent installerIntent = AppInstallerUtil.createIntent(context, appInfo.packageName); in UnsupportedCompileSdkDialog()
|
D | DeprecatedTargetSdkVersionDialog.java | 42 ApplicationInfo appInfo) { in DeprecatedTargetSdkVersionDialog() argument 43 mPackageName = appInfo.packageName; in DeprecatedTargetSdkVersionDialog() 46 final CharSequence label = appInfo.loadSafeLabel(pm, in DeprecatedTargetSdkVersionDialog() 60 final Intent installerIntent = AppInstallerUtil.createIntent(context, appInfo.packageName); in DeprecatedTargetSdkVersionDialog()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewDelegate.java | 214 final ApplicationInfo appInfo = context.getApplicationInfo(); in addWebViewAssetPath() local 217 String[] newLibAssets = appInfo.sharedLibraryFiles; in addWebViewAssetPath() 222 if (newLibAssets != appInfo.sharedLibraryFiles) { in addWebViewAssetPath() 228 appInfo.sharedLibraryFiles = newLibAssets; in addWebViewAssetPath() 232 appInfo.getBaseResourcePath(), newAssetPaths); in addWebViewAssetPath()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 255 final ApplicationInfo appInfo; in queryStatsForPackage() local 257 appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryStatsForPackage() 263 if (Binder.getCallingUid() == appInfo.uid) { in queryStatsForPackage() 269 if (defeatNullable(mPackage.getPackagesForUid(appInfo.uid)).length == 1) { in queryStatsForPackage() 271 return queryStatsForUid(volumeUuid, appInfo.uid, callingPackage); in queryStatsForPackage() 274 final int appId = UserHandle.getUserId(appInfo.uid); in queryStatsForPackage() 279 if (appInfo.isSystemApp() && !appInfo.isUpdatedSystemApp()) { in queryStatsForPackage() 283 appInfo.getCodePath()); in queryStatsForPackage() 319 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageNames[i], in queryStatsForUid() local 321 if (appInfo.isSystemApp() && !appInfo.isUpdatedSystemApp()) { in queryStatsForUid() [all …]
|