@Test public void should_verifyThatFocusMode_isNotSupported() { when(mParameters.getSupportedFocusModes()).thenReturn( Collections.singletonList(Camera.Parameters.FOCUS_MODE_AUTO)); boolean isSupported = CameraParametersHelper.isFocusModeSupported( Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE, mCamera); assertThat(isSupported).isFalse(); }
static boolean isFocusModeSupported(@NonNull String focusMode, @NonNull Camera camera) { return camera.getParameters().getSupportedFocusModes().contains(focusMode); }
CameraParametersHelper { static boolean isFocusModeSupported(@NonNull String focusMode, @NonNull Camera camera) { return camera.getParameters().getSupportedFocusModes().contains(focusMode); } }
CameraParametersHelper { static boolean isFocusModeSupported(@NonNull String focusMode, @NonNull Camera camera) { return camera.getParameters().getSupportedFocusModes().contains(focusMode); } private  CameraParametersHelper(); }
CameraParametersHelper { static boolean isFocusModeSupported(@NonNull String focusMode, @NonNull Camera camera) { return camera.getParameters().getSupportedFocusModes().contains(focusMode); } private  CameraParametersHelper();  }
CameraParametersHelper { static boolean isFocusModeSupported(@NonNull String focusMode, @NonNull Camera camera) { return camera.getParameters().getSupportedFocusModes().contains(focusMode); } private  CameraParametersHelper();   }