Searched refs:mCurrentState (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/trackers/
H A DConstraintTracker.java40 private T mCurrentState; field in class:ConstraintTracker
56 mCurrentState = getInitialState();
58 mCurrentState));
61 listener.onConstraintChanged(mCurrentState);
83 if (mCurrentState == newState
84 || (mCurrentState != null && mCurrentState.equals(newState))) {
87 mCurrentState = newState;
89 listener.onConstraintChanged(mCurrentState);
/frameworks/av/media/libmedia/
H A Dmediarecorder.cpp43 if (!(mCurrentState & MEDIA_RECORDER_IDLE)) {
44 ALOGE("setCamera called in an invalid state(%d)", mCurrentState);
51 mCurrentState = MEDIA_RECORDER_ERROR;
64 if (!(mCurrentState & MEDIA_RECORDER_DATASOURCE_CONFIGURED)) {
65 ALOGE("setPreviewSurface called in an invalid state(%d)", mCurrentState);
76 mCurrentState = MEDIA_RECORDER_ERROR;
89 if (!(mCurrentState & MEDIA_RECORDER_IDLE)) {
90 ALOGE("init called in an invalid state(%d)", mCurrentState);
97 mCurrentState = MEDIA_RECORDER_ERROR;
104 mCurrentState
[all...]
H A Dmediaplayer.cpp64 mCurrentState = MEDIA_PLAYER_IDLE;
131 if ( !( (mCurrentState & MEDIA_PLAYER_IDLE) ||
132 (mCurrentState == MEDIA_PLAYER_STATE_ERROR ) ) ) {
133 ALOGE("attachNewPlayer called in state %d", mCurrentState);
141 mCurrentState = MEDIA_PLAYER_INITIALIZED;
211 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) &&
212 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE);
217 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get());
275 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) {
281 mCurrentState
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarWindowManager.java68 private final State mCurrentState = new State(); field in class:StatusBarWindowManager
298 mCurrentState.keyguardShowing = showing;
299 apply(mCurrentState);
303 mCurrentState.keyguardOccluded = occluded;
304 apply(mCurrentState);
308 mCurrentState.keyguardNeedsInput = needsInput;
309 apply(mCurrentState);
313 mCurrentState.panelVisible = visible;
314 mCurrentState.statusBarFocusable = visible;
315 apply(mCurrentState);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DMobileSignalController.java99 mLastState.networkName = mCurrentState.networkName = networkName;
100 mLastState.networkNameData = mCurrentState.networkNameData = networkName;
101 mLastState.enabled = mCurrentState.enabled = hasMobileData;
102 mLastState.iconGroup = mCurrentState.iconGroup = mDefaultIcons;
124 mCurrentState.airplaneMode = airplaneMode;
129 mCurrentState.userSetup = userSetup;
136 mCurrentState.isDefault = connectedTransports.get(mTransportType);
138 mCurrentState.inetCondition = (isValidated || !mCurrentState.isDefault) ? 1 : 0;
143 mCurrentState
[all...]
H A DSignalController.java43 protected final T mCurrentState; field in class:SignalController
66 mCurrentState = cleanState();
77 return mCurrentState;
81 mCurrentState.inetCondition = validatedTransports.get(mTransportType) ? 1 : 0;
93 mCurrentState.copyFrom(mLastState);
101 if (!mLastState.equals(mCurrentState)) {
104 + "\tto: " + mCurrentState);
116 mCurrentState.time = System.currentTimeMillis();
117 mLastState.copyFrom(mCurrentState);
124 if (mCurrentState
[all...]
H A DWifiSignalController.java67 mCurrentState.iconGroup = mLastState.iconGroup = new IconGroup(
88 boolean wifiVisible = mCurrentState.enabled
89 && (mCurrentState.connected || !mHasMobileData);
90 String wifiDesc = wifiVisible ? mCurrentState.ssid : null;
91 boolean ssidPresent = wifiVisible && mCurrentState.ssid != null;
93 if (mCurrentState.inetCondition == 0) {
97 IconState qsIcon = new IconState(mCurrentState.connected, getQsCurrentIconId(),
99 callback.setWifiIndicators(mCurrentState.enabled, statusIcon, qsIcon,
100 ssidPresent && mCurrentState.activityIn, ssidPresent && mCurrentState
[all...]
H A DEthernetSignalController.java34 mCurrentState.iconGroup = mLastState.iconGroup = new IconGroup(
45 mCurrentState.connected = connectedTransports.get(mTransportType);
51 boolean ethernetVisible = mCurrentState.connected;
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DCameraDeviceState.java55 private int mCurrentState = STATE_UNCONFIGURED; field in class:CameraDeviceState
173 if (mCurrentState != STATE_CAPTURING) {
174 Log.e(TAG, "Cannot receive result while in state: " + mCurrentState);
254 if (newState != mCurrentState) {
264 if (mCurrentState != newState && mCurrentHandler != null &&
277 if (mCurrentState != STATE_ERROR && mCurrentHandler != null &&
286 mCurrentState = STATE_ERROR;
289 if (mCurrentState != STATE_UNCONFIGURED && mCurrentState != STATE_IDLE) {
290 Log.e(TAG, "Cannot call configure while in state: " + mCurrentState);
[all...]
/frameworks/native/services/surfaceflinger/
H A DContainerLayer.cpp28 mDrawingState = mCurrentState;
H A DLayer.cpp114 mCurrentState.active.w = w;
115 mCurrentState.active.h = h;
116 mCurrentState.flags = layerFlags;
117 mCurrentState.active.transform.set(0, 0);
118 mCurrentState.crop.makeInvalid();
119 mCurrentState.finalCrop.makeInvalid();
120 mCurrentState.requestedFinalCrop = mCurrentState.finalCrop;
121 mCurrentState.requestedCrop = mCurrentState
[all...]
H A DSurfaceInterceptor.cpp102 addPositionLocked(transaction, layerId, layer->mCurrentState.active.transform.tx(),
103 layer->mCurrentState.active.transform.ty());
104 addDepthLocked(transaction, layerId, layer->mCurrentState.z);
105 addAlphaLocked(transaction, layerId, layer->mCurrentState.color.a);
106 addTransparentRegionLocked(transaction, layerId, layer->mCurrentState.activeTransparentRegion);
107 addLayerStackLocked(transaction, layerId, layer->mCurrentState.layerStack);
108 addCropLocked(transaction, layerId, layer->mCurrentState.crop);
109 if (layer->mCurrentState.barrierLayer != nullptr) {
110 addDeferTransactionLocked(transaction, layerId, layer->mCurrentState.barrierLayer.promote(),
111 layer->mCurrentState
[all...]
/frameworks/av/media/libmediaplayer2/
H A Dmediaplayer2.cpp412 mCurrentState = MEDIA_PLAYER2_IDLE;
502 if (!((mCurrentState & MEDIA_PLAYER2_IDLE)
503 || mCurrentState == MEDIA_PLAYER2_STATE_ERROR)) {
504 ALOGE("setDataSource called in wrong state %d", mCurrentState);
531 mCurrentState = MEDIA_PLAYER2_INITIALIZED;
550 ALOGE("prepareNextDataSource failed: state %X, mPlayer(%p)", mCurrentState, mPlayer.get());
561 ALOGE("playNextDataSource failed: state %X, mPlayer(%p)", mCurrentState, mPlayer.get());
571 (mCurrentState != MEDIA_PLAYER2_STATE_ERROR) &&
572 ((mCurrentState & MEDIA_PLAYER2_IDLE) != MEDIA_PLAYER2_IDLE);
574 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlaye
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/model/
H A DMusicProvider.java76 private volatile State mCurrentState = State.NON_INITIALIZED; field in class:MusicProvider
95 if (mCurrentState != State.INITIALIZED) {
105 if (mCurrentState != State.INITIALIZED || !mMusicListByGenre.containsKey(genre)) {
117 if (mCurrentState != State.INITIALIZED) {
170 return mCurrentState == State.INITIALIZED;
179 if (mCurrentState == State.INITIALIZED) {
190 return mCurrentState;
221 if (mCurrentState == State.NON_INITIALIZED) {
222 mCurrentState = State.INITIALIZING;
239 mCurrentState
[all...]
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/model/
H A DMusicProvider.java76 private volatile State mCurrentState = State.NON_INITIALIZED; field in class:MusicProvider
95 if (mCurrentState != State.INITIALIZED) {
105 if (mCurrentState != State.INITIALIZED || !mMusicListByGenre.containsKey(genre)) {
117 if (mCurrentState != State.INITIALIZED) {
170 return mCurrentState == State.INITIALIZED;
179 if (mCurrentState == State.INITIALIZED) {
190 return mCurrentState;
221 if (mCurrentState == State.NON_INITIALIZED) {
222 mCurrentState = State.INITIALIZING;
239 mCurrentState
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
H A DDetailsBackgroundVideoHelper.java55 private int mCurrentState = INITIAL; field in class:DetailsBackgroundVideoHelper
114 return mCurrentState == PLAY_VIDEO;
118 if (state == mCurrentState) {
121 mCurrentState = state;
126 switch (mCurrentState) {
/frameworks/rs/driver/
H A DrsdShader.cpp74 mCurrentState = nullptr;
109 mCurrentState = state;
110 return mCurrentState->mShaderID;
114 mCurrentState = state;
118 return mCurrentState->mShaderID;
206 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_EXTERNAL_OES;
209 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_2D;
213 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_CUBE_MAP;
235 mCurrentState->mShaderID = glCreateShader(mType);
236 rsAssert(mCurrentState
[all...]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
H A DBatterySavingStats.java154 private int mCurrentState = STATE_NOT_INITIALIZED; field in class:BatterySavingStats
305 if (mCurrentState == newState) {
313 BatterySaverState.fromIndex(mCurrentState) != BatterySaverState.OFF;
333 if (mCurrentState < 0) {
336 final Stat stat = getStat(mCurrentState);
351 Slog.d(TAG, "State summary: " + stateToString(mCurrentState)
360 BatterySaverState.fromIndex(mCurrentState),
361 InteractiveState.fromIndex(mCurrentState),
362 DozeState.fromIndex(mCurrentState),
377 mCurrentState
[all...]
/frameworks/av/packages/MediaComponents/src/com/android/widget/
H A DVideoView2Impl.java151 private int mCurrentState = STATE_IDLE; field in class:VideoView2Impl
202 mCurrentState = STATE_IDLE;
206 mCurrentState = STATE_PLAYING;
210 mCurrentState = STATE_PAUSED;
214 mCurrentState = STATE_PAUSED;
218 mCurrentState = STATE_PLAYBACK_COMPLETED;
525 if (mCurrentState == STATE_PREPARED) {
555 Log.d(TAG, "onTouchEvent(). mCurrentState=" + mCurrentState
633 Log.d(TAG, "onSurfaceCreated(). mCurrentState
[all...]
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
H A DVideoView2ImplBase.java148 private int mCurrentState = STATE_IDLE; field in class:VideoView2ImplBase
198 mCurrentState = STATE_IDLE;
202 mCurrentState = STATE_PLAYING;
206 mCurrentState = STATE_PAUSED;
211 mCurrentState = STATE_PAUSED;
215 mCurrentState = STATE_PLAYBACK_COMPLETED;
660 if (mCurrentState == STATE_PREPARED) {
688 Log.d(TAG, "onTouchEvent(). mCurrentState=" + mCurrentState
757 Log.d(TAG, "onSurfaceCreated(). mCurrentState
[all...]
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
H A DVideoView2ImplBaseWithMp1.java143 private int mCurrentState = STATE_IDLE; field in class:VideoView2ImplBaseWithMp1
187 mCurrentState = STATE_IDLE;
191 mCurrentState = STATE_PLAYING;
195 mCurrentState = STATE_PAUSED;
200 mCurrentState = STATE_PAUSED;
204 mCurrentState = STATE_PLAYBACK_COMPLETED;
635 if (mCurrentState == STATE_PREPARED) {
663 Log.d(TAG, "onTouchEvent(). mCurrentState=" + mCurrentState
728 Log.d(TAG, "onSurfaceCreated(). mCurrentState
[all...]
/frameworks/base/core/java/android/widget/
H A DVideoView.java100 // mCurrentState is a VideoView object's current state.
105 private int mCurrentState = STATE_IDLE; field in class:VideoView
165 mCurrentState = STATE_IDLE;
354 mCurrentState = STATE_IDLE;
416 mCurrentState = STATE_PREPARING;
420 mCurrentState = STATE_ERROR;
426 mCurrentState = STATE_ERROR;
467 mCurrentState = STATE_PREPARED;
530 mCurrentState = STATE_PLAYBACK_COMPLETED;
558 mCurrentState
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DTouchExplorer.java105 private int mCurrentState = STATE_TOUCH_EXPLORING; field in class:TouchExplorer
217 switch (mCurrentState) {
251 mCurrentState = STATE_TOUCH_EXPLORING;
266 Slog.d(LOG_TAG, getStateSymbolicName(mCurrentState));
284 switch(mCurrentState) {
298 Slog.e(LOG_TAG, "Illegal state: " + mCurrentState);
345 if (mCurrentState != STATE_TOUCH_EXPLORING) {
370 mCurrentState = STATE_DELEGATING;
377 if (mCurrentState != STATE_TOUCH_EXPLORING) {
432 mCurrentState
[all...]
H A DMagnificationGestureHandler.java142 @VisibleForTesting State mCurrentState; field in class:MagnificationGestureHandler
219 handleEventWith(mCurrentState, event, rawEvent, policyFlags);
265 mCurrentState = mDetectingState;
358 (State.nameOf(mCurrentState) + " -> " + State.nameOf(state)
362 mPreviousState = mCurrentState;
363 mCurrentState = state;
436 if (mCurrentState != mPanningScalingState) {
489 return /* continue recognizing: */ (mCurrentState == mPanningScalingState);
966 ", mCurrentState=" + State.nameOf(mCurrentState)
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DMagnificationGestureHandlerTest.java353 check(mMgh.mCurrentState == mMgh.mViewportDraggingState,
359 check(mMgh.mCurrentState == mMgh.mViewportDraggingState,
369 check(mMgh.mCurrentState == mMgh.mPanningScalingState,
375 check(mMgh.mCurrentState == mMgh.mPanningScalingState,

Completed in 338 milliseconds

12