/aosp14/frameworks/base/core/java/android/app/ |
H A D | ProcessMemoryState.java | 128 public final boolean hasForegroundServices; field in ProcessMemoryState 145 boolean hasForegroundServices, int hostingComponentTypes, in ProcessMemoryState() argument 151 this.hasForegroundServices = hasForegroundServices; in ProcessMemoryState() 161 hasForegroundServices = in.readInt() == 1; in ProcessMemoryState() 189 parcel.writeInt(hasForegroundServices ? 1 : 0); in writeToParcel()
|
H A D | ApplicationExitInfo.java | 1112 public boolean hasForegroundServices() { in hasForegroundServices() method in ApplicationExitInfo 1121 public void setHasForegroundServices(boolean hasForegroundServices) { in setHasForegroundServices() argument 1122 mHasForegroundServices = hasForegroundServices; in setHasForegroundServices()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessServiceRecord.java | 159 void setHasForegroundServices(boolean hasForegroundServices, int fgServiceTypes, in setHasForegroundServices() argument 164 && hasForegroundServices != ((fgServiceTypes != 0) || hasTypeNoneFgs)) { in setHasForegroundServices() 168 mHasForegroundServices = hasForegroundServices; in setHasForegroundServices() 171 mApp.getWindowProcessController().setHasForegroundServices(hasForegroundServices); in setHasForegroundServices() 172 if (hasForegroundServices) { in setHasForegroundServices() 182 boolean hasForegroundServices() { in hasForegroundServices() method in ProcessServiceRecord 186 void setHasReportedForegroundServices(boolean hasForegroundServices) { in setHasReportedForegroundServices() argument 187 mRepHasForegroundServices = hasForegroundServices; in setHasReportedForegroundServices()
|
H A D | AppFGSTracker.java | 239 longRunningFGSGone = wasLongRunning && !pkg.hasForegroundServices(); in handleForegroundServicesChanged() 371 if (!pkg.hasForegroundServices() || pkg.isLongRunning()) { in scheduleDurationCheckLocked() 409 if (pkg.hasForegroundServices() && !pkg.isLongRunning()) { in checkLongRunningFgs() 527 boolean hasForegroundServices(String packageName, int uid) { in hasForegroundServices() method in AppFGSTracker 530 return pkg != null && pkg.hasForegroundServices(); in hasForegroundServices() 534 boolean hasForegroundServices(int uid) { in hasForegroundServices() method in AppFGSTracker 541 if (pkg.hasForegroundServices()) { in hasForegroundServices() 666 if (!startFgs && !hasForegroundServices()) { in addEvent() 690 if (serviceTypes == mForegroundServiceTypes || !hasForegroundServices()) { in setForegroundServiceType() 745 boolean hasForegroundServices() { in hasForegroundServices() method in AppFGSTracker.PackageDurations
|
H A D | OomAdjuster.java | 1437 if (app.mServices.hasForegroundServices()) { in updateAppUidRecLSP() 1543 if (uidRec.hasForegroundServices()) { in updateUidsLSP() 1940 final boolean hasForegroundServices = psr.hasForegroundServices(); in computeOomAdjLSP() 1942 final boolean hasShortForegroundServices = hasForegroundServices in computeOomAdjLSP() 1952 if (hasForegroundServices && hasNonShortForegroundServices) { in computeOomAdjLSP() 1998 if (psr.hasForegroundServices() && adj > PERCEPTIBLE_RECENT_FOREGROUND_APP_ADJ in computeOomAdjLSP() 2807 if (psr.hasForegroundServices()) { in computeOomAdjLSP()
|
H A D | AppRestrictionController.java | 1946 boolean hasForegroundServices(String packageName, int uid) { in hasForegroundServices() method in AppRestrictionController 1947 return mInjector.getAppFGSTracker().hasForegroundServices(packageName, uid); in hasForegroundServices() 1953 boolean hasForegroundServices(int uid) { in hasForegroundServices() method in AppRestrictionController 1954 return mInjector.getAppFGSTracker().hasForegroundServices(uid); in hasForegroundServices() 2444 final boolean hasForegroundServices = in postRequestBgRestrictedIfNecessary() 2445 mBgController.hasForegroundServices(packageName, uid); in postRequestBgRestrictedIfNecessary() 2451 if (hasForegroundServices && hasForegroundServiceNotifications) { in postRequestBgRestrictedIfNecessary() 2460 && hasForegroundServices) { in postRequestBgRestrictedIfNecessary()
|
H A D | UidRecord.java | 269 boolean hasForegroundServices() { in hasForegroundServices() method in UidRecord
|
H A D | BaseAppStateTimeSlotEventsTracker.java | 289 if (mTracker.mAppRestrictionController.hasForegroundServices(packageName, uid)) { in shouldExempt()
|
H A D | ProcessRecord.java | 1135 return mServices.hasForegroundServices(); in isInterestingToUserLocked()
|
H A D | AppExitInfoTracker.java | 935 info.hasForegroundServices()); in performLogToStatsdLocked()
|
H A D | ProcessList.java | 4463 } else if (psr.hasForegroundServices()) { 4567 } else if (psr.hasForegroundServices()) {
|
H A D | ActivityManagerService.java | 6396 if (psr != null && psr.hasForegroundServices()) { in isProcessInStateToScheduleUserInitiatedJobsLocked() 16497 final boolean foregroundStateChanged = isForeground != psr.hasForegroundServices(); in updateProcessForegroundLocked() 17968 r.mServices.hasForegroundServices(), in getMemoryStateForProcesses()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowProcessController.java | 442 public void setHasForegroundServices(boolean hasForegroundServices) { in setHasForegroundServices() argument 443 mHasForegroundServices = hasForegroundServices; in setHasForegroundServices() 446 boolean hasForegroundServices() { in hasForegroundServices() method in WindowProcessController
|
H A D | ActivityMetricsLogger.java | 1385 callerApp.hasForegroundServices() ? 1 : 0); in logAbortedBgActivityStart()
|
H A D | ActivityTaskSupervisor.java | 1943 if (proc.hasForegroundServices()) { in killTaskProcessesIfPossible()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
H A D | MockingOomAdjusterTests.java | 2579 boolean hasClientActivities, boolean hasForegroundServices, int fgServiceTypes, in makeProcessRecord() argument 2630 services.setHasForegroundServices(hasForegroundServices, fgServiceTypes, in makeProcessRecord()
|
/aosp14/frameworks/base/services/ |
H A D | art-profile-boot | 508 Lcom/android/server/am/ProcessRecord;->hasForegroundServices()Z
|
H A D | art-profile | 1197 HSPLcom/android/server/am/AppFGSTracker;->hasForegroundServices(Ljava/lang/String;I)Z+]Lcom/android… 1317 HSPLcom/android/server/am/AppRestrictionController;->hasForegroundServices(Ljava/lang/String;I)Z 2159 HSPLcom/android/server/am/ProcessServiceRecord;->hasForegroundServices()Z
|
/aosp14/frameworks/base/services/core/java/com/android/server/stats/pull/ |
H A D | StatsPullAtomService.java | 2357 gpuMemPerPid.get(managedProcess.pid), managedProcess.hasForegroundServices,
|