Home
last modified time | relevance | path

Searched refs:packages (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DWebViewUpdateServiceTest.java69 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/
DSharedUserSetting.java52 final ArraySet<PackageSetting> packages = new ArraySet<>(); field in SharedUserSetting
100 if (!packages.remove(packageSetting)) { in removePackage()
106 for (PackageSetting ps : packages) { in removePackage()
113 for (PackageSetting ps : packages) { in removePackage()
126 if ((packages.size() == 0) && (packageSetting.pkg != null)) { in addPackage()
129 if (packages.add(packageSetting)) { in addPackage()
139 if (packages == null || packages.size() == 0) { in getPackages()
142 final ArrayList<AndroidPackage> pkgList = new ArrayList<>(packages.size()); in getPackages()
143 for (PackageSetting ps : packages) { in getPackages()
163 if (packages == null || packages.size() == 0) { in fixSeInfoLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/
DPackageWatchdog.java241 packages -> onSupportedPackages(packages), in onPackagesReady()
303 List<MonitoredPackage> packages = new ArrayList<>(); in startObservingHealth() local
308 packages.add(pkg); in startObservingHealth()
312 if (packages.isEmpty()) { in startObservingHealth()
329 new ObserverInternal(observer.getName(), packages)); in startObservingHealth() local
333 oldObserver.updatePackagesLocked(packages); in startObservingHealth()
367 public void onPackageFailure(List<VersionedPackage> packages, in onPackageFailure() argument
369 if (packages == null) { in onPackageFailure()
381 handleFailureImmediately(packages, failureReason); in onPackageFailure()
383 for (int pIndex = 0; pIndex < packages.size(); pIndex++) { in onPackageFailure()
[all …]
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp106 const auto& packages = loaded_arsc->GetPackages(); in TEST() local
107 ASSERT_THAT(packages, SizeIs(1u)); in TEST()
108 EXPECT_TRUE(packages[0]->IsDynamic()); in TEST()
109 EXPECT_THAT(packages[0]->GetPackageName(), StrEq("com.android.lib_one")); in TEST()
110 EXPECT_THAT(packages[0]->GetPackageId(), Eq(0)); in TEST()
112 const auto& dynamic_pkg_map = packages[0]->GetDynamicPackageMap(); in TEST()
126 const auto& packages = loaded_arsc->GetPackages(); in TEST() local
127 ASSERT_THAT(packages, SizeIs(1u)); in TEST()
128 EXPECT_FALSE(packages[0]->IsDynamic()); in TEST()
129 EXPECT_THAT(packages[0]->GetPackageName(), StrEq("com.android.libclient")); in TEST()
[all …]
/frameworks/base/packages/SystemUI/docs/
Dplugin_hooks.md3 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/
DREADME.md69 ### [com.android.systemui.Dependency](/packages/SystemUI/src/com/android/systemui/Dependency.java)
73 ### [com.android.systemui.util.NotificationChannels](/packages/SystemUI/src/com/android/systemui/ut…
77 ### [com.android.systemui.keyguard.KeyguardViewMediator](/packages/SystemUI/src/com/android/systemu…
81 ### [com.android.systemui.recents.Recents](/packages/SystemUI/src/com/android/systemui/recents/Rece…
86 ### [com.android.systemui.volume.VolumeUI](/packages/SystemUI/src/com/android/systemui/volume/Volum…
91 ### [com.android.systemui.stackdivider.Divider](/packages/SystemUI/src/com/android/systemui/stackdi…
96 ### [com.android.systemui.status.phone.StatusBar](/packages/SystemUI/src/com/android/systemui/statu…
103 ### [com.android.systemui.usb.StorageNotification](/packages/SystemUI/src/com/android/systemui/usb/…
107 ### [com.android.systemui.power.PowerUI](/packages/SystemUI/src/com/android/systemui/power/PowerUI.…
111 ### [com.android.systemui.media.RingtonePlayer](/packages/SystemUI/src/com/android/systemui/media/R…
[all …]
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureMetricsLogger.java63 @Nullable List<String> packages, @Nullable List<ComponentName> activities) { in writeSetWhitelistEvent() argument
66 if (packages != null && packages.size() > 0) { in writeSetWhitelistEvent()
67 final int size = packages.size(); in writeSetWhitelistEvent()
68 stringBuilder.append(packages.get(0)); in writeSetWhitelistEvent()
71 stringBuilder.append(packages.get(i)); in writeSetWhitelistEvent()
/frameworks/base/core/java/android/app/backup/
DRestoreSession.java155 @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/
DWhitelistHelperTest.java70 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/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/
DTvUserManager.java75 List<String> packages = new ArrayList<>(); in filterDisallowedPackages() local
78 Collections.addAll(packages, disallowedPackages); in filterDisallowedPackages()
81 packages.addAll(mDisallowedSystemApps); in filterDisallowedPackages()
82 packages.removeAll(mRequiredSystemApps); in filterDisallowedPackages()
84 return packages.toArray(new String[0]); in filterDisallowedPackages()
/frameworks/native/libs/binder/
DIPermissionController.cpp63 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/telephony/java/android/telephony/
DAnomalyReporter.java131 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/startop/scripts/app_startup/
Dapp_startup_runner_test.py128 assert parse_args("--package xyz --readahead warm") == ad(packages=['xyz'],
130 assert parse_args("-p xyz -r warm") == ad(packages=['xyz'],
133 assert parse_args("-p xyz -r warm -s") == ad(packages=['xyz'],
136 assert parse_args("-p xyz -r warm --simulate") == ad(packages=['xyz'],
/frameworks/base/core/java/android/service/watchdog/
DExplicitHealthCheckService.java319 List<PackageConfig> packages = in getSupportedPackages() local
321 Objects.requireNonNull(packages, "Supported package list must be non-null"); in getSupportedPackages()
323 bundle.putParcelableArrayList(EXTRA_SUPPORTED_PACKAGES, new ArrayList<>(packages)); in getSupportedPackages()
331 List<String> packages = in getRequestedPackages() local
333 Objects.requireNonNull(packages, "Requested package list must be non-null"); in getRequestedPackages()
335 bundle.putStringArrayList(EXTRA_REQUESTED_PACKAGES, new ArrayList<>(packages)); in getRequestedPackages()
/frameworks/base/cmds/bu/src/com/android/commands/bu/
DBackup.java84 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/
DProcessedPackagesJournalTest.java142 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/tests/servicestests/assets/shortcut/
Ddumpsys_expected.txt22 "packages": [
64 "packages": [
91 "packages": [
/frameworks/base/packages/SystemUI/tools/lint/
Drun_lint.sh9 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/core/java/com/android/internal/os/
DAppIdToPackageMap.java43 List<PackageInfo> packages; in getSnapshot() local
45 packages = AppGlobals.getPackageManager() in getSnapshot()
54 for (PackageInfo pkg : packages) { in getSnapshot()
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DRollbackTest.java137 Uninstall.packages(TestApp.A); in testBasic()
219 Uninstall.packages(TestApp.A); in testAvailableRollbackPersistence()
224 Uninstall.packages(TestApp.B); in testAvailableRollbackPersistence()
276 Uninstall.packages(TestApp.A, TestApp.B); in testAvailableMultiPackageRollbackPersistence()
355 Uninstall.packages(TestApp.A); in testRecentlyCommittedRollbackPersistence()
415 Uninstall.packages(TestApp.A); in testRollbackExpiresAfterLifetime()
470 Uninstall.packages(TestApp.A); in testRollbackExpiresWhenLifetimeChanges()
524 Uninstall.packages(TestApp.A); in testTimeChangeDoesNotAffectLifetime()
532 Uninstall.packages(TestApp.B); in testTimeChangeDoesNotAffectLifetime()
596 Uninstall.packages(TestApp.A); in testRollbackExpiration()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerServiceRoboTest.java782 String[] packages = {TEST_PACKAGE}; in testFilterAppsEligibleForBackup_onRegisteredUser_callsMethodForUser() local
784 backupManagerService.filterAppsEligibleForBackup(mUserOneId, packages); in testFilterAppsEligibleForBackup_onRegisteredUser_callsMethodForUser()
786 verify(mUserOneService).filterAppsEligibleForBackup(packages); in testFilterAppsEligibleForBackup_onRegisteredUser_callsMethodForUser()
796 String[] packages = {TEST_PACKAGE}; in testFilterAppsEligibleForBackup_onUnknownUser_doesNotPropagateCall() local
798 backupManagerService.filterAppsEligibleForBackup(mUserTwoId, packages); in testFilterAppsEligibleForBackup_onUnknownUser_doesNotPropagateCall()
800 verify(mUserOneService, never()).filterAppsEligibleForBackup(packages); in testFilterAppsEligibleForBackup_onUnknownUser_doesNotPropagateCall()
866 String[] packages = {TEST_PACKAGE}; in testRequestBackup_withoutPermission_throwsSecurityExceptionForNonCallingUser() local
874 mUserTwoId, packages, observer, monitor, 0)); in testRequestBackup_withoutPermission_throwsSecurityExceptionForNonCallingUser()
887 String[] packages = {TEST_PACKAGE}; in testRequestBackup_withPermission_propagatesForNonCallingUser() local
892 backupManagerService.requestBackup(mUserTwoId, packages, observer, monitor, /* flags */ 0); in testRequestBackup_withPermission_propagatesForNonCallingUser()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DDataChangedJournal.java95 List<String> packages = new ArrayList<>(); in getPackages() local
96 forEach(packages::add); in getPackages()
97 return packages; in getPackages()
/frameworks/base/packages/CtsShim/build/
DREADME20 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/packages/SystemUI/src/com/android/systemui/statusbar/tv/micdisclosure/
DMicrophoneForegroundServicesObserver.java118 final String[] packages = mPidToPackages.removeReturnOld(pid); in onProcessDied() local
119 if (packages == null) { in onProcessDied()
124 for (int index = packages.length - 1; index >= 0; index--) { in onProcessDied()
125 final String packageName = packages[index]; in onProcessDied()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsActiveWatcherTest.java146 List<AppOpsManager.PackageOps> packages in isCameraOn() local
149 if (packages != null) { in isCameraOn()
150 final int numPackages = packages.size(); in isCameraOn()
152 AppOpsManager.PackageOps packageOp = packages.get(packageInd); in isCameraOn()

12345678910>>...12