/frameworks/base/core/java/android/content/pm/ |
D | AuxiliaryResolveInfo.java | 89 public final InstantAppResolveInfo resolveInfo; field in AuxiliaryResolveInfo.AuxiliaryFilter 99 public AuxiliaryFilter(IntentFilter orig, InstantAppResolveInfo resolveInfo, in AuxiliaryFilter() argument 102 this.resolveInfo = resolveInfo; in AuxiliaryFilter() 103 this.packageName = resolveInfo.getPackageName(); in AuxiliaryFilter() 104 this.versionCode = resolveInfo.getLongVersionCode(); in AuxiliaryFilter() 109 public AuxiliaryFilter(InstantAppResolveInfo resolveInfo, in AuxiliaryFilter() argument 111 this.resolveInfo = resolveInfo; in AuxiliaryFilter() 112 this.packageName = resolveInfo.getPackageName(); in AuxiliaryFilter() 113 this.versionCode = resolveInfo.getLongVersionCode(); in AuxiliaryFilter() 119 this.resolveInfo = null; in AuxiliaryFilter()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverDataProvider.java | 65 final ResolveInfo resolveInfo = new ResolveInfo(); in createResolveInfo() local 66 resolveInfo.activityInfo = createActivityInfo(i); in createResolveInfo() 67 resolveInfo.targetUserId = userId; in createResolveInfo() 68 resolveInfo.userHandle = resolvedForUser; in createResolveInfo() 69 return resolveInfo; in createResolveInfo() 95 public ResolveInfo resolveInfo; field in ResolverDataProvider.PackageManagerMockedInfo 149 ResolveInfo resolveInfo = new ResolveInfo() { in createPackageManagerMockedInfo() local 155 resolveInfo.activityInfo = activityInfo; in createPackageManagerMockedInfo() 156 resolveInfo.resolvePackageName = "super.fake.packagename"; in createPackageManagerMockedInfo() 157 resolveInfo.labelRes = 3; in createPackageManagerMockedInfo() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/ |
D | InputMethodPreferenceTest.java | 135 final ResolveInfo resolveInfo = new ResolveInfo(); in createInputMethodInfo() local 136 resolveInfo.serviceInfo = new ServiceInfo(); in createInputMethodInfo() 137 resolveInfo.serviceInfo.packageName = "com.android.ime"; in createInputMethodInfo() 138 resolveInfo.serviceInfo.name = name; in createInputMethodInfo() 139 resolveInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in createInputMethodInfo() 140 resolveInfo.serviceInfo.applicationInfo.enabled = true; in createInputMethodInfo() 142 resolveInfo.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo() 144 resolveInfo.serviceInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo() 147 resolveInfo, in createInputMethodInfo()
|
/frameworks/base/services/core/java/com/android/server/servicewatcher/ |
D | CurrentUserServiceSupplier.java | 99 private static int parseUid(ResolveInfo resolveInfo) { in parseUid() argument 100 int uid = resolveInfo.serviceInfo.applicationInfo.uid; in parseUid() 101 Bundle metadata = resolveInfo.serviceInfo.metaData; in parseUid() 109 private static int parseVersion(ResolveInfo resolveInfo) { in parseVersion() argument 111 if (resolveInfo.serviceInfo.metaData != null) { in parseVersion() 112 version = resolveInfo.serviceInfo.metaData.getInt(EXTRA_SERVICE_VERSION, version); in parseVersion() 120 protected BoundServiceInfo(String action, ResolveInfo resolveInfo) { in BoundServiceInfo() argument 121 this(action, parseUid(resolveInfo), resolveInfo.serviceInfo.getComponentName(), in BoundServiceInfo() 122 parseVersion(resolveInfo), resolveInfo.serviceInfo.metaData); in BoundServiceInfo() 283 for (ResolveInfo resolveInfo : resolveInfos) { in getServiceInfo() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | CrossProfileDomainInfo.java | 30 CrossProfileDomainInfo(ResolveInfo resolveInfo, int highestApprovalLevel, @UserIdInt in CrossProfileDomainInfo() argument 32 this.mResolveInfo = resolveInfo; in CrossProfileDomainInfo() 37 CrossProfileDomainInfo(ResolveInfo resolveInfo, int highestApprovalLevel) { in CrossProfileDomainInfo() argument 38 this.mResolveInfo = resolveInfo; in CrossProfileDomainInfo()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/ |
D | GameServiceProviderSelectorImplTest.java | 135 resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_nullUser_returnsNull() 152 resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_managedUser_returnsNull() 169 resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_noSystemGameService_returnsNull() 203 resolveInfo(GAME_SERVICE_SERVICE_INFO_WITHOUT_META_DATA)); in get_gameServiceProviderHasNoMetaData_returnsGameServicePackageName() 218 resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_gameSessionServiceDoesNotExist_returnsGameServicePackageName() 235 resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_metaDataWrongFirstTag_returnsGameServicePackageName() 253 resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_validGameServiceProviderAvailable_returnsGameServiceProvider() 278 resolveInfo(GAME_SERVICE_B_SERVICE_INFO), resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_multipleGameServiceProvidersAllValid_returnsFirstValidGameServiceProvider() 306 resolveInfo(GAME_SERVICE_B_SERVICE_INFO), resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_multipleGameServiceProvidersSomeInvalid_returnsFirstValidGameServiceProvider() 331 resolveInfo(GAME_SERVICE_B_SERVICE_INFO), resolveInfo(GAME_SERVICE_SERVICE_INFO)); in get_overridePresent_returnsDeviceConfigGameServiceProvider() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | TileUtilsTest.java | 145 ResolveInfo resolveInfo = newInfo(true, null /* category */, keyHint); in getTilesForIntent_shouldParseKeyHintForSystemApp() local 146 info.add(resolveInfo); in getTilesForIntent_shouldParseKeyHintForSystemApp() 206 ResolveInfo resolveInfo = newInfo(true, null /* category */, null, URI_GET_ICON, in getTilesForIntent_shouldReadMetadataTitleAsString() local 208 info.add(resolveInfo); in getTilesForIntent_shouldReadMetadataTitleAsString() 228 ResolveInfo resolveInfo = newInfo(true, null /* category */, null, URI_GET_ICON, in getTilesForIntent_shouldReadMetadataTitleFromResource() local 230 info.add(resolveInfo); in getTilesForIntent_shouldReadMetadataTitleFromResource() 252 ResolveInfo resolveInfo = newInfo(true, null /* category */, null, URI_GET_ICON, in getTilesForIntent_shouldNotTintIconIfInSettingsPackage() local 254 resolveInfo.activityInfo.packageName = "com.android.settings"; in getTilesForIntent_shouldNotTintIconIfInSettingsPackage() 255 resolveInfo.activityInfo.applicationInfo.packageName = "com.android.settings"; in getTilesForIntent_shouldNotTintIconIfInSettingsPackage() 256 info.add(resolveInfo); in getTilesForIntent_shouldNotTintIconIfInSettingsPackage() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/pipeline/data/repository/ |
D | InstalledTilesComponentRepositoryImplTest.kt | 153 val resolveInfo = in <lambda>() constant 162 .thenReturn(listOf(resolveInfo)) in <lambda>() 173 val resolveInfo = in <lambda>() constant 186 .thenReturn(listOf(resolveInfo)) in <lambda>() 196 val resolveInfo = in <lambda>() constant 205 .thenReturn(listOf(resolveInfo)) in <lambda>() 215 val resolveInfo = in <lambda>() constant 224 .thenReturn(listOf(resolveInfo)) in <lambda>() 250 val resolveInfo = in <lambda>() constant 261 .thenReturn(listOf(resolveInfo)) in <lambda>() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
D | PartnerTest.java | 141 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/ |
D | PrintServiceInfo.java | 95 public PrintServiceInfo(ResolveInfo resolveInfo, String settingsActivityName, in PrintServiceInfo() argument 97 mId = new ComponentName(resolveInfo.serviceInfo.packageName, in PrintServiceInfo() 98 resolveInfo.serviceInfo.name).flattenToString(); in PrintServiceInfo() 99 mResolveInfo = resolveInfo; in PrintServiceInfo() 124 public static PrintServiceInfo create(Context context, ResolveInfo resolveInfo) { in create() argument 131 parser = resolveInfo.serviceInfo.loadXmlMetaData(packageManager, in create() 146 resolveInfo.serviceInfo.applicationInfo); in create() 168 + resolveInfo.serviceInfo.packageName); in create() 176 return new PrintServiceInfo(resolveInfo, settingsActivityName, in create()
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/summary/ |
D | PartnerSummaryActionsCollector.java | 84 ResolveInfo resolveInfo = getSummaryContentProviderResolveInfo(context.getPackageManager()); in PartnerSummaryActionsCollector() local 86 if (resolveInfo == null) { in PartnerSummaryActionsCollector() 91 mContentProviderUri = getSummaryContentProviderUri(resolveInfo); in PartnerSummaryActionsCollector() 197 resolveInfo -> in getSummaryContentProviderResolveInfo() 198 resolveInfo.providerInfo != null in getSummaryContentProviderResolveInfo() 199 && resolveInfo.providerInfo.applicationInfo != null in getSummaryContentProviderResolveInfo() 200 && (resolveInfo.providerInfo.applicationInfo.flags in getSummaryContentProviderResolveInfo() 217 private static Uri getSummaryContentProviderUri(ResolveInfo resolveInfo) { in getSummaryContentProviderUri() argument 218 if (resolveInfo.providerInfo == null || TextUtils.isEmpty( in getSummaryContentProviderUri() 219 resolveInfo.providerInfo.authority)) { in getSummaryContentProviderUri() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/ |
D | DreamBackend.java | 191 for (ResolveInfo resolveInfo : resolveInfos) { in getDreamInfos() 192 final ComponentName componentName = getDreamComponentName(resolveInfo); in getDreamInfos() 198 dreamInfo.caption = resolveInfo.loadLabel(pm); in getDreamInfos() 199 dreamInfo.icon = resolveInfo.loadIcon(pm); in getDreamInfos() 200 dreamInfo.description = getDescription(resolveInfo, pm); in getDreamInfos() 205 resolveInfo.serviceInfo); in getDreamInfos() 217 private static CharSequence getDescription(ResolveInfo resolveInfo, PackageManager pm) { in getDescription() argument 218 String packageName = resolveInfo.resolvePackageName; in getDescription() 221 packageName = resolveInfo.serviceInfo.packageName; in getDescription() 222 applicationInfo = resolveInfo.serviceInfo.applicationInfo; in getDescription() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TransportTestUtils.java | 65 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/services/tests/servicestests/src/com/android/server/rotationresolver/ |
D | RotationResolverManagerPerUserServiceTest.java | 119 ResolveInfo resolveInfo = new ResolveInfo(); in createTestingResolveInfo() local 120 resolveInfo.serviceInfo = new ServiceInfo(); in createTestingResolveInfo() 121 resolveInfo.serviceInfo.packageName = PACKAGE_NAME; in createTestingResolveInfo() 122 resolveInfo.serviceInfo.name = CLASS_NAME; in createTestingResolveInfo() 123 resolveInfo.serviceInfo.permission = Manifest.permission.BIND_ROTATION_RESOLVER_SERVICE; in createTestingResolveInfo() 124 return resolveInfo; in createTestingResolveInfo()
|
/frameworks/base/media/java/android/media/tv/interactive/ |
D | TvInteractiveAppServiceInfo.java | 93 ResolveInfo resolveInfo = context.getPackageManager().resolveService(intent, in TvInteractiveAppServiceInfo() local 95 if (resolveInfo == null) { in TvInteractiveAppServiceInfo() 99 ComponentName componentName = new ComponentName(resolveInfo.serviceInfo.packageName, in TvInteractiveAppServiceInfo() 100 resolveInfo.serviceInfo.name); in TvInteractiveAppServiceInfo() 104 parseServiceMetadata(resolveInfo, context, types); in TvInteractiveAppServiceInfo() 106 mService = resolveInfo; in TvInteractiveAppServiceInfo() 213 ResolveInfo resolveInfo, Context context, List<String> types) { in parseServiceMetadata() argument 214 ServiceInfo si = resolveInfo.serviceInfo; in parseServiceMetadata()
|
/frameworks/base/core/java/android/widget/ |
D | ActivityChooserModel.java | 433 return mActivities.get(index).resolveInfo; in getActivity() 451 if (currentActivity.resolveInfo == activity) { in getActivityIndex() 489 chosenActivity.resolveInfo.activityInfo.packageName, in chooseActivity() 490 chosenActivity.resolveInfo.activityInfo.name); in chooseActivity() 538 return mActivities.get(0).resolveInfo; in getDefaultActivity() 571 newDefaultActivity.resolveInfo.activityInfo.packageName, in setDefaultActivity() 572 newDefaultActivity.resolveInfo.activityInfo.name); in setDefaultActivity() 723 ResolveInfo resolveInfo = resolveInfos.get(i); in loadActivitiesIfNeeded() local 724 ActivityInfo activityInfo = resolveInfo.activityInfo; in loadActivitiesIfNeeded() 728 mActivities.add(new ActivityResolveInfo(resolveInfo)); in loadActivitiesIfNeeded() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | PersonalAppsSuspensionHelper.java | 121 for (final ResolveInfo resolveInfo : matchingActivities) { in getSystemLauncherPackages() 122 if (resolveInfo.activityInfo == null in getSystemLauncherPackages() 123 || TextUtils.isEmpty(resolveInfo.activityInfo.packageName)) { in getSystemLauncherPackages() 124 Slogf.wtf(LOG_TAG, "Could not find package name for launcher app %s", resolveInfo); in getSystemLauncherPackages() 127 final String packageName = resolveInfo.activityInfo.packageName; in getSystemLauncherPackages() 183 final ResolveInfo resolveInfo = in getSettingsPackageName() local 185 if (resolveInfo != null) { in getSettingsPackageName() 186 return resolveInfo.activityInfo.packageName; in getSettingsPackageName()
|
/frameworks/compile/mclinker/lib/LD/ |
D | Relocator.cpp | 47 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/core/java/android/app/ |
D | LauncherActivity.java | 70 public ResolveInfo resolveInfo; field in LauncherActivity.ListItem 77 ListItem(PackageManager pm, ResolveInfo resolveInfo, IconResizer resizer) { in ListItem() argument 78 this.resolveInfo = resolveInfo; in ListItem() 79 label = resolveInfo.loadLabel(pm); in ListItem() 80 ComponentInfo ci = resolveInfo.activityInfo; in ListItem() 81 if (ci == null) ci = resolveInfo.serviceInfo; in ListItem() 83 label = resolveInfo.activityInfo.name; in ListItem() 87 icon = resizer.createIconThumbnail(resolveInfo.loadIcon(pm)); in ListItem() 171 … item.icon = mIconResizer.createIconThumbnail(item.resolveInfo.loadIcon(getPackageManager())); in bindView() 469 ResolveInfo resolveInfo = list.get(i); in makeListItems() local [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/util/ |
D | TelephonyUtils.java | 92 public static ComponentInfo getComponentInfo(@NonNull ResolveInfo resolveInfo) { in getComponentInfo() argument 93 if (resolveInfo.activityInfo != null) return resolveInfo.activityInfo; in getComponentInfo() 94 if (resolveInfo.serviceInfo != null) return resolveInfo.serviceInfo; in getComponentInfo() 95 if (resolveInfo.providerInfo != null) return resolveInfo.providerInfo; in getComponentInfo()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | CellBroadcastUtils.java | 40 ResolveInfo resolveInfo = packageManager.resolveActivity( in getDefaultCellBroadcastReceiverPackageName() local 45 if (resolveInfo == null) { in getDefaultCellBroadcastReceiverPackageName() 50 packageName = resolveInfo.activityInfo.applicationInfo.packageName; in getDefaultCellBroadcastReceiverPackageName()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | PhoneStateMonitor.java | 132 for (ResolveInfo resolveInfo : homeActivities) { in getCurrentDefaultHome() 133 if (resolveInfo.priority > topPriority) { in getCurrentDefaultHome() 134 topComponent = resolveInfo.activityInfo.getComponentName(); in getCurrentDefaultHome() 135 topPriority = resolveInfo.priority; in getCurrentDefaultHome() 136 } else if (resolveInfo.priority == topPriority) { in getCurrentDefaultHome()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaButtonReceiverHolder.java | 347 for (ResolveInfo resolveInfo : resolveInfos) { in getComponentName() 348 ComponentInfo componentInfo = getComponentInfo(resolveInfo); in getComponentName() 369 private static ComponentInfo getComponentInfo(@NonNull ResolveInfo resolveInfo) { in getComponentInfo() argument 371 if (resolveInfo.activityInfo != null) { in getComponentInfo() 372 return resolveInfo.activityInfo; in getComponentInfo() 373 } else if (resolveInfo.serviceInfo != null) { in getComponentInfo() 374 return resolveInfo.serviceInfo; in getComponentInfo()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | RemoteInlineSuggestionRenderService.java | 121 final ResolveInfo resolveInfo = context.getPackageManager().resolveServiceAsUser(intent, in getServiceInfo() local 123 final ServiceInfo serviceInfo = resolveInfo == null ? null : resolveInfo.serviceInfo; in getServiceInfo() 124 if (resolveInfo == null || serviceInfo == null) { in getServiceInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 661 ResolveInfo resolveInfo = new ResolveInfo(); in testStartAddAccountSessionReturnWithInvalidIntent() local 662 resolveInfo.activityInfo = new ActivityInfo(); in testStartAddAccountSessionReturnWithInvalidIntent() 663 resolveInfo.activityInfo.applicationInfo = new ApplicationInfo(); in testStartAddAccountSessionReturnWithInvalidIntent() 665 any(Intent.class), anyInt(), anyInt())).thenReturn(resolveInfo); in testStartAddAccountSessionReturnWithInvalidIntent() 692 ResolveInfo resolveInfo = new ResolveInfo(); in testStartAddAccountSessionReturnWithValidIntent() local 693 resolveInfo.activityInfo = new ActivityInfo(); in testStartAddAccountSessionReturnWithValidIntent() 694 resolveInfo.activityInfo.applicationInfo = new ApplicationInfo(); in testStartAddAccountSessionReturnWithValidIntent() 696 any(Intent.class), anyInt(), anyInt())).thenReturn(resolveInfo); in testStartAddAccountSessionReturnWithValidIntent() 726 ResolveInfo resolveInfo = new ResolveInfo(); in testStartAddAccountSessionWhereAuthenticatorReturnsIntentWithProhibitedFlags() local 727 resolveInfo.activityInfo = new ActivityInfo(); in testStartAddAccountSessionWhereAuthenticatorReturnsIntentWithProhibitedFlags() [all …]
|