Searched refs:FocusState (Results 1 – 8 of 8) sorted by relevance
/packages/services/Car/service/src/com/android/car/ |
D | CarAudioService.java | 58 private FocusState mCurrentFocusState = FocusState.STATE_LOSS; 61 private FocusState mFocusReceived = null; 120 FocusState currentState = FocusState.create(mAudioHal.getCurrentFocusState()); in init() 152 mCurrentFocusState = FocusState.STATE_LOSS; in release() 173 mFocusReceived = FocusState.create(focusState, streams, externalFocus); in onFocusChange() 198 FocusState currentState; in doHandleCarFocusChange() 266 private void doHandleFocusGainFromCar(FocusState currentState, AudioFocusInfo topInfo) { in doHandleFocusGainFromCar() 276 private void doHandleFocusGainTransientFromCar(FocusState currentState, in doHandleFocusGainTransientFromCar() 291 private void doHandleFocusLossFromCar(FocusState currentState, AudioFocusInfo topInfo) { in doHandleFocusLossFromCar() 318 private void doHandleFocusLossTransientFromCar(FocusState currentState) { in doHandleFocusLossTransientFromCar() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/focus/ |
D | AutoFocusRing.java | 58 if (mFocusState == FocusState.STATE_ENTER) { in draw() 62 } else if (mFocusState == FocusState.STATE_FADE_OUT) { in draw() 66 } else if (mFocusState == FocusState.STATE_HARD_STOP) { in draw() 71 } else if (mFocusState == FocusState.STATE_INACTIVE) { in draw() 80 if (mFocusState == FocusState.STATE_INACTIVE) { in processStates() 84 if (mFocusState == FocusState.STATE_ENTER && t > mEnterStartMillis + mEnterDurationMillis) { in processStates() 85 mFocusState = FocusState.STATE_ACTIVE; in processStates() 88 if (mFocusState == FocusState.STATE_ACTIVE && !mRingRadius.isActive()) { in processStates() 89 mFocusState = FocusState.STATE_FADE_OUT; in processStates() 93 … if (mFocusState == FocusState.STATE_FADE_OUT && t > mExitStartMillis + mExitDurationMillis) { in processStates() [all …]
|
D | ManualFocusRing.java | 54 if (mFocusState == FocusState.STATE_FADE_OUT) { in draw() 57 } else if (mFocusState == FocusState.STATE_HARD_STOP) { in draw() 61 } else if (mFocusState == FocusState.STATE_INACTIVE) { in draw() 70 if (mFocusState == FocusState.STATE_INACTIVE) { in processStates() 74 if (mFocusState == FocusState.STATE_ENTER in processStates() 76 mFocusState = FocusState.STATE_ACTIVE; in processStates() 79 if (mFocusState == FocusState.STATE_ACTIVE && !mRingRadius.isActive()) { in processStates() 80 mFocusState = FocusState.STATE_FADE_OUT; in processStates() 84 … if (mFocusState == FocusState.STATE_FADE_OUT && t > mExitStartMillis + mExitDurationMillis) { in processStates() 85 mFocusState = FocusState.STATE_INACTIVE; in processStates() [all …]
|
D | FocusRingRenderer.java | 39 protected static enum FocusState { enum in FocusRingRenderer 63 protected FocusState mFocusState = FocusState.STATE_INACTIVE; 121 if (mFocusState == FocusState.STATE_FADE_OUT in setRadius() 124 mFocusState = FocusState.STATE_ENTER; in setRadius() 136 return mFocusState != FocusState.STATE_INACTIVE; in isActive() 143 return mFocusState == FocusState.STATE_FADE_OUT in isExiting() 144 || mFocusState == FocusState.STATE_HARD_STOP; in isExiting() 151 return mFocusState == FocusState.STATE_ENTER; in isEntering() 159 if (mFocusState != FocusState.STATE_INACTIVE) { in start() 167 mFocusState = FocusState.STATE_ENTER; in start() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | OneCamera.java | 215 public static class FocusState { class 224 public FocusState(float lensDistance, boolean isActive) { in FocusState() method in OneCamera.FocusState 236 FocusState that = (FocusState) o; in equals()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/ |
D | GenericOneCameraImpl.java | 61 private final Listenable<FocusState> mFocusStateListenable; 71 Listenable<Integer> afStateProvider, Listenable<FocusState> focusStateProvider, in GenericOneCameraImpl() 122 mFocusStateListenable.setCallback(new Callback<FocusState>() { in setFocusDistanceListener() 124 public void onCallback(@Nonnull FocusState focusState) { in setFocusDistanceListener()
|
D | MetadataCallback.java | 35 private final Updatable<OneCamera.FocusState> mOneCameraFocusState; 40 Updatable<OneCamera.FocusState> oneCameraFocusState, in MetadataCallback() 76 mOneCameraFocusState.update(new OneCamera.FocusState(focusDistance, active)); in updateOneCameraFocusState()
|
D | InitializedOneCameraFactory.java | 98 final ConcurrentState<OneCamera.FocusState> focusState = new ConcurrentState<>(new in InitializedOneCameraFactory() 99 OneCamera.FocusState(0.0f, false)); in InitializedOneCameraFactory() 108 Listenable<OneCamera.FocusState> focusStateListenable = new Listenable<>( in InitializedOneCameraFactory()
|