/frameworks/base/libs/androidfw/tests/ |
H A D | LoadedArsc_test.cpp | 39 const std::vector<std::unique_ptr<const LoadedPackage>>& packages = loaded_arsc->GetPackages(); local 40 ASSERT_EQ(1u, packages.size()); 41 EXPECT_EQ(std::string("com.android.app"), packages[0]->GetPackageName()); 42 EXPECT_EQ(0x7f, packages[0]->GetPackageId()); 89 const auto& packages = loaded_arsc->GetPackages(); local 90 ASSERT_EQ(1u, packages.size()); 92 EXPECT_TRUE(packages[0]->IsDynamic()); 93 EXPECT_EQ(std::string("com.android.lib_one"), packages[0]->GetPackageName()); 94 EXPECT_EQ(0, packages[0]->GetPackageId()); 96 const auto& dynamic_pkg_map = packages[ 111 const auto& packages = loaded_arsc->GetPackages(); local 139 const auto& packages = loaded_arsc->GetPackages(); local [all...] |
/frameworks/av/services/audioflinger/ |
H A D | ServiceUtilities.cpp | 73 // case we will get the packages for the calling UID and pick the first one 75 // as for legacy apps we will toggle the app op for all packages in the UID. 87 Vector<String16> packages; local 89 permCtrl->getPackagesForUid(uid, packages); 91 if (packages.isEmpty()) { 92 ALOGE("No packages for calling UID"); 95 checkedOpPackageName = packages[0];
|
/frameworks/base/core/java/android/app/admin/ |
H A D | DevicePolicyManagerInternal.java | 31 * Listener for changes in the white-listed packages to show cross-profile 37 * Called when the white-listed packages to show cross-profile widgets 40 * @param profileId The profile for which the white-listed packages changed. 41 * @param packages The white-listed packages. 43 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); argument 47 * Gets the packages whose widget providers are white-listed to be 53 * @return The list of packages if such or empty list if there are 54 * no white-listed packages or the profile id is not a managed 60 * Adds a listener for changes in the white-listed packages t [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 | PackageManagerServiceUtils.java | 70 // packages without usage data is undefined (but they will be sorted after the packages 83 // Apply the given {@code filter} to all packages in {@code packages}. If tested positive, the 84 // package will be removed from {@code packages} and added to {@code result} with its 85 // dependencies. If usage data is available, the positive packages will be sorted by usage 89 Collection<PackageParser.Package> packages, 92 for (PackageParser.Package pkg : packages) { 99 packages.removeAll(sortTemp); 109 packages 87 applyPackageFilter(Predicate<PackageParser.Package> filter, Collection<PackageParser.Package> result, Collection<PackageParser.Package> packages, @NonNull List<PackageParser.Package> sortTemp, PackageManagerService packageManagerService) argument 118 getPackagesForDexopt( Collection<PackageParser.Package> packages, PackageManagerService packageManagerService) argument [all...] |
H A D | PackageUsage.java | 55 protected void writeInternal(Map<String, PackageParser.Package> packages) { argument 69 for (PackageParser.Package pkg : packages.values()) { 93 protected void readInternal(Map<String, PackageParser.Package> packages) { argument 104 readVersion1LP(packages, in, sb); 106 readVersion0LP(packages, in, sb, firstLine); 117 private void readVersion0LP(Map<String, PackageParser.Package> packages, InputStream in, argument 131 PackageParser.Package pkg = packages.get(packageName); 145 private void readVersion1LP(Map<String, PackageParser.Package> packages, InputStream in, argument 157 PackageParser.Package pkg = packages.get(packageName);
|
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/base/tools/preload2/src/com/android/preload/actions/ |
H A D | RunMonkeyAction.java | 53 String packages = Main.getUI().showInputDialog("Please enter packages name to run with" 55 if (packages == null) { 58 if (packages.isEmpty()) { 59 packages = DEFAULT_MONKEY_PACKAGES; 61 Runnable r = new RunMonkeyRunnable(packages); 71 private String packages; field in class:RunMonkeyAction.RunMonkeyRunnable 74 public RunMonkeyRunnable(String packages) { argument 75 this.packages = packages; [all...] |
/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/support/customtabs/src/android/support/customtabs/ |
H A D | CustomTabsClient.java | 79 public static String getPackageName(Context context, @Nullable List<String> packages) { argument 80 return getPackageName(context, packages, false); 88 * non empty list of package names in <code>packages</code>. 90 * @param context {@link Context} to use for querying the packages. 91 * @param packages Ordered list of packages to test for Custom Tabs support, in 97 Context context, @Nullable List<String> packages, boolean ignoreDefault) { 100 List<String> packageNames = packages == null ? new ArrayList<String>() : packages; 109 if (packages ! 96 getPackageName( Context context, @Nullable List<String> packages, boolean ignoreDefault) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ForegroundServicesDialog.java | 100 Log.w(TAG, "No packages supplied"); 138 mPackages = intent.getStringArrayExtra("packages"); 172 public void setPackages(String[] packages) { argument 176 for (int i = 0; i < packages.length; i++) { 178 apps.add(mPm.getApplicationInfo(packages[i],
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
H A D | VpnTest.java | 75 * Names and UIDs for some fake packages. Important points: 77 * - One pair of packages have consecutive UIDs. 82 // Mock packages 154 final String[] packages = {PKGS[0], PKGS[1], PKGS[2]}; 158 Arrays.asList(packages), null); 166 null, Arrays.asList(packages)); 337 private void setMockedPackages(final Map<String, Integer> packages) { argument 342 return UserHandle.getUid(userId, packages.get(appName));
|
/frameworks/base/tools/aapt2/ |
H A D | ResourceTable.h | 259 * NOTE: `string_pool` must come before `packages` so that it is destroyed 262 * `packages` 269 * The list of packages in this table, sorted alphabetically by package name. 271 std::vector<std::unique_ptr<ResourceTablePackage>> packages; member in class:aapt::ResourceTable 273 // Set of dynamic packages that this table may reference. Their package names get encoded
|
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/ |
H A D | Bmgr.java | 301 List<String> packages = new ArrayList<>(); 305 packages.add(pi.packageName); 312 backupNowPackages(packages, nonIncrementalBackup); 316 private void backupNowPackages(List<String> packages, boolean nonIncrementalBackup) { argument 324 int err = mBmgr.requestBackup(packages.toArray(new String[packages.size()]), observer, 357 "incremental backup for all packages."); 360 System.err.println("Provide only '--all' flag or list of packages."); 364 "incremental backup for " + allPkgs.size() +" requested packages."); 367 System.err.println("Provide '--all' flag or list of packages [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupTransport.java | 291 * @param packages List of applications to restore (if data is available). 297 public int startRestore(long token, PackageInfo[] packages) { argument 308 * in the current restore session: all packages described in startRestore() have been 318 * packages. The transport should not actually transfer any restore data for 322 * @return A RestoreDescription object containing the name of one of the packages 325 * no more packages can be restored in this session; or {@code null} to indicate 641 public int startRestore(long token, PackageInfo[] packages) throws RemoteException { argument 642 return BackupTransport.this.startRestore(token, packages);
|
H A D | RestoreSession.java | 133 * Restore select packages from the given set onto the device, replacing the 147 * @param packages The set of packages for which to attempt a restore. Regardless of 154 String[] packages) { 165 err = mBinder.restoreSome(token, mObserver, monitorWrapper, packages); 167 Log.d(TAG, "Can't contact server to restore packages"); 173 * Restore select packages from the given set onto the device, replacing the 185 * @param packages The set of packages for which to attempt a restore. Regardless of 191 public int restoreSome(long token, RestoreObserver observer, String[] packages) { argument 153 restoreSome(long token, RestoreObserver observer, BackupManagerMonitor monitor, String[] packages) argument [all...] |
H A D | BackupManager.java | 114 * packages provided to {@link #requestBackup(String[], BackupObserver)} 152 * BackupManager will pass a blank old state to BackupAgents of requested packages. 231 * needs a backup pass. This can be useful in the case of groups of packages 334 // All packages, current transport 578 * provided packages using the remote transport. 580 * @param packages List of package names to backup. 584 * @exception IllegalArgumentException on null or empty {@code packages} param. 590 public int requestBackup(String[] packages, BackupObserver observer) { argument 591 return requestBackup(packages, observer, null, 0); 600 * provided packages usin 614 requestBackup(String[] packages, BackupObserver observer, BackupManagerMonitor monitor, int flags) argument [all...] |
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
H A D | AppRestrictionsHelperTest.java | 177 private void addSystemAppsForIntent(Intent intent, String... packages) throws Exception { argument 179 for (String pkg : packages) { 188 private void addSystemAppsWithRequiredAccounts(String... packages) throws Exception { argument 189 for (String pkg : packages) { 201 private void addDownloadedApps(String... packages) throws Exception { argument 202 for (String pkg : packages) {
|
/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 | Trampoline.java | 370 public int requestBackup(String[] packages, IBackupObserver observer, argument 376 return svc.requestBackup(packages, observer, monitor, flags);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | RecentTasks.java | 281 void onPackagesSuspendedChanged(String[] packages, boolean suspended, int userId) { argument 282 final Set<String> packageNames = Sets.newHashSet(packages);
|
/frameworks/native/libs/sensor/ |
H A D | SensorManager.cpp | 57 // In this case we will get the packages for the calling UID and pick the 60 // all packages in the UID. The caveat is that the operation may be attributed 66 Vector<String16> packages; local 67 interface_cast<IPermissionController>(binder)->getPackagesForUid(uid, packages); 68 if (!packages.isEmpty()) { 69 opPackageName = packages[0]; 71 ALOGE("No packages for calling UID"); 82 // name, to avoid looking up the packages for a UID and get the same result.
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | CarrierServiceBindHelper.java | 355 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument 357 for (String packageName : packages) { 361 return super.onHandleForceStop(intent, packages, uid, doit); 369 // case that there are no carrier packages, but evaluate the binding if the package
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | PackageMonitor.java | 34 * Helper class for monitoring the state of packages: adding, removing, 180 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument 190 public void onPackagesAvailable(String[] packages) { argument 193 public void onPackagesUnavailable(String[] packages) { argument 196 public void onPackagesSuspended(String[] packages) { argument 199 public void onPackagesUnsuspended(String[] packages) { argument
|
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 457 public int startRestore(long token, PackageInfo[] packages) { argument 458 if (DEBUG) Log.v(TAG, "start restore " + token + " : " + packages.length 459 + " matching packages"); 460 mRestorePackages = packages; 481 // skip packages where we have a data dir but no actual contents 516 if (DEBUG) Log.v(TAG, " no more packages to restore");
|