Home
last modified time | relevance | path

Searched refs:mState (Results 1 – 25 of 147) sorted by relevance

123456

/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DFocusOverlayManager.java66 private int mState = STATE_IDLE; field in FocusOverlayManager
183 if (mLockAeAwbNeeded && mAeAwbLock && (mState != STATE_FOCUSING_SNAP_ON_FINISH)) { in unlockAeAwbIfNeeded()
197 if (mState != STATE_SUCCESS && mState != STATE_FAIL) { in onShutterDown()
215 if (mState == STATE_FOCUSING || mState == STATE_SUCCESS in onShutterUp()
216 || mState == STATE_FAIL) { in onShutterUp()
234 if (!needAutoFocusCall() || (mState == STATE_SUCCESS || mState == STATE_FAIL)) { in doSnap()
236 } else if (mState == STATE_FOCUSING) { in doSnap()
240 mState = STATE_FOCUSING_SNAP_ON_FINISH; in doSnap()
241 } else if (mState == STATE_IDLE) { in doSnap()
251 if (mState == STATE_FOCUSING_SNAP_ON_FINISH) { in onAutoFocus()
[all …]
DPieRenderer.java48 private volatile int mState; field in PieRenderer
177 mState = STATE_IDLE; in init()
202 if ((mState == STATE_PIE) && isVisible()) { in showInCenter()
206 if (mState != STATE_IDLE) { in showInCenter()
209 mState = STATE_PIE; in showInCenter()
226 mState = STATE_PIE; in show()
236 mState = STATE_IDLE; in show()
371 if (mState == STATE_FINISHING) { in onDraw()
390 if (mState == STATE_PIE) { in drawItem()
421 mState = STATE_PIE; in onTouchEvent()
[all …]
/packages/apps/Camera/src/com/android/camera/
DFocusOverlayManager.java66 private int mState = STATE_IDLE; field in FocusOverlayManager
197 if (mLockAeAwbNeeded && mAeAwbLock && (mState != STATE_FOCUSING_SNAP_ON_FINISH)) { in unlockAeAwbIfNeeded()
209 if (mState != STATE_SUCCESS && mState != STATE_FAIL) { in onShutterDown()
223 if (mState == STATE_FOCUSING || mState == STATE_SUCCESS in onShutterUp()
224 || mState == STATE_FAIL) { in onShutterUp()
240 if (!needAutoFocusCall() || (mState == STATE_SUCCESS || mState == STATE_FAIL)) { in doSnap()
242 } else if (mState == STATE_FOCUSING) { in doSnap()
246 mState = STATE_FOCUSING_SNAP_ON_FINISH; in doSnap()
247 } else if (mState == STATE_IDLE) { in doSnap()
257 if (mState == STATE_FOCUSING_SNAP_ON_FINISH) { in onAutoFocus()
[all …]
DEffectsRecorder.java175 private int mState = STATE_CONFIGURE; field in EffectsRecorder
317 switch (mState) { in setCamera()
332 switch (mState) { in setProfile()
344 switch (mState) { in setOutputFile()
358 switch (mState) { in setOutputFile()
378 switch (mState) { in setMaxFileSize()
395 switch (mState) { in setMaxDuration()
409 switch (mState) { in setCaptureRate()
427 switch (mState) { in setPreviewSurfaceTexture()
442 switch (mState) { in setPreviewSurfaceTexture()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DEffectsRecorder.java117 private int mState = STATE_CONFIGURE; field in EffectsRecorder
145 switch (mState) { in setCamera()
160 switch (mState) { in setProfile()
172 switch (mState) { in setOutputFile()
186 switch (mState) { in setOutputFile()
206 switch (mState) { in setMaxFileSize()
222 switch (mState) { in setMaxDuration()
235 switch (mState) { in setCaptureRate()
252 switch (mState) { in setPreviewDisplay()
265 switch (mState) { in setPreviewDisplay()
[all …]
DFocusManager.java50 private int mState = STATE_IDLE; field in FocusManager
152 if (mState != STATE_SUCCESS && mState != STATE_FAIL) { in onShutterDown()
163 if (mState == STATE_FOCUSING || mState == STATE_SUCCESS in onShutterUp()
164 || mState == STATE_FAIL) { in onShutterUp()
171 if (mLockAeAwbNeeded && mAeAwbLock && (mState != STATE_FOCUSING_SNAP_ON_FINISH)) { in onShutterUp()
183 if (!needAutoFocusCall() || (mState == STATE_SUCCESS || mState == STATE_FAIL)) { in doSnap()
185 } else if (mState == STATE_FOCUSING) { in doSnap()
189 mState = STATE_FOCUSING_SNAP_ON_FINISH; in doSnap()
190 } else if (mState == STATE_IDLE) { in doSnap()
205 if (mState == STATE_FOCUSING_SNAP_ON_FINISH) { in onAutoFocus()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DAlphabetShiftState.java32 private int mState = UNSHIFTED; field in AlphabetShiftState
35 final int oldState = mState; in setShifted()
39 mState = MANUAL_SHIFTED; in setShifted()
42 mState = MANUAL_SHIFTED_FROM_AUTO; in setShifted()
45 mState = SHIFT_LOCK_SHIFTED; in setShifted()
53 mState = UNSHIFTED; in setShifted()
56 mState = SHIFT_LOCKED; in setShifted()
65 final int oldState = mState; in setShiftLocked()
72 mState = SHIFT_LOCKED; in setShiftLocked()
76 mState = UNSHIFTED; in setShiftLocked()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DFocusOverlayManager.java78 private int mState = STATE_IDLE; field in FocusOverlayManager
229 if (mLockAeAwbNeeded && mAeAwbLock && (mState != STATE_FOCUSING_SNAP_ON_FINISH)) { in unlockAeAwbIfNeeded()
242 if (mState == STATE_FOCUSING || mState == STATE_SUCCESS in onShutterUp()
243 || mState == STATE_FAIL) { in onShutterUp()
261 } else if (mState == STATE_SUCCESS || mState == STATE_FAIL) { in focusAndCapture()
264 } else if (mState == STATE_FOCUSING) { in focusAndCapture()
266 mState = STATE_FOCUSING_SNAP_ON_FINISH; in focusAndCapture()
267 } else if (mState == STATE_IDLE) { in focusAndCapture()
273 if (mState == STATE_FOCUSING_SNAP_ON_FINISH) { in onAutoFocus()
278 mState = STATE_SUCCESS; in onAutoFocus()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupFinal.java161 private int mState = STATE_BASICS; field in AccountSetupFinal
205 mState = savedInstanceState.getInt(SAVESTATE_KEY_STATE, STATE_OPTIONS); in onCreate()
245 mState = STATE_BASICS; in onCreate()
248 mState = STATE_MANUAL_INCOMING; in onCreate()
250 mState = STATE_MANUAL_OUTGOING; in onCreate()
252 mState = STATE_OPTIONS; in onCreate()
346 mState = STATE_OPTIONS; in onCreate()
453 outState.putInt(SAVESTATE_KEY_STATE, mState); in onSaveInstanceState()
477 switch (mState) { in updateContentFragment()
507 throw new IllegalStateException("Incorrect state " + mState); in updateContentFragment()
[all …]
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java181 int mState; field in SendUi
311 mState = STATE_IDLE; in SendUi()
317 if (mState >= STATE_W4_TOUCH) { in takeScreenshot()
320 mState = STATE_W4_SCREENSHOT; in takeScreenshot()
326 switch (mState) { in showPreSend()
334 mState = STATE_W4_SCREENSHOT_PRESEND_NFC_TAP_REQUESTED; in showPreSend()
336 mState = STATE_W4_SCREENSHOT_PRESEND_REQUESTED; in showPreSend()
347 Log.e(TAG, "Unexpected showPreSend() in state " + Integer.toString(mState)); in showPreSend()
407 mState = promptToNfcTap ? STATE_W4_NFC_TAP : STATE_W4_TOUCH; in showPreSend()
412 if (mState < STATE_SENDING) return; in showStartSend()
[all …]
DBeamTransferManager.java123 int mState; field in BeamTransferManager
155 mState = STATE_NEW; in BeamTransferManager()
213 if (mState == STATE_CANCELLING) { in setBluetoothTransferId()
254 … if (mState != STATE_NEW && mState != STATE_IN_PROGRESS && mState != STATE_W4_NEXT_TRANSFER) { in isRunning()
302 if (mState == STATE_NEW || mState == STATE_IN_PROGRESS || in updateNotification()
303 mState == STATE_W4_NEXT_TRANSFER || mState == STATE_W4_MEDIA_SCANNER) { in updateNotification()
321 } else if (mState == STATE_SUCCESS) { in updateNotification()
336 } else if (mState == STATE_FAILED) { in updateNotification()
342 } else if (mState == STATE_CANCELLED || mState == STATE_CANCELLING) { in updateNotification()
356 this.mState = newState; in updateStateAndNotification()
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java93 int mState; field in BluetoothPeripheralHandover
121 mState = STATE_INIT; in BluetoothPeripheralHandover()
125 return mState != STATE_INIT; in hasStarted()
134 if (mState != STATE_INIT || mBluetoothAdapter == null in start()
177 switch (mState) { in nextStepInit()
180 mState = STATE_WAITING_FOR_PROXIES; in nextStepInit()
188 mState = STATE_INIT_COMPLETE; in nextStepInit()
216 switch (mState) { in nextStepDisconnect()
218 mState = STATE_DISCONNECTING; in nextStepDisconnect()
297 switch (mState) { in nextStepConnect()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLauncherEdgeEffect.java82 private int mState = STATE_IDLE; field in LauncherEdgeEffect
130 return mState == STATE_IDLE; in isFinished()
138 mState = STATE_IDLE; in finish()
174 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
177 if (mState != STATE_PULL) { in onPull()
180 mState = STATE_PULL; in onPull()
213 if (mState != STATE_PULL && mState != STATE_PULL_DECAY) { in onRelease()
217 mState = STATE_RECEDE; in onRelease()
239 mState = STATE_ABSORB; in onAbsorb()
303 if (mState == STATE_RECEDE && mGlowScaleY == 0) { in draw()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java615 private int mState = STATE_NONE; field in ScrollController
720 if (mState == STATE_FLING) { in getCurrVelocity()
722 } else if (mState == STATE_SCROLL) { in getCurrVelocity()
769 mState = STATE_FLING; in fling()
791 mState = STATE_FLING; in startScroll()
794 mState = STATE_SCROLL; in startScroll()
828 if (mState == STATE_FLING) { in getCurrentAnimationDuration()
830 } else if (mState == STATE_SCROLL) { in getCurrentAnimationDuration()
860 mState = STATE_DRAG; in dragBy()
865 mState = STATE_NONE; in stopDrag()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java60 private SAP_STATE mState = SAP_STATE.DISCONNECTED; field in SapServer
132 + mState.name()
135 if(mState == SAP_STATE.CONNECTING_CALL_ONGOING) {
154 } else if( mState != SAP_STATE.DISCONNECTED
155 && mState != SAP_STATE.DISCONNECTING ) {
328 if(msg != null && mState != SAP_STATE.DISCONNECTING) in run()
373 if(mState == SAP_STATE.CONNECTED in run()
387 if(mState != SAP_STATE.CONNECTED) { in run()
389 + mState.name()); in run()
425 if (mState == SAP_STATE.CONNECTING_CALL_ONGOING) { in run()
[all …]
/packages/apps/Stk/src/com/android/stk/
DStkMenuActivity.java52 private int mState = STATE_MAIN; field in StkMenuActivity
85 CatLog.d(LOG_TAG, "MSG_ID_TIMEOUT mState: " + mState);
87 if (mState == STATE_SECONDARY) {
131 CatLog.d(LOG_TAG, "onListItemClick Id: " + item.id + ", mState: " + mState); in onListItemClick()
133 if (mState == STATE_SECONDARY) { in onListItemClick()
152 CatLog.d(LOG_TAG, "KEYCODE_BACK - mState[" + mState + "]"); in onKeyDown()
153 switch (mState) { in onKeyDown()
183 CatLog.d(LOG_TAG, "onResume, slot id: " + mSlotId + "," + mState); in onResume()
185 if (mState == STATE_MAIN) { in onResume()
198 if (mState == STATE_MAIN) { in onResume()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorBaseFragment.java355 protected RawContactDeltaList mState; field in ContactEditorBaseFragment
497 mState = savedState.<RawContactDeltaList> getParcelable(KEY_EDIT_STATE); in onCreate()
529 if (mState == null) { in onCreate()
530 mState = new RawContactDeltaList(); in onCreate()
540 if (mState.isEmpty()) { in onActivityCreated()
623 outState.putParcelable(KEY_EDIT_STATE, mState); in onSaveInstanceState()
770 discardMenu.setVisible(mState != null && in onPrepareOptionsMenu()
771 mState.getFirstWritableRawContact(mContext) != null); in onPrepareOptionsMenu()
788 final boolean isSingleReadOnlyContact = mHasNewContact && mState.size() == 2; in onPrepareOptionsMenu()
789 splitMenu.setVisible(mState.size() > 1 && !isEditingUserProfile() in onPrepareOptionsMenu()
[all …]
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/
DStateMachineImpl.java32 private State mState; field in StateMachineImpl
43 mState = new StateUninitialized(this); in StateMachineImpl()
54 if (newState.equals(mState)) { in jumpToState()
59 Log.d(TAG, "Change state : " + mState + " => " + newState); in jumpToState()
60 mState.onLeave(); in jumpToState()
61 mState = newState; in jumpToState()
62 Optional<State> nextState = mState.onEnter(); in jumpToState()
64 Log.d(TAG, "Forward state : " + mState + " => " + nextState.get()); in jumpToState()
65 mState.onLeave(); in jumpToState()
66 mState = nextState.get(); in jumpToState()
[all …]
/packages/apps/Camera/src/com/android/camera/ui/
DPieRenderer.java53 private volatile int mState; field in PieRenderer
182 mState = STATE_IDLE; in init()
207 if ((mState == STATE_PIE) && isVisible()) { in showInCenter()
211 if (mState != STATE_IDLE) { in showInCenter()
214 mState = STATE_PIE; in showInCenter()
231 mState = STATE_PIE; in show()
241 mState = STATE_IDLE; in show()
381 if (mState == STATE_FINISHING) { in onDraw()
400 if (mState == STATE_PIE) { in drawItem()
431 mState = STATE_PIE; in onTouchEvent()
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostEmulationManager.java97 int mState; field in HostEmulationManager
104 mState = STATE_IDLE; in HostEmulationManager()
136 if (mState != STATE_IDLE) { in onHostEmulationActivated()
139 mState = STATE_W4_SELECT; in onHostEmulationActivated()
148 if (mState == STATE_IDLE) { in onHostEmulationData()
151 } else if (mState == STATE_W4_DEACTIVATE) { in onHostEmulationData()
174 mState = STATE_W4_DEACTIVATE; in onHostEmulationData()
199 mState = STATE_W4_DEACTIVATE; in onHostEmulationData()
205 switch (mState) { in onHostEmulationData()
211 mState = STATE_XFER; in onHostEmulationData()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java128 private int mState = STATE_IDLE; field in EdgeEffect
163 return mState == STATE_IDLE; in isFinished()
171 mState = STATE_IDLE; in finish()
186 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
189 if (mState != STATE_PULL) { in onPull()
192 mState = STATE_PULL; in onPull()
235 if (mState != STATE_PULL && mState != STATE_PULL_DECAY) { in onRelease()
239 mState = STATE_RECEDE; in onRelease()
265 mState = STATE_ABSORB; in onAbsorb()
345 return mState != STATE_IDLE; in draw()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionImageAnimation.java80 private int mState; field in TransitionImageAnimation
88 mState = STATE_INITIAL; in TransitionImageAnimation()
179 if (mState != STATE_INITIAL) { in addTransitionSource()
196 if (mState != STATE_INITIAL) { in startCancelTimer()
200 mState = STATE_WAIT_DST; in startCancelTimer()
251 if (mState != STATE_WAIT_DST && mState != STATE_INITIAL) { in startTransition()
262 mState = STATE_CANCELLED; in startTransition()
291 mState = STATE_FINISHED; in startTransition()
298 mState = STATE_TRANSITION; in startTransition()
315 if (mState != STATE_WAIT_DST && mState != STATE_INITIAL) { in cancelTransition()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningProcessesView.java64 RunningState mState; field in RunningProcessesView
213 final RunningState mState; field in RunningProcessesView.ServiceListAdapter
221 mState = state; in ServiceListAdapter()
230 mState.setWatchingBackgroundItems(showBackground); in setShowBackground()
242 mShowBackground ? mState.getCurrentBackgroundItems() in refreshItems()
243 : mState.getCurrentMergedItems(); in refreshItems()
252 Collections.sort(mItems, mState.mBackgroundComparator); in refreshItems()
268 return mState.hasData() && mItems.size() == 0; in isEmpty()
305 synchronized (mState.mLock) { in bindView()
314 ActiveItem ai = vh.bind(mState, item, mBuilder); in bindView()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCall.java227 private int mState; field in Call
360 mState = isConference ? CallState.ACTIVE : CallState.NEW; in Call()
441 CallState.toString(mState), in toString()
479 return mState; in getState()
511 if (mState != newState) { in setState()
512 Log.v(this, "setState %s -> %s", mState, newState); in setState()
520 mState = newState; in setState()
523 if (mState == CallState.ACTIVE || mState == CallState.ON_HOLD) { in setState()
539 } else if (mState == CallState.DISCONNECTED) { in setState()
544 if (mState == CallState.DISCONNECTED && in setState()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DCommonControllerOverlay.java65 protected State mState; field in CommonControllerOverlay
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()
313 if (mState == State.PAUSED) { in updateViews()
[all …]

123456