Searched defs:packages (Results 1 - 25 of 60) sorted by relevance

123

/frameworks/base/libs/androidfw/tests/
H A DLoadedArsc_test.cpp101 const auto& packages = loaded_arsc->GetPackages(); local
102 ASSERT_THAT(packages, SizeIs(1u));
103 EXPECT_TRUE(packages[0]->IsDynamic());
104 EXPECT_THAT(packages[0]->GetPackageName(), StrEq("com.android.lib_one"));
105 EXPECT_THAT(packages[0]->GetPackageId(), Eq(0));
107 const auto& dynamic_pkg_map = packages[0]->GetDynamicPackageMap();
121 const auto& packages = loaded_arsc->GetPackages(); local
122 ASSERT_THAT(packages, SizeIs(1u));
123 EXPECT_FALSE(packages[0]->IsDynamic());
124 EXPECT_THAT(packages[
148 const auto& packages = loaded_arsc->GetPackages(); local
[all...]
/frameworks/base/tools/preload2/src/com/android/preload/actions/
H A DRunMonkeyAction.java53 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 DPermissionController.cpp68 void PermissionController::getPackagesForUid(const uid_t uid, Vector<String16> &packages) argument
72 service->getPackagesForUid(uid, packages);
H A DIPermissionController.cpp65 virtual void getPackagesForUid(const uid_t uid, Vector<String16>& packages) argument
80 packages.push(reply.readString16());
141 Vector<String16> packages; local
142 getPackagesForUid(uid, packages);
144 size_t size = packages.size();
147 reply->writeString16(packages[i]);
/frameworks/av/services/audioflinger/
H A DServiceUtilities.cpp60 // case we will get the packages for the calling UID and pick the first one
62 // as for legacy apps we will toggle the app op for all packages in the UID.
65 Vector<String16> packages; local
66 permissionController.getPackagesForUid(uid, packages);
67 if (packages.isEmpty()) {
68 ALOGE("No packages for uid %d", uid);
71 return packages[0];
/frameworks/base/core/java/android/app/admin/
H A DDevicePolicyManagerInternal.java32 * Listener for changes in the white-listed packages to show cross-profile
38 * Called when the white-listed packages to show cross-profile widgets
41 * @param profileId The profile for which the white-listed packages changed.
42 * @param packages The white-listed packages.
44 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); argument
48 * Gets the packages whose widget providers are white-listed to be
54 * @return The list of packages if such or empty list if there are
55 * no white-listed packages or the profile id is not a managed
61 * Adds a listener for changes in the white-listed packages t
[all...]
/frameworks/base/services/backup/java/com/android/server/backup/params/
H A DAdbBackupParams.java31 public String[] packages; field in class:AdbBackupParams
45 packages = pkgList;
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageUsage.java55 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 DSharedUserSetting.java46 final ArraySet<PackageSetting> packages = new ArraySet<PackageSetting>(); field in class:SharedUserSetting
73 if (packages.remove(packageSetting)) {
77 for (PackageSetting ps : packages) {
84 for (PackageSetting ps : packages) {
95 if ((packages.size() == 0) && (packageSetting.pkg != null)) {
98 if (packages.add(packageSetting)) {
105 if (packages == null || packages.size() == 0) {
108 final ArrayList<PackageParser.Package> pkgList = new ArrayList<>(packages.size());
109 for (PackageSetting ps : packages) {
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
H A DProcessedPackagesJournalTest.java141 HashSet<String> packages = new HashSet<>();
146 packages.add(dis.readUTF());
152 return packages;
155 private void writePermanentJournalPackages(Set<String> packages) throws Exception { argument
160 for (String packageName : packages) {
/frameworks/support/browser/src/main/java/androidx/browser/customtabs/
H A DCustomTabsClient.java82 public static String getPackageName(Context context, @Nullable List<String> packages) { argument
83 return getPackageName(context, packages, false);
91 * non empty list of package names in <code>packages</code>.
93 * @param context {@link Context} to use for querying the packages.
94 * @param packages Ordered list of packages to test for Custom Tabs support, in
100 Context context, @Nullable List<String> packages, boolean ignoreDefault) {
103 List<String> packageNames = packages == null ? new ArrayList<String>() : packages;
112 if (packages !
99 getPackageName( Context context, @Nullable List<String> packages, boolean ignoreDefault) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DForegroundServicesDialog.java100 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/services/backup/java/com/android/server/backup/restore/
H A DActiveRestoreSession.java194 IBackupManagerMonitor monitor, String[] packages) {
211 b.append(" packages=");
212 if (packages == null) {
217 for (String s : packages) {
266 packages,
267 /* isSystemRestore */ packages.length > 1,
269 "RestoreSession.restoreSome(" + packages.length + " packages)");
322 throw new SecurityException("No permission to restore other packages");
193 restoreSome(long token, IRestoreObserver observer, IBackupManagerMonitor monitor, String[] packages) argument
/frameworks/base/core/java/android/app/backup/
H A DBackupTransport.java341 * @param packages List of applications to restore (if data is available).
347 public int startRestore(long token, PackageInfo[] packages) { argument
358 * in the current restore session: all packages described in startRestore() have been
368 * packages. The transport should not actually transfer any restore data for
372 * @return A RestoreDescription object containing the name of one of the packages
375 * no more packages can be restored in this session; or {@code null} to indicate
700 public int startRestore(long token, PackageInfo[] packages) throws RemoteException { argument
701 return BackupTransport.this.startRestore(token, packages);
H A DRestoreSession.java133 * 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 DBackupManager.java118 * packages provided to {@link #requestBackup(String[], BackupObserver)}
156 * BackupManager will pass a blank old state to BackupAgents of requested packages.
235 * needs a backup pass. This can be useful in the case of groups of packages
334 // All packages, current transport
652 * provided packages using the remote transport.
654 * @param packages List of package names to backup.
658 * @exception IllegalArgumentException on null or empty {@code packages} param.
664 public int requestBackup(String[] packages, BackupObserver observer) { argument
665 return requestBackup(packages, observer, null, 0);
674 * provided packages usin
688 requestBackup(String[] packages, BackupObserver observer, BackupManagerMonitor monitor, int flags) argument
[all...]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
H A DAppRestrictionsHelperTest.java177 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/fullbackup/
H A DPerformAdbBackupTask.java93 boolean doCompress, boolean doKeyValue, String[] packages, AtomicBoolean latch) {
106 mPackages = (packages == null)
108 : new ArrayList<>(Arrays.asList(packages));
256 // host & provider packages in the set
276 // Now process the command line argument packages, if any. Note that explicitly-
277 // named system-partition packages will be included even if includeSystem was
283 // Now we cull any inapplicable / inappropriate packages from the set. This
286 // added to their own queue, and handled after packages supporting fullbackup.
308 // flatten the set of packages now so we can explicitly control the ordering
89 PerformAdbBackupTask(BackupManagerService backupManagerService, ParcelFileDescriptor fd, IFullBackupRestoreObserver observer, boolean includeApks, boolean includeObbs, boolean includeShared, boolean doWidgets, String curPassword, String encryptPassword, boolean doAllApps, boolean doSystem, boolean doCompress, boolean doKeyValue, String[] packages, AtomicBoolean latch) argument
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
H A DAppTimeLimitControllerTests.java307 private void addObserver(int observerId, String[] packages, long timeLimit) { argument
308 mController.addObserver(UID, observerId, packages, timeLimit, null, USER_ID);
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DVpnTest.java127 * Names and UIDs for some fake packages. Important points:
129 * - One pair of packages have consecutive UIDs.
134 // Mock packages
221 final String[] packages = {PKGS[0], PKGS[1], PKGS[2]};
225 Arrays.asList(packages), null);
233 null, Arrays.asList(packages));
557 private void setMockedPackages(final Map<String, Integer> packages) { argument
562 return UserHandle.getUid(userId, packages.get(appName));
/frameworks/base/tools/aapt2/
H A DResourceTable.h254 // NOTE: `string_pool` must come before `packages` so that it is destroyed after.
255 // When `string_pool` references are destroyed (as they will be when `packages` is destroyed),
260 // The list of packages in this table, sorted alphabetically by package name and increasing
262 std::vector<std::unique_ptr<ResourceTablePackage>> packages; member in class:aapt::ResourceTable
264 // Set of dynamic packages that this table may reference. Their package names get encoded
/frameworks/native/libs/sensor/
H A DSensorManager.cpp58 // In this case we will get the packages for the calling UID and pick the
61 // all packages in the UID. The caveat is that the operation may be attributed
67 Vector<String16> packages; local
68 interface_cast<IPermissionController>(binder)->getPackagesForUid(uid, packages);
69 if (!packages.isEmpty()) {
70 opPackageName = packages[0];
72 ALOGE("No packages for calling UID");
83 // 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 DCarrierServiceBindHelper.java355 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/cmds/bmgr/src/com/android/commands/bmgr/
H A DBmgr.java347 String[] packages =
351 filteredPackages = mBmgr.filterAppsEligibleForBackup(packages);
360 private void backupNowPackages(List<String> packages, boolean nonIncrementalBackup) { argument
368 int err = mBmgr.requestBackup(packages.toArray(new String[packages.size()]), observer,
403 "incremental backup for all packages.");
406 System.err.println("Provide only '--all' flag or list of packages.");
410 "incremental backup for " + allPkgs.size() +" requested packages.");
413 System.err.println("Provide '--all' flag or list of packages.");
552 String arg = nextArg(); // sets, transports, packages se
[all...]
/frameworks/base/core/java/android/app/usage/
H A DUsageStatsManager.java210 * Observer id of the registered observer for the group of packages that reached the usage
219 * packages that reached the usage time limit. Included as an extra in the PendingIntent that
227 * Actual usage time in milliseconds for the group of packages that reached the specified time
577 * the sum of usages of apps in the packages array exceeds the {@code timeLimit} specified. The
583 * be multiple groups with common packages and different time limits.
584 * @param packages The list of packages to observe for foreground activity time. Cannot be null
598 public void registerAppUsageObserver(int observerId, @NonNull String[] packages, long timeLimit, argument
601 mService.registerAppUsageObserver(observerId, packages, timeUnit.toMillis(timeLimit),

Completed in 1591 milliseconds

123