Searched refs:isPackageInForeground (Results 1 – 3 of 3) sorted by relevance
41 fun isPackageInForeground(context: Context, packageName: String): Boolean { regex79 if (packageName == null || !isPackageInForeground(context, packageName)) {
87 assertFalse(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST"))96 assertFalse(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST"))106 assertTrue(ControlsRequestReceiver.isPackageInForeground(mContext, "TEST"))
7703 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