Home
last modified time | relevance | path

Searched refs:State (Results 1 – 25 of 211) sorted by relevance

123456789

/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/notify/
DWifiNotificationController.java79 State.NO_RECOMMENDATION,
80 State.SHOWING_RECOMMENDATION_NOTIFICATION,
81 State.CONNECTING_IN_NOTIFICATION,
82 State.CONNECTING_IN_WIFI_PICKER,
83 State.CONNECTED,
84 State.CONNECT_FAILED
87 public @interface State { annotation in WifiNotificationController
103 @State private int mState = State.NO_RECOMMENDATION;
328 || mState > State.SHOWING_RECOMMENDATION_NOTIFICATION) { in checkAndSetNotification()
332 NetworkInfo.State state = NetworkInfo.State.DISCONNECTED; in checkAndSetNotification()
[all …]
/packages/apps/Dialer/java/com/android/incallui/call/
DCallList.java41 import com.android.incallui.call.DialerCall.State;
133 call.getState() == DialerCall.State.INCOMING in onCallAdded()
134 || call.getState() == DialerCall.State.CALL_WAITING; in onCallAdded()
183 if (call.getState() == DialerCall.State.INCOMING in onCallAdded()
184 || call.getState() == DialerCall.State.CALL_WAITING) { in onCallAdded()
190 if (call.getState() != State.INCOMING) { in onCallAdded()
391 return getFirstCallWithState(DialerCall.State.SELECT_PHONE_ACCOUNT); in getWaitingForAccountCall()
395 return getFirstCallWithState(DialerCall.State.CONNECTING); in getPendingOutgoingCall()
399 DialerCall call = getFirstCallWithState(DialerCall.State.DIALING); in getOutgoingCall()
401 call = getFirstCallWithState(DialerCall.State.REDIALING); in getOutgoingCall()
[all …]
DDialerCall.java123 private int mState = State.INVALID;
301 return DialerCall.State.CONNECTING; in translateState()
303 return DialerCall.State.SELECT_PHONE_ACCOUNT; in translateState()
305 return DialerCall.State.DIALING; in translateState()
307 return DialerCall.State.PULLING; in translateState()
309 return DialerCall.State.INCOMING; in translateState()
311 return DialerCall.State.ACTIVE; in translateState()
313 return DialerCall.State.ONHOLD; in translateState()
315 return DialerCall.State.DISCONNECTED; in translateState()
317 return DialerCall.State.DISCONNECTING; in translateState()
[all …]
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
DphFriNfc_MifStdFormat.c143 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_AUTH_SECT; in phFriNfc_MfStd_Format()
184 switch(NdefSmtCrdFmt->State) in phFriNfc_MfStd_Process()
231 switch(NdefSmtCrdFmt->State) in phFriNfc_MfStd_Process()
296 switch(NdefSmtCrdFmt->State) in phFriNfc_MfStd_H_FillSendBuf()
495 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_DIS_CON; in phFriNfc_MfStd_H_CallDisCon()
515 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_CON; in phFriNfc_MfStd_H_CallCon()
546 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_AUTH_SECT; in phFriNfc_MfStd_H_ProCon()
582 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_WR_MAD_BLK; in phFriNfc_MfStd_H_ProAuth()
593 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_WR_MAD_BLK; in phFriNfc_MfStd_H_ProAuth()
601 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_WR_SECT_TR; in phFriNfc_MfStd_H_ProAuth()
[all …]
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateReadyForCapture.java53 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 …]
DStateReviewingPicture.java35 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 …]
DStateStartingPreview.java30 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 …]
DStateOpeningCamera.java34 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 …]
DStateBackgroundWithSurfaceTexture.java28 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()
DStateForeground.java30 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/Launcher3/src/com/android/launcher3/
DLauncherStateTransitionAnimation.java170 Workspace.State.NORMAL_HIDDEN, buttonView, toView, animated, animType, cb); in startAnimationToAllApps()
180 Workspace.State.OVERVIEW_HIDDEN, buttonView, toView, animated, CIRCULAR_REVEAL, in startAnimationToWidgets()
192 public void startAnimationToWorkspace(final Launcher.State fromState, in startAnimationToWorkspace()
193 final Workspace.State fromWorkspaceState, final Workspace.State toWorkspaceState, in startAnimationToWorkspace()
195 if (toWorkspaceState != Workspace.State.NORMAL && in startAnimationToWorkspace()
196 toWorkspaceState != Workspace.State.SPRING_LOADED && in startAnimationToWorkspace()
197 toWorkspaceState != Workspace.State.OVERVIEW) { in startAnimationToWorkspace()
201 if (fromState == Launcher.State.APPS || fromState == Launcher.State.APPS_SPRING_LOADED in startAnimationToWorkspace()
209 } else if (fromState == Launcher.State.WIDGETS || in startAnimationToWorkspace()
210 fromState == Launcher.State.WIDGETS_SPRING_LOADED) { in startAnimationToWorkspace()
[all …]
DLauncher.java198 enum State { NONE, WORKSPACE, WORKSPACE_SPRING_LOADED, APPS, APPS_SPRING_LOADED, enum in Launcher
201 @Thunk State mState = State.WORKSPACE;
248 private State mOnResumeState = State.NONE;
973 if (mOnResumeState == State.WORKSPACE) { in onResume()
975 } else if (mOnResumeState == State.APPS) { in onResume()
982 } else if (mOnResumeState == State.WIDGETS) { in onResume()
985 mOnResumeState = State.NONE; in onResume()
1051 updateInteraction(Workspace.State.NORMAL, mWorkspace.getState()); in onResume()
1246 if (mState == State.WORKSPACE && !mWorkspace.isInOverviewMode() && in onKeyUp()
1278 int stateOrdinal = savedState.getInt(RUNTIME_STATE, State.WORKSPACE.ordinal()); in restoreState()
[all …]
DWorkspaceStateTransitionAnimation.java158 public TransitionStates(final Workspace.State fromState, final Workspace.State toState) { in TransitionStates()
159 oldStateIsNormal = (fromState == Workspace.State.NORMAL); in TransitionStates()
160 oldStateIsSpringLoaded = (fromState == Workspace.State.SPRING_LOADED); in TransitionStates()
161 oldStateIsNormalHidden = (fromState == Workspace.State.NORMAL_HIDDEN); in TransitionStates()
162 oldStateIsOverviewHidden = (fromState == Workspace.State.OVERVIEW_HIDDEN); in TransitionStates()
163 oldStateIsOverview = (fromState == Workspace.State.OVERVIEW); in TransitionStates()
165 stateIsNormal = (toState == Workspace.State.NORMAL); in TransitionStates()
166 stateIsSpringLoaded = (toState == Workspace.State.SPRING_LOADED); in TransitionStates()
167 stateIsNormalHidden = (toState == Workspace.State.NORMAL_HIDDEN); in TransitionStates()
168 stateIsOverviewHidden = (toState == Workspace.State.OVERVIEW_HIDDEN); in TransitionStates()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DCommonControllerOverlay.java45 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/
DTimer.java30 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/TV/src/com/android/tv/dvr/
DRecordingTask.java116 enum State { enum in RecordingTask
137 private State mState = State.NOT_STARTED;
200 if (mRecordingSession != null && mState != State.FINISHED) { in onDisconnected()
219 mState = State.CONNECTED; in onTuned()
233 mState = State.FINISHED; in onRecordingStopped()
299 mState = State.SESSION_ACQUIRED; in handleInit()
302 mState = State.CONNECTION_PENDING; in handleInit()
308 mState = State.ERROR; in failAndQuit()
331 mState = State.RECORDING_STARTED; in handleStartRecording()
342 mState = State.RECORDING_STOP_REQUESTED; in handleStopRecording()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMetrics.java41 import com.android.documentsui.base.State;
42 import com.android.documentsui.base.State.ActionType;
416 public static void logActivityLaunch(Context context, State state, Intent intent) { in logActivityLaunch()
422 case State.ACTION_OPEN: in logActivityLaunch()
425 case State.ACTION_CREATE: in logActivityLaunch()
428 case State.ACTION_GET_CONTENT: in logActivityLaunch()
431 case State.ACTION_BROWSE: in logActivityLaunch()
447 public static void logLaunchAtLocation(Context context, State state, @Nullable Uri rootUri) { in logLaunchAtLocation()
449 case State.ACTION_BROWSE: in logLaunchAtLocation()
452 case State.ACTION_CREATE: in logLaunchAtLocation()
[all …]
DBaseActivity.java21 import static com.android.documentsui.base.State.MODE_GRID;
50 import com.android.documentsui.base.State;
51 import com.android.documentsui.base.State.ViewMode;
79 protected State mState;
111 protected abstract void includeState(State initialState); in includeState()
251 private State getState(@Nullable Bundle icicle) { in getState()
253 State state = icicle.<State>getParcelable(Shared.EXTRA_STATE); in getState()
258 State state = new State(); in getState()
337 setViewMode(State.MODE_GRID); in onOptionsItemSelected()
341 setViewMode(State.MODE_LIST); in onOptionsItemSelected()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DVideoCallPresenter.java40 import com.android.incallui.call.DialerCall.State;
102 private int mCurrentCallState = DialerCall.State.INVALID;
170 boolean isCallActive = callState == DialerCall.State.ACTIVE; in showIncomingVideo()
173 DialerCall.State.isDialing(callState) || callState == DialerCall.State.CONNECTING; in showIncomingVideo()
330 mCurrentCallState = DialerCall.State.INVALID; in onVideoCallScreenUiReady()
548 updateFullscreenAndGreenScreenMode(State.INVALID, SessionModificationState.NO_REQUEST); in onFullscreenModeChanged()
647 mCurrentCallState = DialerCall.State.INVALID; in updateCallCache()
706 callState == State.DIALING in updateFullscreenAndGreenScreenMode()
707 || callState == State.CONNECTING in updateFullscreenAndGreenScreenMode()
708 || callState == State.INCOMING in updateFullscreenAndGreenScreenMode()
[all …]
DVideoPauseController.java27 import com.android.incallui.call.DialerCall.State;
46 private int mPrevCallState = State.INVALID;
70 return (mPrevCallState == DialerCall.State.CALL_WAITING in wasIncomingCall()
71 || mPrevCallState == DialerCall.State.INCOMING); in wasIncomingCall()
82 && (call.getState() == DialerCall.State.CALL_WAITING in isIncomingCall()
83 || call.getState() == DialerCall.State.INCOMING); in isIncomingCall()
92 return DialerCall.State.isDialing(mPrevCallState); in wasDialing()
123 mPrevCallState = State.INVALID; in clear()
245 mPrevCallState = State.INVALID; in updatePrimaryCallContext()
330 return call != null && call.isVideoCall() && call.getState() == DialerCall.State.ACTIVE; in videoCanPause()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersAccess.java26 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()
108 if (state.action == State.ACTION_OPEN && root.isEmpty()) { in getMatchingRoots()
113 if (state.action == State.ACTION_GET_CONTENT && root.isEmpty()) { in getMatchingRoots()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryListInterfaceState.java35 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/apps/DocumentsUI/src/com/android/documentsui/picker/
DConfig.java19 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/apps/DocumentsUI/src/com/android/documentsui/base/
DState.java36 public class State implements android.os.Parcelable { class
138 public static final ClassLoaderCreator<State> CREATOR = new ClassLoaderCreator<State>() {
140 public State createFromParcel(Parcel in) {
145 public State createFromParcel(Parcel in, ClassLoader loader) {
146 final State state = new State();
162 public State[] newArray(int size) {
163 return new State[size];
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java39 import com.android.documentsui.base.State;
40 import com.android.documentsui.base.State.ActionType;
153 testInitLocationDefaultToRecentsOnAction(State.ACTION_GET_CONTENT); in testInitLocation_DefaultToRecents_ActionGetContent()
158 testInitLocationDefaultToRecentsOnAction(State.ACTION_OPEN); in testInitLocation_DefaultToRecents_ActionOpen()
163 testInitLocationDefaultToRecentsOnAction(State.ACTION_OPEN_TREE); in testInitLocation_DefaultToRecents_ActionOpenTree()
168 mEnv.state.action = State.ACTION_CREATE; in testInitLocation_DefaultsToDownloads_ActionCreate()
191 mEnv.state.action = State.ACTION_PICK_COPY_DESTINATION; in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
217 mEnv.state.action = State.ACTION_OPEN_TREE; in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree()
244 mEnv.state.action = State.ACTION_CREATE; in testSaveDocument_SetsCorrectResultAndFinishes()
273 mEnv.state.action = State.ACTION_CREATE; in testSaveDocument_ConfirmsOverwrite()
[all …]

123456789