/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | RegisteredAidCache.java | 154 AidResolveInfo resolveInfo = new AidResolveInfo(); in resolveAid() local 168 resolveInfo.category = CardEmulation.CATEGORY_OTHER; in resolveAid() 179 if (resolveInfo.defaultService != null) { in resolveAid() 184 resolveInfo.defaultService = entryResolveInfo.defaultService; in resolveAid() 185 resolveInfo.category = entryResolveInfo.category; in resolveAid() 188 if (!resolveInfo.services.contains(serviceInfo)) { in resolveAid() 189 resolveInfo.services.add(serviceInfo); in resolveAid() 195 resolveInfo = mAidCache.get(aid); in resolveAid() 197 if (DBG) Log.d(TAG, "Resolved to: " + resolveInfo); in resolveAid() 198 return resolveInfo; in resolveAid() [all …]
|
D | HostEmulationManager.java | 153 AidResolveInfo resolveInfo = null; in onHostEmulationData() local 167 resolveInfo = mAidCache.resolveAid(selectAid); in onHostEmulationData() 168 if (resolveInfo == null || resolveInfo.services.size() == 0) { in onHostEmulationData() 174 if (resolveInfo.defaultService != null) { in onHostEmulationData() 177 ApduServiceInfo defaultServiceInfo = resolveInfo.defaultService; in onHostEmulationData() 182 launchTapAgain(resolveInfo.defaultService, resolveInfo.category); in onHostEmulationData() 195 for (ApduServiceInfo serviceInfo : resolveInfo.services) { in onHostEmulationData() 207 launchResolver((ArrayList<ApduServiceInfo>)resolveInfo.services, null, in onHostEmulationData() 208 resolveInfo.category); in onHostEmulationData() 227 if(CardEmulation.CATEGORY_PAYMENT.equals(resolveInfo.category)) in onHostEmulationData() [all …]
|
/packages/apps/Settings/src/com/android/settings/security/trustagent/ |
D | TrustAgentManager.java | 82 public boolean shouldProvideTrust(ResolveInfo resolveInfo, PackageManager pm) { in shouldProvideTrust() argument 83 final String packageName = resolveInfo.serviceInfo.packageName; in shouldProvideTrust() 122 for (ResolveInfo resolveInfo : resolveInfos) { in getActiveTrustAgents() 123 if (resolveInfo.serviceInfo == null || !shouldProvideTrust(resolveInfo, pm)) { in getActiveTrustAgents() 127 getSettingsComponent(pm, resolveInfo); in getActiveTrustAgents() 129 !enabledTrustAgents.contains(getComponentName(resolveInfo)) || in getActiveTrustAgents() 134 null, getComponentName(resolveInfo)) == null) { in getActiveTrustAgents() 146 public ComponentName getComponentName(ResolveInfo resolveInfo) { in getComponentName() argument 147 if (resolveInfo == null || resolveInfo.serviceInfo == null) return null; in getComponentName() 148 return new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name); in getComponentName() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAssistantPickerEntryPreferenceControllerTest.java | 119 ResolveInfo resolveInfo = new ResolveInfo(); in getSettingIntent_hasAssistant_noAssistSupport_returnsNull() local 120 resolveInfo.serviceInfo = new ServiceInfo(); in getSettingIntent_hasAssistant_noAssistSupport_returnsNull() 121 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getSettingIntent_hasAssistant_noAssistSupport_returnsNull() 122 resolveInfo.serviceInfo.name = TEST_CLASS; in getSettingIntent_hasAssistant_noAssistSupport_returnsNull() 124 ShadowVoiceInteractionServiceInfo.setSupportsAssist(resolveInfo.serviceInfo, false); in getSettingIntent_hasAssistant_noAssistSupport_returnsNull() 125 ShadowVoiceInteractionServiceInfo.setSettingsActivity(resolveInfo.serviceInfo, in getSettingIntent_hasAssistant_noAssistSupport_returnsNull() 131 getShadowApplicationManager().addResolveInfoForIntent(intent, resolveInfo); in getSettingIntent_hasAssistant_noAssistSupport_returnsNull() 144 ResolveInfo resolveInfo = new ResolveInfo(); in getSettingIntent_hasAssistant_supportsAssist_noSettingsActivity_returnsNull() local 145 resolveInfo.serviceInfo = new ServiceInfo(); in getSettingIntent_hasAssistant_supportsAssist_noSettingsActivity_returnsNull() 146 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getSettingIntent_hasAssistant_supportsAssist_noSettingsActivity_returnsNull() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/ |
D | DefaultVoiceInputPickerPreferenceControllerTest.java | 88 ResolveInfo resolveInfo = new ResolveInfo(); in getCandidates_voiceInteractionService_hasOneElement() local 89 resolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_voiceInteractionService_hasOneElement() 90 resolveInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_voiceInteractionService_hasOneElement() 91 resolveInfo.serviceInfo.name = TEST_SERVICE; in getCandidates_voiceInteractionService_hasOneElement() 93 VoiceInputInfoProvider.VOICE_INTERACTION_SERVICE_TAG, resolveInfo); in getCandidates_voiceInteractionService_hasOneElement() 101 ResolveInfo resolveInfo = new ResolveInfo(); in getCandidates_voiceRecognitionService_hasOneElement() local 102 resolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_voiceRecognitionService_hasOneElement() 103 resolveInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_voiceRecognitionService_hasOneElement() 104 resolveInfo.serviceInfo.name = TEST_RECOGNIZER; in getCandidates_voiceRecognitionService_hasOneElement() 106 VoiceInputInfoProvider.VOICE_RECOGNITION_SERVICE_TAG, resolveInfo); in getCandidates_voiceRecognitionService_hasOneElement() [all …]
|
D | DefaultVoiceInputPickerEntryPreferenceControllerTest.java | 175 ResolveInfo resolveInfo = new ResolveInfo(); in getCurrentDefaultAppInfo_providerHasCurrentService_returnsValidDefaultAppInfo() local 176 resolveInfo.serviceInfo = new ServiceInfo(); in getCurrentDefaultAppInfo_providerHasCurrentService_returnsValidDefaultAppInfo() 177 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getCurrentDefaultAppInfo_providerHasCurrentService_returnsValidDefaultAppInfo() 178 resolveInfo.serviceInfo.name = TEST_VOICE; in getCurrentDefaultAppInfo_providerHasCurrentService_returnsValidDefaultAppInfo() 180 VoiceInputInfoProvider.VOICE_INTERACTION_SERVICE_TAG, resolveInfo); in getCurrentDefaultAppInfo_providerHasCurrentService_returnsValidDefaultAppInfo() 212 ResolveInfo resolveInfo = new ResolveInfo(); in getSettingIntent_validInput_returnsIntent() local 213 resolveInfo.serviceInfo = new ServiceInfo(); in getSettingIntent_validInput_returnsIntent() 214 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getSettingIntent_validInput_returnsIntent() 215 resolveInfo.serviceInfo.name = TEST_VOICE; in getSettingIntent_validInput_returnsIntent() 217 ShadowVoiceInteractionServiceInfo.setSettingsActivity(resolveInfo.serviceInfo, in getSettingIntent_validInput_returnsIntent() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
D | TvInputManagerHelperTest.java | 49 ResolveInfo resolveInfo = TestUtils.createResolveInfo("test", "test"); in testComparatorInternal() local 54 resolveInfo, in testComparatorInternal() 64 resolveInfo, in testComparatorInternal() 74 resolveInfo, in testComparatorInternal() 84 resolveInfo, in testComparatorInternal() 106 ResolveInfo resolveInfo = TestUtils.createResolveInfo("test", "test"); in testHardwareInputComparatorHdmi() local 110 resolveInfo, in testHardwareInputComparatorHdmi() 120 resolveInfo, in testHardwareInputComparatorHdmi() 130 resolveInfo, in testHardwareInputComparatorHdmi() 140 resolveInfo, in testHardwareInputComparatorHdmi() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | LiveWallpaperInfo.java | 108 ResolveInfo resolveInfo = resolveInfos.get(i); in getAll() local 111 wallpaperInfo = new android.app.WallpaperInfo(context, resolveInfo); in getAll() 113 Log.w(TAG, "Skipping wallpaper " + resolveInfo.serviceInfo, e); in getAll() 116 Log.w(TAG, "Skipping wallpaper " + resolveInfo.serviceInfo, e); in getAll() 149 ResolveInfo resolveInfo = resolveInfos.get(i); in getFromSpecifiedPackage() local 150 if (resolveInfo == null) { in getFromSpecifiedPackage() 157 wallpaperInfo = new android.app.WallpaperInfo(context, resolveInfo); in getFromSpecifiedPackage() 159 Log.w(TAG, "Skipping wallpaper " + resolveInfo.serviceInfo, e); in getFromSpecifiedPackage() 162 Log.w(TAG, "Skipping wallpaper " + resolveInfo.serviceInfo, e); in getFromSpecifiedPackage() 192 for (ResolveInfo resolveInfo : allResolveInfos) { in getAllContainingServiceNames() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | RegisteredComponentCache.java | 88 public final ResolveInfo resolveInfo; field in RegisteredComponentCache.ComponentInfo 91 ComponentInfo(ResolveInfo resolveInfo, String[] techs) { in ComponentInfo() argument 92 this.resolveInfo = resolveInfo; in ComponentInfo() 99 out.append(resolveInfo); in toString() 159 for (ResolveInfo resolveInfo : resolveInfos) { in generateComponentsList() 161 parseComponentInfo(pm, resolveInfo, components); in generateComponentsList() 163 Log.w(TAG, "Unable to load component info " + resolveInfo.toString(), e); in generateComponentsList() 165 Log.w(TAG, "Unable to load component info " + resolveInfo.toString(), e); in generateComponentsList() 199 ResolveInfo resolveInfo, ArrayList<ComponentInfo> components) in parseTechLists() argument 219 components.add(new ComponentInfo(resolveInfo, techs)); in parseTechLists()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/ |
D | LegalPreferenceController.java | 73 for (ResolveInfo resolveInfo : list) { in findMatchingSpecificActivity() 74 if ((resolveInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in findMatchingSpecificActivity() 76 return resolveInfo; in findMatchingSpecificActivity() 85 final ResolveInfo resolveInfo = findMatchingSpecificActivity(); in replacePreferenceIntent() local 86 if (resolveInfo == null) { in replacePreferenceIntent() 92 resolveInfo.activityInfo.packageName, in replacePreferenceIntent() 93 resolveInfo.activityInfo.name)); in replacePreferenceIntent() 95 mPreference.setTitle(resolveInfo.loadLabel(mPackageManager)); in replacePreferenceIntent()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/legal/ |
D | LegalPreferenceController.java | 73 for (ResolveInfo resolveInfo : list) { in findMatchingSpecificActivity() 74 if ((resolveInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in findMatchingSpecificActivity() 76 return resolveInfo; in findMatchingSpecificActivity() 85 final ResolveInfo resolveInfo = findMatchingSpecificActivity(); in replacePreferenceIntent() local 86 if (resolveInfo == null) { in replacePreferenceIntent() 92 resolveInfo.activityInfo.packageName, in replacePreferenceIntent() 93 resolveInfo.activityInfo.name)); in replacePreferenceIntent() 95 mPreference.setTitle(resolveInfo.loadLabel(mPackageManager)); in replacePreferenceIntent()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/ |
D | VoiceInputInfoProvider.java | 110 for (ResolveInfo resolveInfo : mAvailableVoiceInteractionServices) { in loadVoiceInteractionServices() 112 mContext.getPackageManager(), resolveInfo.serviceInfo); in loadVoiceInteractionServices() 114 LOG.w("Error in VoiceInteractionService " + resolveInfo.serviceInfo.packageName in loadVoiceInteractionServices() 115 + "/" + resolveInfo.serviceInfo.name + ": " in loadVoiceInteractionServices() 123 mRecognitionServiceNames.add(new ComponentName(resolveInfo.serviceInfo.packageName, in loadVoiceInteractionServices() 126 mComponentToInfoMap.put(new ComponentName(resolveInfo.serviceInfo.packageName, in loadVoiceInteractionServices() 127 resolveInfo.serviceInfo.name), voiceInteractionInfo); in loadVoiceInteractionServices() 136 for (ResolveInfo resolveInfo : mAvailableRecognitionServices) { in loadVoiceRecognitionServices() 137 ComponentName componentName = new ComponentName(resolveInfo.serviceInfo.packageName, in loadVoiceRecognitionServices() 138 resolveInfo.serviceInfo.name); in loadVoiceRecognitionServices() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | HomeRoleBehavior.java | 77 ResolveInfo resolveInfo = resolveInfos.get(i); in getFallbackHolder() local 82 if (isSettingsApplication(resolveInfo.activityInfo.applicationInfo, context)) { in getFallbackHolder() 85 if (resolveInfo.priority > priority) { in getFallbackHolder() 86 packageName = resolveInfo.activityInfo.packageName; in getFallbackHolder() 87 priority = resolveInfo.priority; in getFallbackHolder() 88 } else if (resolveInfo.priority == priority) { in getFallbackHolder() 160 ResolveInfo resolveInfo = packageManager.resolveActivity(new Intent( in isSettingsApplication() local 164 if (resolveInfo == null || resolveInfo.activityInfo == null) { in isSettingsApplication() 167 return Objects.equals(applicationInfo.packageName, resolveInfo.activityInfo.packageName); in isSettingsApplication()
|
D | RequiredBroadcastReceiver.java | 55 protected ComponentName getComponentComponentName(@NonNull ResolveInfo resolveInfo) { in getComponentComponentName() argument 56 return new ComponentName(resolveInfo.activityInfo.packageName, in getComponentComponentName() 57 resolveInfo.activityInfo.name); in getComponentComponentName() 62 protected String getComponentPermission(@NonNull ResolveInfo resolveInfo) { in getComponentPermission() argument 63 return resolveInfo.activityInfo.permission; in getComponentPermission() 68 protected Bundle getComponentMetaData(@NonNull ResolveInfo resolveInfo) { in getComponentMetaData() argument 69 return resolveInfo.activityInfo.metaData; in getComponentMetaData()
|
D | RequiredActivity.java | 56 protected ComponentName getComponentComponentName(@NonNull ResolveInfo resolveInfo) { in getComponentComponentName() argument 57 return new ComponentName(resolveInfo.activityInfo.packageName, in getComponentComponentName() 58 resolveInfo.activityInfo.name); in getComponentComponentName() 63 protected String getComponentPermission(@NonNull ResolveInfo resolveInfo) { in getComponentPermission() argument 64 return resolveInfo.activityInfo.permission; in getComponentPermission() 69 protected Bundle getComponentMetaData(@NonNull ResolveInfo resolveInfo) { in getComponentMetaData() argument 70 return resolveInfo.activityInfo.metaData; in getComponentMetaData()
|
D | RequiredService.java | 55 protected ComponentName getComponentComponentName(@NonNull ResolveInfo resolveInfo) { in getComponentComponentName() argument 56 return new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name); in getComponentComponentName() 61 protected String getComponentPermission(@NonNull ResolveInfo resolveInfo) { in getComponentPermission() argument 62 return resolveInfo.serviceInfo.permission; in getComponentPermission() 67 protected Bundle getComponentMetaData(@NonNull ResolveInfo resolveInfo) { in getComponentMetaData() argument 68 return resolveInfo.serviceInfo.metaData; in getComponentMetaData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/ |
D | DefaultAssistPreferenceControllerTest.java | 114 final ResolveInfo resolveInfo = new ResolveInfo(); in getSettingIntent_noSettingsActivity_shouldNotCrash() local 115 resolveInfo.activityInfo = new ActivityInfo(); in getSettingIntent_noSettingsActivity_shouldNotCrash() 116 resolveInfo.activityInfo.name = "assist"; in getSettingIntent_noSettingsActivity_shouldNotCrash() 117 resolveInfo.activityInfo.applicationInfo = new ApplicationInfo(); in getSettingIntent_noSettingsActivity_shouldNotCrash() 118 resolveInfo.activityInfo.applicationInfo.packageName = "com.android.settings"; in getSettingIntent_noSettingsActivity_shouldNotCrash() 120 .thenReturn(resolveInfo); in getSettingIntent_noSettingsActivity_shouldNotCrash() 125 resolveInfo.serviceInfo = serviceInfo; in getSettingIntent_noSettingsActivity_shouldNotCrash() 127 services.add(resolveInfo); in getSettingIntent_noSettingsActivity_shouldNotCrash() 130 ComponentName.unflattenFromString(flattenKey), resolveInfo, mPackageManager); in getSettingIntent_noSettingsActivity_shouldNotCrash() local
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/ |
D | VoiceInputHelper.java | 126 ResolveInfo resolveInfo = mAvailableVoiceInteractions.get(i); in buildUi() local 128 mContext.getPackageManager(), resolveInfo.serviceInfo); in buildUi() 131 + resolveInfo.serviceInfo.packageName + "/" in buildUi() 132 + resolveInfo.serviceInfo.name + ": " + info.getParseError()); in buildUi() 136 interactorRecognizers.add(new ComponentName(resolveInfo.serviceInfo.packageName, in buildUi() 154 ResolveInfo resolveInfo = mAvailableRecognition.get(i); in buildUi() local 155 ComponentName comp = new ComponentName(resolveInfo.serviceInfo.packageName, in buildUi() 156 resolveInfo.serviceInfo.name); in buildUi() 160 ServiceInfo si = resolveInfo.serviceInfo; in buildUi() 202 resolveInfo.serviceInfo, settingsActivity)); in buildUi()
|
/packages/apps/Settings/src/com/android/settings/applications/assist/ |
D | VoiceInputHelper.java | 126 ResolveInfo resolveInfo = mAvailableVoiceInteractions.get(i); in buildUi() local 128 mContext.getPackageManager(), resolveInfo.serviceInfo); in buildUi() 131 + resolveInfo.serviceInfo.packageName + "/" in buildUi() 132 + resolveInfo.serviceInfo.name + ": " + info.getParseError()); in buildUi() 136 interactorRecognizers.add(new ComponentName(resolveInfo.serviceInfo.packageName, in buildUi() 154 ResolveInfo resolveInfo = mAvailableRecognition.get(i); in buildUi() local 155 ComponentName comp = new ComponentName(resolveInfo.serviceInfo.packageName, in buildUi() 156 resolveInfo.serviceInfo.name); in buildUi() 160 ServiceInfo si = resolveInfo.serviceInfo; in buildUi() 202 resolveInfo.serviceInfo, settingsActivity)); in buildUi()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | InstantAppButtonsPreferenceControllerTest.java | 168 final ResolveInfo resolveInfo = mock(ResolveInfo.class); in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu() local 170 resolveInfo.activityInfo = activityInfo; in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu() 173 when(mPackageManager.resolveActivity(any(), anyInt())).thenReturn(resolveInfo); in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu() 194 final ResolveInfo resolveInfo = mock(ResolveInfo.class); in onOptionsItemSelected_shouldOpenAppStore() local 196 resolveInfo.activityInfo = activityInfo; in onOptionsItemSelected_shouldOpenAppStore() 199 when(mPackageManager.resolveActivity(any(), anyInt())).thenReturn(resolveInfo); in onOptionsItemSelected_shouldOpenAppStore() 238 final ResolveInfo resolveInfo = mock(ResolveInfo.class); in displayPreference_hasAppStoreLink_shoulSetClickListenerForInstallButton() local 240 resolveInfo.activityInfo = activityInfo; in displayPreference_hasAppStoreLink_shoulSetClickListenerForInstallButton() 243 when(mPackageManager.resolveActivity(any(), anyInt())).thenReturn(resolveInfo); in displayPreference_hasAppStoreLink_shoulSetClickListenerForInstallButton() 275 final ResolveInfo resolveInfo = mock(ResolveInfo.class); in clickInstallButton_shouldOpenAppStore() local [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/legal/ |
D | LegalPreferenceControllerTest.java | 91 ResolveInfo resolveInfo = new ResolveInfo() { in refreshUi_intentResolvesToActivity_isVisible() local 97 resolveInfo.activityInfo = activityInfo; in refreshUi_intentResolvesToActivity_isVisible() 99 list.add(resolveInfo); in refreshUi_intentResolvesToActivity_isVisible() 121 ResolveInfo resolveInfo = new ResolveInfo(); in refreshUi_intentResolvesToActivity_updatesTitle() local 122 resolveInfo.activityInfo = activityInfo; in refreshUi_intentResolvesToActivity_updatesTitle() 125 list.add(resolveInfo); in refreshUi_intentResolvesToActivity_updatesTitle() 149 ResolveInfo resolveInfo = new ResolveInfo() { in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity() local 155 resolveInfo.activityInfo = activityInfo; in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity() 157 list.add(resolveInfo); in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity()
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | RecordUtils.java | 85 for (ResolveInfo resolveInfo : activities) { in getViewsForIntent() 86 if (!resolveInfo.activityInfo.enabled) { in getViewsForIntent() 95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, in getViewsForIntent() 105 …private static View buildActivityView(Activity activity, ResolveInfo resolveInfo, PackageManager p… in buildActivityView() argument 108 ActivityInfo activityInfo = resolveInfo.activityInfo; in buildActivityView() 110 intent.setAction(resolveInfo.filter.getAction(0)); in buildActivityView() 118 icon.setImageDrawable(resolveInfo.loadIcon(pm)); in buildActivityView() 121 text.setText(resolveInfo.loadLabel(pm)); in buildActivityView()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | InputMethodAndSubtypePreferenceControllerTest.java | 104 final ResolveInfo resolveInfo = new ResolveInfo(); in createInputMethodInfo() local 105 resolveInfo.serviceInfo = new ServiceInfo(); in createInputMethodInfo() 106 resolveInfo.serviceInfo.packageName = "com.android.ime"; in createInputMethodInfo() 107 resolveInfo.serviceInfo.name = name; in createInputMethodInfo() 108 resolveInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in createInputMethodInfo() 109 resolveInfo.serviceInfo.applicationInfo.enabled = true; in createInputMethodInfo() 112 resolveInfo, in createInputMethodInfo()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/utils/ |
D | TestUtils.java | 185 ResolveInfo resolveInfo = new ResolveInfo(); in createResolveInfo() local 186 resolveInfo.serviceInfo = new ServiceInfo(); in createResolveInfo() 187 resolveInfo.serviceInfo.packageName = packageName; in createResolveInfo() 188 resolveInfo.serviceInfo.name = name; in createResolveInfo() 189 resolveInfo.serviceInfo.metaData = new Bundle(); in createResolveInfo() 190 resolveInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in createResolveInfo() 191 return resolveInfo; in createResolveInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentManagerTest.java | 57 ResolveInfo resolveInfo = new ResolveInfo(); in shouldProvideTrust_doesProvideTrustWithPermission() local 58 resolveInfo.serviceInfo = serviceInfo; in shouldProvideTrust_doesProvideTrustWithPermission() 60 assertThat(mTrustAgentManager.shouldProvideTrust(resolveInfo, mPackageManager)).isTrue(); in shouldProvideTrust_doesProvideTrustWithPermission() 70 ResolveInfo resolveInfo = new ResolveInfo(); in shouldProvideTrust_doesNotProvideTrustWithoutPermission() local 71 resolveInfo.serviceInfo = serviceInfo; in shouldProvideTrust_doesNotProvideTrustWithoutPermission() 73 assertThat(mTrustAgentManager.shouldProvideTrust(resolveInfo, mPackageManager)).isFalse(); in shouldProvideTrust_doesNotProvideTrustWithoutPermission()
|