/frameworks/av/services/audioflinger/ |
H A D | ServiceUtilities.cpp | 65 // case we will get the packages for the calling UID and pick the first one 67 // as for legacy apps we will toggle the app op for all packages in the UID. 79 Vector<String16> packages; local 81 permCtrl->getPackagesForUid(uid, packages); 83 if (packages.isEmpty()) { 84 ALOGE("No packages for calling UID"); 87 checkedOpPackageName = packages[0];
|
/frameworks/base/core/java/android/app/admin/ |
H A D | DevicePolicyManagerInternal.java | 29 * Listener for changes in the white-listed packages to show cross-profile 35 * Called when the white-listed packages to show cross-profile widgets 38 * @param profileId The profile for which the white-listed packages changed. 39 * @param packages The white-listed packages. 41 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); argument 45 * Gets the packages whose widget providers are white-listed to be 49 * @return The list of packages if such or empty list if there are 50 * no white-listed packages or the profile id is not a managed 56 * Adds a listener for changes in the white-listed packages t [all...] |
H A D | DevicePolicyManager.java | 3487 * By default the user can use any accessiblity service. When zero or more packages have 3564 * By default the user can use any input method. When zero or more packages have 3802 * Called by profile or device owners to hide or unhide packages. When a package is hidden it 3872 Log.w(TAG, "Failed to install packages matching filter: " + intent); 3935 * Sets which packages may enter lock task mode. 3937 * <p>Any packages that shares uid with an allowed package will also be allowed 3940 * From {@link android.os.Build.VERSION_CODES#M} removing packages from the lock task 3941 * package list results in locked tasks belonging to those packages to be finished. 3944 * @param packages The list of packages allowe 3952 setLockTaskPackages(@onNull ComponentName admin, String[] packages) argument [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | SharedUserSetting.java | 33 final ArraySet<PackageSetting> packages = new ArraySet<PackageSetting>(); field in class:SharedUserSetting 51 if (packages.remove(packageSetting)) { 55 for (PackageSetting ps : packages) { 62 for (PackageSetting ps : packages) { 71 if (packages.add(packageSetting)) {
|
H A D | LauncherAppsService.java | 137 Log.d(TAG, "Stopped watching for packages"); 428 public void onPackagesAvailable(String[] packages) { argument 436 listener.onPackagesAvailable(user, packages, isReplacing()); 443 super.onPackagesAvailable(packages); 447 public void onPackagesUnavailable(String[] packages) { argument 455 listener.onPackagesUnavailable(user, packages, isReplacing()); 462 super.onPackagesUnavailable(packages);
|
H A D | KeySetManagerService.java | 80 * Only used when reading state from packages.xml 111 public KeySetManagerService(ArrayMap<String, PackageSetting> packages) { argument 115 mPackages = packages; 697 // The KeySet information read previously from packages.xml is invalid.
|
/frameworks/native/libs/binder/ |
H A D | IPermissionController.cpp | 52 virtual void getPackagesForUid(const uid_t uid, Vector<String16>& packages) argument 67 packages.push(reply.readString16()); 105 Vector<String16> packages; local 106 getPackagesForUid(uid, packages); 108 size_t size = packages.size(); 111 reply->writeString16(packages[i]);
|
/frameworks/base/core/java/android/app/backup/ |
H A D | RestoreSession.java | 92 * Restore select packages from the given set onto the device, replacing the 104 * @param packages The set of packages for which to attempt a restore. Regardless of 110 public int restoreSome(long token, RestoreObserver observer, String[] packages) { argument 118 err = mBinder.restoreSome(token, mObserver, packages); 120 Log.d(TAG, "Can't contact server to restore packages");
|
H A D | BackupTransport.java | 281 * @param packages List of applications to restore (if data is available). 287 public int startRestore(long token, PackageInfo[] packages) { argument 298 * in the current restore session: all packages described in startRestore() have been 308 * packages. The transport should not actually transfer any restore data for 312 * @return A RestoreDescription object containing the name of one of the packages 315 * no more packages can be restored in this session; or {@code null} to indicate 597 public int startRestore(long token, PackageInfo[] packages) throws RemoteException { argument 598 return BackupTransport.this.startRestore(token, packages);
|
/frameworks/native/libs/gui/ |
H A D | SensorManager.cpp | 54 // In this case we will get the packages for the calling UID and pick the 57 // all packages in the UID. The caveat is that the operation may be attributed 63 Vector<String16> packages; local 64 interface_cast<IPermissionController>(binder)->getPackagesForUid(uid, packages); 65 if (!packages.isEmpty()) { 66 opPackageName = packages[0]; 68 ALOGE("No packages for calling UID"); 79 // name, to avoid looking up the packages for a UID and get the same result.
|
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 444 public int startRestore(long token, PackageInfo[] packages) { argument 445 if (DEBUG) Log.v(TAG, "start restore " + token + " : " + packages.length 446 + " matching packages"); 447 mRestorePackages = packages; 468 // skip packages where we have a data dir but no actual contents 503 if (DEBUG) Log.v(TAG, " no more packages to restore");
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | PackageMonitor.java | 33 * Helper class for monitoring the state of packages: adding, removing, 173 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument 183 public void onPackagesAvailable(String[] packages) { argument 186 public void onPackagesUnavailable(String[] packages) { argument
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | PackageManagerBackupAgent.java | 111 PackageManagerBackupAgent(PackageManager packageMgr, List<PackageInfo> packages) { argument 112 init(packageMgr, packages); 121 private void init(PackageManager packageMgr, List<PackageInfo> packages) { argument 123 mAllPackages = packages; 169 // This is technically the set of packages on the originating handset 170 // that had backup agents at all, not limited to the set of packages 333 sb.append("Preserving metadata for deleted packages:");
|
H A D | BackupManagerService.java | 259 // map UIDs to the set of participating packages under that UID 451 * Restore some set of packages. Leave this one up to the caller to specify 507 public String[] packages; field in class:BackupManagerService.FullBackupParams 520 packages = pkgList; 774 params.packages, params.latch); 1383 // [int] # of packages in the queue = N 1752 // ----- Track installation/removal of packages ----- 2010 // Add the backup agents in the given packages to our set of known backup participants. 2050 // Remove the given packages' entries from our known active set. 2091 List<PackageInfo> packages 3654 PerformAdbBackupTask(ParcelFileDescriptor fd, IFullBackupRestoreObserver observer, boolean includeApks, boolean includeObbs, boolean includeShared, boolean doWidgets, String curPassword, String encryptPassword, boolean doAllApps, boolean doSystem, boolean doCompress, String[] packages, AtomicBoolean latch) argument 9392 restoreSome(long token, IRestoreObserver observer, String[] packages) argument [all...] |
/frameworks/base/services/core/java/com/android/server/firewall/ |
H A D | IntentFirewall.java | 204 Slog.e(TAG, "Remote exception while retrieving packages", ex); 218 * limit, in which case one of the packages will be truncated and added. In this case, an 225 private static String joinPackages(String[] packages) { argument 228 for (int i=0; i<packages.length; i++) { 229 String pkg = packages[i]; 244 if (sb.length() == 0 && packages.length > 0) { 245 String pkg = packages[0];
|
/frameworks/base/core/java/android/app/ |
H A D | ApplicationThreadNative.java | 465 String[] packages = data.readStringArray(); 466 dispatchPackageBroadcast(cmd, packages); 1186 public void dispatchPackageBroadcast(int cmd, String[] packages) throws RemoteException { argument 1190 data.writeStringArray(packages);
|
H A D | IApplicationThread.java | 126 void dispatchPackageBroadcast(int cmd, String[] packages) throws RemoteException; argument
|
H A D | ActivityManagerNative.java | 2552 String[] packages = data.readStringArray(); 2553 updateLockTaskPackages(userId, packages); 5919 public void updateLockTaskPackages(int userId, String[] packages) throws RemoteException { argument 5924 data.writeStringArray(packages);
|
H A D | ActivityThread.java | 217 // XXX For now we keep around information about all packages we have 785 * sharing its runtime with other packages: 789 * packages with the same sharedUserId. 793 * indicating the desire to run in another packages VM. 937 public void dispatchPackageBroadcast(int cmd, String[] packages) { argument 938 sendMessage(H.DISPATCH_PACKAGE_BROADCAST, packages, cmd); 4335 final void handleDispatchPackageBroadcast(int cmd, String[] packages) { argument 4337 if (packages != null) { 4339 for (int i=packages.length-1; i>=0; i--) { 4340 //Slog.i(TAG, "Cleaning old package: " + packages[ [all...] |
H A D | IActivityManager.java | 509 public void updateLockTaskPackages(int userId, String[] packages) throws RemoteException; argument
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
H A D | WallpaperManagerService.java | 401 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
H A D | AppWidgetServiceImpl.java | 2363 * Checks if the provider is assigned and updates the mWidgetPackages to track packages 2370 ArraySet<String> packages = mWidgetPackages.get(userId); 2371 if (packages == null) { 2372 mWidgetPackages.put(userId, packages = new ArraySet<String>()); 2374 packages.add(widget.provider.info.provider.getPackageName()); 2378 * Removes a widget from mWidgets and updates the cache of bound widget provider packages. 2393 ArraySet<String> packages = mWidgetPackages.get(userId); 2394 if (packages == null) { 2408 packages.remove(packageName); 2412 * Clears all widgets and associated cache of packages wit 3018 onCrossProfileWidgetProvidersChanged(int userId, List<String> packages) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | InputMethodManagerService.java | 633 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument 644 for (String pkg : packages) {
|
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 3105 const size_t N = packages.size(); 3107 Package* pkg = packages[i]; 3148 const size_t N = packages.size(); 3150 ssize_t index = packages[i]->typeStrings.indexOfString(type, len); 3152 return index + packages[i]->typeIdOffset; 3162 // This is mainly used to keep track of the loaded packages 3165 Vector<Package*> packages; member in struct:android::ResTable::PackageGroup 3607 for (size_t j=0; j<srcPg->packages.size(); j++) { 3608 pg->packages.add(srcPg->packages[ [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 1003 // If we're checking all packages or if the specific one we're checking matches, 1701 private void updateLockTaskPackagesLocked(List<String> packages, int userId) { argument 1705 am.updateLockTaskPackages(userId, packages.toArray(new String[packages.size()])); 5010 * @return true if all packages in enabledPackages are either in the list 5018 // If we have an enabled packages list for a managed profile the packages 5902 * Sets which packages may enter lock task mode. 5905 * @param packages The list of packages allowe 5908 setLockTaskPackages(ComponentName who, String[] packages) argument 5919 setLockTaskPackagesLocked(int userHandle, List<String> packages) argument 6295 notifyCrossProfileProvidersChanged(int userId, List<String> packages) argument [all...] |