Home
last modified time | relevance | path

Searched refs:ri (Results 1 – 25 of 79) sorted by relevance

1234

/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRuleSelectionDialog.java123 private boolean isRuleActivityValid(final ZenRuleInfo ri) { in isRuleActivityValid() argument
124 Intent intent = new Intent().setComponent(ri.configurationActivity); in isRuleActivityValid()
130 private void bindType(final ZenRuleInfo ri) { in bindType() argument
132 ApplicationInfo info = mPm.getApplicationInfo(ri.packageName, 0); in bindType()
137 ((TextView) v.findViewById(R.id.title)).setText(ri.title); in bindType()
138 if (!ri.isSystem) { in bindType()
140 if (!isRuleActivityValid(ri)) { in bindType()
141 Log.w(TAG, "rule configuration activity invalid: " + ri.configurationActivity); in bindType()
151 if (ZenModeConfig.isValidScheduleConditionId(ri.defaultConditionId)) { in bindType()
153 } else if (ZenModeConfig.isValidEventConditionId(ri.defaultConditionId)) { in bindType()
[all …]
DAbstractZenModeAutomaticRulePreferenceController.java72 protected void showNameRuleDialog(final ZenRuleInfo ri, Fragment parent) { in showNameRuleDialog() argument
73 ZenRuleNameDialog.show(parent, null, ri.defaultConditionId, new in showNameRuleDialog()
74 RuleNameChangeListener(ri)); in showNameRuleDialog()
102 final ZenRuleInfo ri = new ZenRuleInfo(); in getRuleInfo() local
103 ri.serviceComponent = in getRuleInfo()
105 ri.settingsAction = Settings.ACTION_ZEN_MODE_EXTERNAL_RULE_SETTINGS; in getRuleInfo()
106 ri.title = ruleType; in getRuleInfo()
107 ri.packageName = ci.packageName; in getRuleInfo()
108 ri.configurationActivity = configurationActivity; in getRuleInfo()
109 ri.packageLabel = ci.applicationInfo.loadLabel(pm); in getRuleInfo()
[all …]
DZenModeAddAutomaticRulePreferenceController.java71 public void onSystemRuleSelected(ZenRuleInfo ri, Fragment parent) { in onSystemRuleSelected() argument
72 showNameRuleDialog(ri, parent); in onSystemRuleSelected()
76 public void onExternalRuleSelected(ZenRuleInfo ri, Fragment parent) { in onExternalRuleSelected() argument
77 Intent intent = new Intent().setComponent(ri.configurationActivity); in onExternalRuleSelected()
/packages/modules/OnDevicePersonalization/framework/java/com/android/federatedcompute/internal/util/
DAndroidServiceBinder.java240 for (ResolveInfo ri : services) { in resolveComponentName()
242 if (ri != null in resolveComponentName()
243 && ri.serviceInfo != null in resolveComponentName()
244 && ri.serviceInfo.packageName != null in resolveComponentName()
245 && mServicePackages.contains(ri.serviceInfo.packageName)) { in resolveComponentName()
251 ri.serviceInfo.packageName, in resolveComponentName()
252 ri.serviceInfo.name); in resolveComponentName()
253 return new ComponentName(ri.serviceInfo.packageName, ri.serviceInfo.name); in resolveComponentName()
255 if (ri != null && ri.serviceInfo != null) { in resolveComponentName()
259 ri.serviceInfo.packageName, in resolveComponentName()
[all …]
/packages/apps/Gallery2/jni/filters/
Dhsv.c42 int ri = rgb[rgbOff+0]; in rgb2hsv() local
47 if (ri > gi) { in rgb2hsv()
48 iMax = MAX (ri, bi); in rgb2hsv()
52 iMin = MIN (ri, bi); in rgb2hsv()
69 if ( ri == iMax ) { in rgb2hsv()
73 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma)); in rgb2hsv()
75 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma)); in rgb2hsv()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java201 final ResolveInfo ri = createFakeResolveInfo(cn); in createFakeAvailableAgents() local
202 result.add(ri); in createFakeAvailableAgents()
208 final ResolveInfo ri = new ResolveInfo(); in createFakeResolveInfo() local
209 ri.serviceInfo = new ServiceInfo(); in createFakeResolveInfo()
210 ri.serviceInfo.packageName = cn.getPackageName(); in createFakeResolveInfo()
211 ri.serviceInfo.name = cn.getClassName(); in createFakeResolveInfo()
212 ri.serviceInfo.applicationInfo = new ApplicationInfo(); in createFakeResolveInfo()
213 ri.serviceInfo.applicationInfo.packageName = cn.getPackageName(); in createFakeResolveInfo()
214 ri.serviceInfo.applicationInfo.name = cn.getClassName(); in createFakeResolveInfo()
215 return ri; in createFakeResolveInfo()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/display/
DNightDisplaySettingsActivityTest.java55 final ResolveInfo ri = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); in nightDisplaySettingsIntent_resolvesCorrectly() local
58 Assert.assertNotNull("No activity for " + Settings.ACTION_NIGHT_DISPLAY_SETTINGS, ri); in nightDisplaySettingsIntent_resolvesCorrectly()
59 Assert.assertEquals(mTargetContext.getPackageName(), ri.activityInfo.packageName); in nightDisplaySettingsIntent_resolvesCorrectly()
61 ri.activityInfo.name); in nightDisplaySettingsIntent_resolvesCorrectly()
64 + Settings.ACTION_NIGHT_DISPLAY_SETTINGS, ri); in nightDisplaySettingsIntent_resolvesCorrectly()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserListAdapter.java264 ResolveInfo ri = null; in ChooserListAdapter() local
272 ri = new ResolveInfo(); in ChooserListAdapter()
273 ri.activityInfo = ai; in ChooserListAdapter()
281 ri = packageManager.resolveActivity( in ChooserListAdapter()
284 ai = ri != null ? ri.activityInfo : null; in ChooserListAdapter()
294 ri.resolvePackageName = li.getSourcePackage(); in ChooserListAdapter()
295 ri.labelRes = li.getLabelResource(); in ChooserListAdapter()
296 ri.nonLocalizedLabel = li.getNonLocalizedLabel(); in ChooserListAdapter()
297 ri.icon = li.getIconResource(); in ChooserListAdapter()
298 ri.iconResourceId = ri.icon; in ChooserListAdapter()
[all …]
DResolverListAdapter.java503 ResolveInfo ri = new ResolveInfo(); in processSortedList() local
504 ri.activityInfo = ai; in processSortedList()
509 ri.resolvePackageName = li.getSourcePackage(); in processSortedList()
510 ri.labelRes = li.getLabelResource(); in processSortedList()
511 ri.nonLocalizedLabel = li.getNonLocalizedLabel(); in processSortedList()
512 ri.icon = li.getIconResource(); in processSortedList()
513 ri.iconResourceId = ri.icon; in processSortedList()
516 ri.noResourceId = true; in processSortedList()
517 ri.icon = 0; in processSortedList()
520 ri.userHandle = mInitialIntentsUserSpace; in processSortedList()
[all …]
DResolverListController.java225 ResolveInfo ri = inputList.get(i).getResolveInfoAt(0); in filterLowPriority() local
230 ri.activityInfo.name + "=" + in filterLowPriority()
231 ri.priority + "/" + ri.isDefault); in filterLowPriority()
232 if (r0.priority != ri.priority || in filterLowPriority()
233 r0.isDefault != ri.isDefault) { in filterLowPriority()
DResolverActivity.java539 ResolveInfo ri = mMultiProfilePagerAdapter.getActiveListAdapter()
541 if (mResolvingHome && hasManagedProfile() && !supportsManagedProfiles(ri)) {
542 String launcherName = ri.activityInfo.loadLabel(mPackageManager).toString();
590 final ResolveInfo ri = target.getResolveInfo();
618 int cat = ri.match & IntentFilter.MATCH_CATEGORY_MASK;
642 Iterator<PatternMatcher> pIt = ri.filter.schemeSpecificPartsIterator();
653 Iterator<IntentFilter.AuthorityEntry> aIt = ri.filter.authoritiesIterator();
665 pIt = ri.filter.pathsIterator();
718 if (ri.handleAllWebDataURI) {
722 pm.setDefaultBrowserPackageNameAsUser(ri.activityInfo.packageName,
[all …]
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperChange.java67 ResolveInfo ri = list.get(i); in init() local
68 if (ri.serviceInfo.name.equals(comp.getClassName())) { in init()
71 info = new WallpaperInfo(this, ri); in init()
73 Log.w(TAG, "Bad wallpaper " + ri.serviceInfo, e); in init()
77 initUI(info, getDeleteAction(ri.serviceInfo, in init()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/notifications/
DTvNotificationPanel.java114 ResolveInfo ri = pm.resolveActivity(intent, PackageManager.MATCH_SYSTEM_ONLY); in startNotificationHandlerActivity() local
115 if (ri != null && ri.activityInfo != null) { in startNotificationHandlerActivity()
116 if (ri.activityInfo.permission != null && ri.activityInfo.permission.equals( in startNotificationHandlerActivity()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DVoiceSearch.kt87 val ri: ResolveInfo = resolveInfo ?: return 0 constant
88 val ci: ComponentInfo = if (ri.activityInfo != null) ri.activityInfo else ri.serviceInfo
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java600 for (RouteInfo ri : oldRoutes) { in pushDownstreamState()
601 if (shouldIgnoreDownstreamRoute(ri)) continue; in pushDownstreamState()
602 if (!newRoutes.contains(ri)) { in pushDownstreamState()
603 mHwInterface.removeDownstream(ifname, ri.getDestination().toString()); in pushDownstreamState()
608 for (RouteInfo ri : newRoutes) { in pushDownstreamState()
609 if (shouldIgnoreDownstreamRoute(ri)) continue; in pushDownstreamState()
610 if (!oldRoutes.contains(ri)) { in pushDownstreamState()
611 mHwInterface.addDownstream(ifname, ri.getDestination().toString()); in pushDownstreamState()
668 for (RouteInfo ri : mUpstreamLinkProperties.getRoutes()) { in pushUpstreamParameters()
669 if (!ri.hasGateway()) continue; in pushUpstreamParameters()
[all …]
DTetheringInterfaceUtils.java97 final RouteInfo ri = (lp != null) in getInterfaceForDestination() local
100 return (ri != null) ? ri.getInterface() : null; in getInterfaceForDestination()
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/
DCreateShortcutPreferenceControllerTest.java106 final ResolveInfo ri = mContext.getPackageManager().resolveActivity(intent, 0); in createResultIntent() local
107 final Intent result = mController.createResultIntent(intent, ri, "mock"); in createResultIntent()
272 ResolveInfo ri = new ResolveInfo(); in setupActivityInfo() local
273 ri.activityInfo = new ActivityInfo(); in setupActivityInfo()
274 ri.activityInfo.name = name; in setupActivityInfo()
275 ri.activityInfo.applicationInfo = new ApplicationInfo(); in setupActivityInfo()
276 ri.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in setupActivityInfo()
280 Arrays.asList(ri)); in setupActivityInfo()
/packages/modules/ExtServices/java/src/android/ext/services/watchdog/
DExplicitHealthCheckServiceImpl.java138 ResolveInfo ri = results.get(i); in resolveSystemService() local
139 if ((ri.serviceInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in resolveSystemService()
142 ComponentName foundComp = new ComponentName(ri.serviceInfo.applicationInfo.packageName, in resolveSystemService()
143 ri.serviceInfo.name); in resolveSystemService()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icons/
DLoadIconTask.java63 protected final Drawable loadIconForResolveInfo(ResolveInfo ri) { in loadIconForResolveInfo() argument
66 return mPresentationFactory.makePresentationGetter(ri).getIcon(ri.userHandle); in loadIconForResolveInfo()
/packages/apps/Settings/src/com/android/settings/shortcut/
DShortcutsUpdateTask.java54 ResolveInfo ri = pm.resolveActivity(new Intent(SHORTCUT_PROBE).setComponent(cn), 0); in doInBackground() local
55 if (ri == null) { in doInBackground()
59 .setShortLabel(ri.loadLabel(pm)).build()); in doInBackground()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminAdd.java187 ResolveInfo ri = avail.get(i); in onCreate() local
188 if (ai.packageName.equals(ri.activityInfo.packageName) in onCreate()
189 && ai.name.equals(ri.activityInfo.name)) { in onCreate()
193 ri.activityInfo = ai; in onCreate()
194 DeviceAdminInfo dpi = new DeviceAdminInfo(this, ri); in onCreate()
197 Log.w(TAG, "Bad " + ri.activityInfo, e); in onCreate()
199 Log.w(TAG, "Bad " + ri.activityInfo, e); in onCreate()
211 ResolveInfo ri = new ResolveInfo(); in onCreate() local
212 ri.activityInfo = ai; in onCreate()
214 mDeviceAdmin = new DeviceAdminInfo(this, ri); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DDeviceAdminAddFragment.java329 ResolveInfo ri = avail.get(i); in isValidAdmin() local
330 if (ai.packageName.equals(ri.activityInfo.packageName) in isValidAdmin()
331 && ai.name.equals(ri.activityInfo.name)) { in isValidAdmin()
335 ri.activityInfo = ai; in isValidAdmin()
336 new DeviceAdminInfo(context, ri); in isValidAdmin()
339 LOG.w("Bad " + ri.activityInfo, e); in isValidAdmin()
/packages/modules/DnsResolver/
Dres_cache.cpp980 pending_req_info* ri = pending_requests.next; in flushPendingRequests() local
981 while (ri) { in flushPendingRequests()
982 pending_req_info* tmp = ri; in flushPendingRequests()
983 ri = ri->next; in flushPendingRequests()
1083 Cache::pending_req_info* ri = cache->pending_requests.next; in cache_has_pending_request_locked() local
1085 while (ri) { in cache_has_pending_request_locked()
1086 if (ri->hash == key->hash) { in cache_has_pending_request_locked()
1089 prev = ri; in cache_has_pending_request_locked()
1090 ri = ri->next; in cache_has_pending_request_locked()
1094 ri = (Cache::pending_req_info*)calloc(1, sizeof(Cache::pending_req_info)); in cache_has_pending_request_locked()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLauncherDbUtils.java135 ResolveInfo ri = context.getPackageManager().resolveActivity(intent, 0); in migrateLegacyShortcuts() local
136 if (ri == null || !TextUtils.isEmpty(ri.activityInfo.permission)) { in migrateLegacyShortcuts()
141 extras.putString(EXTRA_SHORTCUT_BADGE_OVERRIDE_PACKAGE, ri.activityInfo.packageName); in migrateLegacyShortcuts()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailProviderListPreference.java123 final ResolveInfo ri= resolveInfos.get(i); in initVoicemailProviders() local
124 final ActivityInfo currentActivityInfo = ri.activityInfo; in initVoicemailProviders()
132 CharSequence label = ri.loadLabel(pm); in initVoicemailProviders()

1234