HomeSort by relevance Sort by last modified time
    Searched refs:FocusState (Results 1 - 9 of 9) sorted by null

  /packages/apps/Camera2/src/com/android/camera/ui/focus/
AutoFocusRing.java 58 if (mFocusState == FocusState.STATE_ENTER) {
62 } else if (mFocusState == FocusState.STATE_FADE_OUT) {
66 } else if (mFocusState == FocusState.STATE_HARD_STOP) {
71 } else if (mFocusState == FocusState.STATE_INACTIVE) {
80 if (mFocusState == FocusState.STATE_INACTIVE) {
84 if (mFocusState == FocusState.STATE_ENTER && t > mEnterStartMillis + mEnterDurationMillis) {
85 mFocusState = FocusState.STATE_ACTIVE;
88 if (mFocusState == FocusState.STATE_ACTIVE && !mRingRadius.isActive()) {
89 mFocusState = FocusState.STATE_FADE_OUT;
93 if (mFocusState == FocusState.STATE_FADE_OUT && t > mExitStartMillis + mExitDurationMillis)
    [all...]
ManualFocusRing.java 54 if (mFocusState == FocusState.STATE_FADE_OUT) {
57 } else if (mFocusState == FocusState.STATE_HARD_STOP) {
61 } else if (mFocusState == FocusState.STATE_INACTIVE) {
70 if (mFocusState == FocusState.STATE_INACTIVE) {
74 if (mFocusState == FocusState.STATE_ENTER
76 mFocusState = FocusState.STATE_ACTIVE;
79 if (mFocusState == FocusState.STATE_ACTIVE && !mRingRadius.isActive()) {
80 mFocusState = FocusState.STATE_FADE_OUT;
84 if (mFocusState == FocusState.STATE_FADE_OUT && t > mExitStartMillis + mExitDurationMillis) {
85 mFocusState = FocusState.STATE_INACTIVE
    [all...]
FocusRingRenderer.java 39 protected static enum FocusState {
63 protected FocusState mFocusState = FocusState.STATE_INACTIVE;
121 if (mFocusState == FocusState.STATE_FADE_OUT
124 mFocusState = FocusState.STATE_ENTER;
136 return mFocusState != FocusState.STATE_INACTIVE;
143 return mFocusState == FocusState.STATE_FADE_OUT
144 || mFocusState == FocusState.STATE_HARD_STOP;
151 return mFocusState == FocusState.STATE_ENTER;
159 if (mFocusState != FocusState.STATE_INACTIVE)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
MetadataCallback.java 35 private final Updatable<OneCamera.FocusState> mOneCameraFocusState;
39 Updatable<Integer> focusState,
40 Updatable<OneCamera.FocusState> oneCameraFocusState,
42 mFocusState = focusState;
62 Integer focusState = totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE);
63 if (focusState != null) {
64 mFocusState.update(focusState);
70 Integer focusState = totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE);
71 if (focusDistance != null && focusState != null) {
75 boolean active = activeStates.contains(focusState);
    [all...]
InitializedOneCameraFactory.java 98 final ConcurrentState<OneCamera.FocusState> focusState = new ConcurrentState<>(new
99 OneCamera.FocusState(0.0f, false));
108 Listenable<OneCamera.FocusState> focusStateListenable = new Listenable<>(
109 focusState, mainThreadExecutor);
117 new FilteredUpdatable<>(focusState),
GenericOneCameraImpl.java 61 private final Listenable<FocusState> mFocusStateListenable;
71 Listenable<Integer> afStateProvider, Listenable<FocusState> focusStateProvider,
122 mFocusStateListenable.setCallback(new Callback<FocusState>() {
124 public void onCallback(@Nonnull FocusState focusState) {
125 if (focusState.isActive) {
126 listener.onFocusDistance(focusState.lensDistance, mLensRange);
  /packages/services/Car/service/src/com/android/car/
CarAudioService.java 58 private FocusState mCurrentFocusState = FocusState.STATE_LOSS;
61 private FocusState mFocusReceived = null;
120 FocusState currentState = FocusState.create(mAudioHal.getCurrentFocusState());
152 mCurrentFocusState = FocusState.STATE_LOSS;
171 public void onFocusChange(int focusState, int streams, int externalFocus) {
173 mFocusReceived = FocusState.create(focusState, streams, externalFocus);
198 FocusState currentState
    [all...]
  /packages/apps/Camera2/src/com/android/camera/one/
OneCamera.java 215 public static class FocusState {
224 public FocusState(float lensDistance, boolean isActive) {
236 FocusState that = (FocusState) o;
255 return "FocusState{" +
  /external/opencv3/samples/cpp/
autofocus.cpp 55 struct FocusState
66 static ostream & operator<<(ostream & os, FocusState & state)
74 static FocusState createInitialState()
76 FocusState state;
147 static int correctFocus(bool lastSucceeded, FocusState & state, double rate)
322 FocusState state = createInitialState();

Completed in 161 milliseconds