/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/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() 95 mState.action = State.ACTION_GET_CONTENT; in testPhotoPicking_onlyOneImageType() 104 mState.action = State.ACTION_GET_CONTENT; in testPhotoPicking_allImageTypes() 114 mState.action = State.ACTION_GET_CONTENT; in testPhotoPicking_noImageType() 124 mState.action = State.ACTION_GET_CONTENT; in testPhotoPicking_oneIsNotImageType() [all …]
|
/packages/apps/Camera2/src/com/android/camera/captureintent/state/ |
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 | 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 | 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 …]
|
D | StateOpeningCamera.java | 34 import com.android.camera.captureintent.stateful.State; 92 State previousState, in from() 102 private StateOpeningCamera(State previousState, in StateOpeningCamera() 125 public Optional<State> processEvent(EventPause event) { in registerEventHandlers() 136 public Optional<State> processEvent(EventOnOpenCameraSucceeded event) { in registerEventHandlers() 141 return Optional.of((State) StateBackgroundWithSurfaceTexture.from( in registerEventHandlers() 155 return Optional.of((State) StateStartingPreview.from( in registerEventHandlers() 173 public Optional<State> processEvent(EventOnOpenCameraFailed event) { in registerEventHandlers() 175 return Optional.of((State) StateFatal.from( in registerEventHandlers() 183 public Optional<State> onEnter() { in onEnter() [all …]
|
D | StateBackgroundWithSurfaceTexture.java | 28 import com.android.camera.captureintent.stateful.State; 47 State previousState, in from() 55 State previousState, in StateBackgroundWithSurfaceTexture() 70 public Optional<State> processEvent(EventResume eventResume) { in registerEventHandlers() 71 return Optional.of((State) StateForegroundWithSurfaceTexture.from( in registerEventHandlers() 83 public Optional<State> processEvent(EventOnSurfaceTextureDestroyed event) { in registerEventHandlers() 84 return Optional.of((State) StateBackground.from( in registerEventHandlers() 93 public Optional<State> onEnter() { in onEnter()
|
D | StateForeground.java | 30 import com.android.camera.captureintent.stateful.State; 42 State previousState, in from() 48 State previousState, in StateForeground() 60 public Optional<State> processEvent(EventPause event) { in registerEventHandlers() 61 return Optional.of((State) StateBackground.from( in registerEventHandlers() 71 public Optional<State> processEvent(EventOnSurfaceTextureAvailable event) { in registerEventHandlers() 82 State nextState = StateForegroundWithSurfaceTexture.from( in registerEventHandlers() 97 public Optional<State> onEnter() { in onEnter()
|
/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/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/DeskClock/src/com/android/deskclock/data/ |
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/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/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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | PreferenceControllerTest.java | 141 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_created_available_updatesState() 158 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_created_restricted_preferenceDisabled() 169 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_created_restricted_unrestricted_preferenceEnabled() 194 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_restricted_allPreferencesIgnore_preferenceEnabled() 212 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_restricted_thisPreferenceIgnores_preferenceEnabled() 229 mControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_restricted_uxRestrictionsNotIgnored_preferenceDisabled() 250 mControllerHelper.markState(Lifecycle.State.CREATED); in refreshUi_created_available_preferenceShown() 261 mControllerHelper.markState(Lifecycle.State.CREATED); in refreshUi_created_notAvailable_preferenceHidden() 271 mControllerHelper.markState(Lifecycle.State.CREATED); in refreshUi_created_available_updatesState() 283 mControllerHelper.markState(Lifecycle.State.CREATED); in refreshUi_created_notAvailable_doesNotUpdateState() [all …]
|
D | PreferenceControllerTestHelper.java | 25 import static androidx.lifecycle.Lifecycle.State.CREATED; 26 import static androidx.lifecycle.Lifecycle.State.DESTROYED; 27 import static androidx.lifecycle.Lifecycle.State.INITIALIZED; 28 import static androidx.lifecycle.Lifecycle.State.RESUMED; 29 import static androidx.lifecycle.Lifecycle.State.STARTED; 58 private Lifecycle.State mState = INITIALIZED; 143 public void markState(Lifecycle.State state) { in markState() 199 private static Lifecycle.State getStateAfter(Lifecycle.Event event) { in getStateAfter() 217 private static Lifecycle.Event downEvent(Lifecycle.State state) { in downEvent() 233 private static Lifecycle.Event upEvent(Lifecycle.State state) { in upEvent()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | Config.java | 19 import static com.android.documentsui.base.State.ACTION_CREATE; 20 import static com.android.documentsui.base.State.ACTION_GET_CONTENT; 21 import static com.android.documentsui.base.State.ACTION_OPEN; 22 import static com.android.documentsui.base.State.ACTION_OPEN_TREE; 23 import static com.android.documentsui.base.State.ACTION_PICK_COPY_DESTINATION; 29 import com.android.documentsui.base.State; 37 public boolean canSelectType(String docMimeType, int docFlags, State state) { in canSelectType() 57 public boolean isDocumentEnabled(String mimeType, int docFlags, State state) { in isDocumentEnabled()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionaryListInterfaceState.java | 35 static class State { class in DictionaryListInterfaceState 40 private HashMap<String, State> mWordlistToState = new HashMap<>(); 44 final State state = mWordlistToState.get(wordlistId); in isOpen() 50 final State state = mWordlistToState.get(wordlistId); in getStatus() 56 final State newState; in setOpen() 57 final State state = mWordlistToState.get(wordlistId); in setOpen() 58 newState = null == state ? new State() : state; in setOpen() 65 for (final State state : mWordlistToState.values()) { in closeAll()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 67 import com.android.internal.util.State; 231 private State mStoppedState = new StoppedState(); 232 private State mDhcpState = new DhcpState(); 233 private State mDhcpInitState = new DhcpInitState(); 234 private State mDhcpSelectingState = new DhcpSelectingState(); 235 private State mDhcpRequestingState = new DhcpRequestingState(); 236 private State mDhcpHaveLeaseState = new DhcpHaveLeaseState(); 237 private State mConfiguringInterfaceState = new ConfiguringInterfaceState(); 238 private State mDhcpBoundState = new DhcpBoundState(); 239 private State mDhcpRenewingState = new DhcpRenewingState(); [all …]
|