Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsRequestReceiver.kt40 fun isPackageInForeground(context: Context, packageName: String): Boolean { in isPackageInForeground() method
84 if (!isPackageInForeground(context, packageName)) { in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestReceiverTest.kt90 assertFalse(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST")) in testPackageVerification_nonExistentPackage()
99 assertFalse(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST")) in testPackageVerification_uidNotInForeground()
109 assertTrue(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST")) in testPackageVerification_OK()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java9121 boolean isPackageInForeground = isPackageInForegroundForToast(record.uid);
9124 record, rateLimitingEnabled, isWithinQuota, isPackageInForeground)) {
9127 if (rateLimitingEnabled && !isPackageInForeground) {
9145 boolean isWithinQuota, boolean isPackageInForeground) {
9146 if (rateLimitingEnabled && !isWithinQuota && !isPackageInForeground) {
9153 isPackageInForeground)) {
9339 boolean isPackageInForeground) {
9342 && !isPackageInForeground