Home
last modified time | relevance | path

Searched refs:isForeground (Results 1 – 25 of 29) sorted by relevance

12

/aosp12/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
H A DVoicemailErrorManager.java64 private boolean isForeground; field in VoicemailErrorManager
149 isForeground = true; in onResume()
156 isForeground = false; in onPause()
176 if (!isForeground) { in fetchStatus()
/aosp12/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/
H A DClientProfile.java126 public void setForeground(boolean isForeground) { in setForeground() argument
127 mIsForeground = isForeground; in setForeground()
133 public boolean isForeground() { in isForeground() method in ClientProfile
H A DTunerResourceManagerService.java512 getClientPriority(profile.useCase, clientProfile.isForeground())); in registerClientProfileInternal()
974 if (requestProfile.isForeground() == currentIsForeground) { in clientPriorityUpdateOnRequest()
1074 protected int getClientPriority(int useCase, boolean isForeground) { in getClientPriority() argument
1077 + ", isForeground=" + isForeground + ")"); in getClientPriority()
1080 if (isForeground) { in getClientPriority()
/aosp12/frameworks/base/services/core/java/com/android/server/location/injector/
H A DSystemAppForegroundHelper.java58 boolean foreground = isForeground(importance); in onAppForegroundChanged()
68 return isForeground(mActivityManager.getUidImportance(uid)); in isAppForeground()
H A DAppForegroundHelper.java45 protected static boolean isForeground(@Importance int importance) { in isForeground() method in AppForegroundHelper
/aosp12/frameworks/base/services/core/java/com/android/server/location/gnss/
H A DGnssStatusProvider.java91 null, registration.isForeground()); in onRegistrationAdded()
106 registration.isForeground()); in onRegistrationRemoved()
H A DGnssMeasurementsProvider.java193 null, registration.isForeground()); in onRegistrationAdded()
207 null, registration.isForeground()); in onRegistrationRemoved()
H A DGnssListenerMultiplexer.java90 public boolean isForeground() { in isForeground() method in GnssListenerMultiplexer.GnssListenerRegistration
285 && (registration.isForeground() || isBackgroundRestrictionExempt(identity)) in isActive()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DNotificationGroup.java227 boolean isForeground = in isDismissible()
230 if (isForeground || notification.getStatusBarNotification().isOngoing()) { in isDismissible()
H A DPreprocessingManager.java243 boolean isForeground = in isLessImportantForegroundNotification()
247 if (!isForeground) { in isLessImportantForegroundNotification()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
H A DProfileGridRecyclerView.java151 boolean isForeground = fgUserId == userInfo.id; in createProfileRecords()
153 if (!isForeground && userInfo.isGuest()) { in createProfileRecords()
158 ProfileRecord record = new ProfileRecord(userInfo, isForeground in createProfileRecords()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DServiceRecord.java113 boolean isForeground; // is service currently in foreground mode? field in ServiceRecord
342 if (isForeground || foregroundId != 0) { in dumpDebug()
467 if (isForeground || foregroundId != 0) { in dump()
468 pw.print(prefix); pw.print("isForeground="); pw.print(isForeground); in dump()
931 if (isForeground && foregroundNoti != null && app != null) { in postNotification()
H A DActiveServices.java352 if (r.isForeground) { in stopAllForegroundServicesLocked()
1855 if (!r.isForeground) { in setServiceForegroundInnerLocked()
1947 if (r.isForeground) { in setServiceForegroundInnerLocked()
1974 r.isForeground = false; in setServiceForegroundInnerLocked()
2045 if (!sr.isForeground in applyForegroundServiceNotificationLocked()
2313 if (sr.isForeground in onForegroundServiceNotificationUpdateLocked()
4047 if (!r.isForeground) { in sendServiceArgsLocked()
4262 if (r.isForeground) { in bringDownServiceLocked()
4282 r.isForeground = false; in bringDownServiceLocked()
4367 if (sr.isForeground in dropFgsNotificationStateLocked()
[all …]
H A DProcessServiceRecord.java392 && (sr.isForeground || procIsBoundForeground)) { in incServiceCrashCountLocked()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/telephony/
H A DBluetoothInCallService.java604 boolean isForeground = mCallInfo.getForegroundCall() == call; in sendClccForCall()
605 int state = getBtCallState(call, isForeground); in sendClccForCall()
974 private int getBtCallState(BluetoothCall call, boolean isForeground) { in getBtCallState() argument
1004 } else if (isForeground) { in getBtCallState()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DScanRequestProxy.java364 private boolean isPackageNameInExceptionList(String packageName, boolean isForeground) { in isPackageNameInExceptionList() argument
368 String[] exceptionList = mContext.getResources().getStringArray(isForeground in isPackageNameInExceptionList()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
H A DUserGridRecyclerView.java158 boolean isForeground = fgUserId == userInfo.id; in createUserRecords()
160 isForeground ? UserRecord.FOREGROUND_USER : UserRecord.BACKGROUND_USER); in createUserRecords()
/aosp12/frameworks/base/core/java/android/app/
H A DService.java680 public final void setForeground(boolean isForeground) { in setForeground() argument
H A DIActivityManager.aidl263 void setProcessImportant(in IBinder token, int pid, boolean isForeground, String reason); in setProcessImportant() argument
/aosp12/frameworks/base/services/core/java/com/android/server/location/provider/
H A DLocationProviderManager.java469 public final boolean isForeground() { in isForeground() method in LocationProviderManager.Registration
707 if (!isForeground()) { in toString()
1959 null, registration.isForeground());
1988 null, registration.isForeground());
2109 if (!registration.isForeground()) {
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationEntryManager.java586 boolean isForeground = (entry.getSbn().getNotification().flags in handleGroupSummaryRemoved()
591 if (isForeground || keepForReply) { in handleGroupSummaryRemoved()
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/
H A DUtils.java494 public static boolean isForeground(int callingUid, int callingPid) { in isForeground() method in Utils
H A DAuthService.java236 if (!Utils.isForeground(callingUid, callingPid)) { in authenticate()
/aosp12/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java4666 final boolean isForeground = isUidForegroundOnRestrictBackgroundUL(uid);
4683 } else if (isForeground) {
4704 newAllowedReasons |= (isForeground ? ALLOWED_METERED_REASON_FOREGROUND : 0);
4709 + ": isForeground=" +isForeground
4775 + ": foreground=" + isForeground
4864 final boolean isForeground = isUidForegroundOnRestrictPowerUL(uid);
4881 if (isForeground) {
4897 newAllowedReasons |= (isForeground ? ALLOWED_REASON_FOREGROUND : 0);
4910 + ", isForeground=" + isForeground
4928 + ": foreground=" + isForeground
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
H A DPreprocessingManagerTest.java982 private Notification generateNotification(boolean isForeground, boolean isNavigation, in generateNotification() argument
991 if (isForeground) { in generateNotification()

12