/cts/tests/tests/content/src/android/content/pm/cts/ |
ResolveInfoTest.java | 23 import android.content.pm.ResolveInfo; 36 new ResolveInfo(); 41 ResolveInfo resolveInfo = pm.resolveActivity(intent, 0); 44 assertEquals(expectedLabel, resolveInfo.loadLabel(pm).toString()); 45 assertNotNull(resolveInfo.loadIcon(pm)); 46 assertTrue(resolveInfo.getIconResource() != 0); 47 assertNotNull(resolveInfo.toString()); 48 assertEquals(0, resolveInfo.describeContents()); 54 ResolveInfo resolveInfo = pm.resolveService(intent, PackageManager.GET_RESOLVED_FILTER) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
TaskDescription.java | 20 import android.content.pm.ResolveInfo; 25 final ResolveInfo resolveInfo; 38 ResolveInfo _resolveInfo, Intent _intent, 40 resolveInfo = _resolveInfo; 50 resolveInfo = null; 68 return resolveInfo == null;
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
RegisteredAidCache.java | 127 AidResolveInfo resolveInfo = mAidCache.get(matches.firstKey()); 129 resolveInfo.aid = matches.firstKey(); 130 return resolveInfo; 147 AidResolveInfo resolveInfo = null; 162 resolveInfo = mAidCache.get(aid); 164 if (resolveInfo == null || resolveInfo.services == null || 165 resolveInfo.services.size() == 0) { 169 if (resolveInfo.defaultService != null) { 170 return service.equals(resolveInfo.defaultService.getComponent()) [all...] |
HostEmulationManager.java | 171 AidResolveInfo resolveInfo = mAidCache.resolveAidPrefix(selectAid); 172 if (resolveInfo == null || resolveInfo.services.size() == 0) { 177 mLastSelectedAid = resolveInfo.aid; 178 if (resolveInfo.defaultService != null) { 181 if (resolveInfo.defaultService.requiresUnlock() && 183 String category = mAidCache.getCategoryForAid(resolveInfo.aid); 186 launchTapAgain(resolveInfo.defaultService, category); 191 if (!resolveInfo.defaultService.isOnHost()) { 197 resolvedService = resolveInfo.defaultService.getComponent() [all...] |
/packages/apps/Tag/src/com/android/apps/tag/record/ |
RecordUtils.java | 27 import android.content.pm.ResolveInfo; 68 List<ResolveInfo> activities = pm.queryIntentActivities(intent, flags); 85 for (ResolveInfo resolveInfo : activities) { 86 if (!resolveInfo.activityInfo.enabled) { 95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, 105 private static View buildActivityView(Activity activity, ResolveInfo resolveInfo, PackageManager pm, 108 ActivityInfo activityInfo = resolveInfo.activityInfo; 110 intent.setAction(resolveInfo.filter.getAction(0)) [all...] |
/packages/apps/Settings/tests/src/com/android/settings/ |
SettingsHookTests.java | 28 import android.content.pm.ResolveInfo; 90 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); 91 for (ResolveInfo resolveInfo : list) { 92 if (resolveInfo.activityInfo.packageName.equals(PACKAGE_NAME)) { 108 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); 109 for (ResolveInfo resolveInfo : list) { 110 if (resolveInfo.activityInfo.packageName.equals(PACKAGE_NAME)) {
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
MockPackageManager.java | 21 import android.content.pm.ResolveInfo; 33 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { 34 List<ResolveInfo> resolveInfos = new ArrayList<ResolveInfo>(); 41 private ResolveInfo createResolveInfo(String packageName) { 45 ResolveInfo resolveInfo = new ResolveInfo(); 46 resolveInfo.activityInfo = activityInfo; 47 return resolveInfo; [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
RegisteredComponentCache.java | 29 import android.content.pm.ResolveInfo; 88 public final ResolveInfo resolveInfo; 91 ComponentInfo(ResolveInfo resolveInfo, String[] techs) { 92 this.resolveInfo = resolveInfo; 99 out.append(resolveInfo); 157 List<ResolveInfo> resolveInfos = pm.queryIntentActivitiesAsUser(new Intent(mAction), 159 for (ResolveInfo resolveInfo : resolveInfos) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
DreamBackend.java | 27 import android.content.pm.ResolveInfo; 100 List<ResolveInfo> resolveInfos = pm.queryIntentServices(dreamIntent, 103 for (ResolveInfo resolveInfo : resolveInfos) { 104 if (resolveInfo.serviceInfo == null) 107 dreamInfo.caption = resolveInfo.loadLabel(pm); 108 dreamInfo.icon = resolveInfo.loadIcon(pm); 109 dreamInfo.componentName = getDreamComponentName(resolveInfo); 111 dreamInfo.settingsComponentName = getSettingsComponentName(pm, resolveInfo); 233 private static ComponentName getDreamComponentName(ResolveInfo resolveInfo) [all...] |
VoiceInputOutputSettings.java | 22 import android.content.pm.ResolveInfo; 69 private HashMap<String, ResolveInfo> mAvailableRecognizersMap; 87 mAvailableRecognizersMap = new HashMap<String, ResolveInfo>(); 104 List<ResolveInfo> availableRecognitionServices = 122 ResolveInfo resolveInfo = availableRecognitionServices.get(0); 124 new ComponentName(resolveInfo.serviceInfo.packageName, 125 resolveInfo.serviceInfo.name).flattenToShortString(); 127 mAvailableRecognizersMap.put(recognizerComponent, resolveInfo); 151 private void populateRecognizerPreference(List<ResolveInfo> recognizers) [all...] |
Utils.java | 30 import android.content.pm.ResolveInfo; 132 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); 135 ResolveInfo resolveInfo = list.get(i); 136 if ((resolveInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) 141 resolveInfo.activityInfo.packageName, 142 resolveInfo.activityInfo.name)); 146 preference.setTitle(resolveInfo.loadLabel(pm)); 194 List<ResolveInfo> list = pm.queryIntentActivities(intent, PackageManager.GET_META_DATA); 197 ResolveInfo resolveInfo = list.get(i) [all...] |
ActivityPicker.java | 30 import android.content.pm.ResolveInfo; 184 List<ResolveInfo> list = packageManager.queryIntentActivities(baseIntent, 186 Collections.sort(list, new ResolveInfo.DisplayNameComparator(packageManager)); 190 ResolveInfo resolveInfo = list.get(i); 191 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)); 232 * {@link ResolveInfo} object. 234 Item(Context context, PackageManager pm, ResolveInfo resolveInfo) { 235 label = resolveInfo.loadLabel(pm) [all...] |
/cts/tests/tests/admin/src/android/admin/cts/ |
DeviceAdminInfoTest.java | 22 import android.content.pm.ResolveInfo; 60 ResolveInfo resolveInfo = new ResolveInfo(); 61 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mComponent, 64 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); 92 ResolveInfo resolveInfo = new ResolveInfo(); 93 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mSecondComponent [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
InstallWidgetReceiver.java | 26 import android.content.pm.ResolveInfo; 62 public ResolveInfo resolveInfo; 65 public WidgetMimeTypeHandlerData(ResolveInfo rInfo, AppWidgetProviderInfo wInfo) { 66 resolveInfo = rInfo; 141 final ResolveInfo resolveInfo = data.resolveInfo; 145 Drawable d = resolveInfo.loadIcon(packageManager); 150 final CharSequence component = resolveInfo.loadLabel(packageManager) [all...] |
IconCache.java | 25 import android.content.pm.ResolveInfo; 97 public Drawable getFullResIcon(ResolveInfo info) { 152 public void getTitleAndIcon(ApplicationInfo application, ResolveInfo info, 164 final ResolveInfo resolveInfo = mPackageManager.resolveActivity(intent, 0); 167 if (resolveInfo == null || component == null) { 171 CacheEntry entry = cacheLocked(component, resolveInfo, null); 176 public Bitmap getIcon(ComponentName component, ResolveInfo resolveInfo, 179 if (resolveInfo == null || component == null) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
InstallWidgetReceiver.java | 24 import android.content.pm.ResolveInfo; 60 public ResolveInfo resolveInfo; 63 public WidgetMimeTypeHandlerData(ResolveInfo rInfo, AppWidgetProviderInfo wInfo) { 64 resolveInfo = rInfo; 136 final ResolveInfo resolveInfo = data.resolveInfo; 140 Drawable d = resolveInfo.loadIcon(packageManager); 145 final CharSequence component = resolveInfo.loadLabel(packageManager) [all...] |
/frameworks/base/core/java/android/printservice/ |
PrintServiceInfo.java | 23 import android.content.pm.ResolveInfo; 57 private final ResolveInfo mResolveInfo; 81 * @param resolveInfo The service resolve info. 86 public PrintServiceInfo(ResolveInfo resolveInfo, String settingsActivityName, 88 mId = new ComponentName(resolveInfo.serviceInfo.packageName, 89 resolveInfo.serviceInfo.name).flattenToString(); 90 mResolveInfo = resolveInfo; 99 * @param resolveInfo The service resolve info. 104 public static PrintServiceInfo create(ResolveInfo resolveInfo, Context context) [all...] |
/frameworks/base/core/java/android/app/ |
LauncherActivity.java | 23 import android.content.pm.ResolveInfo; 66 public ResolveInfo resolveInfo; 73 ListItem(PackageManager pm, ResolveInfo resolveInfo, IconResizer resizer) { 74 this.resolveInfo = resolveInfo; 75 label = resolveInfo.loadLabel(pm); 76 ComponentInfo ci = resolveInfo.activityInfo; 77 if (ci == null) ci = resolveInfo.serviceInfo [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
PhoneCapabilityTester.java | 23 import android.content.pm.ResolveInfo; 50 final List<ResolveInfo> receiverList = packageManager.queryIntentActivities(intent, 88 final List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0); 89 for (ResolveInfo resolveInfo : resolveInfos) { 90 if (smsPackage.equals(resolveInfo.activityInfo.packageName)) { 91 return new ComponentName(smsPackage, resolveInfo.activityInfo.name);
|
/frameworks/base/core/java/android/widget/ |
ActivityChooserModel.java | 25 import android.content.pm.ResolveInfo; 422 public ResolveInfo getActivity(int index) { 425 return mActivities.get(index).resolveInfo; 436 public int getActivityIndex(ResolveInfo activity) { 443 if (currentActivity.resolveInfo == activity) { 480 chosenActivity.resolveInfo.activityInfo.packageName, 481 chosenActivity.resolveInfo.activityInfo.name); 524 public ResolveInfo getDefaultActivity() { 528 return mActivities.get(0).resolveInfo; 561 newDefaultActivity.resolveInfo.activityInfo.packageName [all...] |
/frameworks/compile/mclinker/lib/LD/ |
Relocator.cpp | 12 #include <mcld/LD/ResolveInfo.h> 30 if (pReloc.symInfo()->type() == ResolveInfo::Section) { 42 ResolveInfo* sym_info = 43 pModule.getSectionSymbolSet().get(out_sect)->resolveInfo(); 44 // set relocation target symbol to the output section symbol's resolveInfo
|
/frameworks/compile/mclinker/include/mcld/LD/ |
LDSymbol.h | 19 #include <mcld/LD/ResolveInfo.h> 36 typedef ResolveInfo::SizeType SizeType; 43 static LDSymbol* Create(ResolveInfo& pResolveInfo); 109 ResolveInfo* resolveInfo() 112 const ResolveInfo* resolveInfo() const 128 void setResolveInfo(const ResolveInfo& pInfo); 140 ResolveInfo* m_pResolveInfo;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
ActivityChooserModel.java | 22 import android.content.pm.ResolveInfo; 412 public ResolveInfo getActivity(int index) { 415 return mActivities.get(index).resolveInfo; 426 public int getActivityIndex(ResolveInfo activity) { 433 if (currentActivity.resolveInfo == activity) { 470 chosenActivity.resolveInfo.activityInfo.packageName, 471 chosenActivity.resolveInfo.activityInfo.name); 514 public ResolveInfo getDefaultActivity() { 518 return mActivities.get(0).resolveInfo; 551 newDefaultActivity.resolveInfo.activityInfo.packageName [all...] |
/frameworks/compile/mclinker/lib/MC/ |
SymbolCategory.cpp | 11 #include <mcld/LD/ResolveInfo.h> 20 SymbolCategory::Category::categorize(const ResolveInfo& pInfo) 22 if (ResolveInfo::File == pInfo.type()) 24 if (ResolveInfo::Local == pInfo.binding()) 26 if (ResolveInfo::Common == pInfo.desc()) 28 if (ResolveInfo::Default == pInfo.visibility() || 29 ResolveInfo::Protected == pInfo.visibility()) 94 assert(NULL != pSymbol.resolveInfo()); 95 return add(pSymbol, Category::categorize(*pSymbol.resolveInfo())); 183 const ResolveInfo& pSourceInfo [all...] |
/packages/services/Telephony/src/com/android/phone/ |
InCallScreenShowActivation.java | 24 import android.content.pm.ResolveInfo; 166 ResolveInfo resolveInfo = context.getPackageManager().resolveActivity(intent, 173 Log.v(LOG_TAG, "resolvInfo = " + resolveInfo + ", provisioned = " + provisioned 176 return resolveInfo != null && !provisioned && runningSetupWizard;
|