Home
last modified time | relevance | path

Searched refs:ServiceInfo (Results 1 – 25 of 111) sorted by relevance

12345

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowVoiceInteractionServiceInfo.java20 import android.content.pm.ServiceInfo;
32 private static Map<ServiceInfo, Boolean> sSupportsAssistMap = new HashMap<>();
33 private static Map<ServiceInfo, String> sRecognitionServiceMap = new HashMap<>();
34 private static Map<ServiceInfo, String> sSettingsActivityMap = new HashMap<>();
36 private ServiceInfo mServiceInfo;
38 public void __constructor__(PackageManager pm, ServiceInfo si) { in __constructor__()
42 public static void setSupportsAssist(ServiceInfo si, boolean supports) { in setSupportsAssist()
46 public static void setRecognitionService(ServiceInfo si, String recognitionService) { in setRecognitionService()
50 public static void setSettingsActivity(ServiceInfo si, String settingsActivity) { in setSettingsActivity()
70 protected ServiceInfo getServiceInfo() { in getServiceInfo()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerPreferenceControllerTest.java25 import android.content.pm.ServiceInfo;
77 resolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_voiceInteractionService_hasOneElement()
90 resolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_voiceRecognitionService_hasOneElement()
103 interactionInfo.serviceInfo = new ServiceInfo(); in getCandidates_oneIsSameAsAssistant_hasTwoElements()
112 interactionInfo2.serviceInfo = new ServiceInfo(); in getCandidates_oneIsSameAsAssistant_hasTwoElements()
132 interactionInfo.serviceInfo = new ServiceInfo(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
141 interactionInfo2.serviceInfo = new ServiceInfo(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
168 interactionInfo.serviceInfo = new ServiceInfo(); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
177 interactionInfo2.serviceInfo = new ServiceInfo(); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
222 resolveInfo.serviceInfo = new ServiceInfo(); in setCurrentDefault_typeVoiceInteractionInfo_setsServices()
[all …]
DVoiceInputInfoProviderTest.java23 import android.content.pm.ServiceInfo;
60 resolveInfo.serviceInfo = new ServiceInfo(); in getInteractionInfoList_hasElement()
76 otherInfo.serviceInfo = new ServiceInfo(); in getRecognitionInfoList_hasElement()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAssistantPickerTest.java34 import android.content.pm.ServiceInfo;
101 List<ServiceInfo> list = new ArrayList<>(); in candidateListHasNoneAtEnd()
102 ServiceInfo serviceInfo = mock(ServiceInfo.class, RETURNS_SMART_NULLS); in candidateListHasNoneAtEnd()
114 List<ServiceInfo> list = new ArrayList<>(); in candidateListHasCorrectCandidate()
115 ServiceInfo serviceInfo = mock(ServiceInfo.class, RETURNS_SMART_NULLS); in candidateListHasCorrectCandidate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentManagerTest.java25 import android.content.pm.ServiceInfo;
55 ServiceInfo serviceInfo = new ServiceInfo(); in shouldProvideTrust_doesProvideTrustWithPermission()
68 ServiceInfo serviceInfo = new ServiceInfo(); in shouldProvideTrust_doesNotProvideTrustWithoutPermission()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSource.java25 import android.content.pm.ServiceInfo;
67 ServiceInfo serviceInfo = getBrowseServiceInfo(context, componentName); in create()
104 private static ServiceInfo getBrowseServiceInfo(@NonNull Context context, in getBrowseServiceInfo()
120 ServiceInfo result = resolveInfo.serviceInfo; in getBrowseServiceInfo()
134 @Nullable ServiceInfo serviceInfo, @NonNull String packageName) in extractDisplayName()
150 private static Drawable extractIcon(@NonNull Context context, @Nullable ServiceInfo serviceInfo, in extractIcon()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DVoiceInputInfoProvider.java24 import android.content.pm.ServiceInfo;
154 private final ServiceInfo mServiceInfo;
156 VoiceInputInfo(Context context, ServiceInfo serviceInfo) { in VoiceInputInfo()
165 protected ServiceInfo getServiceInfo() { in getServiceInfo()
244 VoiceRecognitionInfo(Context context, ServiceInfo serviceInfo) { in VoiceRecognitionInfo()
258 private String getServiceSettingsActivity(ServiceInfo serviceInfo) { in getServiceSettingsActivity()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DVoiceInputHelper.java24 import android.content.pm.ServiceInfo;
50 public final ServiceInfo service;
58 public BaseInfo(PackageManager pm, ServiceInfo _service, String _settings) { in BaseInfo()
79 ServiceInfo serviceInfo, in RecognizerInfo()
116 ServiceInfo si = resolveInfo.serviceInfo; in buildUi()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
DDefaultAutofillPickerPreferenceControllerTest.java26 import android.content.pm.ServiceInfo;
76 serviceResolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_hasServiceWithoutPermissions_returnsEmptyList()
89 serviceResolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_hasServiceWithBindAutofillServicePermission_returnsService()
102 serviceResolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_hasServiceWithBindAutofillPermission_returnsEmptyList()
DDefaultAssistantPickerEntryPreferenceControllerTest.java26 import android.content.pm.ServiceInfo;
109 resolveInfo.serviceInfo = new ServiceInfo(); in getSettingIntent_hasAssistant_noAssistSupport_returnsNull()
134 resolveInfo.serviceInfo = new ServiceInfo(); in getSettingIntent_hasAssistant_supportsAssist_noSettingsActivity_returnsNull()
158 resolveInfo.serviceInfo = new ServiceInfo(); in getSettingIntent_hasAssistant_supportsAssist_hasSettingsActivity_returnsIntent()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DSilentTypeFilterPreferenceControllerTest.java25 import android.content.pm.ServiceInfo;
46 ServiceInfo mSi = new ServiceInfo();
DOngoingTypeFilterPreferenceControllerTest.java26 import android.content.pm.ServiceInfo;
47 ServiceInfo mSi = new ServiceInfo();
DAlertingTypeFilterPreferenceControllerTest.java26 import android.content.pm.ServiceInfo;
47 ServiceInfo mSi = new ServiceInfo();
DConversationTypeFilterPreferenceControllerTest.java26 import android.content.pm.ServiceInfo;
47 ServiceInfo mSi = new ServiceInfo();
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/testutils/
DUtils.java26 import android.content.pm.ServiceInfo;
39 final ServiceInfo serviceInfo = new ServiceInfo(); in addAutofill()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DAbstractZenModeAutomaticRulePreferenceController.java28 import android.content.pm.ServiceInfo;
95 final String ruleType = (ci instanceof ServiceInfo) in getRuleInfo()
103 (ci instanceof ServiceInfo) ? new ComponentName(ci.packageName, ci.name) : null; in getRuleInfo()
109 ri.ruleInstanceLimit = (ci instanceof ServiceInfo) in getRuleInfo()
/packages/apps/TV/common/src/com/android/tv/common/compat/
DTvInputInfoCompat.java20 import android.content.pm.ServiceInfo;
75 ServiceInfo si = mTvInputInfo.getServiceInfo(); in getExtras()
117 ServiceInfo si = mTvInputInfo.getServiceInfo(); in getXmlResourceParser()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/packageinfo/
DPackageInfoFragment.java22 import android.content.pm.ServiceInfo;
142 for (ServiceInfo info : Arrays.asList(packageInfo.services)) { in refreshPackages()
144 && (info.flags & ServiceInfo.FLAG_SINGLE_USER) == 0)); in refreshPackages()
149 !info.exported && (info.flags & ServiceInfo.FLAG_SINGLE_USER) == 0); in refreshPackages()
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/
DQuickAccessWalletClientTest.java35 import android.content.pm.ServiceInfo;
194 ServiceInfo serviceInfo = new ServiceInfo(); in registerWalletService()
205 packageInfo.services = new ServiceInfo[]{serviceInfo}; in registerWalletService()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperChange.java26 import android.content.pm.ServiceInfo;
89 private String getDeleteAction(@NonNull ServiceInfo serviceInfo, in getDeleteAction()
90 @Nullable ServiceInfo currentService) { in getDeleteAction()
/packages/services/Car/service/src/com/android/car/pm/
DAppBlockingPolicyProxy.java25 import android.content.pm.ServiceInfo;
41 private final ServiceInfo mServiceInfo;
70 ServiceInfo serviceInfo) { in AppBlockingPolicyProxy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilitySlicePreferenceControllerTest.java29 import android.content.pm.ServiceInfo;
137 final ServiceInfo serviceInfo = new ServiceInfo(); in getFakeServiceList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/tts/
DTtsEnginePreferenceFragmentTest.java32 import android.content.pm.ServiceInfo;
61 final ServiceInfo serviceInfo = spy(new ServiceInfo()); in setUp()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DTypeFilterPreferenceController.java26 import android.content.pm.ServiceInfo;
49 private ServiceInfo mSi;
71 public TypeFilterPreferenceController setServiceInfo(ServiceInfo si) { in setServiceInfo()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAssistantPicker.java24 import android.content.pm.ServiceInfo;
112 public void onServicesReloaded(List<ServiceInfo> services) { in onServicesReloaded()
115 for (ServiceInfo service : services) { in onServicesReloaded()

12345