/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/core/java/android/content/pm/ |
D | IShortcutService.aidl | 29 boolean setDynamicShortcuts(String packageName, in ParceledListSlice shortcutInfoList, in setDynamicShortcuts() argument 32 ParceledListSlice getDynamicShortcuts(String packageName, int userId); in getDynamicShortcuts() argument 34 ParceledListSlice getManifestShortcuts(String packageName, int userId); in getManifestShortcuts() argument 36 boolean addDynamicShortcuts(String packageName, in ParceledListSlice shortcutInfoList, in addDynamicShortcuts() argument 39 void removeDynamicShortcuts(String packageName, in List shortcutIds, int userId); in removeDynamicShortcuts() argument 41 void removeAllDynamicShortcuts(String packageName, int userId); in removeAllDynamicShortcuts() argument 43 ParceledListSlice getPinnedShortcuts(String packageName, int userId); in getPinnedShortcuts() argument 45 boolean updateShortcuts(String packageName, in ParceledListSlice shortcuts, int userId); in updateShortcuts() argument 47 boolean requestPinShortcut(String packageName, in ShortcutInfo shortcut, in requestPinShortcut() argument 50 Intent createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId); in createShortcutResultIntent() 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 82 PermissionInfo getPermissionInfo(String name, String packageName, int flags); in getPermissionInfo() argument 92 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); in getApplicationInfo() argument 121 void grantRuntimePermission(String packageName, String permissionName, int userId); in grantRuntimePermission() argument 123 void revokeRuntimePermission(String packageName, String permissionName, int userId); in revokeRuntimePermission() argument 127 int getPermissionFlags(String permissionName, String packageName, int userId); in getPermissionFlags() argument [all …]
|
D | PackageManagerInternal.java | 84 void onPackageAdded(@NonNull String packageName, int uid); in onPackageAdded() argument 86 default void onPackageChanged(@NonNull String packageName, int uid) {} in onPackageChanged() argument 88 void onPackageRemoved(@NonNull String packageName, int uid); in onPackageRemoved() argument 167 boolean setDefaultBrowser(@Nullable String packageName, @UserIdInt int userId); in setDefaultBrowser() argument 175 void setDefaultBrowserAsync(@Nullable String packageName, @UserIdInt int userId); in setDefaultBrowserAsync() argument 216 void setDefaultHomeAsync(@Nullable String packageName, @UserIdInt int userId, in setDefaultHomeAsync() argument 256 public void onDefaultSmsAppChanged(String packageName, int userId) {} in onDefaultSmsAppChanged() argument 264 public void onDefaultSimCallManagerAppChanged(String packageName, int userId) {} in onDefaultSimCallManagerAppChanged() argument 271 public abstract void grantDefaultPermissionsToDefaultUseOpenWifiApp(String packageName, in grantDefaultPermissionsToDefaultUseOpenWifiApp() argument 288 public abstract boolean isPermissionsReviewRequired(String packageName, int userId); in isPermissionsReviewRequired() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerServiceImpl.java | 142 storedOverlayInfos.put(oi.packageName, oi); in updateOverlaysForUser() 152 final OverlayInfo oi = storedOverlayInfos.get(overlayPackage.packageName); in updateOverlaysForUser() 161 mSettings.init(overlayPackage.packageName, newUserId, in updateOverlaysForUser() 170 storedOverlayInfos.remove(overlayPackage.packageName); in updateOverlaysForUser() 178 mSettings.remove(oi.packageName, oi.userId); in updateOverlaysForUser() 190 updateState(overlayPackage.overlayTarget, overlayPackage.packageName, in updateOverlaysForUser() 194 mSettings.remove(overlayPackage.packageName, newUserId); in updateOverlaysForUser() 232 mSettings.setEnabled(oi.packageName, newUserId, true); in updateOverlaysForUser() 233 if (updateState(oi.targetPackageName, oi.packageName, newUserId, 0)) { in updateOverlaysForUser() 253 void onTargetPackageAdded(@NonNull final String packageName, final int userId) { in onTargetPackageAdded() argument [all …]
|
D | OverlayManagerService.java | 319 for (String packageName : str.split(";")) { in getDefaultOverlayPackages() 320 if (!TextUtils.isEmpty(packageName)) { in getDefaultOverlayPackages() 321 defaultPackages.add(packageName); in getDefaultOverlayPackages() 340 final String packageName = data.getSchemeSpecificPart(); in onReceive() local 355 onPackageReplaced(packageName, userIds); in onReceive() 357 onPackageAdded(packageName, userIds); in onReceive() 361 onPackageChanged(packageName, userIds); in onReceive() 365 onPackageReplacing(packageName, userIds); in onReceive() 367 onPackageRemoved(packageName, userIds); in onReceive() 376 private void onPackageAdded(@NonNull final String packageName, in onPackageAdded() argument [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | ISessionCallback.aidl | 29 void onCommand(String packageName, int pid, int uid, ISessionControllerCallback caller, in onCommand() argument 31 void onMediaButton(String packageName, int pid, int uid, in Intent mediaButtonIntent, in onMediaButton() argument 33 void onMediaButtonFromController(String packageName, int pid, int uid, in onMediaButtonFromController() argument 37 void onPrepare(String packageName, int pid, int uid, ISessionControllerCallback caller); in onPrepare() argument 38 void onPrepareFromMediaId(String packageName, int pid, int uid, in onPrepareFromMediaId() argument 40 void onPrepareFromSearch(String packageName, int pid, int uid, in onPrepareFromSearch() argument 42 void onPrepareFromUri(String packageName, int pid, int uid, in onPrepareFromUri() argument 44 void onPlay(String packageName, int pid, int uid, ISessionControllerCallback caller); in onPlay() argument 45 void onPlayFromMediaId(String packageName, int pid, int uid, in onPlayFromMediaId() argument 47 void onPlayFromSearch(String packageName, int pid, int uid, in onPlayFromSearch() argument [all …]
|
D | ISessionController.aidl | 39 void sendCommand(String packageName, in ISessionControllerCallback caller, in sendCommand() argument 41 boolean sendMediaButton(String packageName, in ISessionControllerCallback caller, in sendMediaButton() argument 43 void registerCallback(String packageName, in ISessionControllerCallback cb); in registerCallback() argument 51 void adjustVolume(String packageName, String opPackageName, in adjustVolume() argument 53 void setVolumeTo(String packageName, String opPackageName, in ISessionControllerCallback caller, in setVolumeTo() argument 57 void prepare(String packageName, in ISessionControllerCallback caller); in prepare() argument 58 void prepareFromMediaId(String packageName, in ISessionControllerCallback caller, in prepareFromMediaId() argument 60 void prepareFromSearch(String packageName, in ISessionControllerCallback caller, in prepareFromSearch() argument 62 void prepareFromUri(String packageName, in ISessionControllerCallback caller, in prepareFromUri() argument 64 void play(String packageName, in ISessionControllerCallback caller); in play() argument [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/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() 116 public boolean isChangeEnabledByPackageName(long changeId, String packageName, in isChangeEnabledByPackageName() argument 119 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in isChangeEnabledByPackageName() 134 for (String packageName : packages) { in isChangeEnabledByUid() 135 enabled = enabled && isChangeEnabledByPackageName(changeId, packageName, in isChangeEnabledByUid() 159 public void setOverrides(CompatibilityChangeConfig overrides, String packageName) in setOverrides() argument 162 mCompatConfig.addOverrides(overrides, packageName); in setOverrides() 163 killPackage(packageName); in setOverrides() 167 public void setOverridesForTest(CompatibilityChangeConfig overrides, String packageName) in setOverridesForTest() argument [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/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/policy/role/ |
D | LegacyRoleResolutionPolicy.java | 67 String packageName; in getRoleHolders() local 75 packageName = componentName != null ? componentName.getPackageName() : null; in getRoleHolders() 77 packageName = null; in getRoleHolders() 81 packageName = !TextUtils.isEmpty(defaultAssistant) ? defaultAssistant : null; in getRoleHolders() 83 packageName = null; in getRoleHolders() 85 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders() 90 String packageName = packageManagerInternal.removeLegacyDefaultBrowserPackageName( in getRoleHolders() local 92 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders() 97 String packageName; in getRoleHolders() local 99 packageName = setting; in getRoleHolders() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | AppUtils.java | 49 String packageName = appEntry.info.packageName; in getLaunchByDefaultSummary() local 50 boolean hasPreferred = hasPreferredActivities(pm, packageName) in getLaunchByDefaultSummary() 51 || hasUsbDefaults(usbManager, packageName); in getLaunchByDefaultSummary() 52 int status = pm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getLaunchByDefaultSummary() 61 public static boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { in hasUsbDefaults() argument 64 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults() 72 public static boolean hasPreferredActivities(PackageManager pm, String packageName) { in hasPreferredActivities() argument 77 pm.getPreferredActivities(intentList, prefActList, packageName); in hasPreferredActivities() 98 if (propVal != null && !propVal.isEmpty() && info.packageName != null) { in isInstant() 102 if (info.packageName.contains(term)) { in isInstant() [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 …]
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockPackageManager.java | 74 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo() argument 86 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument 102 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument 107 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument 113 public Intent getCarLaunchIntentForPackage(String packageName) { in getCarLaunchIntentForPackage() argument 118 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids() argument 123 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { in getPackageGids() argument 128 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { in getPackageUid() argument 134 public int getPackageUidAsUser(String packageName, int flags, int userHandle) in getPackageUidAsUser() argument 141 public int getPackageUidAsUser(String packageName, int userHandle) in getPackageUidAsUser() argument [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkSuggestionsManager.java | 125 public final String packageName; field in WifiNetworkSuggestionsManager.PerAppInfo 138 public PerAppInfo(@NonNull String packageName) { in PerAppInfo() argument 139 this.packageName = packageName; in PerAppInfo() 148 return TextUtils.equals(packageName, otherPerAppInfo.packageName) in equals() 156 return Objects.hash(packageName, extNetworkSuggestions, hasUserApproved); in hashCode() 176 this.wns.wifiConfiguration.creatorName = perAppInfo.packageName; in ExtendedWifiNetworkSuggestion() 276 AppOpsChangedListener(@NonNull String packageName, int uid) { in AppOpsChangedListener() argument 277 mPackageName = packageName; in AppOpsChangedListener() 282 public void onOpChanged(String op, String packageName) { in onOpChanged() argument 284 if (!mPackageName.equals(packageName)) return; in onOpChanged() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTests.java | 84 assertEquals(oi.packageName, OVERLAY); in testGetOverlayInfo() 283 private void installTargetPackage(String packageName, int userId) { in installTargetPackage() argument 284 if (mState.select(packageName, userId) != null) { in installTargetPackage() 287 mState.add(packageName, null, userId, false); in installTargetPackage() 288 mImpl.onTargetPackageAdded(packageName, userId); in installTargetPackage() 291 private void beginUpgradeTargetPackage(String packageName, int userId) { in beginUpgradeTargetPackage() argument 292 if (mState.select(packageName, userId) == null) { in beginUpgradeTargetPackage() 295 mState.add(packageName, null, userId, false); in beginUpgradeTargetPackage() 296 mImpl.onTargetPackageReplacing(packageName, userId); in beginUpgradeTargetPackage() 299 private void endUpgradeTargetPackage(String packageName, int userId) { in endUpgradeTargetPackage() argument [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationTracker.java | 65 public boolean isKeyRotationDue(String packageName) { in isKeyRotationDue() argument 66 return getBackupsSinceRotation(packageName) >= MAX_BACKUPS_UNTIL_TERTIARY_KEY_ROTATION; in isKeyRotationDue() 75 public void recordBackup(String packageName) { in recordBackup() argument 76 int backupsSinceRotation = getBackupsSinceRotation(packageName) + 1; in recordBackup() 77 mSharedPreferences.edit().putInt(packageName, backupsSinceRotation).apply(); in recordBackup() 84 packageName, in recordBackup() 97 public void resetCountdown(String packageName) { in resetCountdown() argument 98 mSharedPreferences.edit().putInt(packageName, 0).apply(); in resetCountdown() 104 for (String packageName : mSharedPreferences.getAll().keySet()) { in markAllForRotation() 105 editor.putInt(packageName, MAX_BACKUPS_UNTIL_TERTIARY_KEY_ROTATION); in markAllForRotation() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ProtectedPackages.java | 73 private synchronized boolean hasDeviceOwnerOrProfileOwner(int userId, String packageName) { in hasDeviceOwnerOrProfileOwner() argument 74 if (packageName == null) { in hasDeviceOwnerOrProfileOwner() 79 && (packageName.equals(mDeviceOwnerPackage))) { in hasDeviceOwnerOrProfileOwner() 84 if (packageName.equals(mProfileOwnerPackages.get(userId))) { in hasDeviceOwnerOrProfileOwner() 107 private synchronized boolean isProtectedPackage(String packageName) { in isProtectedPackage() argument 108 return packageName != null && packageName.equals(mDeviceProvisioningPackage); in isProtectedPackage() 117 public boolean isPackageStateProtected(@UserIdInt int userId, String packageName) { in isPackageStateProtected() argument 118 return hasDeviceOwnerOrProfileOwner(userId, packageName) in isPackageStateProtected() 119 || isProtectedPackage(packageName); in isPackageStateProtected() 126 public boolean isPackageDataProtected(@UserIdInt int userId, String packageName) { in isPackageDataProtected() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionRecord.java | 267 public void adjustVolume(String packageName, String opPackageName, int pid, int uid, in adjustVolume() argument 291 Log.w(TAG, "adjusting volume, pkg=" + packageName + ", asSystemService=" in adjustVolume() 294 mSessionCb.adjustVolume(packageName, pid, uid, caller, asSystemService, direction); in adjustVolume() 313 private void setVolumeTo(String packageName, String opPackageName, int pid, int uid, in setVolumeTo() argument 336 mSessionCb.setVolumeTo(packageName, pid, uid, caller, value); in setVolumeTo() 483 public boolean sendMediaButton(String packageName, int pid, int uid, boolean asSystemService, in sendMediaButton() argument 485 return mSessionCb.sendMediaButton(packageName, pid, uid, asSystemService, ke, sequenceId, in sendMediaButton() 994 public boolean sendMediaButton(String packageName, int pid, int uid, in sendMediaButton() argument 1001 mCb.onMediaButton(packageName, pid, uid, in sendMediaButton() 1011 public boolean sendMediaButton(String packageName, int pid, int uid, in sendMediaButton() argument [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ClassPathPackageInfoSource.java | 75 public Set<Class<?>> getTopLevelClassesRecursive(String packageName) { in getTopLevelClassesRecursive() argument 76 ClassPathPackageInfo packageInfo = cache.get(packageName); in getTopLevelClassesRecursive() 80 private ClassPathPackageInfo createPackageInfo(String packageName) { in createPackageInfo() argument 84 findClasses(packageName, classNames, subpackageNames); in createPackageInfo() 103 return new ClassPathPackageInfo(packageName, subpackageNames, in createPackageInfo() 112 private void findClasses(String packageName, Set<String> classNames, in findClasses() argument 122 findClassesInApk(entryName, packageName, classNames, subpackageNames); in findClasses() 127 scanForApkFiles(file, packageName, classNames, subpackageNames); in findClasses() 138 private void scanForApkFiles(File source, String packageName, in scanForApkFiles() argument 141 findClassesInApk(source.getPath(), packageName, classNames, subpackageNames); in scanForApkFiles() local [all …]
|
/frameworks/base/core/java/android/os/ |
D | IStatsManager.aidl | 90 byte[] getData(in long key, in String packageName); in getData() argument 97 byte[] getMetadata(in String packageName); in getMetadata() argument 107 void addConfiguration(in long configKey, in byte[] config, in String packageName); in addConfiguration() argument 116 void setDataFetchOperation(long configKey, in IBinder intentSender, in String packageName); in setDataFetchOperation() argument 123 void removeDataFetchOperation(long configKey, in String packageName); in removeDataFetchOperation() argument 133 long[] setActiveConfigsChangedOperation(in IBinder intentSender, in String packageName); in setActiveConfigsChangedOperation() argument 140 void removeActiveConfigsChangedOperation(in String packageName); in removeActiveConfigsChangedOperation() argument 148 void removeConfiguration(in long configKey, in String packageName); in removeConfiguration() argument 169 in String packageName); in setBroadcastSubscriber() argument 178 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName); in unsetBroadcastSubscriber() argument [all …]
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowApplicationPackageManager.java | 48 public static void addInstalledPackage(String packageName, PackageInfo packageInfo) { in addInstalledPackage() argument 49 sPackageInfos.put(packageName, packageInfo); in addInstalledPackage() 57 public static void setPackageUid(String packageName, int packageUid) { in setPackageUid() argument 58 sPackageUids.put(packageName, packageUid); in setPackageUid() 62 protected PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument 64 if (!sPackageInfos.containsKey(packageName)) { in getPackageInfoAsUser() 65 throw new NameNotFoundException(packageName); in getPackageInfoAsUser() 67 return sPackageInfos.get(packageName); in getPackageInfoAsUser() 76 protected int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() argument 78 if (!sPackageUids.containsKey(packageName)) { in getPackageUidAsUser() [all …]
|