/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Timer.kt | 36 val state: State, in <lambda>() 53 enum class State( in <lambda>() class in com.android.deskclock.data.Timer 63 fun fromValue(value: Int): State? { in <lambda>() 75 get() = state == State.RESET in <lambda>() 78 get() = state == State.RUNNING in <lambda>() 81 get() = state == State.PAUSED in <lambda>() 84 get() = state == State.EXPIRED in <lambda>() 87 get() = state == State.MISSED in <lambda>() 95 if (state == State.PAUSED || state == State.RESET) { in <lambda>() 111 check(!(state != State.RUNNING && state != State.EXPIRED && state != State.MISSED)) { in <lambda>() [all …]
|
D | Stopwatch.kt | 28 val state: State, 37 enum class State { class in com.android.deskclock.data.Stopwatch 42 get() = state == State.RESET 45 get() = state == State.PAUSED 48 get() = state == State.RUNNING 55 if (state != State.RUNNING) { 71 return if (state == State.RUNNING) { in start() 74 Stopwatch(State.RUNNING, Utils.now(), Utils.wallClock(), totalTime) in start() 82 return if (state != State.RUNNING) { in pause() 85 Stopwatch(State.PAUSED, UNUSED, UNUSED, totalTime) in pause() [all …]
|
D | Timer.java | 30 import static com.android.deskclock.data.Timer.State.EXPIRED; 31 import static com.android.deskclock.data.Timer.State.MISSED; 32 import static com.android.deskclock.data.Timer.State.PAUSED; 33 import static com.android.deskclock.data.Timer.State.RESET; 34 import static com.android.deskclock.data.Timer.State.RUNNING; 41 public enum State { enum in Timer 47 State(int value) { in State() method in Timer.State 61 public static State fromValue(int value) { in fromValue() 62 for (State state : values()) { in fromValue() 85 private final State mState; [all …]
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerFragmentTest.java | 185 assertStateEquals(Timer.State.RESET, 0); in timeClick_startsTimer() 187 assertStateEquals(Timer.State.RUNNING, 0); in timeClick_startsTimer() 197 assertStateEquals(Timer.State.RESET, 1); in timeClick_startsSecondTimer() 198 assertStateEquals(Timer.State.RESET, 0); in timeClick_startsSecondTimer() 200 assertStateEquals(Timer.State.RUNNING, 1); in timeClick_startsSecondTimer() 201 assertStateEquals(Timer.State.RESET, 0); in timeClick_startsSecondTimer() 211 assertStateEquals(Timer.State.RESET, 0); in timeClick_pausesTimer() 213 assertStateEquals(Timer.State.RUNNING, 0); in timeClick_pausesTimer() 215 assertStateEquals(Timer.State.PAUSED, 0); in timeClick_pausesTimer() 225 assertStateEquals(Timer.State.RESET, 1); in timeClick_pausesSecondTimer() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | P2pPermissionManager.java | 67 if (getState() == State.TEMPORARILY_DISABLED) { in reset() 68 setState(State.DENIED); in reset() 75 public void setState(State state) { in setState() 84 return getState() == State.ALLOWED; in isP2pEnabled() 93 setState(State.ALLOWED); in applyPermissionChange() 96 setState(permanent ? State.DISABLED : State.TEMPORARILY_DISABLED); in applyPermissionChange() 121 State state = getState(); in request() 126 listener.onP2pPermissionComplete(state == State.ALLOWED); in request() 181 State state = getState(); in listenForPreferenceChanges() 182 if (state.isTerminal() || state == State.DENIED) { in listenForPreferenceChanges() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | AdvancedWifiOptionsFlow.java | 27 import com.android.tv.settings.connectivity.util.State; 71 State entranceState, in createFlow() 72 State exitState, in createFlow() 82 State advancedOptionsState = new AdvancedOptionsState(activity); in createFlow() 83 State proxySettingsState = new ProxySettingsState(activity); in createFlow() 84 State ipSettingsState = new IpSettingsState(activity); in createFlow() 85 State proxyHostNameState = new ProxyHostNameState(activity); in createFlow() 86 State proxyPortState = new ProxyPortState(activity); in createFlow() 87 State proxyBypassState = new ProxyBypassState(activity); in createFlow() 88 State proxySettingsInvalidState = new ProxySettingsInvalidState(activity); in createFlow() [all …]
|
D | WifiSetupActivity.java | 37 import com.android.tv.settings.connectivity.util.State; 45 public class WifiSetupActivity extends FragmentActivity implements State.FragmentChangeListener { 68 private State mChooseSecurityState; 69 private State mConnectAuthFailureState; 70 private State mConnectFailedState; 71 private State mConnectRejectedByApState; 72 private State mConnectState; 73 private State mConnectTimeOutState; 74 private State mEnterPasswordState; 75 private State mEnterSsidState; [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/widget/ |
D | LoadingFrameLayout.java | 50 @IntDef({State.NEW, State.LOADING, State.CONTENT, State.ERROR, State.EMPTY}) 51 public @interface State { annotation in LoadingFrameLayout 65 @State 66 private int mState = State.NEW; 100 mLoadingView = new ViewContainer(State.LOADING, loadingLayoutId, 0, 0, 0, 0); in setLoadingView() 104 mEmptyView = new ViewContainer(State.EMPTY, emptyLayoutId, R.id.loading_info_icon, in setEmptyView() 110 mErrorView = new ViewContainer(State.ERROR, errorLayoutId, R.id.loading_info_icon, in setErrorView() 120 switchTo(State.LOADING); in showLoading() 165 switchTo(State.ERROR); in showError() 210 switchTo(State.EMPTY); in showEmpty() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
D | StateMachine.java | 38 private Map<State, List<Transition>> mTransitionMap = new HashMap<>(); 39 private LinkedList<State> mStatesList = new LinkedList<>(); 40 private State.StateCompleteListener mCompletionListener = this::updateState; 120 public void addState(State state, @Event int event, State destination) { in addState() 131 public void addTerminalState(State state) { in addTerminalState() 152 public void setStartState(State startState) { in setStartState() 163 State currentState = getCurrentState(); in start() 188 public State getCurrentState() { in getCurrentState() 221 State prev = mStatesList.getLast(); in updateState() 227 State next = null; in updateState() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | VideoPlayer.java | 44 private State mediaPlayerState = State.NONE; 68 if (mediaPlayerState == State.STARTED) { in pause() 69 mediaPlayerState = State.PAUSED; in pause() 77 if (mediaPlayerState == State.PAUSED) { in resume() 79 mediaPlayerState = State.STARTED; in resume() 87 if (mediaPlayerState != State.NONE && mediaPlayerState != State.END) { in release() 88 mediaPlayerState = State.END; in release() 104 mediaPlayerState = State.PREPARED; in onSurfaceTextureAvailable() 108 mediaPlayerState = State.STARTED; in onSurfaceTextureAvailable() 130 public enum State { enum in VideoPlayer
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
D | StateTest.java | 40 private State mState; 45 mState = new State(); in setUp() 66 mState.action = State.ACTION_BROWSE; in testShouldShowPreview_actionBrowse() 73 mState.action = State.ACTION_OPEN; in testShouldShowPreview_actionOpen() 80 mState.action = State.ACTION_GET_CONTENT; in testShouldShowPreview_actionGetContent() 87 mState.action = State.ACTION_OPEN_TREE; in testShouldShowPreview_actionOpenTree() 98 mState.action = State.ACTION_GET_CONTENT; in testPhotoPicking_onlyOneImageType() 107 mState.action = State.ACTION_GET_CONTENT; in testPhotoPicking_allImageTypes() 117 mState.action = State.ACTION_GET_CONTENT; in testPhotoPicking_noImageType() 127 mState.action = State.ACTION_GET_CONTENT; in testPhotoPicking_oneIsNotImageType() [all …]
|
/packages/apps/Camera2/src/com/android/camera/captureintent/state/ |
D | StateReviewingPicture.java | 35 import com.android.camera.captureintent.stateful.State; 72 State previousState, in StateReviewingPicture() 90 public Optional<State> processEvent(EventPause event) { in registerEventHandlers() 91 return Optional.of((State) StateBackgroundWithSurfaceTexture.from( in registerEventHandlers() 103 public Optional<State> processEvent(EventOnTextureViewLayoutChanged event) { in registerEventHandlers() 115 public Optional<State> processEvent(EventTapOnCancelIntentButton event) { in registerEventHandlers() 116 return Optional.of((State) StateIntentCompleted.from( in registerEventHandlers() 127 public Optional<State> processEvent(EventTapOnConfirmPhotoButton event) { in registerEventHandlers() 135 return Optional.of((State) StateSavingPicture.from( in registerEventHandlers() 147 public Optional<State> processEvent(EventTapOnRetakePhotoButton event) { in registerEventHandlers() [all …]
|
D | StateReadyForCapture.java | 53 import com.android.camera.captureintent.stateful.State; 107 State previousState, in StateReadyForCapture() 122 State previousState, in StateReadyForCapture() 213 public Optional<State> processEvent(EventPause event) { in registerEventHandlers() 214 return Optional.of((State) StateBackgroundWithSurfaceTexture.from( in registerEventHandlers() 226 public Optional<State> processEvent(EventOnSurfaceTextureUpdated event) { in registerEventHandlers() 249 public Optional<State> processEvent(EventOnTextureViewLayoutChanged event) { in registerEventHandlers() 270 public Optional<State> processEvent(final EventTapOnShutterButton event) { in registerEventHandlers() 281 public Optional<State> processEvent(EventClickOnCameraKey event) { in registerEventHandlers() 296 public Optional<State> processEvent(EventTimerCountDownToZero event) { in registerEventHandlers() [all …]
|
D | StateStartingPreview.java | 30 import com.android.camera.captureintent.stateful.State; 56 State previousState, in from() 78 State previousState, in StateStartingPreview() 101 public Optional<State> processEvent(EventPause event) { in registerEventHandlers() 102 return Optional.of((State) StateBackgroundWithSurfaceTexture.from( in registerEventHandlers() 114 public Optional<State> processEvent(EventOnTextureViewLayoutChanged event) { in registerEventHandlers() 125 public Optional<State> processEvent(EventOnStartPreviewSucceeded event) { in registerEventHandlers() 132 return Optional.of((State) StateReadyForCapture.from( in registerEventHandlers() 145 public Optional<State> processEvent(EventOnStartPreviewFailed event) { in registerEventHandlers() 147 return Optional.of((State) StateFatal.from( in registerEventHandlers() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 128 mControllerHelper.markState(Lifecycle.State.STARTED); in disallowConfigBluetooth_doesNotStartScanning() 137 mControllerHelper.markState(Lifecycle.State.STARTED); in onScanningStateChanged_scanningEnabled_receiveStopped_restartsScanning() 148 mControllerHelper.markState(Lifecycle.State.STARTED); in onScanningStateChanged_scanningDisabled_receiveStopped_doesNothing() 161 mControllerHelper.markState(Lifecycle.State.STARTED); in onDeviceBondStateChanged_refreshesUi() 174 mControllerHelper.markState(Lifecycle.State.STARTED); in onDeviceClicked_callsInternal() 186 mControllerHelper.markState(Lifecycle.State.STARTED); in onDeviceClicked_cancelsScanning() 198 mControllerHelper.markState(Lifecycle.State.STARTED); in refreshUi_noDeviceBonding_startsScanning() 207 mControllerHelper.markState(Lifecycle.State.STARTED); in refreshUi_noDeviceBonding_enablesGroup() 216 mControllerHelper.markState(Lifecycle.State.STARTED); in refreshUi_noDeviceBonding_setsScanModeConnectableDiscoverable() 226 mControllerHelper.markState(Lifecycle.State.STARTED); in refreshUi_deviceBonding_stopsScanning() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | AddWifiNetworkActivity.java | 39 import com.android.tv.settings.connectivity.util.State; 47 implements State.FragmentChangeListener { 49 private State mChooseSecurityState; 50 private State mConnectAuthFailureState; 51 private State mConnectFailedState; 52 private State mConnectRejectedByApState; 53 private State mConnectState; 54 private State mConnectTimeOutState; 55 private State mEnterPasswordState; 56 private State mEnterSsidState; [all …]
|
D | WifiConnectionActivity.java | 43 import com.android.tv.settings.connectivity.util.State; 52 State.FragmentChangeListener { 80 private State mConnectAuthFailureState; 81 private State mConnectFailedState; 82 private State mConnectRejectedByApState; 83 private State mConnectState; 84 private State mConnectTimeOutState; 85 private State mEnterPasswordState; 86 private State mKnownNetworkState; 87 private State mSuccessState; [all …]
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/ |
D | ToolbarControllerImpl.java | 93 private Toolbar.State mState = Toolbar.State.HOME; 577 public void setState(Toolbar.State state) { in setState() 580 if (mSearchView == null && (state == Toolbar.State.SEARCH || state == Toolbar.State.EDIT)) { in setState() 616 if (state == Toolbar.State.SEARCH) { in setState() 632 mNavIcon.setVisibility(state != Toolbar.State.HOME ? VISIBLE : GONE); in setState() 637 && state == Toolbar.State.HOME in setState() 644 && (state == Toolbar.State.SUBPAGE in setState() 645 || (state == Toolbar.State.HOME && !mLogoFillsNavIconSpace)) in setState() 652 state != Toolbar.State.HOME || (mHasLogo && mLogoFillsNavIconSpace) in setState() 655 state != Toolbar.State.HOME ? backClickListener : null); in setState() [all …]
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phFriNfc_MifStdFormat.cpp | 167 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_AUTH_SECT; in phFriNfc_MfStd_Format() 210 switch (NdefSmtCrdFmt->State) { in phFriNfc_MfStd_Process() 253 switch (NdefSmtCrdFmt->State) { in phFriNfc_MfStd_Process() 325 switch (NdefSmtCrdFmt->State) { in phFriNfc_MfStd_H_FillSendBuf() 516 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_DIS_CON; in phFriNfc_MfStd_H_CallDisCon() 536 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_CON; in phFriNfc_MfStd_H_CallCon() 564 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_AUTH_SECT; in phFriNfc_MfStd_H_ProCon() 598 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_WR_MAD_BLK; in phFriNfc_MfStd_H_ProAuth() 607 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_WR_MAD_BLK; in phFriNfc_MfStd_H_ProAuth() 613 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_WR_SECT_TR; in phFriNfc_MfStd_H_ProAuth() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | CommonControllerOverlay.java | 45 protected enum State { enum in CommonControllerOverlay 65 protected State mState; 76 mState = State.LOADING; in CommonControllerOverlay() 152 mState = State.PLAYING; in showPlaying() 158 mState = State.PAUSED; in showPaused() 164 mState = State.ENDED; in showEnded() 170 mState = State.LOADING; in showLoading() 176 mState = State.ERROR; in showErrorMessage() 220 if (mState == State.ENDED) { in onClick() 224 } else if (mState == State.PAUSED || mState == State.PLAYING) { in onClick() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryDatabaseManagerTest.java | 94 AnomalyDatabaseHelper.State.NEW, NOW); in allAnomalyFunctions() 96 AnomalyDatabaseHelper.State.NEW, TWO_DAYS_BEFORE); in allAnomalyFunctions() 100 AnomalyDatabaseHelper.State.NEW); in allAnomalyFunctions() 105 AnomalyDatabaseHelper.State.NEW); in allAnomalyFunctions() 112 AnomalyDatabaseHelper.State.NEW); in allAnomalyFunctions() 119 AnomalyDatabaseHelper.State.NEW, NOW); in updateAnomalies_updateSuccessfully() 121 AnomalyDatabaseHelper.State.NEW, NOW); in updateAnomalies_updateSuccessfully() 128 AnomalyDatabaseHelper.State.HANDLED); in updateAnomalies_updateSuccessfully() 132 AnomalyDatabaseHelper.State.NEW); in updateAnomalies_updateSuccessfully() 137 AnomalyDatabaseHelper.State.HANDLED); in updateAnomalies_updateSuccessfully() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | PreferenceControllerTest.java | 142 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_created_available_updatesState() 159 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_created_restricted_preferenceDisabled() 170 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_created_restricted_unrestricted_preferenceEnabled() 195 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_restricted_allPreferencesIgnore_preferenceEnabled() 213 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_restricted_thisPreferenceIgnores_preferenceEnabled() 230 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_restricted_uxRestrictionsNotIgnored_preferenceDisabled() 251 mControllerHelper.markState(Lifecycle.State.CREATED); in refreshUi_created_available_preferenceShownAndEnabled() 263 mControllerHelper.markState(Lifecycle.State.CREATED); in refreshUi_created_availableForViewing_preferenceShownAndDisabled() 275 mControllerHelper.markState(Lifecycle.State.CREATED); in refreshUi_created_notAvailable_preferenceHidden() 285 mControllerHelper.markState(Lifecycle.State.CREATED); in refreshUi_created_available_updatesState() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersAccess.java | 26 import com.android.documentsui.base.State; 47 Collection<RootInfo> getMatchingRootsBlocking(State state); in getMatchingRootsBlocking() 51 RootInfo getDefaultRootBlocking(State state); in getDefaultRootBlocking() 65 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) { in getMatchingRoots() 74 if (state.action == State.ACTION_CREATE && !root.supportsCreate()) { in getMatchingRoots() 79 if (state.action == State.ACTION_PICK_COPY_DESTINATION in getMatchingRoots() 86 if (state.action == State.ACTION_OPEN_TREE && !root.supportsChildren()) { in getMatchingRoots() 92 if (state.action == State.ACTION_OPEN_TREE && root.isRecents()) { in getMatchingRoots() 114 if (state.action == State.ACTION_OPEN && root.isEmpty()) { in getMatchingRoots() 119 if (state.action == State.ACTION_GET_CONTENT && root.isEmpty()) { in getMatchingRoots()
|
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/voice/ |
D | RecognizerView.java | 46 private State mState; 50 private enum State { enum in RecognizerView 78 mState = State.NOT_LISTENING; in onFinishInflate() 128 updateState(State.RECORDING); in showRecording() 132 updateState(State.LISTENING); in showListening() 136 updateState(State.NOT_LISTENING); in showNotListening() 140 updateState(State.RECOGNIZING); in showRecognizing() 147 private void updateState(State newState) { in updateState() 229 updateState(State.MIC_INITIALIZING); in showInitializingMic() 239 State mState; [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/ |
D | StateMachineTest.java | 29 import com.android.bluetooth.statemachine.State; 94 class ExampleState extends State { 116 State exampleState = new ExampleState(null); in testToStringSucceedsEvenIfStateHasNoName() 127 State exampleState = new ExampleState("exampleState"); in testToStringIncludesMachineAndStateNames() 138 State exampleState = new ExampleState("exampleState"); in testToStringDoesNotContainMultipleLines() 173 class S1 extends State { 276 class S1 extends State { 376 class S1 extends State { 429 class S1 extends State { 444 class S2 extends State { [all …]
|