Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRuleSelectionDialog.java116 private void bindType(final ZenRuleInfo ri) { in bindType() argument
118 ApplicationInfo info = mPm.getApplicationInfo(ri.packageName, 0); in bindType()
123 ((TextView) v.findViewById(R.id.title)).setText(ri.title); in bindType()
124 if (!ri.isSystem) { in bindType()
132 if (ZenModeConfig.isValidScheduleConditionId(ri.defaultConditionId)) { in bindType()
134 } else if (ZenModeConfig.isValidEventConditionId(ri.defaultConditionId)) { in bindType()
142 if (ri.isSystem) { in bindType()
143 mPositiveClickListener.onSystemRuleSelected(ri, getTargetFragment()); in bindType()
145 mPositiveClickListener.onExternalRuleSelected(ri, getTargetFragment()); in bindType()
186 for (ZenRuleInfo ri : externalRuleTypes) { in bindExternalRules()
[all …]
DAbstractZenModeAutomaticRulePreferenceController.java73 protected void showNameRuleDialog(final ZenRuleInfo ri, Fragment parent) { in showNameRuleDialog() argument
74 ZenRuleNameDialog.show(parent, null, ri.defaultConditionId, new in showNameRuleDialog()
75 RuleNameChangeListener(ri)); in showNameRuleDialog()
101 final ZenRuleInfo ri = new ZenRuleInfo(); in getRuleInfo() local
102 ri.serviceComponent = in getRuleInfo()
104 ri.settingsAction = Settings.ACTION_ZEN_MODE_EXTERNAL_RULE_SETTINGS; in getRuleInfo()
105 ri.title = ruleType; in getRuleInfo()
106 ri.packageName = ci.packageName; in getRuleInfo()
107 ri.configurationActivity = configurationActivity; in getRuleInfo()
108 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/apps/QuickSearchBox/src/com/android/quicksearchbox/
DVoiceSearch.java57 ResolveInfo ri = mContext.getPackageManager(). in getResolveInfo() local
59 return ri; in getResolveInfo()
92 ResolveInfo ri = getResolveInfo(); in getVersion() local
93 if (ri == null) return 0; in getVersion()
94 ComponentInfo ci = ri.activityInfo != null ? ri.activityInfo : ri.serviceInfo; in getVersion()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java196 final ResolveInfo ri = createFakeResolveInfo(cn); in createFakeAvailableAgents() local
197 result.add(ri); in createFakeAvailableAgents()
203 final ResolveInfo ri = new ResolveInfo(); in createFakeResolveInfo() local
204 ri.serviceInfo = new ServiceInfo(); in createFakeResolveInfo()
205 ri.serviceInfo.packageName = cn.getPackageName(); in createFakeResolveInfo()
206 ri.serviceInfo.name = cn.getClassName(); in createFakeResolveInfo()
207 ri.serviceInfo.applicationInfo = new ApplicationInfo(); in createFakeResolveInfo()
208 ri.serviceInfo.applicationInfo.packageName = cn.getPackageName(); in createFakeResolveInfo()
209 ri.serviceInfo.applicationInfo.name = cn.getClassName(); in createFakeResolveInfo()
210 return ri; in createFakeResolveInfo()
/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/Launcher3/robolectric_tests/src/com/android/launcher3/shadows/
DLShadowLauncherApps.java80 ResolveInfo ri = RuntimeEnvironment.application.getPackageManager() in resolveActivity() local
82 return ri == null ? null : getLauncherActivityInfo(ri.activityInfo, user); in resolveActivity()
107 .map(ri -> getLauncherActivityInfo(ri.activityInfo, user)) in getActivityList()
133 .map(ri -> getLauncherActivityInfo(ri.activityInfo, user)) in getShortcutConfigActivityList()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java611 for (RouteInfo ri : oldRoutes) { in pushDownstreamState()
612 if (shouldIgnoreDownstreamRoute(ri)) continue; in pushDownstreamState()
613 if (!newRoutes.contains(ri)) { in pushDownstreamState()
614 mHwInterface.removeDownstreamPrefix(ifname, ri.getDestination().toString()); in pushDownstreamState()
619 for (RouteInfo ri : newRoutes) { in pushDownstreamState()
620 if (shouldIgnoreDownstreamRoute(ri)) continue; in pushDownstreamState()
621 if (!oldRoutes.contains(ri)) { in pushDownstreamState()
622 mHwInterface.addDownstreamPrefix(ifname, ri.getDestination().toString()); in pushDownstreamState()
679 for (RouteInfo ri : mUpstreamLinkProperties.getRoutes()) { in pushUpstreamParameters()
680 if (!ri.hasGateway()) continue; in pushUpstreamParameters()
[all …]
DTetheringInterfaceUtils.java89 final RouteInfo ri = (lp != null) in getInterfaceForDestination() local
92 return (ri != null) ? ri.getInterface() : null; in getInterfaceForDestination()
/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/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/modules/DnsResolver/
Dres_cache.cpp976 pending_req_info* ri = pending_requests.next; in flushPendingRequests() local
977 while (ri) { in flushPendingRequests()
978 pending_req_info* tmp = ri; in flushPendingRequests()
979 ri = ri->next; in flushPendingRequests()
1058 Cache::pending_req_info* ri = cache->pending_requests.next; in cache_has_pending_request_locked() local
1060 while (ri) { in cache_has_pending_request_locked()
1061 if (ri->hash == key->hash) { in cache_has_pending_request_locked()
1064 prev = ri; in cache_has_pending_request_locked()
1065 ri = ri->next; in cache_has_pending_request_locked()
1069 ri = (Cache::pending_req_info*)calloc(1, sizeof(Cache::pending_req_info)); in cache_has_pending_request_locked()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminAdd.java189 ResolveInfo ri = avail.get(i); in onCreate() local
190 if (ai.packageName.equals(ri.activityInfo.packageName) in onCreate()
191 && ai.name.equals(ri.activityInfo.name)) { in onCreate()
195 ri.activityInfo = ai; in onCreate()
196 DeviceAdminInfo dpi = new DeviceAdminInfo(this, ri); in onCreate()
199 Log.w(TAG, "Bad " + ri.activityInfo, e); in onCreate()
201 Log.w(TAG, "Bad " + ri.activityInfo, e); in onCreate()
213 ResolveInfo ri = new ResolveInfo(); in onCreate() local
214 ri.activityInfo = ai; in onCreate()
216 mDeviceAdmin = new DeviceAdminInfo(this, ri); in onCreate()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningActivity.java327 for (ResolveInfo ri : ris) {
328 if (ri.activityInfo == null) {
331 if (!permission.BIND_DEVICE_ADMIN.equals(ri.activityInfo.permission)) {
332 ProvisionLogger.loge("Component " + ri.activityInfo.getComponentName()
335 ri.activityInfo.packageName) != PackageManager.PERMISSION_GRANTED) {
336 ProvisionLogger.loge("Package " + ri.activityInfo.packageName
339 targetComponent = ri.activityInfo.getComponentName();
/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/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java219 ResolveInfo ri = avail.get(i); in onCreate() local
220 if (ai.packageName.equals(ri.activityInfo.packageName) in onCreate()
221 && ai.name.equals(ri.activityInfo.name)) { in onCreate()
225 ri.activityInfo = ai; in onCreate()
226 DeviceAdminInfo dpi = new DeviceAdminInfo(this, ri); in onCreate()
229 Log.w(TAG, "Bad " + ri.activityInfo, e); in onCreate()
231 Log.w(TAG, "Bad " + ri.activityInfo, e); in onCreate()
243 ResolveInfo ri = new ResolveInfo(); in onCreate() local
244 ri.activityInfo = ai; in onCreate()
246 mDeviceAdmin = new DeviceAdminInfo(this, ri); in onCreate()
/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()
DCreateShortcutPreferenceController.java269 ResolveInfo ri = context.getPackageManager().resolveActivity(si.getIntent(), 0); in updateRestoredShortcuts() local
271 if (ri != null) { in updateRestoredShortcuts()
272 updatedShortcuts.add(createShortcutInfo(context, buildShortcutIntent(ri), ri, in updateRestoredShortcuts()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java551 ResolveInfo ri = pm.resolveActivity(appLaunchIntent, 0); in tryNdef() local
552 if (ri != null && ri.activityInfo != null && ri.activityInfo.exported && in tryNdef()
581 ResolveInfo ri = pm.resolveActivity(intent, 0); in tryNdef() local
583 …if (ri != null && ri.activityInfo != null && ri.activityInfo.exported && dispatch.tryStartActivity… in tryNdef()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetSystemInterface.java99 ResolveInfo ri = results.get(i); in resolveSystemService() local
100 if ((ri.serviceInfo.applicationInfo.flags& ApplicationInfo.FLAG_SYSTEM) == 0) { in resolveSystemService()
103 ComponentName foundComp = new ComponentName(ri.serviceInfo.applicationInfo.packageName, in resolveSystemService()
104 ri.serviceInfo.name); in resolveSystemService()
/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()
/packages/providers/MediaProvider/jni/
Dnode-inl.h45 explicit handle(int fd, const RedactionInfo* ri, bool cached, bool passthrough, uid_t uid, in handle()
48 ri(ri), in handle()
53 CHECK(ri != nullptr); in handle()
57 const std::unique_ptr<const RedactionInfo> ri; member
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DEnableDisablePreference.java112 for (ResolveInfo ri : homeActivities) { in getHomePackages()
113 final String activityPkg = ri.activityInfo.packageName; in getHomePackages()
116 final Bundle metadata = ri.activityInfo.metaData; in getHomePackages()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DGoogleLocationSettingHelper.java53 final ResolveInfo ri = in isEnforceable() local
59 return ri != null; in isEnforceable()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DCorrectionSettingsFragment.java84 final ResolveInfo ri = USE_INTERNAL_PERSONAL_DICTIONARY_SETTINGS ? null in onCreate() local
87 if (ri == null) { in onCreate()

123