Home
last modified time | relevance | path

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

/aosp12/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)) {
/aosp12/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"))
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationManagerService.java7703 boolean isPackageInForeground = isPackageInForegroundForToast(record.uid);
7706 record, rateLimitingEnabled, isWithinQuota, isPackageInForeground)) {
7709 if (rateLimitingEnabled && !isPackageInForeground) {
7727 boolean isWithinQuota, boolean isPackageInForeground) {
7728 if (rateLimitingEnabled && !isWithinQuota && !isPackageInForeground) {
7735 isPackageInForeground)) {
7927 boolean isPackageInForeground) {
7930 && !isPackageInForeground