/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/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/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
D | ProvidersAccessTest.java | 72 private State mState; field in ProvidersAccessTest 82 mState = new State(); in setUp() 83 mState.action = State.ACTION_OPEN; in setUp() 84 mState.localOnly = false; in setUp() 88 mState.acceptMimes = new String[]{"*/*"}; in testMatchingRoots_Everything() 91 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_Everything() 95 mState.acceptMimes = new String[] { "image/png", "*/*" }; in testMatchingRoots_PngOrWild() 98 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_PngOrWild() 102 mState.acceptMimes = new String[] { "audio/*" }; in testMatchingRoots_AudioWild() 105 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_AudioWild() [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/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/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/Car/libs/encryption-runner/src/android/car/encryptionrunner/ |
D | FakeEncryptionRunner.java | 57 private int mState; field in FakeEncryptionRunner 63 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in initHandshake() 65 .setHandshakeState(mState) in initHandshake() 78 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in respondToInitRequest() 92 return mState; in getState() 96 mState = state; in setState() 100 if (mState != HandshakeMessage.HandshakeState.UNKNOWN) { in checkRunnerIsNew() 107 if (mState != HandshakeMessage.HandshakeState.IN_PROGRESS) { in continueHandshake() 115 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake() 118 mState = HandshakeMessage.HandshakeState.RESUMING_SESSION; in continueHandshake() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | PickActivity.java | 117 mState, in onCreate() 134 mState, in onCreate() 147 mAppsRowManager = new AppsRowManager(mInjector.actions, mState.supportsCrossProfile(), in onCreate() 200 if (mState.action == ACTION_CREATE) { in setupLayout() 204 } else if (mState.action == ACTION_OPEN_TREE || in setupLayout() 205 mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout() 217 if (mState.supportsCrossProfile() in setupLayout() 220 mState.canShareAcrossProfile = true; in setupLayout() 223 if (mState.action == ACTION_GET_CONTENT in setupLayout() 224 || mState.action == ACTION_OPEN in setupLayout() [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/services/Car/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/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/services/Car/computepipe/runner/stream_manager/ |
D | SemanticManager.cpp | 72 mState = RESET; in setEngineInterface() 84 mState = CONFIG_DONE; in setMaxInFlightPackets() 90 if (mState == CONFIG_DONE && e.isPhaseEntry()) { in handleExecutionPhase() 91 mState = RUNNING; in handleExecutionPhase() 94 if (mState == RESET) { in handleExecutionPhase() 98 if (mState == RUNNING && e.isAborted()) { in handleExecutionPhase() 100 mState = CONFIG_DONE; in handleExecutionPhase() 103 if (mState == RUNNING) { in handleExecutionPhase() 111 if (mState == CONFIG_DONE || mState == RESET) { in handleStopWithFlushPhase() 115 if (mState == RUNNING && (e.isAborted() || e.isTransitionComplete())) { in handleStopWithFlushPhase() [all …]
|
D | PixelStreamManager.cpp | 146 mState = CONFIG_DONE; in setMaxInFlightPackets() 159 if (mState == STOPPED) { in freePacket() 197 if (mState != RUNNING) { in queuePacket() 199 << mState; in queuePacket() 252 if (mState == CONFIG_DONE && e.isPhaseEntry()) { in handleExecutionPhase() 253 mState = RUNNING; in handleExecutionPhase() 256 if (mState == RESET) { in handleExecutionPhase() 260 if (mState == RUNNING && e.isAborted()) { in handleExecutionPhase() 262 mState = CONFIG_DONE; in handleExecutionPhase() 265 if (mState == RUNNING) { in handleExecutionPhase() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | BaseActivity.java | 94 protected State mState; field in BaseActivity 153 mState = getState(savedInstanceState); in onCreate() 155 Metrics.logActivityLaunch(mState, intent); in onCreate() 158 mDocs = DocumentsAccess.create(this, mState); in onCreate() 168 mNavigator = new NavigationViewManager(this, mDrawer, mState, this, breadcrumb, in onCreate() 265 mSearchManager.initChipSets(mState.acceptMimes); in onCreate() 272 mState.action); in onCreate() 287 if (!mState.stack.isInitialized()) { in onCreate() 300 if (mState.stack.size() <= 1) { in onCreate() 315 mSortController = SortController.create(this, mState.derivedMode, mState.sortModel); in onCreate() [all …]
|
D | AbstractActionHandler.java | 99 protected final State mState; field in AbstractActionHandler 144 mState = state; in AbstractActionHandler() 214 mState, in refreshDocument() 306 if (mInjector.config.isDocumentEnabled(docMimeType, docFlags, mState)) { in selectAllFiles() 332 SortListFragment.show(mActivity.getSupportFragmentManager(), mState.sortModel); in showSortDialog() 532 && mState.stack.size() > 1) { in isManagedDownload() 571 mState.stack.popToRootDocument(); in openFolderInSearchResult() 578 mState.stack.push(doc); in openFolderInSearchResult() 580 if (!Objects.equals(mState.stack.getRoot(), stack.getRoot())) { in openFolderInSearchResult() 583 + mState.stack.getRoot()); in openFolderInSearchResult() [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/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/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/src/com/android/quickstep/ |
D | MultiStateCallback.java | 46 private int mState = 0; field in MultiStateCallback 70 + convertToFlagNames(stateFlag) + " to " + convertToFlagNames(mState)); in setState() 73 final int oldState = mState; in setState() 74 mState = mState | stateFlag; in setState() 80 if ((mState & state) == state) { in setState() 97 + convertToFlagNames(stateFlag) + " from " + convertToFlagNames(mState)); in clearState() 100 int oldState = mState; in clearState() 101 mState = mState & ~stateFlag; in clearState() 110 boolean isOn = (state & mState) == state; in notifyStateChangeListeners() 127 if ((mState & stateMask) == stateMask) { in runOnceAtState() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | RequestToggleWiFiActivity.java | 65 private int mState = STATE_UNKNOWN; field in RequestToggleWiFiActivity 97 mState = STATE_ENABLE; in onCreate() 101 mState = STATE_DISABLE; in onCreate() 114 switch (mState) { in onClick() 117 mState = STATE_ENABLING; in onClick() 124 mState = STATE_DISABLING; in onClick() 146 switch (mState) { in onStart() 155 mState = STATE_ENABLING; in onStart() 170 mState = STATE_DISABLING; in onStart() 190 mState = STATE_ENABLE; in onStart() [all …]
|