Home
last modified time | relevance | path

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

/frameworks/support/media-compat/java/android/support/v4/media/session/
DMediaButtonReceiver.java274 List<ResolveInfo> resolveInfos = pm.queryBroadcastReceivers(queryIntent, 0); in getMediaButtonReceiverComponent() local
275 if (resolveInfos.size() == 1) { in getMediaButtonReceiverComponent()
276 ResolveInfo resolveInfo = resolveInfos.get(0); in getMediaButtonReceiverComponent()
279 } else if (resolveInfos.size() > 1) { in getMediaButtonReceiverComponent()
298 List<ResolveInfo> resolveInfos = pm.queryIntentServices(queryIntent, 0 /* flags */); in getServiceComponentByAction() local
299 if (resolveInfos.size() == 1) { in getServiceComponentByAction()
300 ResolveInfo resolveInfo = resolveInfos.get(0); in getServiceComponentByAction()
303 } else if (resolveInfos.isEmpty()) { in getServiceComponentByAction()
307 + resolveInfos.size()); in getServiceComponentByAction()
/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.java432 final List<ResolveInfo> resolveInfos = queryIntentServices(userId); in generateServicesMap() local
433 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/services/core/java/com/android/server/
DNetworkScorerAppManager.java72 final List<ResolveInfo> resolveInfos = in getAllValidScorers() local
74 if (resolveInfos == null || resolveInfos.isEmpty()) { in getAllValidScorers()
80 for (int i = 0; i < resolveInfos.size(); i++) { in getAllValidScorers()
81 final ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in getAllValidScorers()
/frameworks/base/core/java/android/app/
DKeyguardManager.java134 List<ResolveInfo> resolveInfos = mContext.getPackageManager() in getSettingsPackageForIntent() local
136 for (int i = 0; i < resolveInfos.size(); i++) { in getSettingsPackageForIntent()
137 return resolveInfos.get(i).activityInfo.packageName; in getSettingsPackageForIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationInfo.java366 final List<ResolveInfo> resolveInfos = pm.queryIntentActivities( in getAppSettingsIntent() local
370 if (resolveInfos == null || resolveInfos.size() == 0 || resolveInfos.get(0) == null) { in getAppSettingsIntent()
373 final ActivityInfo activityInfo = resolveInfos.get(0).activityInfo; in getAppSettingsIntent()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java178 List<ResolveInfo> resolveInfos = new ArrayList<>(); in addSystemAppsForIntent() local
181 resolveInfos.add(ri); in addSystemAppsForIntent()
185 .thenReturn(resolveInfos); in addSystemAppsForIntent()
/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/usb/java/com/android/server/usb/
DUsbProfileGroupSettingsManager.java894 ArrayList<ResolveInfo> resolveInfos = new ArrayList<>(); in queryIntentActivitiesForAllProfiles() local
897 resolveInfos.addAll(mPackageManager.queryIntentActivitiesAsUser(intent, in queryIntentActivitiesForAllProfiles()
901 return resolveInfos; in queryIntentActivitiesForAllProfiles()
1020 List<ResolveInfo> resolveInfos = queryIntentActivitiesForAllProfiles(intent); in getDeviceMatchesLocked() local
1021 int count = resolveInfos.size(); in getDeviceMatchesLocked()
1023 ResolveInfo resolveInfo = resolveInfos.get(i); in getDeviceMatchesLocked()
1035 List<ResolveInfo> resolveInfos = queryIntentActivitiesForAllProfiles(intent); in getAccessoryMatchesLocked() local
1036 int count = resolveInfos.size(); in getAccessoryMatchesLocked()
1038 ResolveInfo resolveInfo = resolveInfos.get(i); in getAccessoryMatchesLocked()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java300 List<ResolveInfo> resolveInfos = resolveAllowedTrustAgents(pm, userInfo.id); in refreshAgentList() local
301 for (ResolveInfo resolveInfo : resolveInfos) { in refreshAgentList()
585 List<ResolveInfo> resolveInfos = resolveAllowedTrustAgents(pm, userId); in maybeEnableFactoryTrustAgents() local
587 for (ResolveInfo resolveInfo : resolveInfos) { in maybeEnableFactoryTrustAgents()
608 List<ResolveInfo> resolveInfos = pm.queryIntentServicesAsUser(TRUST_AGENT_INTENT, in resolveAllowedTrustAgents() local
612 ArrayList<ResolveInfo> allowedAgents = new ArrayList<>(resolveInfos.size()); in resolveAllowedTrustAgents()
613 for (ResolveInfo resolveInfo : resolveInfos) { in resolveAllowedTrustAgents()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActivityChooserModel.java690 List<ResolveInfo> resolveInfos = mContext.getPackageManager() in loadActivitiesIfNeeded() local
692 final int resolveInfoCount = resolveInfos.size(); in loadActivitiesIfNeeded()
694 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/midi/java/com/android/server/midi/
DMidiService.java577 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentServices(intent, in onUnlockUser() local
579 if (resolveInfos != null) { in onUnlockUser()
580 int count = resolveInfos.size(); in onUnlockUser()
582 ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in onUnlockUser()
/frameworks/base/core/java/com/android/internal/app/
DResolverComparator.java417 final List<ResolveInfo> resolveInfos = mPm.queryIntentServices(intent, 0); in resolveRankerService() local
418 for (ResolveInfo resolveInfo : resolveInfos) { in resolveRankerService()
/frameworks/support/compat/java/android/support/v4/app/
DNotificationManagerCompat.java413 List<ResolveInfo> resolveInfos = mContext.getPackageManager().queryIntentServices( in updateListenerMap() local
416 for (ResolveInfo resolveInfo : resolveInfos) { in updateListenerMap()