/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenRuleSelectionDialog.java | 116 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 …]
|
D | AbstractZenModeAutomaticRulePreferenceController.java | 73 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 …]
|
D | ZenModeAddAutomaticRulePreferenceController.java | 71 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/ |
D | VoiceSearch.java | 57 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/ |
D | TrustAgentsPreferenceControllerTest.java | 196 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/ |
D | hsv.c | 42 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/ |
D | LShadowLauncherApps.java | 80 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/ |
D | OffloadController.java | 611 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 …]
|
D | TetheringInterfaceUtils.java | 89 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/ |
D | NightDisplaySettingsActivityTest.java | 55 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/ |
D | LiveWallpaperChange.java | 67 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/ |
D | res_cache.cpp | 976 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/ |
D | DeviceAdminAdd.java | 189 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/ |
D | ProvisioningActivity.java | 327 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/ |
D | ExplicitHealthCheckServiceImpl.java | 138 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/ |
D | DeviceAdminAdd.java | 219 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/ |
D | ShortcutsUpdateTask.java | 54 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()
|
D | CreateShortcutPreferenceController.java | 269 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/ |
D | NfcDispatcher.java | 551 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/ |
D | HeadsetSystemInterface.java | 99 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/ |
D | VoicemailProviderListPreference.java | 123 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/ |
D | node-inl.h | 45 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/ |
D | EnableDisablePreference.java | 112 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/ |
D | GoogleLocationSettingHelper.java | 53 final ResolveInfo ri = in isEnforceable() local 59 return ri != null; in isEnforceable()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | CorrectionSettingsFragment.java | 84 final ResolveInfo ri = USE_INTERNAL_PERSONAL_DICTIONARY_SETTINGS ? null in onCreate() local 87 if (ri == null) { in onCreate()
|