Home
last modified time | relevance | path

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

12345678

/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/modules/AdServices/adservices/tests/unittest/framework/src/com/android/adservices/
DAdServicesCommonTest.java27 import android.content.pm.ServiceInfo;
41 private ServiceInfo mServiceInfo1, mServiceInfo2, mServiceInfoGms;
49 mServiceInfo1 = new ServiceInfo(); in setUp()
55 mServiceInfo2 = new ServiceInfo(); in setUp()
61 ServiceInfo serviceInfo3 = new ServiceInfo(); in setUp()
68 ServiceInfo serviceInfo4 = new ServiceInfo(); in setUp()
74 mServiceInfoGms = new ServiceInfo(); in setUp()
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockControllerPackageUtils.java28 import android.content.pm.ServiceInfo;
50 private ServiceInfo mServiceInfo;
62 public synchronized ServiceInfo findService(@NonNull StringBuilder errorMessage) { in findService()
73 private ServiceInfo findServiceInternal(@NonNull StringBuilder errorMessage) { in findServiceInternal()
90 ServiceInfo resultServiceInfo = null; in findServiceInternal()
93 final ServiceInfo serviceInfo = resolveInfo.serviceInfo; in findServiceInternal()
132 ServiceInfo serviceInfo = findService(errorMessage); in getDeviceIdTypeBitmapInternal()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accessibility/
DScreenReaderSettingsIntentPreferenceControllerTest.java28 import android.content.pm.ServiceInfo;
81 ServiceInfo serviceInfo = new ServiceInfo(); in testUpdateState_noSettingsActivity_hidesSettings()
104 ServiceInfo serviceInfo = new ServiceInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneWrite()
128 ServiceInfo serviceInfo = new ServiceInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneRead()
152 ServiceInfo serviceInfo = new ServiceInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneHidden()
DScreenReaderCategoryPreferenceControllerTest.java29 import android.content.pm.ServiceInfo;
73 ServiceInfo serviceInfo = new ServiceInfo(); in testGetAvailability_screenReaderInstalled_isAvailable()
91 ServiceInfo serviceInfo = new ServiceInfo(); in testGetAvailability_screenReaderInstalled_zoneWrite()
110 ServiceInfo serviceInfo = new ServiceInfo(); in testGetAvailability_screenReaderInstalled_zoneRead()
129 ServiceInfo serviceInfo = new ServiceInfo(); in testGetAvailability_screenReaderInstalled_zoneHidden()
/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()
DNotificationAccessSettingsTest.java35 import android.content.pm.ServiceInfo;
101 ArrayList<ServiceInfo> services = new ArrayList<>(); in updateList_enabledLongName_shown()
122 ArrayList<ServiceInfo> services = new ArrayList<>(); in updateList_disabledLongName_notShown()
137 private static ServiceInfo newServiceInfo(String packageName, String serviceName, int uid) { in newServiceInfo()
138 ServiceInfo serviceInfo = new ServiceInfo(); in newServiceInfo()
/packages/apps/Settings/src/com/android/settings/development/qstile/
DDevelopmentTilePreferenceController.java24 import android.content.pm.ServiceInfo;
64 List<ServiceInfo> serviceInfos = getTileServiceList(context); in displayPreference()
66 for (ServiceInfo sInfo : serviceInfos) { in displayPreference()
99 public static List<ServiceInfo> getTileServiceList(Context context) { in getTileServiceList()
106 List<ServiceInfo> servicesInfos = new ArrayList<>(); in getTileServiceList()
108 ServiceInfo sInfo = info.serviceInfo; in getTileServiceList()
/packages/modules/AdServices/adservices/framework/java/com/android/adservices/
DAdServicesCommon.java24 import android.content.pm.ServiceInfo;
124 public static ServiceInfo resolveAdServicesService( in resolveAdServicesService()
145 ServiceInfo serviceInfo = getServiceInfoIfAdServices(intentResolveInfos.get(0)); in resolveAdServicesService()
161 private static ServiceInfo getServiceInfoIfAdServices(@Nullable ResolveInfo resolveInfo) { in getServiceInfoIfAdServices()
166 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in getServiceInfoIfAdServices()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentManagerTest.java32 import android.content.pm.ServiceInfo;
105 ServiceInfo serviceInfo = new ServiceInfo(); in shouldProvideTrust_doesProvideTrustWithPermission()
118 ServiceInfo serviceInfo = new ServiceInfo(); in shouldProvideTrust_doesNotProvideTrustWithoutPermission()
187 ServiceInfo serviceInfo = new ServiceInfo(); in createResolveInfo()
/packages/apps/Settings/src/com/android/settings/language/
DVoiceInputHelper.java24 import android.content.pm.ServiceInfo;
55 public final ServiceInfo mService;
63 public BaseInfo(PackageManager pm, ServiceInfo service, String settings) { in BaseInfo()
85 ServiceInfo serviceInfo, in RecognizerInfo()
147 final ServiceInfo serviceInfo = resolveInfo.serviceInfo; in validRecognitionServices()
179 Context context, ServiceInfo serviceInfo) { in parseRecognitionServiceXmlMetadata()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationAccessConfirmationActivityTest.java39 import android.content.pm.ServiceInfo;
74 private static ServiceInfo createServiceInfoForTempComponent(String permission) { in createServiceInfoForTempComponent()
75 ServiceInfo info = new ServiceInfo(); in createServiceInfoForTempComponent()
111 ServiceInfo info = createServiceInfoForTempComponent(/* permission = */ ""); in onAllow_permissionMissing_finishes()
128 ServiceInfo info = createServiceInfoForTempComponent( in onAllow_permissionAvailable_callsNotificationManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DTestUtils.java26 import android.content.pm.ServiceInfo;
67 ServiceInfo serviceInfo = new ServiceInfo(); in createPackageInfoWithService()
74 packageInfo.services = new ServiceInfo[]{serviceInfo}; in createPackageInfoWithService()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DUtilsTest.java26 import android.content.pm.ServiceInfo;
95 ServiceInfo serviceInfo = new ServiceInfo(); in testHasCeServicesWithValidPermissions()
97 packageInfo.services = new ServiceInfo[]{serviceInfo}; in testHasCeServicesWithValidPermissions()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DVoiceInputInfoProvider.java24 import android.content.pm.ServiceInfo;
159 private final ServiceInfo mServiceInfo;
161 VoiceInputInfo(Context context, ServiceInfo serviceInfo) { in VoiceInputInfo()
170 protected ServiceInfo getServiceInfo() { in getServiceInfo()
249 VoiceRecognitionInfo(Context context, ServiceInfo serviceInfo) { in VoiceRecognitionInfo()
263 private String getServiceSettingsActivity(ServiceInfo serviceInfo) { in getServiceSettingsActivity()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DSilentTypeFilterPreferenceControllerTest.java25 import android.content.pm.ServiceInfo;
46 ServiceInfo mSi = new ServiceInfo();
DConversationTypeFilterPreferenceControllerTest.java26 import android.content.pm.ServiceInfo;
47 ServiceInfo mSi = new ServiceInfo();
DAlertingTypeFilterPreferenceControllerTest.java26 import android.content.pm.ServiceInfo;
47 ServiceInfo mSi = new ServiceInfo();
DOngoingTypeFilterPreferenceControllerTest.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/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdservicesTestHelper.java24 import android.content.pm.ServiceInfo;
58 final ServiceInfo serviceInfo = in getAdServicesPackageName()
147 private static ServiceInfo resolveAdServicesService( in resolveAdServicesService()
172 ServiceInfo serviceInfo = null; in resolveAdServicesService()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/specialaccess/
DServiceListing.java28 import android.content.pm.ServiceInfo;
53 private final List<ServiceInfo> mServices = new ArrayList<>();
145 ServiceInfo info = resolveInfo.serviceInfo; in reload()
192 void onServicesReloaded(List<ServiceInfo> services); in onServicesReloaded()
233 public Builder setValidator(Predicate<ServiceInfo> validator) { in setValidator()
/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()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/packageinfo/
DPackageInfoFragment.java21 import android.content.pm.ServiceInfo;
140 for (ServiceInfo info : Arrays.asList(packageInfo.services)) { in refreshPackages()
167 private boolean systemUserOnlyOrSingleUserService(ServiceInfo info) { in systemUserOnlyOrSingleUserService()
169 && (info.flags & ServiceInfo.FLAG_SYSTEM_USER_ONLY) == 0) in systemUserOnlyOrSingleUserService()
171 && (info.flags & ServiceInfo.FLAG_SINGLE_USER) == 0)); in systemUserOnlyOrSingleUserService()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DAccessibilityTestUtils.java31 import android.content.pm.ServiceInfo;
78 final ServiceInfo serviceInfo = new ServiceInfo(); in createAccessibilityServiceInfo()

12345678