/frameworks/av/media/libmedia/ |
D | mediarecorder.cpp | 44 if (!(mCurrentState & MEDIA_RECORDER_IDLE)) { in setCamera() 45 ALOGE("setCamera called in an invalid state(%d)", mCurrentState); in setCamera() 52 mCurrentState = MEDIA_RECORDER_ERROR; in setCamera() 65 if (!(mCurrentState & MEDIA_RECORDER_DATASOURCE_CONFIGURED)) { in setPreviewSurface() 66 ALOGE("setPreviewSurface called in an invalid state(%d)", mCurrentState); in setPreviewSurface() 77 mCurrentState = MEDIA_RECORDER_ERROR; in setPreviewSurface() 90 if (!(mCurrentState & MEDIA_RECORDER_IDLE)) { in init() 91 ALOGE("init called in an invalid state(%d)", mCurrentState); in init() 98 mCurrentState = MEDIA_RECORDER_ERROR; in init() 105 mCurrentState = MEDIA_RECORDER_ERROR; in init() [all …]
|
D | mediaplayer.cpp | 64 mCurrentState = MEDIA_PLAYER_IDLE; in MediaPlayer() 131 if ( !( (mCurrentState & MEDIA_PLAYER_IDLE) || in attachNewPlayer() 132 (mCurrentState == MEDIA_PLAYER_STATE_ERROR ) ) ) { in attachNewPlayer() 133 ALOGE("attachNewPlayer called in state %d", mCurrentState); in attachNewPlayer() 141 mCurrentState = MEDIA_PLAYER_INITIALIZED; in attachNewPlayer() 211 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) && in invoke() 212 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE); in invoke() 217 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke() 275 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l() 281 mCurrentState = MEDIA_PLAYER_PREPARING; in prepareAsync_l() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarWindowController.java | 83 private final State mCurrentState = new State(); field in StatusBarWindowController 342 cb.onStateChanged(mCurrentState.keyguardShowing, in notifyStateChangedCallbacks() 343 mCurrentState.keyguardOccluded, in notifyStateChangedCallbacks() 344 mCurrentState.bouncerShowing); in notifyStateChangedCallbacks() 388 mCurrentState.keyguardShowing = showing; in setKeyguardShowing() 389 apply(mCurrentState); in setKeyguardShowing() 393 mCurrentState.keyguardOccluded = occluded; in setKeyguardOccluded() 394 apply(mCurrentState); in setKeyguardOccluded() 398 mCurrentState.keyguardNeedsInput = needsInput; in setKeyguardNeedsInput() 399 apply(mCurrentState); in setKeyguardNeedsInput() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | BufferStateLayer.cpp | 51 mCurrentState.dataspace = ui::Dataspace::V0_SRGB; in BufferStateLayer() 111 (mCurrentState.modified && in willPresentCurrentTransaction() 112 (mCurrentState.buffer != nullptr || mCurrentState.bgColorLayer != nullptr)); in willPresentCurrentTransaction() 116 return mCurrentState.transformToDisplayInverse; in getTransformToDisplayInverse() 120 if (!mCurrentState.modified) { in pushPendingState() 123 mPendingStates.push_back(mCurrentState); in pushPendingState() 132 mCurrentStateModified = stateUpdateAvailable && mCurrentState.modified; in applyPendingStates() 133 mCurrentState.modified = false; in applyPendingStates() 143 if (mCurrentState.transform == transform) return false; in setTransform() 144 mCurrentState.transform = transform; in setTransform() [all …]
|
D | Layer.cpp | 88 mCurrentState.active_legacy.w = args.w; in Layer() 89 mCurrentState.active_legacy.h = args.h; in Layer() 90 mCurrentState.flags = layerFlags; in Layer() 91 mCurrentState.active_legacy.transform.set(0, 0); in Layer() 92 mCurrentState.crop_legacy.makeInvalid(); in Layer() 93 mCurrentState.requestedCrop_legacy = mCurrentState.crop_legacy; in Layer() 94 mCurrentState.z = 0; in Layer() 95 mCurrentState.color.a = 1.0f; in Layer() 96 mCurrentState.layerStack = 0; in Layer() 97 mCurrentState.sequence = 0; in Layer() [all …]
|
D | ColorLayer.cpp | 68 if (mCurrentState.color.r == color.r && mCurrentState.color.g == color.g && in setColor() 69 mCurrentState.color.b == color.b) { in setColor() 73 mCurrentState.sequence++; in setColor() 74 mCurrentState.color.r = color.r; in setColor() 75 mCurrentState.color.g = color.g; in setColor() 76 mCurrentState.color.b = color.b; in setColor() 77 mCurrentState.modified = true; in setColor() 83 if (mCurrentState.dataspace == dataspace) { in setDataspace() 87 mCurrentState.sequence++; in setDataspace() 88 mCurrentState.dataspace = dataspace; in setDataspace() [all …]
|
D | RefreshRateOverlay.cpp | 45 ssize_t idx = mFlinger.mCurrentState.layersSortedByZ.indexOf(mLayer); in createLayer() 47 mFlinger.mCurrentState.layersSortedByZ.removeAt(idx); in createLayer() 48 mFlinger.mCurrentState.layersSortedByZ.add(mLayer); in createLayer()
|
D | SurfaceInterceptor.cpp | 104 addPositionLocked(transaction, layerId, layer->mCurrentState.active_legacy.transform.tx(), in addInitialSurfaceStateLocked() 105 layer->mCurrentState.active_legacy.transform.ty()); in addInitialSurfaceStateLocked() 106 addDepthLocked(transaction, layerId, layer->mCurrentState.z); in addInitialSurfaceStateLocked() 107 addAlphaLocked(transaction, layerId, layer->mCurrentState.color.a); in addInitialSurfaceStateLocked() 109 layer->mCurrentState.activeTransparentRegion_legacy); in addInitialSurfaceStateLocked() 110 addLayerStackLocked(transaction, layerId, layer->mCurrentState.layerStack); in addInitialSurfaceStateLocked() 111 addCropLocked(transaction, layerId, layer->mCurrentState.crop_legacy); in addInitialSurfaceStateLocked() 112 addCornerRadiusLocked(transaction, layerId, layer->mCurrentState.cornerRadius); in addInitialSurfaceStateLocked() 113 if (layer->mCurrentState.barrierLayer_legacy != nullptr) { in addInitialSurfaceStateLocked() 115 layer->mCurrentState.barrierLayer_legacy.promote(), in addInitialSurfaceStateLocked() [all …]
|
D | SurfaceFlinger.cpp | 440 flinger->mCurrentState.displays.removeItem(this); in createDisplay() 456 mCurrentState.displays.add(token, state); in createDisplay() 464 ssize_t index = mCurrentState.displays.indexOfKey(displayToken); in destroyDisplay() 470 const DisplayDeviceState& state = mCurrentState.displays.valueAt(index); in destroyDisplay() 476 mCurrentState.displays.removeItemsAt(index); in destroyDisplay() 692 mDrawingState = mCurrentState; in init() 2538 mCurrentState.displays.add(mPhysicalDisplayTokens[info->id], state); in processDisplayHotplugEventsLocked() 2544 ssize_t index = mCurrentState.displays.indexOfKey(mPhysicalDisplayTokens[info->id]); in processDisplayHotplugEventsLocked() 2546 const DisplayDeviceState& state = mCurrentState.displays.valueAt(index); in processDisplayHotplugEventsLocked() 2548 mCurrentState.displays.removeItemsAt(index); in processDisplayHotplugEventsLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileSignalController.java | 107 mLastState.networkName = mCurrentState.networkName = networkName; in MobileSignalController() 108 mLastState.networkNameData = mCurrentState.networkNameData = networkName; in MobileSignalController() 109 mLastState.enabled = mCurrentState.enabled = hasMobileData; in MobileSignalController() 110 mLastState.iconGroup = mCurrentState.iconGroup = mDefaultIcons; in MobileSignalController() 133 mCurrentState.airplaneMode = airplaneMode; in setAirplaneMode() 138 mCurrentState.userSetup = userSetup; in setUserSetupComplete() 145 mCurrentState.isDefault = connectedTransports.get(mTransportType); in updateConnectivity() 147 mCurrentState.inetCondition = (isValidated || !mCurrentState.isDefault) ? 1 : 0; in updateConnectivity() 152 mCurrentState.carrierNetworkChangeMode = carrierNetworkChangeMode; in setCarrierNetworkChangeMode() 265 if (mCurrentState.iconGroup == TelephonyIcons.CARRIER_NETWORK_CHANGE) { in getCurrentIconId() [all …]
|
D | WifiSignalController.java | 60 mCurrentState.iconGroup = mLastState.iconGroup = new IconGroup( in WifiSignalController() 87 boolean wifiVisible = mCurrentState.enabled in notifyListeners() 88 && (mCurrentState.connected || !mHasMobileData || visibleWhenEnabled); in notifyListeners() 89 String wifiDesc = wifiVisible ? mCurrentState.ssid : null; in notifyListeners() 90 boolean ssidPresent = wifiVisible && mCurrentState.ssid != null; in notifyListeners() 92 if (mCurrentState.inetCondition == 0) { in notifyListeners() 96 IconState qsIcon = new IconState(mCurrentState.connected, getQsCurrentIconId(), in notifyListeners() 98 callback.setWifiIndicators(mCurrentState.enabled, statusIcon, qsIcon, in notifyListeners() 99 ssidPresent && mCurrentState.activityIn, ssidPresent && mCurrentState.activityOut, in notifyListeners() 100 wifiDesc, mCurrentState.isTransient, mCurrentState.statusLabel); in notifyListeners() [all …]
|
D | SignalController.java | 44 protected final T mCurrentState; field in SignalController 67 mCurrentState = cleanState(); in SignalController() 78 return mCurrentState; in getState() 82 mCurrentState.inetCondition = validatedTransports.get(mTransportType) ? 1 : 0; in updateConnectivity() 94 mCurrentState.copyFrom(mLastState); in resetLastState() 102 if (!mLastState.equals(mCurrentState)) { in isDirty() 105 + "\tto: " + mCurrentState); in isDirty() 117 mCurrentState.time = System.currentTimeMillis(); in saveLastState() 118 mLastState.copyFrom(mCurrentState); in saveLastState() 125 if (mCurrentState.connected) { in getQsCurrentIconId() [all …]
|
D | EthernetSignalController.java | 34 mCurrentState.iconGroup = mLastState.iconGroup = new IconGroup( in EthernetSignalController() 45 mCurrentState.connected = connectedTransports.get(mTransportType); in updateConnectivity() 51 boolean ethernetVisible = mCurrentState.connected; in notifyListeners()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CameraDeviceState.java | 55 private int mCurrentState = STATE_UNCONFIGURED; field in CameraDeviceState 173 if (mCurrentState != STATE_CAPTURING) { in setCaptureResult() 174 Log.e(TAG, "Cannot receive result while in state: " + mCurrentState); in setCaptureResult() 254 if (newState != mCurrentState) { in doStateTransition() 264 if (mCurrentState != newState && mCurrentHandler != null && in doStateTransition() 277 if (mCurrentState != STATE_ERROR && mCurrentHandler != null && in doStateTransition() 286 mCurrentState = STATE_ERROR; in doStateTransition() 289 if (mCurrentState != STATE_UNCONFIGURED && mCurrentState != STATE_IDLE) { in doStateTransition() 290 Log.e(TAG, "Cannot call configure while in state: " + mCurrentState); in doStateTransition() 295 if (mCurrentState != STATE_CONFIGURING && mCurrentHandler != null && in doStateTransition() [all …]
|
/frameworks/av/media/libmediaplayer2/ |
D | mediaplayer2.cpp | 243 mCurrentState = MEDIA_PLAYER2_IDLE; in MediaPlayer2() 332 if (!((mCurrentState & MEDIA_PLAYER2_IDLE) in setDataSource() 333 || mCurrentState == MEDIA_PLAYER2_STATE_ERROR)) { in setDataSource() 334 ALOGE("setDataSource called in wrong state %d", mCurrentState); in setDataSource() 359 mCurrentState = MEDIA_PLAYER2_INITIALIZED; in setDataSource() 378 ALOGE("prepareNextDataSource failed: state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in prepareNextDataSource() 389 ALOGE("playNextDataSource failed: state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in playNextDataSource() 400 (mCurrentState != MEDIA_PLAYER2_STATE_ERROR) && in invoke() 401 ((mCurrentState & MEDIA_PLAYER2_IDLE) != MEDIA_PLAYER2_IDLE); in invoke() 403 ALOGE("invoke() failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke() [all …]
|
/frameworks/rs/driver/ |
D | rsdShader.cpp | 74 mCurrentState = nullptr; in initMemberVars() 109 mCurrentState = state; in getStateBasedShaderID() 110 return mCurrentState->mShaderID; in getStateBasedShaderID() 114 mCurrentState = state; in getStateBasedShaderID() 118 return mCurrentState->mShaderID; in getStateBasedShaderID() 206 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_EXTERNAL_OES; in appendTextures() 209 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_2D; in appendTextures() 213 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_CUBE_MAP; in appendTextures() 235 mCurrentState->mShaderID = glCreateShader(mType); in loadShader() 236 rsAssert(mCurrentState->mShaderID); in loadShader() [all …]
|
D | rsdShader.h | 113 StateBasedKey *mCurrentState; variable
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 149 private int mCurrentState = STATE_NOT_INITIALIZED; field in BatterySavingStats 283 if (mCurrentState == newState) { in transitionStateLocked() 291 BatterySaverState.fromIndex(mCurrentState) != BatterySaverState.OFF; in transitionStateLocked() 310 if (mCurrentState < 0) { in endLastStateLocked() 313 final Stat stat = getStat(mCurrentState); in endLastStateLocked() 328 Slog.d(TAG, "State summary: " + stateToString(mCurrentState) in endLastStateLocked() 337 BatterySaverState.fromIndex(mCurrentState), in endLastStateLocked() 338 InteractiveState.fromIndex(mCurrentState), in endLastStateLocked() 339 DozeState.fromIndex(mCurrentState), in endLastStateLocked() 354 mCurrentState = newState; in startNewStateLocked() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 105 private int mCurrentState = STATE_TOUCH_EXPLORING; field in TouchExplorer 236 switch (mCurrentState) { in clear() 270 mCurrentState = STATE_TOUCH_EXPLORING; in clear() 285 Slog.d(LOG_TAG, getStateSymbolicName(mCurrentState)); in onMotionEvent() 300 switch(mCurrentState) { in onMotionEvent() 314 Slog.e(LOG_TAG, "Illegal state: " + mCurrentState); in onMotionEvent() 361 if (mCurrentState != STATE_TOUCH_EXPLORING) { in onDoubleTapAndHold() 386 mCurrentState = STATE_DELEGATING; in onDoubleTapAndHold() 393 if (mCurrentState != STATE_TOUCH_EXPLORING) { in onDoubleTap() 449 mCurrentState = STATE_GESTURE_DETECTING; in onGestureStarted() [all …]
|
D | MagnificationGestureHandler.java | 145 @VisibleForTesting State mCurrentState; field in MagnificationGestureHandler 227 handleEventWith(mCurrentState, event, rawEvent, policyFlags); in onMotionEventInternal() 277 mCurrentState = mDetectingState; in clearAndTransitionToStateDetecting() 343 (State.nameOf(mCurrentState) + " -> " + State.nameOf(state) in transitionTo() 347 mPreviousState = mCurrentState; in transitionTo() 348 mCurrentState = state; in transitionTo() 421 if (mCurrentState != mPanningScalingState) { in onScroll() 474 return /* continue recognizing: */ (mCurrentState == mPanningScalingState); in onScaleBegin() 980 ", mCurrentState=" + State.nameOf(mCurrentState) + in toString()
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 111 private int mCurrentState = STATE_IDLE; field in VideoView 178 mCurrentState = STATE_IDLE; in VideoView() 367 mCurrentState = STATE_IDLE; in stopPlayback() 429 mCurrentState = STATE_PREPARING; in openVideo() 433 mCurrentState = STATE_ERROR; in openVideo() 439 mCurrentState = STATE_ERROR; in openVideo() 481 mCurrentState = STATE_PREPARED; 544 mCurrentState = STATE_PLAYBACK_COMPLETED; 573 mCurrentState = STATE_ERROR; 716 mCurrentState = STATE_IDLE; in release() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationGestureHandlerTest.java | 393 check(mMgh.mCurrentState == mMgh.mViewportDraggingState, in assertIn() 399 check(mMgh.mCurrentState == mMgh.mViewportDraggingState, in assertIn() 409 check(mMgh.mCurrentState == mMgh.mPanningScalingState, in assertIn() 415 check(mMgh.mCurrentState == mMgh.mPanningScalingState, in assertIn()
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | CameraProviderManagerTest.cpp | 159 mCurrentState = newState; in notifyDeviceStateChange() 174 hardware::hidl_bitfield<DeviceState> mCurrentState = 0xFFFFFFFF; // Unlikely to be a real state member 436 ASSERT_EQ(provider->mCurrentState, in TEST() 444 ASSERT_EQ(provider->mCurrentState, in TEST()
|
/frameworks/av/include/media/ |
D | mediarecorder.h | 284 media_recorder_states mCurrentState; variable
|
/frameworks/av/media/libmedia/include/media/ |
D | mediarecorder.h | 284 media_recorder_states mCurrentState; variable
|