Searched refs:isPackageInForeground (Results 1 – 3 of 3) sorted by relevance
40 fun isPackageInForeground(context: Context, packageName: String): Boolean { in isPackageInForeground() method84 if (!isPackageInForeground(context, packageName)) { in onReceive()
90 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()
9121 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