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"))
8730 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