/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupReporter.java | 134 void onStartPackageBackup(String packageName) { in onStartPackageBackup() argument 135 Slog.d(TAG, "Starting key-value backup of " + packageName); in onStartPackageBackup() 138 void onPackageNotEligibleForBackup(String packageName) { in onPackageNotEligibleForBackup() argument 139 Slog.i(TAG, "Package " + packageName + " no longer supports backup, skipping"); in onPackageNotEligibleForBackup() 141 mObserver, packageName, BackupManager.ERROR_BACKUP_NOT_ALLOWED); in onPackageNotEligibleForBackup() 144 void onPackageEligibleForFullBackup(String packageName) { in onPackageEligibleForFullBackup() argument 147 "Package " + packageName + " performs full-backup rather than key-value, skipping"); in onPackageEligibleForFullBackup() 149 mObserver, packageName, BackupManager.ERROR_BACKUP_NOT_ALLOWED); in onPackageEligibleForFullBackup() 152 void onPackageStopped(String packageName) { in onPackageStopped() argument 154 mObserver, packageName, BackupManager.ERROR_BACKUP_NOT_ALLOWED); in onPackageStopped() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | PackageInstallerImpl.java | 64 String packageName = sessionInfo.getAppPackageName(); in PackageInstallerImpl() local 65 PackageInstaller.SessionInfo oldInfo = mSessionInfoMap.put(packageName, sessionInfo); in PackageInstallerImpl() 69 Log.w(TAG, "Multiple sessions for " + packageName + " found. Removing " + oldInfo in PackageInstallerImpl() 104 public void install(final String packageName, ParcelFileDescriptor parcelFileDescriptor, in install() argument 113 PackageInstaller.SessionInfo sessionInfo = mSessionInfoMap.get(packageName); in install() 116 session = getSession(packageName); in install() 122 innerCreateSession(packageName); in install() 124 Log.e(TAG, "Can't create session for " + packageName + ": " + ioe.getMessage()); in install() 127 mSessionInfoMap.remove(packageName); in install() 130 sessionInfo = mSessionInfoMap.get(packageName); in install() [all …]
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerServiceImpl.java | 99 boolean isMutable = isPackageConfiguredMutable(theTruth.packageName); in mustReinitializeOverlay() 105 if (!isMutable && isPackageConfiguredEnabled(theTruth.packageName) in mustReinitializeOverlay() 147 storedOverlayInfos.put(oi.packageName, oi); in updateOverlaysForUser() 157 final OverlayInfo oi = storedOverlayInfos.get(overlayPackage.packageName); in updateOverlaysForUser() 159 int priority = getPackageConfiguredPriority(overlayPackage.packageName); in updateOverlaysForUser() 167 mSettings.init(overlayPackage.packageName, newUserId, in updateOverlaysForUser() 171 isPackageConfiguredMutable(overlayPackage.packageName), in updateOverlaysForUser() 172 isPackageConfiguredEnabled(overlayPackage.packageName), in updateOverlaysForUser() 175 mSettings.setPriority(overlayPackage.packageName, newUserId, priority); in updateOverlaysForUser() 179 storedOverlayInfos.remove(overlayPackage.packageName); in updateOverlaysForUser() [all …]
|
D | OverlayManagerService.java | 328 for (String packageName : str.split(";")) { in getDefaultOverlayPackages() 329 if (!TextUtils.isEmpty(packageName)) { in getDefaultOverlayPackages() 330 defaultPackages.add(packageName); in getDefaultOverlayPackages() 349 final String packageName = data.getSchemeSpecificPart(); in onReceive() local 364 onPackageReplaced(packageName, userIds); in onReceive() 366 onPackageAdded(packageName, userIds); in onReceive() 373 onPackageChanged(packageName, userIds); in onReceive() 378 onPackageReplacing(packageName, userIds); in onReceive() 380 onPackageRemoved(packageName, userIds); in onReceive() 389 private void onPackageAdded(@NonNull final String packageName, in onPackageAdded() argument [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | ISessionController.aidl | 39 void sendCommand(String packageName, String command, in Bundle args, in ResultReceiver cb); in sendCommand() argument 40 boolean sendMediaButton(String packageName, in KeyEvent mediaButton); in sendMediaButton() argument 41 void registerCallback(String packageName, in ISessionControllerCallback cb); in registerCallback() argument 49 void adjustVolume(String packageName, String opPackageName, int direction, int flags); in adjustVolume() argument 50 void setVolumeTo(String packageName, String opPackageName, int value, int flags); in setVolumeTo() argument 53 void prepare(String packageName); in prepare() argument 54 void prepareFromMediaId(String packageName, String mediaId, in Bundle extras); in prepareFromMediaId() argument 55 void prepareFromSearch(String packageName, String string, in Bundle extras); in prepareFromSearch() argument 56 void prepareFromUri(String packageName, in Uri uri, in Bundle extras); in prepareFromUri() argument 57 void play(String packageName); in play() argument [all …]
|
D | ISessionCallback.aidl | 28 void onCommand(String packageName, int pid, int uid, String command, in Bundle args, in onCommand() argument 30 void onMediaButton(String packageName, int pid, int uid, in Intent mediaButtonIntent, in onMediaButton() argument 32 void onMediaButtonFromController(String packageName, int pid, int uid, in onMediaButtonFromController() argument 36 void onPrepare(String packageName, int pid, int uid); in onPrepare() argument 37 void onPrepareFromMediaId(String packageName, int pid, int uid, String mediaId, in onPrepareFromMediaId() argument 39 void onPrepareFromSearch(String packageName, int pid, int uid, String query, in Bundle extras); in onPrepareFromSearch() argument 40 void onPrepareFromUri(String packageName, int pid, int uid, in Uri uri, in Bundle extras); in onPrepareFromUri() argument 41 void onPlay(String packageName, int pid, int uid); in onPlay() argument 42 void onPlayFromMediaId(String packageName, int pid, int uid, String mediaId, in Bundle extras); in onPlayFromMediaId() argument 43 void onPlayFromSearch(String packageName, int pid, int uid, String query, in Bundle extras); in onPlayFromSearch() argument [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | IShortcutService.aidl | 29 boolean setDynamicShortcuts(String packageName, in ParceledListSlice shortcutInfoList, in setDynamicShortcuts() argument 32 boolean addDynamicShortcuts(String packageName, in ParceledListSlice shortcutInfoList, in addDynamicShortcuts() argument 35 void removeDynamicShortcuts(String packageName, in List shortcutIds, int userId); in removeDynamicShortcuts() argument 37 void removeAllDynamicShortcuts(String packageName, int userId); in removeAllDynamicShortcuts() argument 39 boolean updateShortcuts(String packageName, in ParceledListSlice shortcuts, int userId); in updateShortcuts() argument 41 boolean requestPinShortcut(String packageName, in ShortcutInfo shortcut, in requestPinShortcut() argument 44 Intent createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId); in createShortcutResultIntent() argument 46 void disableShortcuts(String packageName, in List shortcutIds, CharSequence disabledMessage, in disableShortcuts() argument 49 void enableShortcuts(String packageName, in List shortcutIds, int userId); in enableShortcuts() argument 51 int getMaxShortcutCountPerActivity(String packageName, int userId); in getMaxShortcutCountPerActivity() argument [all …]
|
D | IPackageManager.aidl | 66 void checkPackageStartable(String packageName, int userId); in checkPackageStartable() argument 68 boolean isPackageAvailable(String packageName, int userId); in isPackageAvailable() argument 70 PackageInfo getPackageInfo(String packageName, int flags, int userId); in getPackageInfo() argument 74 int getPackageUid(String packageName, int flags, int userId); in getPackageUid() argument 75 int[] getPackageGids(String packageName, int flags, int userId); in getPackageGids() argument 83 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); in getApplicationInfo() argument 221 void setApplicationCategoryHint(String packageName, int categoryHint, String callerPackageName); in setApplicationCategoryHint() argument 224 void deletePackageAsUser(in String packageName, int versionCode, in deletePackageAsUser() argument 249 String getInstallerPackageName(in String packageName); in getInstallerPackageName() argument 251 InstallSourceInfo getInstallSourceInfo(in String packageName); in getInstallSourceInfo() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/role/ |
D | LegacyRoleResolutionPolicy.java | 68 String packageName; in getRoleHolders() local 76 packageName = componentName != null ? componentName.getPackageName() : null; in getRoleHolders() 78 packageName = null; in getRoleHolders() 82 packageName = !TextUtils.isEmpty(defaultAssistant) ? defaultAssistant : null; in getRoleHolders() 84 packageName = null; in getRoleHolders() 86 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders() 91 String packageName = packageManagerInternal.removeLegacyDefaultBrowserPackageName( in getRoleHolders() local 93 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders() 98 String packageName; in getRoleHolders() local 100 packageName = setting; in getRoleHolders() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | CrossProfileAppsServiceImpl.java | 240 private void logStartActivityByIntent(String packageName) { in logStartActivityByIntent() argument 243 .setStrings(packageName) in logStartActivityByIntent() 255 private boolean canRequestInteractAcrossProfilesUnchecked(String packageName) { in canRequestInteractAcrossProfilesUnchecked() argument 261 if (isProfileOwner(packageName, enabledProfileIds)) { in canRequestInteractAcrossProfilesUnchecked() 265 AppOpsManager.opToPermission(OP_INTERACT_ACROSS_PROFILES), packageName); in canRequestInteractAcrossProfilesUnchecked() 268 private boolean hasRequestedAppOpPermission(String permission, String packageName) { in hasRequestedAppOpPermission() argument 272 return ArrayUtils.contains(packages, packageName); in hasRequestedAppOpPermission() 297 private boolean isCrossProfilePackageWhitelisted(String packageName) { in isCrossProfilePackageWhitelisted() argument 300 .getAllCrossProfilePackages().contains(packageName)); in isCrossProfilePackageWhitelisted() 303 private boolean isCrossProfilePackageWhitelistedByDefault(String packageName) { in isCrossProfilePackageWhitelistedByDefault() argument [all …]
|
/frameworks/base/services/core/java/android/content/pm/ |
D | PackageManagerInternal.java | 136 void onPackageAdded(@NonNull String packageName, int uid); in onPackageAdded() argument 138 default void onPackageChanged(@NonNull String packageName, int uid) {} in onPackageChanged() argument 140 void onPackageRemoved(@NonNull String packageName, int uid); in onPackageRemoved() argument 149 public void onDefaultSmsAppChanged(String packageName, int userId) {} in onDefaultSmsAppChanged() argument 157 public void onDefaultSimCallManagerAppChanged(String packageName, int userId) {} in onDefaultSimCallManagerAppChanged() argument 173 public abstract boolean isPermissionsReviewRequired(String packageName, int userId); in isPermissionsReviewRequired() argument 181 public abstract PackageInfo getPackageInfo(String packageName, in getPackageInfo() argument 188 public abstract long getCeDataInode(String packageName, int userId); in getCeDataInode() argument 226 public abstract Bundle getSuspendedPackageLauncherExtras(String packageName, in getSuspendedPackageLauncherExtras() argument 236 public abstract boolean isPackageSuspended(String packageName, int userId); in isPackageSuspended() argument [all …]
|
/frameworks/base/startop/iorap/functional_tests/src/com/google/android/startop/iorap/ |
D | IorapWorkFlowTest.java | 94 String packageName = "com.example.ioraptestapp"; in tearDown() local 95 uninstallApk(packageName); in tearDown() 104 String packageName = "com.example.ioraptestapp"; in testNormalWorkFlow() local 109 packageName, activityName, /*version=*/1L)); in testNormalWorkFlow() 111 packageName, activityName, /*version=*/1L)); in testNormalWorkFlow() 113 packageName, activityName, /*version=*/1L)); in testNormalWorkFlow() 117 assertTrue(compile(packageName, activityName, /*version=*/1L)); in testNormalWorkFlow() 121 packageName, activityName, /*version=*/1L)); in testNormalWorkFlow() 129 String packageName = "com.example.ioraptestapp"; in testUpdateApp() local 135 packageName, activityName, /*version=*/2L)); in testUpdateApp() [all …]
|
/frameworks/base/core/java/com/android/internal/logging/testing/ |
D | UiEventLoggerFake.java | 37 public final String packageName; field in UiEventLoggerFake.FakeUiEvent 41 FakeUiEvent(int eventId, int uid, String packageName) { in FakeUiEvent() argument 44 this.packageName = packageName; in FakeUiEvent() 49 FakeUiEvent(int eventId, int uid, String packageName, InstanceId instanceId) { in FakeUiEvent() argument 52 this.packageName = packageName; in FakeUiEvent() 57 FakeUiEvent(int eventId, int uid, String packageName, InstanceId instanceId, int position) { in FakeUiEvent() argument 60 this.packageName = packageName; in FakeUiEvent() 91 public void log(UiEventEnum event, int uid, String packageName) { in log() argument 94 mLogs.add(new FakeUiEvent(eventId, uid, packageName)); in log() 99 public void logWithInstanceId(UiEventEnum event, int uid, String packageName, in logWithInstanceId() argument [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | AppUtils.java | 63 String packageName = appEntry.info.packageName; in getLaunchByDefaultSummary() local 64 boolean hasPreferred = hasPreferredActivities(pm, packageName) in getLaunchByDefaultSummary() 65 || hasUsbDefaults(usbManager, packageName); in getLaunchByDefaultSummary() 66 int status = pm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getLaunchByDefaultSummary() 75 public static boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { in hasUsbDefaults() argument 78 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults() 86 public static boolean hasPreferredActivities(PackageManager pm, String packageName) { in hasPreferredActivities() argument 91 pm.getPreferredActivities(intentList, prefActList, packageName); in hasPreferredActivities() 112 if (propVal != null && !propVal.isEmpty() && info.packageName != null) { in isInstant() 116 if (info.packageName.contains(term)) { in isInstant() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | PackagesTokenData.java | 72 public int getPackageTokenOrAdd(String packageName, long timeStamp) { in getPackageTokenOrAdd() argument 73 final Long timeRemoved = removedPackagesMap.get(packageName); in getPackageTokenOrAdd() 88 ArrayMap<String, Integer> packageTokensMap = packagesToTokensMap.get(packageName); in getPackageTokenOrAdd() 91 packagesToTokensMap.put(packageName, packageTokensMap); in getPackageTokenOrAdd() 93 int token = packageTokensMap.getOrDefault(packageName, UNASSIGNED_TOKEN); in getPackageTokenOrAdd() 98 tokenPackages.add(packageName); in getPackageTokenOrAdd() 99 packageTokensMap.put(packageName, token); in getPackageTokenOrAdd() 114 public int getTokenOrAdd(int packageToken, String packageName, String key) { in getTokenOrAdd() argument 115 if (packageName.equals(key)) { in getTokenOrAdd() 118 int token = packagesToTokensMap.get(packageName).getOrDefault(key, UNASSIGNED_TOKEN); in getTokenOrAdd() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 105 DummyDeviceState.PackageBuilder target(String packageName) { in target() argument 106 return new DummyDeviceState.PackageBuilder(packageName, null /* targetPackageName */, in target() 110 DummyDeviceState.PackageBuilder overlay(String packageName, String targetPackageName) { in overlay() argument 111 return overlay(packageName, targetPackageName, null /* targetOverlayableName */); in overlay() 114 DummyDeviceState.PackageBuilder overlay(String packageName, String targetPackageName, in overlay() argument 116 return new DummyDeviceState.PackageBuilder(packageName, targetPackageName, in overlay() 124 void configureSystemOverlay(String packageName, boolean mutable, boolean enabled, in configureSystemOverlay() argument 126 when(mOverlayConfig.getPriority(packageName)).thenReturn(priority); in configureSystemOverlay() 127 when(mOverlayConfig.isEnabled(packageName)).thenReturn(enabled); in configureSystemOverlay() 128 when(mOverlayConfig.isMutable(packageName)).thenReturn(mutable); in configureSystemOverlay() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
D | AppRestrictionsHelper.java | 81 public void setPackageSelected(String packageName, boolean selected) { in setPackageSelected() argument 82 mSelectedPackages.put(packageName, selected); in setPackageSelected() 85 public boolean isPackageSelected(String packageName) { in isPackageSelected() argument 86 return mSelectedPackages.get(packageName); in isPackageSelected() 103 String packageName = entry.getKey(); in applyUserAppsStates() local 105 applyUserAppState(packageName, enabled, listener); in applyUserAppsStates() 109 public void applyUserAppState(String packageName, boolean enabled, in applyUserAppState() argument 115 ApplicationInfo info = mIPm.getApplicationInfo(packageName, in applyUserAppState() 119 mIPm.installExistingPackageAsUser(packageName, mUser.getIdentifier(), in applyUserAppState() 123 Log.d(TAG, "Installing " + packageName); in applyUserAppState() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowApplicationPackageManager.java | 53 public static void addInstalledPackage(String packageName, PackageInfo packageInfo) { in addInstalledPackage() argument 54 sPackageInfos.put(packageName, packageInfo); in addInstalledPackage() 62 public static void setPackageUid(String packageName, int packageUid) { in setPackageUid() argument 63 sPackageUids.put(packageName, packageUid); in setPackageUid() 70 public static void setPackageUidAsUser(String packageName, int packageUid, int userId) { in setPackageUidAsUser() argument 75 userPackageUids.put(packageName, packageUid); in setPackageUidAsUser() 80 protected PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument 82 if (!sPackageInfos.containsKey(packageName)) { in getPackageInfoAsUser() 83 throw new NameNotFoundException(packageName); in getPackageInfoAsUser() 85 return sPackageInfos.get(packageName); in getPackageInfoAsUser() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | CallerIdentity.java | 84 public static CallerIdentity fromBinder(Context context, String packageName, in fromBinder() argument 86 return fromBinder(context, packageName, featureId, null); in fromBinder() 94 public static CallerIdentity fromBinder(Context context, String packageName, in fromBinder() argument 97 if (!ArrayUtils.contains(context.getPackageManager().getPackagesForUid(uid), packageName)) { in fromBinder() 98 throw new SecurityException("invalid package \"" + packageName + "\" for uid " + uid); in fromBinder() 101 return fromBinderUnsafe(context, packageName, featureId, listenerId); in fromBinder() 110 public static CallerIdentity fromBinderUnsafe(Context context, String packageName, in fromBinderUnsafe() argument 112 return fromBinderUnsafe(context, packageName, featureId, null); in fromBinderUnsafe() 121 public static CallerIdentity fromBinderUnsafe(Context context, String packageName, in fromBinderUnsafe() argument 124 UserHandle.getCallingUserId(), packageName, featureId, listenerId, in fromBinderUnsafe() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/ |
D | PackageManagerStub.java | 49 public PackageInfo getPackageInfo(String packageName, int flags) in getPackageInfo() argument 51 return getPackageInfoAsUser(packageName, flags, UserHandle.USER_SYSTEM); in getPackageInfo() 61 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument 81 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument 86 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument 91 public Intent getCarLaunchIntentForPackage(String packageName) { in getCarLaunchIntentForPackage() argument 96 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids() argument 101 public int[] getPackageGids(String packageName, int flags) in getPackageGids() argument 107 public int getPackageUid(String packageName, int flags) in getPackageUid() argument 113 public int getPackageUidAsUser(String packageName, int userId) in getPackageUidAsUser() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 87 public void reportChangeByPackageName(long changeId, String packageName, int userId) { in reportChangeByPackageName() argument 89 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in reportChangeByPackageName() 123 public boolean isChangeEnabledByPackageName(long changeId, String packageName, in isChangeEnabledByPackageName() argument 126 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in isChangeEnabledByPackageName() 141 for (String packageName : packages) { in isChangeEnabledByUid() 142 enabled = enabled && isChangeEnabledByPackageName(changeId, packageName, in isChangeEnabledByUid() 166 public void setOverrides(CompatibilityChangeConfig overrides, String packageName) in setOverrides() argument 169 mCompatConfig.addOverrides(overrides, packageName); in setOverrides() 170 killPackage(packageName); in setOverrides() 174 public void setOverridesForTest(CompatibilityChangeConfig overrides, String packageName) in setOverridesForTest() argument [all …]
|
/frameworks/base/core/java/android/permission/ |
D | IPermissionManager.aidl | 38 PermissionInfo getPermissionInfo(String permName, String packageName, int flags); in getPermissionInfo() argument 46 int getPermissionFlags(String permName, String packageName, int userId); in getPermissionFlags() argument 48 void updatePermissionFlags(String permName, String packageName, int flagMask, in updatePermissionFlags() argument 57 …int checkDeviceIdentifierAccess(String packageName, String callingFeatureId, String message, int p… in checkDeviceIdentifierAccess() argument 63 List<String> getWhitelistedRestrictedPermissions(String packageName, in getWhitelistedRestrictedPermissions() argument 66 boolean addWhitelistedRestrictedPermission(String packageName, String permName, in addWhitelistedRestrictedPermission() argument 69 boolean removeWhitelistedRestrictedPermission(String packageName, String permName, in removeWhitelistedRestrictedPermission() argument 72 void grantRuntimePermission(String packageName, String permName, int userId); in grantRuntimePermission() argument 74 void revokeRuntimePermission(String packageName, String permName, int userId, String reason); in revokeRuntimePermission() argument 78 boolean setDefaultBrowser(String packageName, int userId); in setDefaultBrowser() argument [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 66 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo() argument 71 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument 104 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument 109 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument 114 public Intent getCarLaunchIntentForPackage(String packageName) { in getCarLaunchIntentForPackage() argument 119 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids() argument 124 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { in getPackageGids() argument 129 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { in getPackageUid() argument 134 … public int getPackageUidAsUser(String packageName, int userHandle) throws NameNotFoundException { in getPackageUidAsUser() argument 139 …public int getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundE… in getPackageUidAsUser() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/utils/quota/ |
D | UptcMap.java | 36 public void add(int userId, @NonNull String packageName, @Nullable String tag, in add() argument 38 ArrayMap<String, T> data = mData.get(userId, packageName); in add() 41 mData.add(userId, packageName, data); in add() 50 public boolean contains(int userId, @NonNull String packageName) { in contains() argument 51 return mData.contains(userId, packageName); in contains() 54 public boolean contains(int userId, @NonNull String packageName, @Nullable String tag) { in contains() argument 57 ArrayMap<String, T> data = mData.get(userId, packageName); in contains() 67 public void delete(int userId, @NonNull String packageName, @Nullable String tag) { in delete() argument 68 final ArrayMap<String, T> data = mData.get(userId, packageName); in delete() 72 mData.delete(userId, packageName); in delete() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | CompatModePackages.java | 150 private int getPackageFlags(String packageName) { in getPackageFlags() argument 151 Integer flags = mPackages.get(packageName); in getPackageFlags() 155 public void handlePackageDataClearedLocked(String packageName) { in handlePackageDataClearedLocked() argument 157 removePackage(packageName); in handlePackageDataClearedLocked() 160 public void handlePackageUninstalledLocked(String packageName) { in handlePackageUninstalledLocked() argument 163 removePackage(packageName); in handlePackageUninstalledLocked() 166 private void removePackage(String packageName) { in removePackage() argument 167 if (mPackages.containsKey(packageName)) { in removePackage() 168 mPackages.remove(packageName); in removePackage() 173 public void handlePackageAddedLocked(String packageName, boolean updated) { in handlePackageAddedLocked() argument [all …]
|