Home
last modified time | relevance | path

Searched refs:hasService (Results 1 – 5 of 5) sorted by relevance

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCanaryTest.java46 final boolean hasService = RequiredServiceRule.hasService(CONTENT_CAPTURE_MANAGER_SERVICE); in logHasService()
47 Log.d(TAG, "has " + CONTENT_CAPTURE_MANAGER_SERVICE + ": " + hasService); in logHasService()
48 assumeTrue("device doesn't have service " + CONTENT_CAPTURE_MANAGER_SERVICE, hasService); in logHasService()
57 final boolean hasService = RequiredServiceRule.hasService(CONTENT_CAPTURE_MANAGER_SERVICE); in assertHasService()
59 + "' Has '" + CONTENT_CAPTURE_MANAGER_SERVICE + "': " + hasService); in assertHasService()
65 serviceName, enableSettings).that(hasService).isTrue(); in assertHasService()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DRequiredServiceRule.java42 mHasService = hasService(service); in RequiredServiceRule()
65 public static boolean hasService(@NonNull String service) {
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DRequiredServiceRule.java42 mHasService = hasService(service); in RequiredServiceRule()
65 public static boolean hasService(@NonNull String service) {
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java19 import static com.android.compatibility.common.util.RequiredServiceRule.hasService;
448 if (!hasService(Context.CONTENT_CAPTURE_MANAGER_SERVICE)) return; in testRequestEnableContentCaptureIntent()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java897 boolean hasContentCapture = hasService("content_capture"); in testDisallowContentCapture_allowed()
918 boolean hasContentSuggestions = hasService("content_suggestions"); in testDisallowContentSuggestions_allowed()
1976 public boolean hasService(String service) { in hasService() method in DeviceAndProfileOwnerTest