Home
last modified time | relevance | path

Searched refs:mCurrentState (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/media/libmedia/
Dmediarecorder.cpp44 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 …]
Dmediaplayer.cpp64 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/
DStatusBarWindowController.java90 private final State mCurrentState = new State(); field in StatusBarWindowController
387 cb.onStateChanged(mCurrentState.keyguardShowing, in notifyStateChangedCallbacks()
388 mCurrentState.keyguardOccluded, in notifyStateChangedCallbacks()
389 mCurrentState.bouncerShowing); in notifyStateChangedCallbacks()
433 mCurrentState.keyguardShowing = showing; in setKeyguardShowing()
434 apply(mCurrentState); in setKeyguardShowing()
438 mCurrentState.keyguardOccluded = occluded; in setKeyguardOccluded()
439 apply(mCurrentState); in setKeyguardOccluded()
443 mCurrentState.keyguardNeedsInput = needsInput; in setKeyguardNeedsInput()
444 apply(mCurrentState); in setKeyguardNeedsInput()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java112 mLastState.networkName = mCurrentState.networkName = networkName; in MobileSignalController()
113 mLastState.networkNameData = mCurrentState.networkNameData = networkName; in MobileSignalController()
114 mLastState.enabled = mCurrentState.enabled = hasMobileData; in MobileSignalController()
115 mLastState.iconGroup = mCurrentState.iconGroup = mDefaultIcons; in MobileSignalController()
134 mCurrentState.airplaneMode = airplaneMode; in setAirplaneMode()
139 mCurrentState.userSetup = userSetup; in setUserSetupComplete()
146 mCurrentState.isDefault = connectedTransports.get(mTransportType); in updateConnectivity()
148 mCurrentState.inetCondition = (isValidated || !mCurrentState.isDefault) ? 1 : 0; in updateConnectivity()
153 mCurrentState.carrierNetworkChangeMode = carrierNetworkChangeMode; in setCarrierNetworkChangeMode()
331 if (mCurrentState.iconGroup == TelephonyIcons.CARRIER_NETWORK_CHANGE) { in getCurrentIconId()
[all …]
DWifiSignalController.java60 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 …]
DSignalController.java45 protected final T mCurrentState; field in SignalController
68 mCurrentState = cleanState(); in SignalController()
79 return mCurrentState; in getState()
83 mCurrentState.inetCondition = validatedTransports.get(mTransportType) ? 1 : 0; in updateConnectivity()
95 mCurrentState.copyFrom(mLastState); in resetLastState()
103 if (!mLastState.equals(mCurrentState)) { in isDirty()
106 + "\tto: " + mCurrentState); in isDirty()
118 mCurrentState.time = System.currentTimeMillis(); in saveLastState()
119 mLastState.copyFrom(mCurrentState); in saveLastState()
126 if (mCurrentState.connected) { in getQsCurrentIconId()
[all …]
DEthernetSignalController.java34 mCurrentState.iconGroup = mLastState.iconGroup = new IconGroup( in EthernetSignalController()
45 mCurrentState.connected = connectedTransports.get(mTransportType); in updateConnectivity()
51 boolean ethernetVisible = mCurrentState.connected; in notifyListeners()
/frameworks/native/services/surfaceflinger/
DBufferStateLayer.cpp51 mCurrentState.dataspace = ui::Dataspace::V0_SRGB; in BufferStateLayer()
115 (mCurrentState.modified && in willPresentCurrentTransaction()
116 (mCurrentState.buffer != nullptr || mCurrentState.bgColorLayer != nullptr)); in willPresentCurrentTransaction()
120 return mCurrentState.transformToDisplayInverse; in getTransformToDisplayInverse()
124 if (!mCurrentState.modified) { in pushPendingState()
127 mPendingStates.push_back(mCurrentState); in pushPendingState()
136 mCurrentStateModified = stateUpdateAvailable && mCurrentState.modified; in applyPendingStates()
137 mCurrentState.modified = false; in applyPendingStates()
147 if (mCurrentState.transform == transform) return false; in setTransform()
148 mCurrentState.transform = transform; in setTransform()
[all …]
DLayer.cpp88 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 …]
DColorLayer.cpp68 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 …]
DRefreshRateOverlay.cpp45 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()
DSurfaceInterceptor.cpp104 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 …]
DSurfaceFlinger.cpp447 flinger->mCurrentState.displays.removeItem(this); in createDisplay()
463 mCurrentState.displays.add(token, state); in createDisplay()
471 ssize_t index = mCurrentState.displays.indexOfKey(displayToken); in destroyDisplay()
477 const DisplayDeviceState& state = mCurrentState.displays.valueAt(index); in destroyDisplay()
483 mCurrentState.displays.removeItemsAt(index); in destroyDisplay()
678 mDrawingState = mCurrentState; in init()
1280 mCurrentState.traverseInZOrder([&](Layer* layer) { in getLayerDebugInfo()
2574 mCurrentState.displays.add(mPhysicalDisplayTokens[info->id], state); in processDisplayHotplugEventsLocked()
2580 ssize_t index = mCurrentState.displays.indexOfKey(mPhysicalDisplayTokens[info->id]); in processDisplayHotplugEventsLocked()
2582 const DisplayDeviceState& state = mCurrentState.displays.valueAt(index); in processDisplayHotplugEventsLocked()
[all …]
DLayer.h627 inline const State& getCurrentState() const { return mCurrentState; } in getCurrentState()
628 inline State& getCurrentState() { return mCurrentState; } in getCurrentState()
851 State mCurrentState; variable
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceState.java55 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/rs/driver/
DrsdShader.cpp74 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 …]
DrsdShader.h113 StateBasedKey *mCurrentState; variable
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java149 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/
DTouchExplorer.java105 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 …]
DMagnificationGestureHandler.java145 @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/
DVideoView.java111 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/
DMagnificationGestureHandlerTest.java393 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/
DCameraProviderManagerTest.cpp159 mCurrentState = newState; in notifyDeviceStateChange()
174 hardware::hidl_bitfield<DeviceState> mCurrentState = 0xFFFFFFFF; // Unlikely to be a real state member
428 ASSERT_EQ(provider->mCurrentState, in TEST()
436 ASSERT_EQ(provider->mCurrentState, in TEST()
/frameworks/av/media/libmedia/include/media/
Dmediarecorder.h284 media_recorder_states mCurrentState; variable
Dmediaplayer.h293 media_player_states mCurrentState; variable

12