Home
last modified time | relevance | path

Searched refs:isPackageInForeground (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
H A DControlsRequestReceiver.kt41 fun isPackageInForeground(context: Context, packageName: String): Boolean { regex
79 if (packageName == null || !isPackageInForeground(context, packageName)) {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DControlsRequestReceiverTest.kt87 assertFalse(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST"))
96 assertFalse(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST"))
106 assertTrue(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST"))
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationManagerService.java8730 boolean isPackageInForeground = isPackageInForegroundForToast(record.uid);
8733 record, rateLimitingEnabled, isWithinQuota, isPackageInForeground)) {
8736 if (rateLimitingEnabled && !isPackageInForeground) {
8754 boolean isWithinQuota, boolean isPackageInForeground) {
8755 if (rateLimitingEnabled && !isWithinQuota && !isPackageInForeground) {
8762 isPackageInForeground)) {
8948 boolean isPackageInForeground) {
8951 && !isPackageInForeground