/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Timer.java | 85 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 …]
|
D | Stopwatch.java | 38 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/ |
D | StateTest.java | 40 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/ |
D | ShadowDrawable.java | 50 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/ |
D | FocusOverlayManager.java | 66 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/ |
D | AlphabetShiftState.java | 32 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 …]
|
D | ModifierKeyState.java | 30 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/ |
D | ProvidersAccessTest.java | 48 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/ |
D | FocusManager.java | 50 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 …]
|
D | EffectsRecorder.java | 117 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/Camera2/src/com/android/camera/ |
D | FocusOverlayManager.java | 78 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/ |
D | AbstractActionHandler.java | 94 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 …]
|
D | BaseActivity.java | 94 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/ |
D | LocalPrintJob.java | 65 private int mState; field in LocalPrintJob 81 mState = STATE_INIT; in LocalPrintJob() 96 if (mState != STATE_INIT) { in start() 97 Log.w(TAG, "Invalid start state " + mState); in start() 105 mState = STATE_DISCOVERY; in start() 109 if (mState == STATE_DISCOVERY) { in start() 121 if (DEBUG) Log.d(TAG, "restart() " + mPrintJob + " in state " + mState); in restart() 122 if (mState == STATE_SECURITY) { in restart() 129 if (DEBUG) Log.d(TAG, "cancel() " + mPrintJob + " in state " + mState); in cancel() 131 switch (mState) { in cancel() [all …]
|
/packages/apps/Car/libs/EncryptionRunner/src/android/car/encryptionrunner/ |
D | DummyEncryptionRunner.java | 58 private int mState; field in DummyEncryptionRunner 64 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in initHandshake() 66 .setHandshakeState(mState) in initHandshake() 79 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in respondToInitRequest() 87 if (mState != HandshakeMessage.HandshakeState.UNKNOWN) { in checkRunnerIsNew() 94 if (mState != HandshakeMessage.HandshakeState.IN_PROGRESS) { in continueHandshake() 102 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake() 105 mState = HandshakeMessage.HandshakeState.RESUMING_SESSION; in continueHandshake() 109 .setHandshakeState(mState) in continueHandshake() 115 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | PickActivity.java | 111 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/ |
D | DummyEncryptionRunner.java | 54 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/ |
D | BluetoothPeripheralHandover.java | 104 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() 265 switch (mState) { in nextStepDisconnect() 267 mState = STATE_DISCONNECTING; in nextStepDisconnect() 346 switch (mState) { in nextStepConnect() [all …]
|
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/ |
D | StateMachineImpl.java | 32 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/ |
D | TestEvents.java | 116 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/ |
D | SendUi.java | 190 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/ |
D | MultiStateCallback.java | 43 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | RequestToggleWiFiActivity.java | 66 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/ |
D | RequestToggleWiFiActivity.java | 66 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/Gallery2/src/com/android/gallery3d/ui/ |
D | BitmapLoader.java | 43 private int mState = STATE_INIT; field in BitmapLoader 53 if (mState == STATE_RECYCLED) { in onFutureDone() 61 if (mState == STATE_REQUESTED) mTask = submitBitmapTask(this); in onFutureDone() 64 mState = mBitmap == null ? STATE_ERROR : STATE_LOADED; in onFutureDone() 71 if (mState == STATE_INIT) { in startLoad() 72 mState = STATE_REQUESTED; in startLoad() 78 if (mState == STATE_REQUESTED) { in cancelLoad() 79 mState = STATE_INIT; in cancelLoad() 86 mState = STATE_RECYCLED; in recycle() 95 return mState == STATE_REQUESTED; in isRequestInProgress() [all …]
|