/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/ |
D | WebViewUpdateServiceTest.java | 69 private void setupWithPackages(WebViewProviderInfo[] packages) { in setupWithPackages() argument 70 setupWithAllParameters(packages, false /* fallbackLogicEnabled */, 1 /* numRelros */, in setupWithPackages() 74 private void setupWithPackagesAndFallbackLogic(WebViewProviderInfo[] packages) { in setupWithPackagesAndFallbackLogic() argument 75 setupWithAllParameters(packages, true /* fallbackLogicEnabled */, 1 /* numRelros */, in setupWithPackagesAndFallbackLogic() 79 private void setupWithPackagesAndRelroCount(WebViewProviderInfo[] packages, int numRelros) { in setupWithPackagesAndRelroCount() argument 80 setupWithAllParameters(packages, false /* fallbackLogicEnabled */, numRelros, in setupWithPackagesAndRelroCount() 84 private void setupWithPackagesNonDebuggable(WebViewProviderInfo[] packages) { in setupWithPackagesNonDebuggable() argument 85 setupWithAllParameters(packages, false /* fallbackLogicEnabled */, 1 /* numRelros */, in setupWithPackagesNonDebuggable() 89 private void setupWithPackagesAndMultiProcess(WebViewProviderInfo[] packages, in setupWithPackagesAndMultiProcess() argument 91 setupWithAllParameters(packages, false /* fallbackLogicEnabled */, 1 /* numRelros */, in setupWithPackagesAndMultiProcess() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SharedUserSetting.java | 49 final ArraySet<PackageSetting> packages = new ArraySet<PackageSetting>(); field in SharedUserSetting 76 if (!packages.remove(packageSetting)) { in removePackage() 82 for (PackageSetting ps : packages) { in removePackage() 89 for (PackageSetting ps : packages) { in removePackage() 100 if ((packages.size() == 0) && (packageSetting.pkg != null)) { in addPackage() 103 if (packages.add(packageSetting)) { in addPackage() 110 if (packages == null || packages.size() == 0) { in getPackages() 113 final ArrayList<PackageParser.Package> pkgList = new ArrayList<>(packages.size()); in getPackages() 114 for (PackageSetting ps : packages) { in getPackages() 154 for (PackageSetting ps : packages) { in getNotInstalledUserIds() [all …]
|
D | PackageUsage.java | 55 protected void writeInternal(Map<String, PackageParser.Package> packages) { in writeInternal() argument 69 for (PackageParser.Package pkg : packages.values()) { in writeInternal() 93 protected void readInternal(Map<String, PackageParser.Package> packages) { in readInternal() argument 104 readVersion1LP(packages, in, sb); in readInternal() 106 readVersion0LP(packages, in, sb, firstLine); in readInternal() 117 private void readVersion0LP(Map<String, PackageParser.Package> packages, InputStream in, in readVersion0LP() argument 131 PackageParser.Package pkg = packages.get(packageName); in readVersion0LP() 145 private void readVersion1LP(Map<String, PackageParser.Package> packages, InputStream in, in readVersion1LP() argument 157 PackageParser.Package pkg = packages.get(packageName); in readVersion1LP()
|
/frameworks/base/libs/androidfw/tests/ |
D | LoadedArsc_test.cpp | 103 const auto& packages = loaded_arsc->GetPackages(); in TEST() local 104 ASSERT_THAT(packages, SizeIs(1u)); in TEST() 105 EXPECT_TRUE(packages[0]->IsDynamic()); in TEST() 106 EXPECT_THAT(packages[0]->GetPackageName(), StrEq("com.android.lib_one")); in TEST() 107 EXPECT_THAT(packages[0]->GetPackageId(), Eq(0)); in TEST() 109 const auto& dynamic_pkg_map = packages[0]->GetDynamicPackageMap(); in TEST() 123 const auto& packages = loaded_arsc->GetPackages(); in TEST() local 124 ASSERT_THAT(packages, SizeIs(1u)); in TEST() 125 EXPECT_FALSE(packages[0]->IsDynamic()); in TEST() 126 EXPECT_THAT(packages[0]->GetPackageName(), StrEq("com.android.libclient")); in TEST() [all …]
|
/frameworks/base/packages/SystemUI/docs/ |
D | plugin_hooks.md | 3 Expected interface: [OverlayPlugin](/packages/SystemUI/plugin/src/com/android/systemui/plugins/Over… 8 Expected interface: [QS](/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/QS.java) 15 Expected interface: [QSFactory](/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/QSFac… 20 Expected interface: [NavBarButtonProvider](/packages/SystemUI/plugin/src/com/android/systemui/plugi… 25 Expected interface: [NavGesture](/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusb… 30 Expected interface: [IntentButtonProvider](/packages/SystemUI/plugin/src/com/android/systemui/plugi… 35 Expected interface: [IntentButtonProvider](/packages/SystemUI/plugin/src/com/android/systemui/plugi… 40 Expected interface: [GlobalActions](/packages/SystemUI/plugin/src/com/android/systemui/plugins/Glob… 45 Expected interface: [VolumeDialog](/packages/SystemUI/plugin/src/com/android/systemui/plugins/Volum… 50 Expected interface: [NotificationSwipeActionHelper](/packages/SystemUI/plugin/src/com/android/syste… [all …]
|
/frameworks/base/packages/SystemUI/ |
D | README.md | 75 ### [com.android.systemui.Dependency](/packages/SystemUI/src/com/android/systemui/Dependency.java) 79 ### [com.android.systemui.util.NotificationChannels](/packages/SystemUI/src/com/android/systemui/ut… 83 ### [com.android.systemui.statusbar.CommandQueue$CommandQueueStart](/packages/SystemUI/src/com/andr… 88 ### [com.android.systemui.keyguard.KeyguardViewMediator](/packages/SystemUI/src/com/android/systemu… 92 ### [com.android.systemui.recents.Recents](/packages/SystemUI/src/com/android/systemui/recents/Rece… 97 ### [com.android.systemui.volume.VolumeUI](/packages/SystemUI/src/com/android/systemui/volume/Volum… 102 ### [com.android.systemui.stackdivider.Divider](/packages/SystemUI/src/com/android/systemui/stackdi… 107 ### [com.android.systemui.SystemBars](/packages/SystemUI/src/com/android/systemui/SystemBars.java) 113 ### [com.android.systemui.status.phone.StatusBar](/packages/SystemUI/src/com/android/systemui/statu… 120 ### [com.android.systemui.usb.StorageNotification](/packages/SystemUI/src/com/android/systemui/usb/… [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | PackageWatchdog.java | 195 packages -> onSupportedPackages(packages), in onPackagesReady() 246 List<MonitoredPackage> packages = new ArrayList<>(); in startObservingHealth() local 249 packages.add(new MonitoredPackage(packageNames.get(i), durationMs, false)); in startObservingHealth() 264 new ObserverInternal(observer.getName(), packages)); in startObservingHealth() local 268 oldObserver.updatePackagesLocked(packages); in startObservingHealth() 322 public void onPackageFailure(List<VersionedPackage> packages, in onPackageFailure() argument 330 for (int pIndex = 0; pIndex < packages.size(); pIndex++) { in onPackageFailure() 331 VersionedPackage versionedPackage = packages.get(pIndex); in onPackageFailure() 456 Set<String> packages = null; in syncRequests() local 459 packages = getPackagesPendingHealthChecksLocked(); in syncRequests() [all …]
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureMetricsLogger.java | 62 @Nullable List<String> packages, @Nullable List<ComponentName> activities) { in writeSetWhitelistEvent() argument 65 if (packages != null && packages.size() > 0) { in writeSetWhitelistEvent() 66 final int size = packages.size(); in writeSetWhitelistEvent() 67 stringBuilder.append(packages.get(0)); in writeSetWhitelistEvent() 70 stringBuilder.append(packages.get(i)); in writeSetWhitelistEvent()
|
/frameworks/base/core/java/android/app/backup/ |
D | RestoreSession.java | 155 @NonNull Set<String> packages, @Nullable BackupManagerMonitor monitor) { in restorePackages() argument 166 err = mBinder.restorePackages(token, mObserver, packages.toArray(new String[] {}), in restorePackages() 192 @NonNull Set<String> packages) { in restorePackages() argument 193 return restorePackages(token, observer, packages, null); in restorePackages() 221 String[] packages) { in restoreSome() argument 222 return restorePackages(token, observer, new HashSet<>(Arrays.asList(packages)), monitor); in restoreSome() 247 public int restoreSome(long token, RestoreObserver observer, String[] packages) { in restoreSome() argument 248 return restoreSome(token, observer, null, packages); in restoreSome()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/ |
D | WhitelistHelperTest.java | 70 final ArraySet<String> packages = new ArraySet<>(); in testSetWhitelist_nullPackage() local 71 packages.add(null); in testSetWhitelist_nullPackage() 72 mWhitelistHelper.setWhitelist(packages, null); in testSetWhitelist_nullPackage() 113 final ArraySet<String> packages = new ArraySet<>(); in testIsWhitelisted_packageWhitelisted() local 114 packages.add(mPackage1); in testIsWhitelisted_packageWhitelisted() 115 mWhitelistHelper.setWhitelist(packages, null); in testIsWhitelisted_packageWhitelisted()
|
/frameworks/native/libs/binder/ |
D | IPermissionController.cpp | 63 virtual void getPackagesForUid(const uid_t uid, Vector<String16>& packages) in getPackagesForUid() argument 78 packages.push(reply.readString16()); in getPackagesForUid() 140 Vector<String16> packages; in onTransact() local 141 getPackagesForUid(uid, packages); in onTransact() 143 size_t size = packages.size(); in onTransact() 146 reply->writeString16(packages[i]); in onTransact()
|
/frameworks/base/core/java/android/service/watchdog/ |
D | ExplicitHealthCheckService.java | 304 List<PackageConfig> packages = in getSupportedPackages() local 306 Objects.requireNonNull(packages, "Supported package list must be non-null"); in getSupportedPackages() 308 bundle.putParcelableArrayList(EXTRA_SUPPORTED_PACKAGES, new ArrayList<>(packages)); in getSupportedPackages() 316 List<String> packages = in getRequestedPackages() local 318 Objects.requireNonNull(packages, "Requested package list must be non-null"); in getRequestedPackages() 320 bundle.putStringArrayList(EXTRA_REQUESTED_PACKAGES, new ArrayList<>(packages)); in getRequestedPackages()
|
/frameworks/base/telephony/java/android/telephony/ |
D | AnomalyReporter.java | 131 List<ResolveInfo> packages = pm.queryBroadcastReceivers( in initialize() 136 if (packages == null || packages.isEmpty()) return; in initialize() 137 if (packages.size() > 1) { in initialize() 141 for (ResolveInfo r : packages) { in initialize()
|
/frameworks/base/cmds/bu/src/com/android/commands/bu/ |
D | Backup.java | 84 ArrayList<String> packages = new ArrayList<String>(); in doBackup() local 137 packages.add(arg); in doBackup() 141 if (doEverything && packages.size() > 0) { in doBackup() 145 if (!doEverything && !saveShared && packages.size() == 0) { in doBackup() 153 String[] packArray = new String[packages.size()]; in doBackup() 155 allIncludesSystem, doCompress, doKeyValue, packages.toArray(packArray)); in doBackup()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | ProcessedPackagesJournalTest.java | 142 HashSet<String> packages = new HashSet<>(); in readJournalPackages() local 147 packages.add(dis.readUTF()); in readJournalPackages() 153 return packages; in readJournalPackages() 156 private void writePermanentJournalPackages(Set<String> packages) throws Exception { in writePermanentJournalPackages() argument 161 for (String packageName : packages) { in writePermanentJournalPackages()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | BackupManagerServiceTest.java | 880 String[] packages = {TEST_PACKAGE}; in testFilterAppsEligibleForBackup_onRegisteredUser_callsMethodForUser() local 882 backupManagerService.filterAppsEligibleForBackup(mUserOneId, packages); in testFilterAppsEligibleForBackup_onRegisteredUser_callsMethodForUser() 884 verify(mUserOneService).filterAppsEligibleForBackup(packages); in testFilterAppsEligibleForBackup_onRegisteredUser_callsMethodForUser() 894 String[] packages = {TEST_PACKAGE}; in testFilterAppsEligibleForBackup_onUnknownUser_doesNotPropagateCall() local 896 backupManagerService.filterAppsEligibleForBackup(mUserTwoId, packages); in testFilterAppsEligibleForBackup_onUnknownUser_doesNotPropagateCall() 898 verify(mUserOneService, never()).filterAppsEligibleForBackup(packages); in testFilterAppsEligibleForBackup_onUnknownUser_doesNotPropagateCall() 963 String[] packages = {TEST_PACKAGE}; in testRequestBackup_withoutPermission_throwsSecurityExceptionForNonCallingUser() local 971 mUserTwoId, packages, observer, monitor, 0)); in testRequestBackup_withoutPermission_throwsSecurityExceptionForNonCallingUser() 983 String[] packages = {TEST_PACKAGE}; in testRequestBackup_withPermission_propagatesForNonCallingUser() local 988 backupManagerService.requestBackup(mUserTwoId, packages, observer, monitor, /* flags */ 0); in testRequestBackup_withPermission_propagatesForNonCallingUser() [all …]
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 53 Vector<String16> packages; in resolveCallingPackage() local 54 permissionController.getPackagesForUid(uid, packages); in resolveCallingPackage() 55 if (packages.isEmpty()) { in resolveCallingPackage() 59 return packages[0]; in resolveCallingPackage() 294 Packages& packages = mDebugLog[uid]; in doIsAllowed() local 295 packages.resize(packageNames.size()); // Reuse all objects in doIsAllowed() 297 begin(packages), [] (auto& name, bool isAllowed) -> Package { in doIsAllowed()
|
/frameworks/base/services/tests/servicestests/assets/shortcut/ |
D | dumpsys_expected.txt | 22 "packages": [ 64 "packages": [ 91 "packages": [
|
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/ |
D | RollbackTest.java | 107 Uninstall.packages(TestApp.A); in testBasic() 188 Uninstall.packages(TestApp.A); in testAvailableRollbackPersistence() 193 Uninstall.packages(TestApp.B); in testAvailableRollbackPersistence() 245 Uninstall.packages(TestApp.A, TestApp.B); in testAvailableMultiPackageRollbackPersistence() 324 Uninstall.packages(TestApp.A); in testRecentlyCommittedRollbackPersistence() 387 Uninstall.packages(TestApp.A); in testRollbackExpiresAfterLifetime() 452 Uninstall.packages(TestApp.A); in testTimeChangeDoesNotAffectLifetime() 460 Uninstall.packages(TestApp.B); in testTimeChangeDoesNotAffectLifetime() 523 Uninstall.packages(TestApp.A); in testRollbackExpiration() 555 Uninstall.packages(TestApp.A); in testUserDataRollback() [all …]
|
/frameworks/base/startop/scripts/app_startup/ |
D | app_startup_runner_test.py | 127 assert parse_args("--package xyz --readahead warm") == ad(packages=['xyz'], readaheads=['warm']) 128 assert parse_args("-p xyz -r warm") == ad(packages=['xyz'], readaheads=['warm']) 130 assert parse_args("-p xyz -r warm -s") == ad(packages=['xyz'], readaheads=['warm'], simulate=True) 131 …assert parse_args("-p xyz -r warm --simulate") == ad(packages=['xyz'], readaheads=['warm'], simula…
|
/frameworks/base/packages/SystemUI/tools/lint/ |
D | run_lint.sh | 9 git show --name-only --pretty=format: $2 | grep packages/SystemUI/ > /dev/null 36 --config ${REPO_ROOT}/frameworks/base/packages/SystemUI/tools/lint/lint.xml \ 38 --baseline ${REPO_ROOT}/frameworks/base/packages/SystemUI/tools/lint/baseline.xml \
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsActiveWatcherTest.java | 130 List<AppOpsManager.PackageOps> packages in isCameraOn() local 133 if (packages != null) { in isCameraOn() 134 final int numPackages = packages.size(); in isCameraOn() 136 AppOpsManager.PackageOps packageOp = packages.get(packageInd); in isCameraOn()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AppIdToPackageMap.java | 43 List<PackageInfo> packages; in getSnapshot() local 45 packages = AppGlobals.getPackageManager() in getSnapshot() 54 for (PackageInfo pkg : packages) { in getSnapshot()
|
/frameworks/base/packages/CtsShim/build/ |
D | README | 20 frameworks/base/packages/CtsShim/apk/arm 22 frameworks/base/packages/CtsShim/apk/arm 34 frameworks/base/packages/CtsShim/apk/x86 36 frameworks/base/packages/CtsShim/apk/x86
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | DataChangedJournal.java | 93 List<String> packages = new ArrayList<>(); in getPackages() local 94 forEach(packages::add); in getPackages() 95 return packages; in getPackages()
|