/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/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/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 | 64 private State mState; field in ProvidersAccessTest 74 mState = new State(); in setUp() 75 mState.action = State.ACTION_OPEN; in setUp() 76 mState.localOnly = false; in setUp() 80 mState.acceptMimes = new String[]{"*/*"}; in testMatchingRoots_Everything() 83 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_Everything() 87 mState.acceptMimes = new String[] { "image/png", "*/*" }; in testMatchingRoots_PngOrWild() 90 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_PngOrWild() 94 mState.acceptMimes = new String[] { "audio/*" }; in testMatchingRoots_AudioWild() 97 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_AudioWild() [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/modules/NeuralNetworks/runtime/ |
D | ModelArgumentInfo.h | 50 State state() const { return mState; } in state() 52 bool unspecified() const { return mState == UNSPECIFIED; } in unspecified() 55 CHECK_EQ(mState, POINTER); in buffer() 60 CHECK(mState == POINTER || mState == MEMORY); in initialDimensions() 64 CHECK(mState == POINTER || mState == MEMORY); in dimensions() 68 CHECK(mState == POINTER || mState == MEMORY); in dimensions() 73 CHECK(mState == POINTER || mState == MEMORY); in isSufficient() 77 CHECK(mState == POINTER || mState == MEMORY); in isSufficient() 82 CHECK(mState == POINTER || mState == MEMORY); in length() 87 CHECK(mState == POINTER || mState == MEMORY); in padding() [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() 135 mState, in onCreate() 148 mAppsRowManager = new AppsRowManager(mInjector.actions, mState.supportsCrossProfile(), in onCreate() 201 if (mState.action == ACTION_CREATE) { in setupLayout() 205 } else if (mState.action == ACTION_OPEN_TREE || in setupLayout() 206 mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout() 218 if (mState.supportsCrossProfile() in setupLayout() 221 mState.canShareAcrossProfile = true; in setupLayout() 224 if (mState.action == ACTION_GET_CONTENT in setupLayout() 225 || 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/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/cpp/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/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvisioner.java | 183 private int mState = STATE_INIT; field in PasspointProvisioner.ProvisioningStateMachine 224 Log.v(TAG, "startProvisioning received in state=" + mState); in startProvisioning() 227 if (mState != STATE_INIT) { in startProvisioning() 292 Log.v(TAG, "Wifi Disabled in state=" + mState); in handleWifiDisabled() 294 if (mState == STATE_INIT) { in handleWifiDisabled() 295 Log.w(TAG, "Wifi Disable unhandled in state=" + mState); in handleWifiDisabled() 310 Log.v(TAG, "Server Connection status received in " + mState); in handleServerConnectionStatus() 317 if (mState != STATE_OSU_SERVER_CONNECTING) { in handleServerConnectionStatus() 318 Log.wtf(TAG, "Server Validation Failure unhandled in mState=" + mState); in handleServerConnectionStatus() 338 Log.v(TAG, "Server Validation failure received in " + mState); in handleServerValidationFailure() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | AvailableNetworkNotifier.java | 100 @State int mState = STATE_NO_NOTIFICATION; field in AvailableNetworkNotifier 257 if (mState != STATE_NO_NOTIFICATION) { in clearPendingNotification() 262 + mState in clearPendingNotification() 266 mState = STATE_NO_NOTIFICATION; in clearPendingNotification() 287 if (availableNetworks.isEmpty() && mState == STATE_SHOWING_RECOMMENDATION_NOTIFICATION) { in handleScanResults() 293 if (mState == STATE_NO_NOTIFICATION in handleScanResults() 299 if (mState == STATE_NO_NOTIFICATION && !mScreenOn) { in handleScanResults() 304 if (mState == STATE_NO_NOTIFICATION in handleScanResults() 305 || mState == STATE_SHOWING_RECOMMENDATION_NOTIFICATION) { in handleScanResults() 355 if (mState != STATE_CONNECTING_IN_NOTIFICATION) { in handleWifiConnected() [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() 270 mSearchManager.initChipSets(mState.acceptMimes); in onCreate() 277 mState.action); in onCreate() 292 if (!mState.stack.isInitialized()) { in onCreate() 305 if (mState.stack.size() <= 1) { in onCreate() 320 mSortController = SortController.create(this, mState.derivedMode, mState.sortModel); in onCreate() [all …]
|
D | AbstractActionHandler.java | 101 protected final State mState; field in AbstractActionHandler 146 mState = state; in AbstractActionHandler() 216 mState, in refreshDocument() 308 if (mInjector.config.isDocumentEnabled(docMimeType, docFlags, mState)) { in selectAllFiles() 334 SortListFragment.show(mActivity.getSupportFragmentManager(), mState.sortModel); in showSortDialog() 534 && mState.stack.size() > 1) { in isManagedDownload() 573 mState.stack.popToRootDocument(); in openFolderInSearchResult() 580 mState.stack.push(doc); in openFolderInSearchResult() 582 if (!Objects.equals(mState.stack.getRoot(), stack.getRoot())) { in openFolderInSearchResult() 585 + 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/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 | 67 private int mState = STATE_UNKNOWN; field in RequestToggleWiFiActivity 99 mState = STATE_ENABLE; in onCreate() 103 mState = STATE_DISABLE; in onCreate() 116 switch (mState) { in onClick() 119 mState = STATE_ENABLING; in onClick() 126 mState = STATE_DISABLING; in onClick() 148 switch (mState) { in onStart() 157 mState = STATE_ENABLING; in onStart() 172 mState = STATE_DISABLING; in onStart() 192 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 …]
|