Home
last modified time | relevance | path

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

/frameworks/av/media/libmedia/
Dmediarecorder.cpp43 if (!(mCurrentState & MEDIA_RECORDER_IDLE)) { in setCamera()
44 ALOGE("setCamera called in an invalid state(%d)", mCurrentState); in setCamera()
51 mCurrentState = MEDIA_RECORDER_ERROR; in setCamera()
64 if (!(mCurrentState & MEDIA_RECORDER_DATASOURCE_CONFIGURED)) { in setPreviewSurface()
65 ALOGE("setPreviewSurface called in an invalid state(%d)", mCurrentState); in setPreviewSurface()
76 mCurrentState = MEDIA_RECORDER_ERROR; in setPreviewSurface()
89 if (!(mCurrentState & MEDIA_RECORDER_IDLE)) { in init()
90 ALOGE("init called in an invalid state(%d)", mCurrentState); in init()
97 mCurrentState = MEDIA_RECORDER_ERROR; in init()
104 mCurrentState = MEDIA_RECORDER_ERROR; in init()
[all …]
Dmediaplayer.cpp59 mCurrentState = MEDIA_PLAYER_IDLE; in MediaPlayer()
124 if ( !( (mCurrentState & MEDIA_PLAYER_IDLE) || in attachNewPlayer()
125 (mCurrentState == MEDIA_PLAYER_STATE_ERROR ) ) ) { in attachNewPlayer()
126 ALOGE("attachNewPlayer called in state %d", mCurrentState); in attachNewPlayer()
134 mCurrentState = MEDIA_PLAYER_INITIALIZED; in attachNewPlayer()
204 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) && in invoke()
205 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE); in invoke()
210 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
246 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l()
252 mCurrentState = MEDIA_PLAYER_PREPARING; in prepareAsync_l()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowManager.java62 private final State mCurrentState = new State(); field in StatusBarWindowManager
256 mCurrentState.keyguardShowing = showing; in setKeyguardShowing()
257 apply(mCurrentState); in setKeyguardShowing()
261 mCurrentState.keyguardOccluded = occluded; in setKeyguardOccluded()
262 apply(mCurrentState); in setKeyguardOccluded()
266 mCurrentState.keyguardNeedsInput = needsInput; in setKeyguardNeedsInput()
267 apply(mCurrentState); in setKeyguardNeedsInput()
271 mCurrentState.panelVisible = visible; in setPanelVisible()
272 mCurrentState.statusBarFocusable = visible; in setPanelVisible()
273 apply(mCurrentState); in setPanelVisible()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceState.java55 private int mCurrentState = STATE_UNCONFIGURED; field in CameraDeviceState
172 if (mCurrentState != STATE_CAPTURING) { in setCaptureResult()
173 Log.e(TAG, "Cannot receive result while in state: " + mCurrentState); in setCaptureResult()
237 if (newState != mCurrentState) { in doStateTransition()
247 if (mCurrentState != newState && mCurrentHandler != null && in doStateTransition()
260 if (mCurrentState != STATE_ERROR && mCurrentHandler != null && in doStateTransition()
269 mCurrentState = STATE_ERROR; in doStateTransition()
272 if (mCurrentState != STATE_UNCONFIGURED && mCurrentState != STATE_IDLE) { in doStateTransition()
273 Log.e(TAG, "Cannot call configure while in state: " + mCurrentState); in doStateTransition()
278 if (mCurrentState != STATE_CONFIGURING && mCurrentHandler != null && in doStateTransition()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java94 mLastState.networkName = mCurrentState.networkName = networkName; in MobileSignalController()
95 mLastState.networkNameData = mCurrentState.networkNameData = networkName; in MobileSignalController()
96 mLastState.enabled = mCurrentState.enabled = hasMobileData; in MobileSignalController()
97 mLastState.iconGroup = mCurrentState.iconGroup = mDefaultIcons; in MobileSignalController()
113 mCurrentState.airplaneMode = airplaneMode; in setAirplaneMode()
118 mCurrentState.userSetup = userSetup; in setUserSetupComplete()
125 mCurrentState.isDefault = connectedTransports.get(mTransportType); in updateConnectivity()
127 mCurrentState.inetCondition = (isValidated || !mCurrentState.isDefault) ? 1 : 0; in updateConnectivity()
132 mCurrentState.carrierNetworkChangeMode = carrierNetworkChangeMode; in setCarrierNetworkChangeMode()
226 final boolean dataDisabled = mCurrentState.iconGroup == TelephonyIcons.DATA_DISABLED in notifyListeners()
[all …]
DSignalController.java43 protected final T mCurrentState; field in SignalController
66 mCurrentState = cleanState(); in SignalController()
77 return mCurrentState; in getState()
81 mCurrentState.inetCondition = validatedTransports.get(mTransportType) ? 1 : 0; in updateConnectivity()
93 mCurrentState.copyFrom(mLastState); in resetLastState()
101 if (!mLastState.equals(mCurrentState)) { in isDirty()
104 + "\tto: " + mCurrentState); in isDirty()
116 mCurrentState.time = System.currentTimeMillis(); in saveLastState()
117 mLastState.copyFrom(mCurrentState); in saveLastState()
124 if (mCurrentState.connected) { in getQsCurrentIconId()
[all …]
DWifiSignalController.java59 mCurrentState.iconGroup = mLastState.iconGroup = new IconGroup( in WifiSignalController()
80 boolean wifiVisible = mCurrentState.enabled in notifyListeners()
81 && (mCurrentState.connected || !mHasMobileData); in notifyListeners()
82 String wifiDesc = wifiVisible ? mCurrentState.ssid : null; in notifyListeners()
83 boolean ssidPresent = wifiVisible && mCurrentState.ssid != null; in notifyListeners()
85 if (mCurrentState.inetCondition == 0) { in notifyListeners()
91 IconState qsIcon = new IconState(mCurrentState.connected, getQsCurrentIconId(), in notifyListeners()
93 callback.setWifiIndicators(mCurrentState.enabled, statusIcon, qsIcon, in notifyListeners()
94 ssidPresent && mCurrentState.activityIn, ssidPresent && mCurrentState.activityOut, in notifyListeners()
103 mCurrentState.enabled = mWifiTracker.enabled; in handleBroadcast()
[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/rs/driver/
DrsdShader.cpp70 mCurrentState = nullptr; in initMemberVars()
105 mCurrentState = state; in getStateBasedShaderID()
106 return mCurrentState->mShaderID; in getStateBasedShaderID()
110 mCurrentState = state; in getStateBasedShaderID()
114 return mCurrentState->mShaderID; in getStateBasedShaderID()
202 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_EXTERNAL_OES; in appendTextures()
205 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_2D; in appendTextures()
209 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_CUBE_MAP; in appendTextures()
231 mCurrentState->mShaderID = glCreateShader(mType); in loadShader()
232 rsAssert(mCurrentState->mShaderID); in loadShader()
[all …]
DrsdShader.h112 StateBasedKey *mCurrentState; variable
/frameworks/native/services/surfaceflinger/
DLayer.cpp124 mCurrentState.active.w = w; in Layer()
125 mCurrentState.active.h = h; in Layer()
126 mCurrentState.active.transform.set(0, 0); in Layer()
127 mCurrentState.crop.makeInvalid(); in Layer()
128 mCurrentState.finalCrop.makeInvalid(); in Layer()
129 mCurrentState.z = 0; in Layer()
131 mCurrentState.alpha = 1.0f; in Layer()
133 mCurrentState.alpha = 0xFF; in Layer()
135 mCurrentState.layerStack = 0; in Layer()
136 mCurrentState.flags = layerFlags; in Layer()
[all …]
DSurfaceFlinger.cpp234 flinger->mCurrentState.displays.removeItem(this); in createDisplay()
248 mCurrentState.displays.add(token, info); in createDisplay()
256 ssize_t idx = mCurrentState.displays.indexOfKey(display); in destroyDisplay()
262 const DisplayDeviceState& info(mCurrentState.displays.valueAt(idx)); in destroyDisplay()
268 mCurrentState.displays.removeItemsAt(idx); in destroyDisplay()
279 mCurrentState.displays.add(mBuiltinDisplays[type], info); in createBuiltinDisplayLocked()
506 mDrawingState = mCurrentState; in init()
994 mCurrentState.displays.removeItem(mBuiltinDisplays[type]); in onHotplugReceived()
1466 const LayerVector& currentLayers(mCurrentState.layersSortedByZ); in handleTransactionLocked()
1499 const KeyedVector< wp<IBinder>, DisplayDeviceState>& curr(mCurrentState.displays); in handleTransactionLocked()
[all …]
DSurfaceFlinger_hwc1.cpp232 flinger->mCurrentState.displays.removeItem(this); in createDisplay()
246 mCurrentState.displays.add(token, info); in createDisplay()
254 ssize_t idx = mCurrentState.displays.indexOfKey(display); in destroyDisplay()
260 const DisplayDeviceState& info(mCurrentState.displays.valueAt(idx)); in destroyDisplay()
266 mCurrentState.displays.removeItemsAt(idx); in destroyDisplay()
276 mCurrentState.displays.add(mBuiltinDisplays[type], info); in createBuiltinDisplayLocked()
536 mDrawingState = mCurrentState; in init()
942 mCurrentState.displays.removeItem(mBuiltinDisplays[type]); in onHotplugReceived()
1382 const LayerVector& currentLayers(mCurrentState.layersSortedByZ); in handleTransactionLocked()
1415 const KeyedVector< wp<IBinder>, DisplayDeviceState>& curr(mCurrentState.displays); in handleTransactionLocked()
[all …]
DLayer.h399 inline const State& getCurrentState() const { return mCurrentState; } in getCurrentState()
400 inline State& getCurrentState() { return mCurrentState; } in getCurrentState()
548 State mCurrentState; variable
DSurfaceFlinger.h471 State mCurrentState; variable
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/model/
DMusicProvider.java76 private volatile State mCurrentState = State.NON_INITIALIZED; field in MusicProvider
95 if (mCurrentState != State.INITIALIZED) { in getGenres()
105 if (mCurrentState != State.INITIALIZED || !mMusicListByGenre.containsKey(genre)) { in getMusicsByGenre()
117 if (mCurrentState != State.INITIALIZED) { in searchMusic()
170 return mCurrentState == State.INITIALIZED; in isInitialized()
179 if (mCurrentState == State.INITIALIZED) { in retrieveMediaAsync()
190 return mCurrentState; in retrieveMediaAsync()
221 if (mCurrentState == State.NON_INITIALIZED) { in retrieveMedia()
222 mCurrentState = State.INITIALIZING; in retrieveMedia()
239 mCurrentState = State.INITIALIZED; in retrieveMedia()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DTouchExplorer.java103 private int mCurrentState = STATE_TOUCH_EXPLORING; field in TouchExplorer
220 switch (mCurrentState) { in clear()
254 mCurrentState = STATE_TOUCH_EXPLORING; in clear()
276 Slog.d(LOG_TAG, getStateSymbolicName(mCurrentState)); in onMotionEvent()
294 switch(mCurrentState) { in onMotionEvent()
308 throw new IllegalStateException("Illegal state: " + mCurrentState); in onMotionEvent()
363 if (mCurrentState != STATE_TOUCH_EXPLORING) { in onDoubleTapAndHold()
388 mCurrentState = STATE_DELEGATING; in onDoubleTapAndHold()
395 if (mCurrentState != STATE_TOUCH_EXPLORING) { in onDoubleTap()
443 mCurrentState = STATE_GESTURE_DETECTING; in onGestureStarted()
[all …]
DMagnificationGestureHandler.java102 private int mCurrentState; field in MagnificationGestureHandler
139 switch (mCurrentState) { in onMotionEvent()
159 throw new IllegalStateException("Unknown state: " + mCurrentState); in onMotionEvent()
200 mCurrentState = STATE_DETECTING; in clear()
318 mPreviousState = mCurrentState; in transitionToState()
319 mCurrentState = state; in transitionToState()
360 if (mCurrentState != STATE_MAGNIFIED_INTERACTION) { in onMotionEvent()
377 if (mCurrentState != STATE_MAGNIFIED_INTERACTION) { in onScroll()
432 return (mCurrentState == STATE_MAGNIFIED_INTERACTION); in onScaleBegin()
/frameworks/base/core/java/android/widget/
DVideoView.java95 private int mCurrentState = STATE_IDLE; field in VideoView
148 mCurrentState = STATE_IDLE; in VideoView()
302 mCurrentState = STATE_IDLE; in stopPlayback()
363 mCurrentState = STATE_PREPARING; in openVideo()
367 mCurrentState = STATE_ERROR; in openVideo()
373 mCurrentState = STATE_ERROR; in openVideo()
414 mCurrentState = STATE_PREPARED;
477 mCurrentState = STATE_PLAYBACK_COMPLETED;
502 mCurrentState = STATE_ERROR;
643 mCurrentState = STATE_IDLE; in release()
[all …]
/frameworks/av/include/media/
Dmediarecorder.h262 media_recorder_states mCurrentState; variable
Dmediaplayer.h275 media_player_states mCurrentState; variable
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java2655 BackupState mCurrentState; field in BackupManagerService.PerformBackupTask
2684 mCurrentState = BackupState.INITIAL; in PerformBackupTask()
2694 switch (mCurrentState) { in execute()
3458 mCurrentState = nextState; in executeNextState()