Home
last modified time | relevance | path

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

12345678910

/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.java85 private final State mState; field in Timer
111 mState = state; in Timer()
122 public State getState() { return mState; } in getState()
127 public boolean isReset() { return mState == RESET; } in isReset()
128 public boolean isRunning() { return mState == RUNNING; } in isRunning()
129 public boolean isPaused() { return mState == PAUSED; } in isPaused()
130 public boolean isExpired() { return mState == EXPIRED; } in isExpired()
131 public boolean isMissed() { return mState == MISSED; } in isMissed()
145 if (mState == PAUSED || mState == RESET) { in getRemainingTime()
160 if (mState != RUNNING && mState != EXPIRED && mState != MISSED) { in getExpirationTime()
[all …]
DStopwatch.java38 private final State mState; field in Stopwatch
50 mState = state; in Stopwatch()
56 public State getState() { return mState; } in getState()
59 public boolean isReset() { return mState == RESET; } in isReset()
60 public boolean isPaused() { return mState == PAUSED; } in isPaused()
61 public boolean isRunning() { return mState == RUNNING; } in isRunning()
67 if (mState != RUNNING) { in getTotalTime()
89 if (mState == RUNNING) { in start()
100 if (mState != RUNNING) { in pause()
120 if (mState != RUNNING) { in updateAfterReboot()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DStateTest.java40 private State mState; field in StateTest
45 mState = new State(); in setUp()
52 mState.initAcceptMimes(mIntent, "*/*"); in testAcceptGivenMimeTypesInExtra()
54 assertArrayEquals(MIME_TYPES, mState.acceptMimes); in testAcceptGivenMimeTypesInExtra()
59 mState.initAcceptMimes(mIntent, MIME_TYPES[0]); in testAcceptIntentTypeWithoutExtra()
61 assertArrayEquals(new String[] { MIME_TYPES[0] }, mState.acceptMimes); in testAcceptIntentTypeWithoutExtra()
66 mState.action = State.ACTION_BROWSE; in testShouldShowPreview_actionBrowse()
68 assertFalse(mState.shouldShowPreview()); in testShouldShowPreview_actionBrowse()
73 mState.action = State.ACTION_OPEN; in testShouldShowPreview_actionOpen()
75 assertTrue(mState.shouldShowPreview()); in testShouldShowPreview_actionOpen()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DShadowDrawable.java50 private final ShadowDrawableState mState; field in ShadowDrawable
58 mState = state; in ShadowDrawable()
67 if (mState.mLastDrawnBitmap == null) { in draw()
70 canvas.drawBitmap(mState.mLastDrawnBitmap, null, bounds, mPaint); in draw()
87 return mState; in getConstantState()
97 return mState.mIntrinsicHeight; in getIntrinsicHeight()
102 return mState.mIntrinsicWidth; in getIntrinsicWidth()
107 return mState.canApplyTheme(); in canApplyTheme()
115 if (mState.mIsDark != isDark) { in applyTheme()
116 mState.mIsDark = isDark; in applyTheme()
[all …]
/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 …]
/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 …]
DModifierKeyState.java30 protected int mState = RELEASING; field in ModifierKeyState
37 final int oldState = mState; in onPress()
38 mState = PRESSING; in onPress()
44 final int oldState = mState; in onRelease()
45 mState = RELEASING; in onRelease()
51 final int oldState = mState; in onOtherKeyPressed()
53 mState = CHORDING; in onOtherKeyPressed()
59 return mState == PRESSING; in isPressing()
63 return mState == RELEASING; in isReleasing()
67 return mState == CHORDING; in isChording()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/
DProvidersAccessTest.java48 private State mState; field in ProvidersAccessTest
57 mState = new State(); in setUp()
58 mState.action = State.ACTION_OPEN; in setUp()
59 mState.showAdvanced = true; in setUp()
60 mState.localOnly = false; in setUp()
64 mState.acceptMimes = new String[] { "*/*" }; in testMatchingRoots_Everything()
67 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_Everything()
75 mState.acceptMimes = new String[] { "*/*" }; in testMatchingRoots_DirectoryCopy()
76 mState.directoryCopy = true; in testMatchingRoots_DirectoryCopy()
81 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_DirectoryCopy()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
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 …]
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 …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DAbstractActionHandler.java94 protected final State mState; field in AbstractActionHandler
137 mState = state; in AbstractActionHandler()
200 mState, in refreshDocument()
292 if (mInjector.config.isDocumentEnabled(docMimeType, docFlags, mState)) { in selectAllFiles()
313 SortListFragment.show(mActivity.getSupportFragmentManager(), mState.sortModel); in showSortDialog()
359 mState.stack.popToRootDocument(); in openFolderInSearchResult()
366 mState.stack.push(doc); in openFolderInSearchResult()
368 if (!Objects.equals(mState.stack.getRoot(), stack.getRoot())) { in openFolderInSearchResult()
370 + mState.stack.getRoot()); in openFolderInSearchResult()
380 mState.stack.reset(); in openFolderInSearchResult()
[all …]
DBaseActivity.java94 protected State mState; field in BaseActivity
153 mState = getState(icicle); in onCreate()
155 Metrics.logActivityLaunch(mState, intent); in onCreate()
167 mNavigator = new NavigationViewManager(this, mDrawer, mState, this, breadcrumb); in onCreate()
253 mSearchManager.initChipSets(mState.acceptMimes); in onCreate()
260 mState.action); in onCreate()
268 mSortController = SortController.create(this, mState.derivedMode, mState.sortModel); in onCreate()
301 mState, in onPostCreate()
331 mSearchManager.showMenu(mState.stack); in onPrepareOptionsMenu()
414 if (root.equals(getCurrentRoot()) && mState.stack.size() == 1) { in onRootPicked()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalPrintJob.java64 private int mState; field in LocalPrintJob
80 mState = STATE_INIT; in LocalPrintJob()
95 if (mState != STATE_INIT) { in start()
96 Log.w(TAG, "Invalid start state " + mState); in start()
104 mState = STATE_DISCOVERY; in start()
108 if (mState == STATE_DISCOVERY) { in start()
120 if (DEBUG) Log.d(TAG, "restart() " + mPrintJob + " in state " + mState); in restart()
121 if (mState == STATE_SECURITY) { in restart()
128 if (DEBUG) Log.d(TAG, "cancel() " + mPrintJob + " in state " + mState); in cancel()
130 switch (mState) { in cancel()
[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/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java111 mInjector.menuManager = new MenuManager(mSearchManager, mState, new DirectoryDetails(this)); in onCreate()
122 mState, in onCreate()
185 if (mState.action == ACTION_CREATE) { in setupLayout()
189 } else if (mState.action == ACTION_OPEN_TREE || in setupLayout()
190 mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout()
199 if (mState.action == ACTION_GET_CONTENT) { in setupLayout()
204 } else if (mState.action == ACTION_OPEN || in setupLayout()
205 mState.action == ACTION_CREATE || in setupLayout()
206 mState.action == ACTION_OPEN_TREE || in setupLayout()
207 mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout()
[all …]
/packages/services/Car/EncryptionRunner/src/android/car/encryptionrunner/
DDummyEncryptionRunner.java54 private int mState; field in DummyEncryptionRunner
60 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in initHandshake()
62 .setHandshakeState(mState) in initHandshake()
75 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in respondToInitRequest()
83 if (mState != HandshakeMessage.HandshakeState.UNKNOWN) { in checkRunnerIsNew()
90 if (mState != HandshakeMessage.HandshakeState.IN_PROGRESS) { in continueHandshake()
98 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake()
101 .setHandshakeState(mState) in continueHandshake()
107 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake()
109 .setHandshakeState(mState) in continueHandshake()
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java104 int mState; field in BluetoothPeripheralHandover
151 mState = STATE_INIT; in BluetoothPeripheralHandover()
155 return mState != STATE_INIT; in hasStarted()
164 if (mState != STATE_INIT || mBluetoothAdapter == null in start()
208 switch (mState) { in nextStepInit()
211 mState = STATE_WAITING_FOR_PROXIES; in nextStepInit()
219 mState = STATE_INIT_COMPLETE; in nextStepInit()
263 switch (mState) { in nextStepDisconnect()
265 mState = STATE_DISCONNECTING; in nextStepDisconnect()
344 switch (mState) { in nextStepConnect()
[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/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEvents.java116 private State mState = new State(); field in TestEvents.Builder
123 mState.mAction = action; in action()
128 mState.mToolType = type; in type()
133 mState.mLocation = new Point(x, y); in location()
138 mState.mRawLocation = new Point(x, y); in rawLocation()
143 mState.mPointerCount = count; in pointerCount()
152 mState.mButtons.add(button); in pressButton()
162 mState.mButtons.remove(button); in releaseButton()
172 mState.mKeys.add(key); in pressKey()
182 mState.mKeys.remove(key); in releaseKey()
[all …]
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java190 int mState; field in SendUi
321 mState = STATE_IDLE; in SendUi()
327 if (mState >= STATE_W4_TOUCH) { in takeScreenshot()
330 mState = STATE_W4_SCREENSHOT; in takeScreenshot()
339 switch (mState) { in showPreSend()
347 mState = STATE_W4_SCREENSHOT_PRESEND_NFC_TAP_REQUESTED; in showPreSend()
349 mState = STATE_W4_SCREENSHOT_PRESEND_REQUESTED; in showPreSend()
360 Log.e(TAG, "Unexpected showPreSend() in state " + Integer.toString(mState)); in showPreSend()
420 mState = promptToNfcTap ? STATE_W4_NFC_TAP : STATE_W4_TOUCH; in showPreSend()
425 if (mState < STATE_SENDING) return; in showStartSend()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DMultiStateCallback.java43 private int mState = 0; field in MultiStateCallback
51 + convertToFlagNames(stateFlag) + " to " + convertToFlagNames(mState)); in setState()
54 int oldState = mState; in setState()
55 mState = mState | stateFlag; in setState()
61 if ((mState & state) == state) { in setState()
80 + convertToFlagNames(stateFlag) + " from " + convertToFlagNames(mState)); in clearState()
83 int oldState = mState; in clearState()
84 mState = mState & ~stateFlag; in clearState()
93 boolean isOn = (state & mState) == state; in notifyStateChangeHandlers()
120 return mState; in getState()
[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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DRequestToggleWiFiActivity.java66 private int mState = STATE_UNKNOWN; field in RequestToggleWiFiActivity
98 mState = STATE_ENABLE; in onCreate()
102 mState = STATE_DISABLE; in onCreate()
115 switch (mState) { in onClick()
118 mState = STATE_ENABLING; in onClick()
125 mState = STATE_DISABLING; in onClick()
147 switch (mState) { in onStart()
156 mState = STATE_ENABLING; in onStart()
171 mState = STATE_DISABLING; in onStart()
191 mState = STATE_ENABLE; in onStart()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DRequestToggleWiFiActivity.java66 private int mState = STATE_UNKNOWN; field in RequestToggleWiFiActivity
98 mState = STATE_ENABLE; in onCreate()
102 mState = STATE_DISABLE; in onCreate()
115 switch (mState) { in onClick()
118 mState = STATE_ENABLING; in onClick()
125 mState = STATE_DISABLING; in onClick()
147 switch (mState) { in onStart()
156 mState = STATE_ENABLING; in onStart()
171 mState = STATE_DISABLING; in onStart()
191 mState = STATE_ENABLE; in onStart()
[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 …]

12345678910