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.java51 mHasService = hasService(service); in RequiredServiceRule()
76 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;
550 if (!hasService(Context.CONTENT_CAPTURE_MANAGER_SERVICE)) return; in testRequestEnableContentCaptureIntent()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java871 if (!hasService("wallpaper")) { in testSetWallpaper_disallowed()
890 if (!hasService("wallpaper")) { in testDisallowSetWallpaper_allowed()
912 boolean hasContentCapture = hasService("content_capture"); in testDisallowContentCapture_allowed()
930 boolean hasContentSuggestions = hasService("content_suggestions"); in testDisallowContentSuggestions_allowed()
DBaseDevicePolicyTest.java1334 boolean hasService(String service) { in hasService() method in BaseDevicePolicyTest