Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java204 Drawable loadIconForResolveInfo(ResolveInfo ri) { in loadIconForResolveInfo() argument
207 if (ri.resolvePackageName != null && ri.icon != 0) { in loadIconForResolveInfo()
208 dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon); in loadIconForResolveInfo()
213 final int iconRes = ri.getIconResource(); in loadIconForResolveInfo()
215 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes); in loadIconForResolveInfo()
223 return ri.loadIcon(mPm); in loadIconForResolveInfo()
298 ResolveInfo ri = mAdapter.resolveInfoForPosition(which); in startSelected() local
300 onIntentSelected(ri, intent, always); in startSelected()
304 protected void onIntentSelected(ResolveInfo ri, Intent intent, boolean alwaysCheck) { in onIntentSelected() argument
320 int cat = ri.match&IntentFilter.MATCH_CATEGORY_MASK; in onIntentSelected()
[all …]
/frameworks/base/core/java/android/speech/
DRecognizerIntent.java332 ResolveInfo ri = context.getPackageManager().resolveActivity( in getVoiceDetailsIntent() local
334 if (ri == null || ri.activityInfo == null || ri.activityInfo.metaData == null) return null; in getVoiceDetailsIntent()
336 String className = ri.activityInfo.metaData.getString(DETAILS_META_DATA); in getVoiceDetailsIntent()
340 detailsIntent.setComponent(new ComponentName(ri.activityInfo.packageName, className)); in getVoiceDetailsIntent()
/frameworks/compile/slang/BitWriter_2_9_func/
DBitcodeWriterPass.cpp72 for (unsigned ri = 0, rn = CaseRanges.getNumItems(); ri != rn; ++ri) { in expandCaseRange() local
73 IntegersSubset::Range r = CaseRanges.getItem(ri); in expandCaseRange()
74 bool IsSingleNumber = CaseRanges.isSingleNumber(ri); in expandCaseRange()
/frameworks/compile/slang/BitWriter_2_9/
DBitcodeWriterPass.cpp72 for (unsigned ri = 0, rn = CaseRanges.getNumItems(); ri != rn; ++ri) { in expandCaseRange() local
73 IntegersSubset::Range r = CaseRanges.getItem(ri); in expandCaseRange()
74 bool IsSingleNumber = CaseRanges.isSingleNumber(ri); in expandCaseRange()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenu.java83 final ResolveInfo ri = lri.get(i); in addIntentOptions() local
85 ri.specificIndex < 0 ? intent : specifics[ri.specificIndex]); in addIntentOptions()
87 ri.activityInfo.applicationInfo.packageName, in addIntentOptions()
88 ri.activityInfo.name)); in addIntentOptions()
89 final MenuItem item = add(groupId, itemId, order, ri.loadLabel(pm)) in addIntentOptions()
90 .setIcon(ri.loadIcon(pm)) in addIntentOptions()
92 if (outSpecificItems != null && ri.specificIndex >= 0) { in addIntentOptions()
93 outSpecificItems[ri.specificIndex] = item; in addIntentOptions()
DMenuBuilder.java457 final ResolveInfo ri = lri.get(i); in addIntentOptions() local
459 ri.specificIndex < 0 ? intent : specifics[ri.specificIndex]); in addIntentOptions()
461 ri.activityInfo.applicationInfo.packageName, in addIntentOptions()
462 ri.activityInfo.name)); in addIntentOptions()
463 final MenuItem item = add(group, id, categoryOrder, ri.loadLabel(pm)) in addIntentOptions()
464 .setIcon(ri.loadIcon(pm)) in addIntentOptions()
466 if (outSpecificItems != null && ri.specificIndex >= 0) { in addIntentOptions()
467 outSpecificItems[ri.specificIndex] = item; in addIntentOptions()
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dshadows.rs55 int ri = rgb.r;
60 if (ri > gi) {
61 iMax = max (ri, bi);
65 iMin = min (ri, bi);
82 if ( ri == iMax ) {
86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma));
88 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma));
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dshadows.rs55 int ri = rgb.r;
60 if (ri > gi) {
61 iMax = max (ri, bi);
65 iMin = min (ri, bi);
82 if ( ri == iMax ) {
86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma));
88 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma));
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dshadows.rs55 int ri = rgb.r;
60 if (ri > gi) {
61 iMax = max (ri, bi);
65 iMin = min (ri, bi);
82 if ( ri == iMax ) {
86 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma));
88 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma));
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java122 for (ResolveInfo ri : ris) { in createMappings()
123 Log.i(TAG, "Name: " + ri.loadLabel(pm).toString() in createMappings()
124 + " package: " + ri.activityInfo.packageName in createMappings()
125 + " name: " + ri.activityInfo.name); in createMappings()
129 startIntent.setClassName(ri.activityInfo.packageName, in createMappings()
130 ri.activityInfo.name); in createMappings()
131 mNameToIntent.put(ri.loadLabel(pm).toString(), startIntent); in createMappings()
132 mNameToProcess.put(ri.loadLabel(pm).toString(), in createMappings()
133 ri.activityInfo.processName); in createMappings()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbResolverActivity.java96 protected void onIntentSelected(ResolveInfo ri, Intent intent, boolean alwaysCheck) { in onIntentSelected() argument
100 final int uid = ri.activityInfo.applicationInfo.uid; in onIntentSelected()
108 service.setDevicePackage(mDevice, ri.activityInfo.packageName, userId); in onIntentSelected()
117 service.setAccessoryPackage(mAccessory, ri.activityInfo.packageName, userId); in onIntentSelected()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodInfo.java266 public InputMethodInfo(ResolveInfo ri, boolean isAuxIme, in InputMethodInfo() argument
269 final ServiceInfo si = ri.serviceInfo; in InputMethodInfo()
270 mService = ri; in InputMethodInfo()
284 ResolveInfo ri = new ResolveInfo(); in buildDummyResolveInfo() local
295 ri.serviceInfo = si; in buildDummyResolveInfo()
296 return ri; in buildDummyResolveInfo()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMimeTest.java128 ResolveInfo ri = resolveMime(mime); in assertMediaPlaybackActivityHandles() local
130 assertNotNull(ri); in assertMediaPlaybackActivityHandles()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java176 for (ResolveInfo ri : ris) { in createMappings()
180 startIntent.setClassName(ri.activityInfo.packageName, in createMappings()
181 ri.activityInfo.name); in createMappings()
182 String appName = ri.loadLabel(pm).toString(); in createMappings()
185 mNameToProcess.put(appName, ri.activityInfo.processName); in createMappings()
/frameworks/base/core/tests/inputmethodtests/src/android/os/
DInputMethodTest.java92 final ResolveInfo ri = new ResolveInfo(); in createDummyInputMethodInfo() local
104 ri.serviceInfo = si; in createDummyInputMethodInfo()
105 return new InputMethodInfo(ri, isAuxIme, "", subtypes, 1, isDefault); in createDummyInputMethodInfo()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DMenuBuilder.java473 final ResolveInfo ri = lri.get(i); in addIntentOptions() local
475 ri.specificIndex < 0 ? intent : specifics[ri.specificIndex]); in addIntentOptions()
477 ri.activityInfo.applicationInfo.packageName, in addIntentOptions()
478 ri.activityInfo.name)); in addIntentOptions()
479 final MenuItem item = add(group, id, categoryOrder, ri.loadLabel(pm)) in addIntentOptions()
480 .setIcon(ri.loadIcon(pm)) in addIntentOptions()
482 if (outSpecificItems != null && ri.specificIndex >= 0) { in addIntentOptions()
483 outSpecificItems[ri.specificIndex] = item; in addIntentOptions()
/frameworks/base/services/java/com/android/server/
DPreferredComponent.java201 ResolveInfo ri = query.get(i); in sameSet() local
202 if (ri.priority != priority) continue; in sameSet()
203 ActivityInfo ai = ri.activityInfo; in sameSet()
DAppWidgetServiceImpl.java1336 ResolveInfo ri = broadcastReceivers.get(i); in loadAppWidgetListLocked() local
1337 addProviderLocked(ri); in loadAppWidgetListLocked()
1344 boolean addProviderLocked(ResolveInfo ri) { in addProviderLocked() argument
1345 if ((ri.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) { in addProviderLocked()
1348 if (!ri.activityInfo.isEnabled()) { in addProviderLocked()
1351 Provider p = parseProviderInfoXml(new ComponentName(ri.activityInfo.packageName, in addProviderLocked()
1352 ri.activityInfo.name), ri); in addProviderLocked()
1469 private Provider parseProviderInfoXml(ComponentName component, ResolveInfo ri) { in parseProviderInfoXml() argument
1472 ActivityInfo activityInfo = ri.activityInfo; in parseProviderInfoXml()
1535 info.icon = ri.getIconResource(); in parseProviderInfoXml()
[all …]
DTextServicesManagerService.java186 final ResolveInfo ri = services.get(i); in buildSpellCheckerMapLocked() local
187 final ServiceInfo si = ri.serviceInfo; in buildSpellCheckerMapLocked()
197 final SpellCheckerInfo sci = new SpellCheckerInfo(context, ri); in buildSpellCheckerMapLocked()
/frameworks/opt/mailcommon/java/com/android/mailcommon/
DWebViewContextMenu.java120 ResolveInfo ri = pm.resolveActivity(send, PackageManager.MATCH_DEFAULT_ONLY); in showShareLinkMenuItem() local
121 return ri != null; in showShareLinkMenuItem()
/frameworks/base/services/java/com/android/server/pm/
DPackageManagerService.java2698 ResolveInfo ri = findPreferredActivity(intent, resolvedType, in chooseBestActivity() local
2700 if (ri != null) { in chooseBestActivity()
2701 return ri; in chooseBestActivity()
2704 ri = new ResolveInfo(mResolveInfo); in chooseBestActivity()
2705 ri.activityInfo = new ActivityInfo(ri.activityInfo); in chooseBestActivity()
2706 ri.activityInfo.applicationInfo = new ApplicationInfo( in chooseBestActivity()
2707 ri.activityInfo.applicationInfo); in chooseBestActivity()
2708 ri.activityInfo.applicationInfo.uid = UserHandle.getUid(userId, in chooseBestActivity()
2709 UserHandle.getAppId(ri.activityInfo.applicationInfo.uid)); in chooseBestActivity()
2710 return ri; in chooseBestActivity()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsFragment.java168 private void showAppDetails(ResolveInfo ri) { in showAppDetails() argument
170 intent.setData(Uri.fromParts("package", ri.activityInfo.packageName, null)); in showAppDetails()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java1520 ResolveInfo ri = new ResolveInfo(); in getAdminInfo() local
1521 ri.activityInfo = ai; in getAdminInfo()
1524 return new DeviceAdminInfo(mContext, ri); in getAdminInfo()
/frameworks/base/core/java/android/app/
DApplicationThreadNative.java124 List<ResultInfo> ri = data.createTypedArrayList(ResultInfo.CREATOR); in onTransact() local
125 scheduleSendResult(b, ri); in onTransact()
140 List<ResultInfo> ri = data.createTypedArrayList(ResultInfo.CREATOR); in onTransact() local
149 ri, pi, notResumed, isForward, profileName, profileFd, autoStopProfiler); in onTransact()
157 List<ResultInfo> ri = data.createTypedArrayList(ResultInfo.CREATOR); in onTransact() local
165 scheduleRelaunchActivity(b, ri, pi, configChanges, notResumed, config); in onTransact()
/frameworks/compile/slang/BitWriter_3_2/
DBitcodeWriter.cpp1196 for (unsigned ri = 0, rn = CaseRanges.getNumItems(); in WriteInstruction() local
1197 ri != rn; ++ri) { in WriteInstruction()
1202 CaseRanges.getSingleNumber(ri), true); in WriteInstruction()
1205 for (unsigned ri = 0, rn = CaseRanges.getNumItems(); in WriteInstruction() local
1206 ri != rn; ++ri) { in WriteInstruction()
1207 IntegersSubset::Range r = CaseRanges.getItem(ri); in WriteInstruction()
1208 bool IsSingleNumber = CaseRanges.isSingleNumber(ri); in WriteInstruction()

12