/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;
|
/cts/tests/tests/admin/src/android/admin/cts/ |
DeviceAdminInfoTest.java | 22 import android.content.pm.ResolveInfo; 52 ResolveInfo resolveInfo = new ResolveInfo(); 53 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mComponent, 56 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); 80 ResolveInfo resolveInfo = new ResolveInfo(); 81 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mSecondComponent [all...] |
/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.services == null || resolveInfo.services.size() == 0) return false; 166 if (resolveInfo.defaultService != null) { 167 return service.equals(resolveInfo.defaultService.getComponent()); 168 } else if (resolveInfo.services.size() == 1) [all...] |
HostEmulationManager.java | 164 AidResolveInfo resolveInfo = mAidCache.resolveAidPrefix(selectAid); 165 if (resolveInfo == null || resolveInfo.services.size() == 0) { 170 mLastSelectedAid = resolveInfo.aid; 171 if (resolveInfo.defaultService != null) { 174 if (resolveInfo.defaultService.requiresUnlock() && 176 String category = mAidCache.getCategoryForAid(resolveInfo.aid); 179 launchTapAgain(resolveInfo.defaultService, category); 182 resolvedService = resolveInfo.defaultService.getComponent(); 184 for (ApduServiceInfo service : resolveInfo.services) [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...] |
/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 | 26 import android.content.pm.ResolveInfo; 62 public ResolveInfo resolveInfo; 65 public WidgetMimeTypeHandlerData(ResolveInfo rInfo, AppWidgetProviderInfo wInfo) { 66 resolveInfo = rInfo; 138 final ResolveInfo resolveInfo = data.resolveInfo; 142 Drawable d = resolveInfo.loadIcon(packageManager); 147 final CharSequence component = resolveInfo.loadLabel(packageManager) [all...] |
IconCache.java | 25 import android.content.pm.ResolveInfo; 99 public Drawable getFullResIcon(ResolveInfo info) { 169 public void getTitleAndIcon(AppInfo application, ResolveInfo info, 181 final ResolveInfo resolveInfo = mPackageManager.resolveActivity(intent, 0); 184 if (resolveInfo == null || component == null) { 188 CacheEntry entry = cacheLocked(component, resolveInfo, null); 193 public Bitmap getIcon(ComponentName component, ResolveInfo resolveInfo, 196 if (resolveInfo == null || component == null) [all...] |
/frameworks/base/core/java/android/printservice/ |
PrintServiceInfo.java | 23 import android.content.pm.ResolveInfo; 57 private final ResolveInfo mResolveInfo; 78 * @param resolveInfo The service resolve info. 82 public PrintServiceInfo(ResolveInfo resolveInfo, String settingsActivityName, 84 mId = new ComponentName(resolveInfo.serviceInfo.packageName, 85 resolveInfo.serviceInfo.name).flattenToString(); 86 mResolveInfo = resolveInfo; 94 * @param resolveInfo The service resolve info. 99 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/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/opt/telephony/src/java/com/android/internal/telephony/ |
SmsApplication.java | 27 import android.content.pm.ResolveInfo; 126 List<ResolveInfo> smsReceivers = packageManager.queryBroadcastReceivers(intent, 0); 131 for (ResolveInfo resolveInfo : smsReceivers) { 132 final ActivityInfo activityInfo = resolveInfo.activityInfo; 141 final String applicationName = resolveInfo.loadLabel(packageManager).toString(); 152 List<ResolveInfo> mmsReceivers = packageManager.queryBroadcastReceivers(intent, 0); 153 for (ResolveInfo resolveInfo : mmsReceivers) { 154 final ActivityInfo activityInfo = resolveInfo.activityInfo [all...] |
/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/base/core/java/android/widget/ |
ActivityChooserModel.java | 22 import android.content.pm.ResolveInfo; 419 public ResolveInfo getActivity(int index) { 422 return mActivities.get(index).resolveInfo; 433 public int getActivityIndex(ResolveInfo activity) { 440 if (currentActivity.resolveInfo == activity) { 477 chosenActivity.resolveInfo.activityInfo.packageName, 478 chosenActivity.resolveInfo.activityInfo.name); 521 public ResolveInfo getDefaultActivity() { 525 return mActivities.get(0).resolveInfo; 558 newDefaultActivity.resolveInfo.activityInfo.packageName [all...] |
/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...] |