Searched refs:hasService (Results 1 – 5 of 5) sorted by relevance
46 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()
51 mHasService = hasService(service); in RequiredServiceRule()76 public static boolean hasService(@NonNull String service) {
19 import static com.android.compatibility.common.util.RequiredServiceRule.hasService;550 if (!hasService(Context.CONTENT_CAPTURE_MANAGER_SERVICE)) return; in testRequestEnableContentCaptureIntent()
871 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()
1334 boolean hasService(String service) { in hasService() method in BaseDevicePolicyTest