Lines Matching refs:intent

124      * This is called from ActivityManager to check if a start activity intent should be allowed.
127 public boolean checkStartActivity(Intent intent, int callerUid, int callerPid,
129 return checkIntent(mActivityResolver, intent.getComponent(), TYPE_ACTIVITY, intent,
133 public boolean checkService(ComponentName resolvedService, Intent intent, int callerUid,
135 return checkIntent(mServiceResolver, resolvedService, TYPE_SERVICE, intent, callerUid,
139 public boolean checkBroadcast(Intent intent, int callerUid, int callerPid,
141 return checkIntent(mBroadcastResolver, intent.getComponent(), TYPE_BROADCAST, intent,
146 int intentType, Intent intent, int callerUid, int callerPid, String resolvedType,
151 // For the first pass, find all the rules that have at least one intent-filter or
152 // component-filter that matches this intent
154 candidateRules = resolver.queryIntent(intent, resolvedType, false, 0);
161 // rule against the intent
164 if (rule.matches(this, resolvedComponent, intent, callerUid, callerPid, resolvedType,
178 logIntent(intentType, intent, callerUid, resolvedType);
184 private static void logIntent(int intentType, Intent intent, int callerUid,
187 ComponentName cn = intent.getComponent();
209 callerPackageCount, callerPackages, intent.getAction(), resolvedType,
210 intent.getDataString(), intent.getFlags());
345 Slog.e(TAG, "Error reading an intent firewall rule from " + rulesFile, ex);
355 Slog.e(TAG, "Error reading intent firewall rules from " + rulesFile, ex);
358 Slog.e(TAG, "Error reading intent firewall rules from " + rulesFile, ex);
398 * Rules are matched against an incoming intent in two phases. The goal of the first phase
399 * is to select a subset of rules that might match a given intent.
401 * For the first phase, we use a combination of intent filters (via an IntentResolver)
402 * and component filters to select which rules to check. If a rule has multiple intent or
407 * intent. All top level conditions (but not filters) in the rule must match for the rule as a
410 * If the rule matches, then we block or log the intent, as specified by the rule. If multiple
414 private static final String TAG_INTENT_FILTER = "intent-filter";