Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java346 onIntentSelected(dri.ri, intent, false); in onCreate()
430 Drawable loadIconForResolveInfo(ResolveInfo ri) { in loadIconForResolveInfo() argument
433 if (ri.resolvePackageName != null && ri.icon != 0) { in loadIconForResolveInfo()
434 dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon); in loadIconForResolveInfo()
439 final int iconRes = ri.getIconResource(); in loadIconForResolveInfo()
441 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes); in loadIconForResolveInfo()
449 return ri.loadIcon(mPm); in loadIconForResolveInfo()
568 ResolveInfo ri = mAdapter.resolveInfoForPosition(checkedPos, filtered); in setAlwaysButtonEnabled() local
569 if (ri.targetUserId == UserHandle.USER_CURRENT) { in setAlwaysButtonEnabled()
589 ResolveInfo ri = mAdapter.resolveInfoForPosition(which, filtered); in startSelected() local
[all …]
DIntentForwarderActivity.java96 final android.content.pm.ResolveInfo ri = getPackageManager().resolveActivityAsUser( in onCreate() local
101 final boolean shouldShowDisclosure = ri == null || ri.activityInfo == null || in onCreate()
102 !"android".equals(ri.activityInfo.packageName) || in onCreate()
103 !(ResolverActivity.class.getName().equals(ri.activityInfo.name) in onCreate()
104 || ChooserActivity.class.getName().equals(ri.activityInfo.name)); in onCreate()
/frameworks/compile/mclinker/lib/LD/
DEhFrame.cpp187 for (LDContext::const_sect_iterator ri = ctx.relocSectBegin(), in merge() local
188 re = ctx.relocSectEnd(); ri != re; ++ri) { in merge()
189 if ((*ri)->getLink() == &pFrame.getSection()) { in merge()
190 rel_sec = *ri; in merge()
241 for (RelocData::const_iterator ri = reloc_data->begin(), in setupAttributes() local
242 re = reloc_data->end(); ri != re; ++ri) { in setupAttributes()
243 const Relocation& rel = *ri; in setupAttributes()
269 for (RelocData::const_iterator ri = reloc_data->begin(), in removeDiscardedFDE() local
270 re = reloc_data->end(); ri != re; ++ri) { in removeDiscardedFDE()
271 const Relocation& rel = *ri; in removeDiscardedFDE()
[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/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.java477 final ResolveInfo ri = lri.get(i); in addIntentOptions() local
479 ri.specificIndex < 0 ? intent : specifics[ri.specificIndex]); in addIntentOptions()
481 ri.activityInfo.applicationInfo.packageName, in addIntentOptions()
482 ri.activityInfo.name)); in addIntentOptions()
483 final MenuItem item = add(group, id, categoryOrder, ri.loadLabel(pm)) in addIntentOptions()
484 .setIcon(ri.loadIcon(pm)) in addIntentOptions()
486 if (outSpecificItems != null && ri.specificIndex >= 0) { in addIntentOptions()
487 outSpecificItems[ri.specificIndex] = item; in addIntentOptions()
/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/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/base/core/java/android/widget/
DDateTimeView.java80 ReceiverInfo ri = sReceiverInfo.get(); in onAttachedToWindow() local
81 if (ri == null) { in onAttachedToWindow()
82 ri = new ReceiverInfo(); in onAttachedToWindow()
83 sReceiverInfo.set(ri); in onAttachedToWindow()
85 ri.addView(this); in onAttachedToWindow()
91 final ReceiverInfo ri = sReceiverInfo.get(); in onDetachedFromWindow() local
92 if (ri != null) { in onDetachedFromWindow()
93 ri.removeView(this); in onDetachedFromWindow()
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java157 ResolveInfo ri = activities.get(i); in getActivityList() local
160 firstInstallTime = mPm.getPackageInfo(ri.activityInfo.packageName, in getActivityList()
165 LauncherActivityInfo lai = new LauncherActivityInfo(mContext, ri, user, in getActivityList()
176 static ComponentName getComponentName(ResolveInfo ri) { in getComponentName() argument
177 return new ComponentName(ri.activityInfo.packageName, ri.activityInfo.name); in getComponentName()
190 ResolveInfo ri = mService.resolveActivity(intent, user); in resolveActivity() local
191 if (ri != null) { in resolveActivity()
194 firstInstallTime = mPm.getPackageInfo(ri.activityInfo.packageName, in resolveActivity()
199 LauncherActivityInfo info = new LauncherActivityInfo(mContext, ri, user, in resolveActivity()
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java160 ResolveInfo ri = AppGlobals.getPackageManager().resolveIntent(intent, in createLocalApprovalIntent() local
162 if (ri != null && ri.activityInfo != null && ri.activityInfo.exported) { in createLocalApprovalIntent()
163 intent.setComponent(new ComponentName(ri.activityInfo.packageName, in createLocalApprovalIntent()
164 ri.activityInfo.name)); in createLocalApprovalIntent()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java164 for (ResolveInfo ri : ris) { in createMappings()
165 Log.i(TAG, "Name: " + ri.loadLabel(pm).toString() in createMappings()
166 + " package: " + ri.activityInfo.packageName in createMappings()
167 + " name: " + ri.activityInfo.name); in createMappings()
171 startIntent.setClassName(ri.activityInfo.packageName, in createMappings()
172 ri.activityInfo.name); in createMappings()
173 mNameToIntent.put(ri.loadLabel(pm).toString(), startIntent); in createMappings()
174 mNameToProcess.put(ri.loadLabel(pm).toString(), in createMappings()
175 ri.activityInfo.processName); in createMappings()
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/
DAppListFragment.java102 final ResolveInfo ri = list.get(i); in Adapter() local
103 mItems.add(new Item(ri.loadLabel(pm).toString(), new ComponentName( in Adapter()
104 ri.serviceInfo.applicationInfo.packageName, in Adapter()
105 ri.serviceInfo.name))); in Adapter()
/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.java270 public InputMethodInfo(ResolveInfo ri, boolean isAuxIme, in InputMethodInfo() argument
273 this(ri, isAuxIme, settingsActivity, subtypes, isDefaultResId, in InputMethodInfo()
281 public InputMethodInfo(ResolveInfo ri, boolean isAuxIme, in InputMethodInfo() argument
284 final ServiceInfo si = ri.serviceInfo; in InputMethodInfo()
285 mService = ri; in InputMethodInfo()
297 ResolveInfo ri = new ResolveInfo(); in buildDummyResolveInfo() local
308 ri.serviceInfo = si; in buildDummyResolveInfo()
309 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.java189 for (ResolveInfo ri : ris) { in createMappings()
193 startIntent.setClassName(ri.activityInfo.packageName, in createMappings()
194 ri.activityInfo.name); in createMappings()
195 String appName = ri.loadLabel(pm).toString(); in createMappings()
198 mNameToProcess.put(appName, ri.activityInfo.processName); in createMappings()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DMenuBuilder.java507 final ResolveInfo ri = lri.get(i); in addIntentOptions() local
509 ri.specificIndex < 0 ? intent : specifics[ri.specificIndex]); in addIntentOptions()
511 ri.activityInfo.applicationInfo.packageName, in addIntentOptions()
512 ri.activityInfo.name)); in addIntentOptions()
513 final MenuItem item = add(group, id, categoryOrder, ri.loadLabel(pm)) in addIntentOptions()
514 .setIcon(ri.loadIcon(pm)) in addIntentOptions()
516 if (outSpecificItems != null && ri.specificIndex >= 0) { in addIntentOptions()
517 outSpecificItems[ri.specificIndex] = item; in addIntentOptions()
/frameworks/base/core/tests/inputmethodtests/src/android/os/
DInputMethodSubtypeSwitchingControllerTest.java57 final ResolveInfo ri = new ResolveInfo(); in addDummyImeSubtypeListItems() local
68 ri.serviceInfo = si; in addDummyImeSubtypeListItems()
76 final InputMethodInfo imi = new InputMethodInfo(ri, DUMMY_IS_AUX_IME, in addDummyImeSubtypeListItems()
DInputMethodTest.java221 final ResolveInfo ri = new ResolveInfo(); in createDummyInputMethodInfo() local
233 ri.serviceInfo = si; in createDummyInputMethodInfo()
234 return new InputMethodInfo(ri, isAuxIme, "", subtypes, 1, isDefault); in createDummyInputMethodInfo()
/frameworks/base/core/java/android/hardware/soundtrigger/
DKeyphraseEnrollmentInfo.java103 for (ResolveInfo ri : ris) { in KeyphraseEnrollmentInfo()
106 ri.activityInfo.packageName, PackageManager.GET_META_DATA); in KeyphraseEnrollmentInfo()
/frameworks/base/services/core/java/com/android/server/pm/
DPreferredComponent.java207 ResolveInfo ri = query.get(i); in sameSet() local
208 ActivityInfo ai = ri.activityInfo; in sameSet()
DPackageManagerService.java3091 ResolveInfo ri = findPreferredActivity(intent, resolvedType, in chooseBestActivity() local
3093 if (ri != null) { in chooseBestActivity()
3094 return ri; in chooseBestActivity()
3097 ri = new ResolveInfo(mResolveInfo); in chooseBestActivity()
3098 ri.activityInfo = new ActivityInfo(ri.activityInfo); in chooseBestActivity()
3099 ri.activityInfo.applicationInfo = new ApplicationInfo( in chooseBestActivity()
3100 ri.activityInfo.applicationInfo); in chooseBestActivity()
3101 ri.activityInfo.applicationInfo.uid = UserHandle.getUid(userId, in chooseBestActivity()
3102 UserHandle.getAppId(ri.activityInfo.applicationInfo.uid)); in chooseBestActivity()
3103 return ri; in chooseBestActivity()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsFragment.java169 private void showAppDetails(ResolveInfo ri) { in showAppDetails() argument
171 intent.setData(Uri.fromParts("package", ri.activityInfo.packageName, null)); in showAppDetails()

12