Home
last modified time | relevance | path

Searched refs:hasForegroundServices (Results 1 – 19 of 19) sorted by relevance

/aosp14/frameworks/base/core/java/android/app/
H A DProcessMemoryState.java128 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 DApplicationExitInfo.java1112 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 DProcessServiceRecord.java159 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 DAppFGSTracker.java239 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 DOomAdjuster.java1437 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 DAppRestrictionController.java1946 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 DUidRecord.java269 boolean hasForegroundServices() { in hasForegroundServices() method in UidRecord
H A DBaseAppStateTimeSlotEventsTracker.java289 if (mTracker.mAppRestrictionController.hasForegroundServices(packageName, uid)) { in shouldExempt()
H A DProcessRecord.java1135 return mServices.hasForegroundServices(); in isInterestingToUserLocked()
H A DAppExitInfoTracker.java935 info.hasForegroundServices()); in performLogToStatsdLocked()
H A DProcessList.java4463 } else if (psr.hasForegroundServices()) {
4567 } else if (psr.hasForegroundServices()) {
H A DActivityManagerService.java6396 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 DWindowProcessController.java442 public void setHasForegroundServices(boolean hasForegroundServices) { in setHasForegroundServices() argument
443 mHasForegroundServices = hasForegroundServices; in setHasForegroundServices()
446 boolean hasForegroundServices() { in hasForegroundServices() method in WindowProcessController
H A DActivityMetricsLogger.java1385 callerApp.hasForegroundServices() ? 1 : 0); in logAbortedBgActivityStart()
H A DActivityTaskSupervisor.java1943 if (proc.hasForegroundServices()) { in killTaskProcessesIfPossible()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DMockingOomAdjusterTests.java2579 boolean hasClientActivities, boolean hasForegroundServices, int fgServiceTypes, in makeProcessRecord() argument
2630 services.setHasForegroundServices(hasForegroundServices, fgServiceTypes, in makeProcessRecord()
/aosp14/frameworks/base/services/
H A Dart-profile-boot508 Lcom/android/server/am/ProcessRecord;->hasForegroundServices()Z
H A Dart-profile1197 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 DStatsPullAtomService.java2357 gpuMemPerPid.get(managedProcess.pid), managedProcess.hasForegroundServices,