Home
last modified time | relevance | path

Searched refs:pkgList (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/am/
DProcessProfileRecord.java247 final PackageList pkgList = mApp.getPkgList(); in onProcessFrozen() local
249 synchronized (pkgList) { in onProcessFrozen()
250 tracker.onProcessFrozen(now, pkgList.getPackageListLocked()); in onProcessFrozen()
260 final PackageList pkgList = mApp.getPkgList(); in onProcessUnfrozen() local
262 synchronized (pkgList) { in onProcessUnfrozen()
263 tracker.onProcessUnfrozen(now, pkgList.getPackageListLocked()); in onProcessUnfrozen()
274 final PackageList pkgList = mApp.getPkgList(); in onProcessActive() local
276 synchronized (pkgList) { in onProcessActive()
279 pkgList.getPackageListLocked()); in onProcessActive()
290 pkgList.forEachPackage((pkgName, holder) -> { in onProcessActive()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageMonitor.java551 String[] pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST); in doHandlePackageEvent() local
552 mAppearingPackages = pkgList; in doHandlePackageEvent()
556 if (pkgList != null) { in doHandlePackageEvent()
557 onPackagesAvailable(pkgList); in doHandlePackageEvent()
558 for (int i=0; i<pkgList.length; i++) { in doHandlePackageEvent()
559 onPackageAppeared(pkgList[i], mChangeType); in doHandlePackageEvent()
563 String[] pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST); in doHandlePackageEvent() local
564 mDisappearingPackages = pkgList; in doHandlePackageEvent()
568 if (pkgList != null) { in doHandlePackageEvent()
569 onPackagesUnavailable(pkgList); in doHandlePackageEvent()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/params/
DAdbBackupParams.java38 boolean compress, boolean doKeyValue, String[] pkgList, in AdbBackupParams() argument
49 packages = pkgList; in AdbBackupParams()
/frameworks/base/services/core/java/com/android/server/crashrecovery/
DCrashRecoveryHelper.java92 final List<VersionedPackage> pkgList = Collections.singletonList(pkg); in registerConnectivityModuleHealthListener()
93 PackageWatchdog.getInstance(mContext).onPackageFailure(pkgList, failureReason); in registerConnectivityModuleHealthListener()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessState.java431 ArrayMap<String, ProcessStateHolder> pkgList) { in onProcessFrozen() argument
435 setCombinedState(combinedState, now, pkgList); in onProcessFrozen()
442 ArrayMap<String, ProcessStateHolder> pkgList) { in onProcessUnfrozen() argument
445 setCombinedState(combinedState, now, pkgList); in onProcessUnfrozen()
457 ArrayMap<String, ProcessStateHolder> pkgList) { in setState() argument
464 setCombinedState(state, now, pkgList); in setState()
471 ArrayMap<String, ProcessStateHolder> pkgList) { in setCombinedState() argument
480 if (pkgList != null) { in setCombinedState()
481 for (int ip=pkgList.size()-1; ip>=0; ip--) { in setCombinedState()
482 pullFixedProc(pkgList, ip).setCombinedStateIdv(state, now); in setCombinedState()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageMonitorCallbackHelperTest.java146 String[] pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST); in testPackageMonitorCallback_SuspendCallbackCalled() local
147 assertThat(pkgList).isNotNull(); in testPackageMonitorCallback_SuspendCallbackCalled()
148 assertThat(pkgList.length).isEqualTo(1); in testPackageMonitorCallback_SuspendCallbackCalled()
149 assertThat(pkgList[0]).isEqualTo(FAKE_PACKAGE_NAME); in testPackageMonitorCallback_SuspendCallbackCalled()
/frameworks/base/services/core/java/com/android/server/notification/
DConditionProviders.java233 public void onPackagesChanged(boolean removingPackage, String[] pkgList, int[] uid) { in onPackagesChanged() argument
237 if (pkgList != null && (pkgList.length > 0)) { in onPackagesChanged()
238 for (String pkgName : pkgList) { in onPackagesChanged()
248 super.onPackagesChanged(removingPackage, pkgList, uid); in onPackagesChanged()
DManagedServices.java997 public void onPackagesChanged(boolean removingPackage, String[] pkgList, int[] uidList) { in onPackagesChanged() argument
1001 + " pkgList=" + (pkgList == null ? null : Arrays.asList(pkgList)) in onPackagesChanged()
1006 if (pkgList != null && (pkgList.length > 0)) { in onPackagesChanged()
1010 int size = Math.min(pkgList.length, uidList.length); in onPackagesChanged()
1012 final String pkg = pkgList[i]; in onPackagesChanged()
1017 for (String pkgName : pkgList) { in onPackagesChanged()
DNotificationManagerService.java1941 String pkgList[] = null;
1947 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
1950 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
1955 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
1965 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
1970 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
2005 pkgList = new String[]{pkgName};
2008 if (pkgList != null && (pkgList.length > 0)) {
2010 for (String pkgName : pkgList) {
2015 hideNotificationsForPackages(pkgList, uidList);
[all …]
DPreferencesHelper.java2625 public boolean onPackagesChanged(boolean removingPackage, int changeUserId, String[] pkgList, in onPackagesChanged() argument
2627 if (pkgList == null || pkgList.length == 0) { in onPackagesChanged()
2633 int size = Math.min(pkgList.length, uidList.length); in onPackagesChanged()
2635 final String pkg = pkgList[i]; in onPackagesChanged()
2644 for (String pkg : pkgList) { in onPackagesChanged()
/frameworks/base/services/core/java/com/android/server/pm/
DSharedUserSetting.java226 final ArrayList<AndroidPackage> pkgList = new ArrayList<>(mPackages.size());
232 pkgList.add(ps.getPkg());
234 return pkgList;
DBroadcastHelper.java776 final ArrayList<String> pkgList = new ArrayList<>(pkgSize); in filterPackages() local
784 pkgList.add(packageName); in filterPackages()
790 pkgList.size() > 0 ? pkgList.toArray(new String[pkgList.size()]) : null, in filterPackages()
996 @NonNull String[] pkgList, in sendPackagesSuspendedOrUnsuspendedForUser() argument
1001 extras.putStringArray(Intent.EXTRA_CHANGED_PACKAGE_LIST, pkgList); in sendPackagesSuspendedOrUnsuspendedForUser()
1064 @NonNull String[] pkgList, in sendDistractingPackagesChanged() argument
1069 extras.putStringArray(Intent.EXTRA_CHANGED_PACKAGE_LIST, pkgList); in sendDistractingPackagesChanged()
DAppStateHelper.java61 return ArrayUtils.contains(info.pkgList, packageName) in isPackageLoaded()
303 for (var pkg : info.pkgList) { in getDependencyPackages()
/frameworks/base/services/core/java/com/android/server/media/
DMediaResourceMonitorService.java88 return proc.pkgList; in getPackageNamesFromPid()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DWindowPerfRunPreconditionBase.java142 for (String pkg : processInfo.pkgList) { in killBackgroundProcesses()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java188 rapInfo.pkgList[0], 0); in isSystemApp()
/frameworks/base/tests/UsbManagerTests/src/com/android/server/usbtest/
DUsbProfileGroupSettingsManagerTest.java151 mRunningAppProcessInfo.pkgList = new String[] { TEST_PACKAGE_NAME }; in setupDefaultConfiguration()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java1566 String pkgList[] = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST); in onReceive() local
1567 if (pkgList == null || pkgList.length == 0) { in onReceive()
1573 for (String pkgName : pkgList) { in onReceive()
/frameworks/base/core/java/android/telephony/
DTelephonyRegistryManager.java1567 List<String> pkgList = List.copyOf(privilegedPackageNames); in notifyCarrierPrivilegesChanged() local
1569 sRegistry.notifyCarrierPrivilegesChanged(logicalSlotIndex, pkgList, uids); in notifyCarrierPrivilegesChanged()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java451 final String pkgList[]; in onPackageBroadcastReceived() local
455 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST); in onPackageBroadcastReceived()
462 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST); in onPackageBroadcastReceived()
465 pkgList = null; in onPackageBroadcastReceived()
477 pkgList = new String[] { pkgName }; in onPackageBroadcastReceived()
482 if ((pkgList == null || pkgList.length == 0) && clearedUid == -1) { in onPackageBroadcastReceived()
499 for (String pkgName : pkgList) { in onPackageBroadcastReceived()
525 for (String pkgName : pkgList) { in onPackageBroadcastReceived()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java4940 String pkgList[] = null; in onReceive() local
4943 pkgList = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES); in onReceive()
4944 for (String packageName : pkgList) { in onReceive()
4994 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST); in onReceive()
5010 pkgList = new String[]{pkg}; in onReceive()
5015 if (pkgList != null && (pkgList.length > 0)) { in onReceive()
5016 for (String pkg : pkgList) { in onReceive()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java2817 boolean includeSystem, boolean compress, boolean doKeyValue, String[] pkgList) { in adbBackup() argument
2831 if (pkgList == null || pkgList.length == 0) { in adbBackup()
2863 + Arrays.toString(pkgList))); in adbBackup()
2871 pkgList, eligibilityRules); in adbBackup()
/frameworks/base/services/core/java/com/android/server/
DPackageWatchdog.java1158 final List<VersionedPackage> pkgList = Collections.singletonList(pkg); in registerConnectivityModuleHealthListener()
1159 onPackageFailure(pkgList, FAILURE_REASON_EXPLICIT_HEALTH_CHECK); in registerConnectivityModuleHealthListener()
/frameworks/base/core/java/android/app/
DActivityManager.java3710 public String[] pkgList; field in ActivityManager.RunningAppProcessInfo
4083 pkgList = pArr; in RunningAppProcessInfo()
4096 dest.writeStringArray(pkgList); in writeToParcel()
4115 pkgList = source.readStringArray(); in readFromParcel()
DApplicationPackageManager.java2281 static void handlePackageBroadcast(int cmd, String[] pkgList, boolean hasPkgInfo) { in handlePackageBroadcast() argument
2286 if (pkgList != null && (pkgList.length > 0)) { in handlePackageBroadcast()
2288 for (String ssp : pkgList) { in handlePackageBroadcast()

12