/** * Get list of intent filters defined for given activity. * * @param componentName Name of the activity whose intent filters are to be retrieved * @return the activity's intent filters * @throws NameNotFoundException if component with given name doesn't exist. */ public List<IntentFilter> getIntentFiltersForActivity(ComponentName componentName) throws NameNotFoundException { return getIntentFiltersForComponent(componentName, activityFilters); }
/** * Get list of intent filters defined for given service. * * @param componentName Name of the service whose intent filters are to be retrieved * @return the service's intent filters * @throws NameNotFoundException if component with given name doesn't exist. */ public List<IntentFilter> getIntentFiltersForService(ComponentName componentName) throws NameNotFoundException { return getIntentFiltersForComponent(componentName, serviceFilters); }
/** * Get list of intent filters defined for given provider. * * @param componentName Name of the provider whose intent filters are to be retrieved * @return the provider's intent filters * @throws NameNotFoundException if component with given name doesn't exist. */ public List<IntentFilter> getIntentFiltersForProvider(ComponentName componentName) throws NameNotFoundException { return getIntentFiltersForComponent(componentName, providerFilters); }
/** * Get list of intent filters defined for given receiver. * * @param componentName Name of the receiver whose intent filters are to be retrieved * @return the receiver's intent filters * @throws NameNotFoundException if component with given name doesn't exist. */ public List<IntentFilter> getIntentFiltersForReceiver(ComponentName componentName) throws NameNotFoundException { return getIntentFiltersForComponent(componentName, receiverFilters); }
/** * Get list of intent filters defined for given service. * * @param componentName Name of the service whose intent filters are to be retrieved * @return the service's intent filters */ public List<IntentFilter> getIntentFiltersForService(ComponentName componentName) throws NameNotFoundException { return getIntentFiltersForComponent(getAppPackage(componentName).services, componentName); }
/** * Get list of intent filters defined for given activity. * * @param componentName Name of the activity whose intent filters are to be retrieved * @return the activity's intent filters */ public List<IntentFilter> getIntentFiltersForActivity(ComponentName componentName) throws NameNotFoundException { return getIntentFiltersForComponent(getAppPackage(componentName).activities, componentName); }
/** * Get list of intent filters defined for given receiver. * * @param componentName Name of the receiver whose intent filters are to be retrieved * @return the receiver's intent filters */ public List<IntentFilter> getIntentFiltersForReceiver(ComponentName componentName) throws NameNotFoundException { return getIntentFiltersForComponent(getAppPackage(componentName).receivers, componentName); }