Home
last modified time | relevance | path

Searched refs:resolveInfo (Results 1 – 25 of 109) sorted by relevance

12345

/frameworks/base/core/java/android/view/textclassifier/intent/
DLabeledIntent.java47 (labeledIntent, resolveInfo) -> {
108 final ResolveInfo resolveInfo = pm.resolveActivity(intent, 0); in resolve() local
110 if (resolveInfo == null || resolveInfo.activityInfo == null) { in resolve()
114 final String packageName = resolveInfo.activityInfo.packageName; in resolve()
115 final String className = resolveInfo.activityInfo.name; in resolve()
131 if (resolveInfo.activityInfo.getIconResource() != 0) { in resolve()
133 packageName, resolveInfo.activityInfo.getIconResource()); in resolve()
145 CharSequence title = titleChooser.chooseTitle(this, resolveInfo); in resolve()
148 title = DEFAULT_TITLE_CHOOSER.chooseTitle(this, resolveInfo); in resolve()
151 new RemoteAction(icon, title, resolveDescription(resolveInfo, pm), pendingIntent); in resolve()
[all …]
/frameworks/base/core/java/android/content/pm/
DAuxiliaryResolveInfo.java84 public final InstantAppResolveInfo resolveInfo; field in AuxiliaryResolveInfo.AuxiliaryFilter
94 public AuxiliaryFilter(IntentFilter orig, InstantAppResolveInfo resolveInfo, in AuxiliaryFilter() argument
97 this.resolveInfo = resolveInfo; in AuxiliaryFilter()
98 this.packageName = resolveInfo.getPackageName(); in AuxiliaryFilter()
99 this.versionCode = resolveInfo.getLongVersionCode(); in AuxiliaryFilter()
104 public AuxiliaryFilter(InstantAppResolveInfo resolveInfo, in AuxiliaryFilter() argument
106 this.resolveInfo = resolveInfo; in AuxiliaryFilter()
107 this.packageName = resolveInfo.getPackageName(); in AuxiliaryFilter()
108 this.versionCode = resolveInfo.getLongVersionCode(); in AuxiliaryFilter()
114 this.resolveInfo = null; in AuxiliaryFilter()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverDataProvider.java55 final ResolveInfo resolveInfo = new ResolveInfo(); in createResolveInfo() local
56 resolveInfo.activityInfo = createActivityInfo(i); in createResolveInfo()
57 resolveInfo.targetUserId = userId; in createResolveInfo()
58 return resolveInfo; in createResolveInfo()
84 public ResolveInfo resolveInfo; field in ResolverDataProvider.PackageManagerMockedInfo
138 ResolveInfo resolveInfo = new ResolveInfo() { in createPackageManagerMockedInfo() local
144 resolveInfo.activityInfo = activityInfo; in createPackageManagerMockedInfo()
145 resolveInfo.resolvePackageName = "super.fake.packagename"; in createPackageManagerMockedInfo()
146 resolveInfo.labelRes = 3; in createPackageManagerMockedInfo()
152 mockedInfo.resolveInfo = resolveInfo; in createPackageManagerMockedInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/
DDreamBackend.java120 for (ResolveInfo resolveInfo : resolveInfos) { in getDreamInfos()
121 if (resolveInfo.serviceInfo == null) in getDreamInfos()
124 dreamInfo.caption = resolveInfo.loadLabel(pm); in getDreamInfos()
125 dreamInfo.icon = resolveInfo.loadIcon(pm); in getDreamInfos()
126 dreamInfo.componentName = getDreamComponentName(resolveInfo); in getDreamInfos()
128 dreamInfo.settingsComponentName = getSettingsComponentName(pm, resolveInfo); in getDreamInfos()
289 private static ComponentName getDreamComponentName(ResolveInfo resolveInfo) { in getDreamComponentName() argument
290 if (resolveInfo == null || resolveInfo.serviceInfo == null) in getDreamComponentName()
292 return new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name); in getDreamComponentName()
295 …private static ComponentName getSettingsComponentName(PackageManager pm, ResolveInfo resolveInfo) { in getSettingsComponentName() argument
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DInputMethodPreferenceTest.java133 final ResolveInfo resolveInfo = new ResolveInfo(); in createInputMethodInfo() local
134 resolveInfo.serviceInfo = new ServiceInfo(); in createInputMethodInfo()
135 resolveInfo.serviceInfo.packageName = "com.android.ime"; in createInputMethodInfo()
136 resolveInfo.serviceInfo.name = name; in createInputMethodInfo()
137 resolveInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in createInputMethodInfo()
138 resolveInfo.serviceInfo.applicationInfo.enabled = true; in createInputMethodInfo()
140 resolveInfo.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
142 resolveInfo.serviceInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
145 resolveInfo, in createInputMethodInfo()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DTileUtilsTest.java121 ResolveInfo resolveInfo = newInfo(true, null /* category */, keyHint); in getTilesForIntent_shouldParseKeyHintForSystemApp() local
122 info.add(resolveInfo); in getTilesForIntent_shouldParseKeyHintForSystemApp()
175 ResolveInfo resolveInfo = newInfo(true, null /* category */, null, URI_GET_ICON, in getTilesForIntent_shouldReadMetadataTitleAsString() local
177 info.add(resolveInfo); in getTilesForIntent_shouldReadMetadataTitleAsString()
194 ResolveInfo resolveInfo = newInfo(true, null /* category */, null, URI_GET_ICON, in getTilesForIntent_shouldReadMetadataTitleFromResource() local
196 info.add(resolveInfo); in getTilesForIntent_shouldReadMetadataTitleFromResource()
215 ResolveInfo resolveInfo = newInfo(true, null /* category */, null, URI_GET_ICON, in getTilesForIntent_shouldNotTintIconIfInSettingsPackage() local
217 resolveInfo.activityInfo.packageName = "com.android.settings"; in getTilesForIntent_shouldNotTintIconIfInSettingsPackage()
218 resolveInfo.activityInfo.applicationInfo.packageName = "com.android.settings"; in getTilesForIntent_shouldNotTintIconIfInSettingsPackage()
219 info.add(resolveInfo); in getTilesForIntent_shouldNotTintIconIfInSettingsPackage()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DPartnerTest.java141 private final ResolveInfo resolveInfo; field in PartnerTest.PartnerPackageBuilder
146 resolveInfo = new ResolveInfo(); in PartnerPackageBuilder()
147 resolveInfo.resolvePackageName = packageName; in PartnerPackageBuilder()
155 resolveInfo.activityInfo = activityInfo; in PartnerPackageBuilder()
160 resolveInfo.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in setIsSystem()
162 resolveInfo.activityInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in setIsSystem()
169 resolveInfo.activityInfo.directBootAware = directBootAware; in setDirectBootAware()
176 .addResolveInfoForIntent(new Intent(ACTION_PARTNER_CUSTOMIZATION), resolveInfo); in injectResources()
/frameworks/base/core/java/android/printservice/
DPrintServiceInfo.java94 public PrintServiceInfo(ResolveInfo resolveInfo, String settingsActivityName, in PrintServiceInfo() argument
96 mId = new ComponentName(resolveInfo.serviceInfo.packageName, in PrintServiceInfo()
97 resolveInfo.serviceInfo.name).flattenToString(); in PrintServiceInfo()
98 mResolveInfo = resolveInfo; in PrintServiceInfo()
123 public static PrintServiceInfo create(Context context, ResolveInfo resolveInfo) { in create() argument
130 parser = resolveInfo.serviceInfo.loadXmlMetaData(packageManager, in create()
145 resolveInfo.serviceInfo.applicationInfo); in create()
167 + resolveInfo.serviceInfo.packageName); in create()
175 return new PrintServiceInfo(resolveInfo, settingsActivityName, in create()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTransportTestUtils.java65 ResolveInfo resolveInfo = resolveInfo(transportComponent); in setUpTransportsForTransportManager() local
66 shadowPackageManager.addResolveInfoForIntent(transportIntent(), resolveInfo); in setUpTransportsForTransportManager() local
68 transportIntent().setPackage(packageName), resolveInfo); in setUpTransportsForTransportManager() local
76 private static ResolveInfo resolveInfo(ComponentName transportComponent) { in resolveInfo() method in TransportTestUtils
77 ResolveInfo resolveInfo = new ResolveInfo(); in resolveInfo() local
78 resolveInfo.serviceInfo = new ServiceInfo(); in resolveInfo()
79 resolveInfo.serviceInfo.packageName = transportComponent.getPackageName(); in resolveInfo()
80 resolveInfo.serviceInfo.name = transportComponent.getClassName(); in resolveInfo()
81 return resolveInfo; in resolveInfo()
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java431 return mActivities.get(index).resolveInfo; in getActivity()
449 if (currentActivity.resolveInfo == activity) { in getActivityIndex()
487 chosenActivity.resolveInfo.activityInfo.packageName, in chooseActivity()
488 chosenActivity.resolveInfo.activityInfo.name); in chooseActivity()
536 return mActivities.get(0).resolveInfo; in getDefaultActivity()
569 newDefaultActivity.resolveInfo.activityInfo.packageName, in setDefaultActivity()
570 newDefaultActivity.resolveInfo.activityInfo.name); in setDefaultActivity()
721 ResolveInfo resolveInfo = resolveInfos.get(i); in loadActivitiesIfNeeded() local
722 ActivityInfo activityInfo = resolveInfo.activityInfo; in loadActivitiesIfNeeded()
726 mActivities.add(new ActivityResolveInfo(resolveInfo)); in loadActivitiesIfNeeded()
[all …]
/frameworks/base/core/java/android/app/
DLauncherActivity.java66 public ResolveInfo resolveInfo; field in LauncherActivity.ListItem
73 ListItem(PackageManager pm, ResolveInfo resolveInfo, IconResizer resizer) { in ListItem() argument
74 this.resolveInfo = resolveInfo; in ListItem()
75 label = resolveInfo.loadLabel(pm); in ListItem()
76 ComponentInfo ci = resolveInfo.activityInfo; in ListItem()
77 if (ci == null) ci = resolveInfo.serviceInfo; in ListItem()
79 label = resolveInfo.activityInfo.name; in ListItem()
83 icon = resizer.createIconThumbnail(resolveInfo.loadIcon(pm)); in ListItem()
167 … item.icon = mIconResizer.createIconThumbnail(item.resolveInfo.loadIcon(getPackageManager())); in bindView()
465 ResolveInfo resolveInfo = list.get(i); in makeListItems() local
[all …]
/frameworks/compile/mclinker/lib/LD/
DRelocator.cpp47 pModule.getSectionSymbolSet().get(out_sect)->resolveInfo(); in partialScanRelocation()
82 if (sym.resolveInfo()->type() == ResolveInfo::File) in issueUndefRef()
83 caller_file_name = sym.resolveInfo()->name(); in issueUndefRef()
85 if (sym.resolveInfo()->type() == ResolveInfo::Function && in issueUndefRef()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DPhoneStateMonitor.java118 for (ResolveInfo resolveInfo : homeActivities) { in getCurrentDefaultHome()
119 if (resolveInfo.priority > topPriority) { in getCurrentDefaultHome()
120 topComponent = resolveInfo.activityInfo.getComponentName(); in getCurrentDefaultHome()
121 topPriority = resolveInfo.priority; in getCurrentDefaultHome()
122 } else if (resolveInfo.priority == topPriority) { in getCurrentDefaultHome()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java526 for (ResolveInfo resolveInfo : resolveInfos) { in refreshAgentList()
527 ComponentName name = getComponentName(resolveInfo); in refreshAgentList()
550 agentInfo.label = resolveInfo.loadLabel(pm); in refreshAgentList()
551 agentInfo.icon = resolveInfo.loadIcon(pm); in refreshAgentList()
552 agentInfo.settings = getSettingsAttrs(pm, resolveInfo); in refreshAgentList()
560 directUnlock = resolveInfo.serviceInfo.directBootAware in refreshAgentList()
781 private SettingsAttrs getSettingsAttrs(PackageManager pm, ResolveInfo resolveInfo) { in getSettingsAttrs() argument
782 if (resolveInfo == null || resolveInfo.serviceInfo == null in getSettingsAttrs()
783 || resolveInfo.serviceInfo.metaData == null) return null; in getSettingsAttrs()
790 parser = resolveInfo.serviceInfo.loadXmlMetaData(pm, in getSettingsAttrs()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DHelpUtilsTest.java153 final ResolveInfo resolveInfo = new ResolveInfo(); in prepareHelpMenuItem_shouldShowIcon() local
154 resolveInfo.activityInfo = new ActivityInfo(); in prepareHelpMenuItem_shouldShowIcon()
155 resolveInfo.activityInfo.applicationInfo = new ApplicationInfo(); in prepareHelpMenuItem_shouldShowIcon()
156 resolveInfo.activityInfo.applicationInfo.packageName = "pkg"; in prepareHelpMenuItem_shouldShowIcon()
157 resolveInfo.activityInfo.name = "name"; in prepareHelpMenuItem_shouldShowIcon()
167 .thenReturn(resolveInfo); in prepareHelpMenuItem_shouldShowIcon()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java609 ResolveInfo resolveInfo = new ResolveInfo(); in testStartAddAccountSessionReturnWithInvalidIntent() local
610 resolveInfo.activityInfo = new ActivityInfo(); in testStartAddAccountSessionReturnWithInvalidIntent()
611 resolveInfo.activityInfo.applicationInfo = new ApplicationInfo(); in testStartAddAccountSessionReturnWithInvalidIntent()
613 any(Intent.class), anyInt(), anyInt())).thenReturn(resolveInfo); in testStartAddAccountSessionReturnWithInvalidIntent()
640 ResolveInfo resolveInfo = new ResolveInfo(); in testStartAddAccountSessionReturnWithValidIntent() local
641 resolveInfo.activityInfo = new ActivityInfo(); in testStartAddAccountSessionReturnWithValidIntent()
642 resolveInfo.activityInfo.applicationInfo = new ApplicationInfo(); in testStartAddAccountSessionReturnWithValidIntent()
644 any(Intent.class), anyInt(), anyInt())).thenReturn(resolveInfo); in testStartAddAccountSessionReturnWithValidIntent()
793 ResolveInfo resolveInfo = new ResolveInfo(); in testStartUpdateCredentialsSessionReturnWithInvalidIntent() local
794 resolveInfo.activityInfo = new ActivityInfo(); in testStartUpdateCredentialsSessionReturnWithInvalidIntent()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DBroadcastRecordTest.java108 final ResolveInfo resolveInfo = (ResolveInfo) receiver; in verifyRemaining() local
109 final ApplicationInfo appInfo = resolveInfo.activityInfo.applicationInfo; in verifyRemaining()
133 final ResolveInfo resolveInfo = new ResolveInfo(); in createResolveInfo() local
139 resolveInfo.activityInfo = activityInfo; in createResolveInfo()
140 return resolveInfo; in createResolveInfo()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageTrackerHelperImpl.java132 List<ResolveInfo> resolveInfo = mPackageManager.queryBroadcastReceiversAsUser( in receiverRegistered() local
134 if (resolveInfo.size() != 1) { in receiverRegistered()
136 + " intent=" + intent + ", found=" + resolveInfo); in receiverRegistered()
140 ResolveInfo matched = resolveInfo.get(0); in receiverRegistered()
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp90 assert(pSymbol.resolveInfo() != NULL); in add()
91 return add(pSymbol, Category::categorize(*pSymbol.resolveInfo())); in add()
192 assert(pSymbol.resolveInfo() != NULL); in arrange()
195 Category::categorize(*pSymbol.resolveInfo())); in arrange()
202 switch (Category::categorize(*(m_OutputSymbols[pos]->resolveInfo()))) { in changeCommonsToGlobal()
223 assert(pSymbol.resolveInfo() != NULL); in changeToDynamic()
225 Category::categorize(*pSymbol.resolveInfo()), in changeToDynamic()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java260 for (ResolveInfo resolveInfo : smsReceivers) { in getApplicationCollectionInternal()
261 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getApplicationCollectionInternal()
283 for (ResolveInfo resolveInfo : mmsReceivers) { in getApplicationCollectionInternal()
284 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getApplicationCollectionInternal()
304 for (ResolveInfo resolveInfo : respondServices) { in getApplicationCollectionInternal()
305 final ServiceInfo serviceInfo = resolveInfo.serviceInfo; in getApplicationCollectionInternal()
325 for (ResolveInfo resolveInfo : sendToActivities) { in getApplicationCollectionInternal()
326 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getApplicationCollectionInternal()
347 for (ResolveInfo resolveInfo : smsAppChangedReceivers) { in getApplicationCollectionInternal()
348 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getApplicationCollectionInternal()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DApplicationsStateRoboTest.java142 ResolveInfo resolveInfo = new ResolveInfo(); in getHomeActivities() local
143 resolveInfo.activityInfo = new ActivityInfo(); in getHomeActivities()
144 resolveInfo.activityInfo.packageName = HOME_PACKAGE_NAME; in getHomeActivities()
145 resolveInfo.activityInfo.enabled = true; in getHomeActivities()
146 outActivities.add(resolveInfo); in getHomeActivities()
147 return ComponentName.createRelative(resolveInfo.activityInfo.packageName, "foo"); in getHomeActivities()
163 ResolveInfo resolveInfo = new ResolveInfo(); in queryIntentActivitiesAsUser() local
164 resolveInfo.activityInfo = new ActivityInfo(); in queryIntentActivitiesAsUser()
165 resolveInfo.activityInfo.packageName = LAUNCHABLE_PACKAGE_NAME; in queryIntentActivitiesAsUser()
166 resolveInfo.activityInfo.enabled = true; in queryIntentActivitiesAsUser()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodInfoTest.java94 final ResolveInfo resolveInfo = new ResolveInfo(); in buildInputMethodForTest() local
95 resolveInfo.serviceInfo = serviceInfo; in buildInputMethodForTest()
96 return new InputMethodInfo(context, resolveInfo, null /* additionalSubtypesMap */); in buildInputMethodForTest()
/frameworks/base/core/java/com/android/internal/app/
DResolverRankerServiceResolverComparator.java340 for (ResolveInfo resolveInfo : resolveInfos) { in resolveRankerService()
341 if (resolveInfo == null || resolveInfo.serviceInfo == null in resolveRankerService()
342 || resolveInfo.serviceInfo.applicationInfo == null) { in resolveRankerService()
344 Log.d(TAG, "Failed to retrieve a ranker: " + resolveInfo); in resolveRankerService()
349 resolveInfo.serviceInfo.applicationInfo.packageName, in resolveRankerService()
350 resolveInfo.serviceInfo.name); in resolveRankerService()
365 resolveInfo.serviceInfo.packageName)) { in resolveRankerService()
/frameworks/base/services/core/java/com/android/server/role/
DFinancialSmsManager.java78 final ResolveInfo resolveInfo = mContext.getPackageManager().resolveService(intent, in getServiceInfo() local
80 if (resolveInfo == null || resolveInfo.serviceInfo == null) { in getServiceInfo()
84 return resolveInfo.serviceInfo; in getServiceInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java399 for (ResolveInfo resolveInfo : receivers) { in getCarrierPackageNamesForIntent()
400 String packageName = getPackageName(resolveInfo); in getCarrierPackageNamesForIntent()
418 private String getPackageName(ResolveInfo resolveInfo) { in getPackageName() argument
419 if (resolveInfo.activityInfo != null) { in getPackageName()
420 return resolveInfo.activityInfo.packageName; in getPackageName()
421 } else if (resolveInfo.serviceInfo != null) { in getPackageName()
422 return resolveInfo.serviceInfo.packageName; in getPackageName()
423 } else if (resolveInfo.providerInfo != null) { in getPackageName()
424 return resolveInfo.providerInfo.packageName; in getPackageName()

12345