/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/modules/Bluetooth/service/src/ |
D | AdapterStateTest.kt | 39 lateinit var mState: BluetoothAdapterState variable in com.android.server.bluetooth.test.BluetoothAdapterStateTest 45 mState = BluetoothAdapterState() in setUp() 50 Log.d("BluetoothAdapterStateTest", "Initial state is " + mState) in init_isStateOff() 51 assertThat(mState.get()).isEqualTo(STATE_OFF) in init_isStateOff() 57 for (i in 0..max) mState.set(i) in get_afterBusy_returnLastValue() 58 assertThat(mState.get()).isEqualTo(max) in get_afterBusy_returnLastValue() 64 mState.set(state) in <lambda>() 65 assertThat(runBlocking { mState.waitForState(100.days, state) }).isTrue() in <lambda>() 68 @Test fun expectTimeout() = runTest { assertThat(mState.waitForState(100.days, -1)).isFalse() } in <lambda>() 72 assertThat(mState.waitForState(java.time.Duration.ofMillis(10), -1)).isFalse() in <lambda>() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | DataConnectionStatusTracker.java | 75 private int mState = STATE_INACTIVE; field in DataConnectionStatusTracker 117 return mState == STATE_INACTIVE; in isInactiveState() 121 return mState == STATE_CONNECTED || mState == STATE_HANDOVER; in isActiveState() 125 return mState == STATE_HANDOVER; in isHandoverState() 129 return mState == STATE_CONNECTING || mState == STATE_HANDOVER; in isConnectionInProgress() 179 if (mState == STATE_CONNECTED || mState == STATE_HANDOVER) { in onDataConnectionStateChanged() 180 mState = STATE_INACTIVE; in onDataConnectionStateChanged() 185 if (mState == STATE_CONNECTING) { in onDataConnectionStateChanged() 187 mState = STATE_INACTIVE; in onDataConnectionStateChanged() 196 if (mState == STATE_INACTIVE) { in onDataConnectionStateChanged() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
D | ProvidersAccessTest.java | 65 private State mState; field in ProvidersAccessTest 75 mState = new State(); in setUp() 76 mState.action = State.ACTION_OPEN; in setUp() 77 mState.localOnly = false; in setUp() 81 mState.acceptMimes = new String[]{"*/*"}; in testMatchingRoots_Everything() 84 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_Everything() 88 mState.acceptMimes = new String[] { "image/png", "*/*" }; in testMatchingRoots_PngOrWild() 91 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_PngOrWild() 95 mState.acceptMimes = new String[] { "audio/*" }; in testMatchingRoots_AudioWild() 98 ProvidersAccess.getMatchingRoots(mRoots, mState)); in testMatchingRoots_AudioWild() [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/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/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/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | PickActivity.java | 126 mState, in onCreate() 144 mState, in onCreate() 175 ? new AppsRowManager(mInjector.actions, mState.supportsCrossProfile(), in getAppsRowManager() 177 : new AppsRowManager(mInjector.actions, mState.supportsCrossProfile(), in getAppsRowManager() 216 if (mState.action == ACTION_CREATE) { in setupLayout() 220 } else if (mState.action == ACTION_OPEN_TREE || in setupLayout() 221 mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout() 233 if (mState.supportsCrossProfile) { in setupLayout() 235 mState.canForwardToProfileIdMap = mUserManagerState.getCanForwardToProfileIdMap( in setupLayout() 240 mState.canShareAcrossProfile = true; in setupLayout() [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/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/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 …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | LocalPrintJob.java | 68 private int mState; field in LocalPrintJob 86 mState = STATE_INIT; in LocalPrintJob() 103 if (mState != STATE_INIT) { in start() 104 Log.w(TAG, "Invalid start state " + mState); in start() 112 mState = STATE_DISCOVERY; in start() 116 if (mState == STATE_DISCOVERY) { in start() 128 if (DEBUG) Log.d(TAG, "restart() " + mPrintJob + " in state " + mState); in restart() 129 if (mState == STATE_SECURITY) { in restart() 136 if (DEBUG) Log.d(TAG, "cancel() " + mPrintJob + " in state " + mState); in cancel() 138 switch (mState) { in cancel() [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/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | UserItemsCombinerTest.java | 80 private final State mState = new State(); field in UserItemsCombinerTest 93 mState.canShareAcrossProfile = true; in setUp() 94 mState.supportsCrossProfile = true; in setUp() 99 mState.canForwardToProfileIdMap.put(PERSONAL_USER, true); in setUp() 100 mState.canForwardToProfileIdMap.put(WORK_USER, true); in setUp() 101 mState.configStore = mTestConfigStore; in setUp() 106 mState.canForwardToProfileIdMap.put(PRIVATE_USER, true); in setUp() 113 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_empty() 127 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableListForAllUsers_empty() 135 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_currentIsPersonal_personalItemsOnly() [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 | 103 @State int mState = STATE_NO_NOTIFICATION; field in AvailableNetworkNotifier 264 if (mState != STATE_NO_NOTIFICATION) { in clearPendingNotification() 270 + mState in clearPendingNotification() 274 mState = STATE_NO_NOTIFICATION; in clearPendingNotification() 303 if (availableNetworks.isEmpty() && mState == STATE_SHOWING_RECOMMENDATION_NOTIFICATION) { in handleScanResults() 309 if (mState == STATE_NO_NOTIFICATION in handleScanResults() 315 if (mState == STATE_NO_NOTIFICATION && !mScreenOn) { in handleScanResults() 320 if (mState == STATE_NO_NOTIFICATION in handleScanResults() 321 || mState == STATE_SHOWING_RECOMMENDATION_NOTIFICATION) { in handleScanResults() 371 if (mState != STATE_CONNECTING_IN_NOTIFICATION) { in handleWifiConnected() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | MultiStateCallback.java | 53 private int mState = 0; field in MultiStateCallback 87 + convertToFlagNames(stateFlag) + " to " + convertToFlagNames(mState)); in setState() 90 final int oldState = mState; in setState() 91 mState = mState | stateFlag; in setState() 97 if ((mState & state) == state) { in setState() 134 + convertToFlagNames(stateFlag) + " from " + convertToFlagNames(mState)); in clearState() 137 int oldState = mState; in clearState() 138 mState = mState & ~stateFlag; in clearState() 147 boolean isOn = (state & mState) == state; in notifyStateChangeListeners() 164 if ((mState & stateMask) == stateMask) { in runOnceAtState() [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() 345 switch (mState) { in nextStepConnect() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | BaseActivity.java | 98 protected State mState; field in BaseActivity 193 mState = getState(savedInstanceState); in onCreate() 195 Metrics.logActivityLaunch(mState, intent); in onCreate() 198 mDocs = DocumentsAccess.create(this, mState); in onCreate() 317 mSearchManager.initChipSets(mState.acceptMimes); in onCreate() 324 mState.action); in onCreate() 339 if (!mState.stack.isInitialized()) { in onCreate() 352 if (mState.stack.size() <= 1) { in onCreate() 370 mSortController = SortController.create(this, mState.derivedMode, mState.sortModel); in onCreate() 386 return new NavigationViewManager(this, mDrawer, mState, this, breadcrumb, in getNavigationViewManager() [all …]
|
D | AbstractActionHandler.java | 101 protected final State mState; field in AbstractActionHandler 147 mState = state; in AbstractActionHandler() 217 mState, in refreshDocument() 309 if (mInjector.config.isDocumentEnabled(docMimeType, docFlags, mState)) { in selectAllFiles() 335 SortListFragment.show(mActivity.getSupportFragmentManager(), mState.sortModel); in showSortDialog() 536 && mState.stack.size() > 1) { in isManagedDownload() 575 mState.stack.popToRootDocument(); in openFolderInSearchResult() 582 mState.stack.push(doc); in openFolderInSearchResult() 584 if (!Objects.equals(mState.stack.getRoot(), stack.getRoot())) { in openFolderInSearchResult() 587 + mState.stack.getRoot()); in openFolderInSearchResult() [all …]
|