Home
last modified time | relevance | path

Searched refs:resolveInfos (Results 1 – 13 of 13) sorted by relevance

/frameworks/support/media-compat/java/android/support/v4/media/session/
DMediaButtonReceiver.java90 List<ResolveInfo> resolveInfos = pm.queryIntentServices(queryIntent, 0); in onReceive() local
91 if (resolveInfos.isEmpty()) { in onReceive()
94 resolveInfos = pm.queryIntentServices(queryIntent, 0); in onReceive()
96 if (resolveInfos.isEmpty()) { in onReceive()
99 } else if (resolveInfos.size() != 1) { in onReceive()
101 queryIntent.getAction() + ", found " + resolveInfos.size() ); in onReceive()
103 ResolveInfo resolveInfo = resolveInfos.get(0); in onReceive()
223 List<ResolveInfo> resolveInfos = pm.queryBroadcastReceivers(queryIntent, 0); in getMediaButtonReceiverComponent() local
224 if (resolveInfos.size() == 1) { in getMediaButtonReceiverComponent()
225 ResolveInfo resolveInfo = resolveInfos.get(0); in getMediaButtonReceiverComponent()
[all …]
/frameworks/base/core/java/android/content/pm/
DAppsQueryHelper.java101 final List<ResolveInfo> resolveInfos = queryIntentActivitiesAsUser(intent, in queryApps() local
105 final int resolveInfosSize = resolveInfos.size(); in queryApps()
107 appsWithLaunchers.add(resolveInfos.get(i).activityInfo.packageName); in queryApps()
137 final List<ResolveInfo> resolveInfos = queryIntentServicesAsUser( in queryApps() local
139 final int resolveInfosSize = resolveInfos.size(); in queryApps()
142 ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in queryApps()
DRegisteredServicesCache.java430 final List<ResolveInfo> resolveInfos = queryIntentServices(userId); in generateServicesMap() local
431 for (ResolveInfo resolveInfo : resolveInfos) { in generateServicesMap()
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java141 List<ResolveInfo> resolveInfos = pm.queryIntentServices(intent, in getEngineInfo() local
146 if (resolveInfos != null && resolveInfos.size() == 1) { in getEngineInfo()
147 return getEngineInfo(resolveInfos.get(0), pm); in getEngineInfo()
161 List<ResolveInfo> resolveInfos = in getEngines() local
163 if (resolveInfos == null) return Collections.emptyList(); in getEngines()
165 List<EngineInfo> engines = new ArrayList<EngineInfo>(resolveInfos.size()); in getEngines()
167 for (ResolveInfo resolveInfo : resolveInfos) { in getEngines()
201 List<ResolveInfo> resolveInfos = pm.queryIntentServices(intent, in getSettingsIntent() local
206 if (resolveInfos != null && resolveInfos.size() == 1) { in getSettingsIntent()
207 ServiceInfo service = resolveInfos.get(0).serviceInfo; in getSettingsIntent()
/frameworks/base/core/java/android/app/
DKeyguardManager.java123 List<ResolveInfo> resolveInfos = mContext.getPackageManager() in getSettingsPackageForIntent() local
125 for (int i = 0; i < resolveInfos.size(); i++) { in getSettingsPackageForIntent()
126 return resolveInfos.get(i).activityInfo.packageName; in getSettingsPackageForIntent()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/
DDreamBackend.java96 List<ResolveInfo> resolveInfos = pm.queryIntentServices(dreamIntent, in getDreamInfos() local
98 List<DreamInfo> dreamInfos = new ArrayList<>(resolveInfos.size()); in getDreamInfos()
99 for (ResolveInfo resolveInfo : resolveInfos) { in getDreamInfos()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java270 List<ResolveInfo> resolveInfos = resolveAllowedTrustAgents(pm, userInfo.id); in refreshAgentList() local
271 for (ResolveInfo resolveInfo : resolveInfos) { in refreshAgentList()
499 List<ResolveInfo> resolveInfos = resolveAllowedTrustAgents(pm, userId); in maybeEnableFactoryTrustAgents() local
501 for (ResolveInfo resolveInfo : resolveInfos) { in maybeEnableFactoryTrustAgents()
522 List<ResolveInfo> resolveInfos = pm.queryIntentServicesAsUser(TRUST_AGENT_INTENT, in resolveAllowedTrustAgents() local
525 ArrayList<ResolveInfo> allowedAgents = new ArrayList<>(resolveInfos.size()); in resolveAllowedTrustAgents()
526 for (ResolveInfo resolveInfo : resolveInfos) { in resolveAllowedTrustAgents()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActivityChooserModel.java691 List<ResolveInfo> resolveInfos = mContext.getPackageManager() in loadActivitiesIfNeeded() local
693 final int resolveInfoCount = resolveInfos.size(); in loadActivitiesIfNeeded()
695 ResolveInfo resolveInfo = resolveInfos.get(i); in loadActivitiesIfNeeded()
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java710 List<ResolveInfo> resolveInfos = mContext.getPackageManager() in loadActivitiesIfNeeded() local
712 final int resolveInfoCount = resolveInfos.size(); in loadActivitiesIfNeeded()
714 ResolveInfo resolveInfo = resolveInfos.get(i); in loadActivitiesIfNeeded()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSettingsManager.java708 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getDeviceMatchesLocked() local
710 int count = resolveInfos.size(); in getDeviceMatchesLocked()
712 ResolveInfo resolveInfo = resolveInfos.get(i); in getDeviceMatchesLocked()
723 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getAccessoryMatchesLocked() local
725 int count = resolveInfos.size(); in getAccessoryMatchesLocked()
727 ResolveInfo resolveInfo = resolveInfos.get(i); in getAccessoryMatchesLocked()
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java576 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentServices(intent, in onUnlockUser() local
578 if (resolveInfos != null) { in onUnlockUser()
579 int count = resolveInfos.size(); in onUnlockUser()
581 ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in onUnlockUser()
/frameworks/support/compat/java/android/support/v4/app/
DNotificationManagerCompat.java470 List<ResolveInfo> resolveInfos = mContext.getPackageManager().queryIntentServices( in updateListenerMap() local
473 for (ResolveInfo resolveInfo : resolveInfos) { in updateListenerMap()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java5547 private List<ResolveInfo> filterIfNotSystemUser(List<ResolveInfo> resolveInfos, int userId) {
5549 return resolveInfos;
5551 for (int i = resolveInfos.size() - 1; i >= 0; i--) {
5552 ResolveInfo info = resolveInfos.get(i);
5554 resolveInfos.remove(i);
5557 return resolveInfos;
5564 private boolean hasNonNegativePriority(List<ResolveInfo> resolveInfos) {
5565 return resolveInfos.size() > 0 && resolveInfos.get(0).priority >= 0;