Home
last modified time | relevance | path

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

12

/frameworks/av/media/libmedia/
Dmediarecorder.cpp46 if (!(mCurrentState & MEDIA_RECORDER_IDLE)) { in setCamera()
47 ALOGE("setCamera called in an invalid state(%d)", mCurrentState); in setCamera()
54 mCurrentState = MEDIA_RECORDER_ERROR; in setCamera()
67 if (!(mCurrentState & MEDIA_RECORDER_DATASOURCE_CONFIGURED)) { in setPreviewSurface()
68 ALOGE("setPreviewSurface called in an invalid state(%d)", mCurrentState); in setPreviewSurface()
79 mCurrentState = MEDIA_RECORDER_ERROR; in setPreviewSurface()
92 if (!(mCurrentState & MEDIA_RECORDER_IDLE)) { in init()
93 ALOGE("init called in an invalid state(%d)", mCurrentState); in init()
100 mCurrentState = MEDIA_RECORDER_ERROR; in init()
107 mCurrentState = MEDIA_RECORDER_ERROR; in init()
[all …]
Dmediaplayer.cpp57 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()
220 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) && in invoke()
221 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE); in invoke()
226 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
284 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l()
290 mCurrentState = MEDIA_PLAYER_PREPARING; in prepareAsync_l()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DWifiSignalController.java77 mCurrentState.iconGroup = mLastState.iconGroup = mUnmergedWifiIconGroup; in WifiSignalController()
92 if (mCurrentState.isCarrierMerged) { in notifyListeners()
93 if (mCurrentState.isDefault) { in notifyListeners()
105 boolean wifiVisible = mCurrentState.enabled && ( in notifyListenersForNonCarrierWifi()
106 (mCurrentState.connected && mCurrentState.inetCondition == 1) in notifyListenersForNonCarrierWifi()
107 || !mHasMobileDataFeature || mCurrentState.isDefault in notifyListenersForNonCarrierWifi()
109 String wifiDesc = mCurrentState.connected ? mCurrentState.ssid : null; in notifyListenersForNonCarrierWifi()
110 boolean ssidPresent = wifiVisible && mCurrentState.ssid != null; in notifyListenersForNonCarrierWifi()
112 if (mCurrentState.inetCondition == 0) { in notifyListenersForNonCarrierWifi()
119 if (mCurrentState.isDefault || (!mNetworkController.isRadioOn() in notifyListenersForNonCarrierWifi()
[all …]
DMobileSignalController.java158 mLastState.networkName = mCurrentState.networkName = networkName; in MobileSignalController()
159 mLastState.networkNameData = mCurrentState.networkNameData = networkName; in MobileSignalController()
160 mLastState.enabled = mCurrentState.enabled = hasMobileData; in MobileSignalController()
161 mLastState.iconGroup = mCurrentState.iconGroup = mDefaultIcons; in MobileSignalController()
258 mCurrentState.airplaneMode = airplaneMode; in setAirplaneMode()
263 mCurrentState.userSetup = userSetup; in setUserSetupComplete()
270 mCurrentState.isDefault = connectedTransports.get(mTransportType); in updateConnectivity()
272 mCurrentState.inetCondition = (isValidated || !mCurrentState.isDefault) ? 1 : 0; in updateConnectivity()
277 mCurrentState.carrierNetworkChangeMode = carrierNetworkChangeMode; in setCarrierNetworkChangeMode()
342 if (mCurrentState.iconGroup == TelephonyIcons.CARRIER_NETWORK_CHANGE) { in getCurrentIconId()
[all …]
DSignalController.java49 protected final T mCurrentState; field in SignalController
72 mCurrentState = cleanState(); in SignalController()
83 return mCurrentState; in getState()
87 mCurrentState.inetCondition = validatedTransports.get(mTransportType) ? 1 : 0; in updateConnectivity()
99 mCurrentState.copyFrom(mLastState); in resetLastState()
107 if (!mLastState.equals(mCurrentState)) { in isDirty()
110 + "\tto: " + mCurrentState); in isDirty()
122 mCurrentState.time = System.currentTimeMillis(); in saveLastState()
123 mLastState.copyFrom(mCurrentState); in saveLastState()
130 if (mCurrentState.connected) { in getQsCurrentIconId()
[all …]
DEthernetSignalController.java37 mCurrentState.iconGroup = mLastState.iconGroup = new IconGroup( in EthernetSignalController()
48 mCurrentState.connected = connectedTransports.get(mTransportType); in updateConnectivity()
54 boolean ethernetVisible = mCurrentState.connected; in notifyListeners()
63 if (mCurrentState.connected) { in getContentDescription()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationShadeWindowControllerImpl.java100 private final State mCurrentState = new State(); field in NotificationShadeWindowControllerImpl
260 apply(mCurrentState); in setFaceAuthDisplayBrightness()
474 cb.onStateChanged(mCurrentState.mKeyguardShowing, in notifyStateChangedCallbacks()
475 mCurrentState.mKeyguardOccluded, in notifyStateChangedCallbacks()
476 mCurrentState.mBouncerShowing); in notifyStateChangedCallbacks()
510 mCurrentState.mKeyguardShowing = showing; in setKeyguardShowing()
511 apply(mCurrentState); in setKeyguardShowing()
516 mCurrentState.mKeyguardOccluded = occluded; in setKeyguardOccluded()
517 apply(mCurrentState); in setKeyguardOccluded()
522 mCurrentState.mKeyguardNeedsInput = needsInput; in setKeyguardNeedsInput()
[all …]
DStatusBarWindowController.java62 private final State mCurrentState = new State(); field in StatusBarWindowController
108 apply(mCurrentState); in refreshStatusBarHeight()
164 mCurrentState.mForceStatusBarVisible = forceStatusBarVisible; in setForceStatusBarVisible()
165 apply(mCurrentState); in setForceStatusBarVisible()
184 if (isLaunchAnimationRunning == mCurrentState.mIsLaunchAnimationRunning) { in setLaunchAnimationRunning()
188 mCurrentState.mIsLaunchAnimationRunning = isLaunchAnimationRunning; in setLaunchAnimationRunning()
189 apply(mCurrentState); in setLaunchAnimationRunning()
/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 …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java162 private int mCurrentState = STATE_NOT_INITIALIZED; field in BatterySavingStats
294 if (mCurrentState == newState) { in transitionStateLocked()
301 final int oldBatterySaverState = mCurrentState < 0 in transitionStateLocked()
302 ? BatterySaverState.OFF : BatterySaverState.fromIndex(mCurrentState); in transitionStateLocked()
337 if (mCurrentState < 0) {
340 final Stat stat = getStat(mCurrentState);
355 Slog.d(TAG, "State summary: " + stateToString(mCurrentState)
364 BatterySaverState.fromIndex(mCurrentState),
365 InteractiveState.fromIndex(mCurrentState),
366 DozeState.fromIndex(mCurrentState),
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DWindowMagnificationGestureHandler.java82 State mCurrentState; field in WindowMagnificationGestureHandler
134 mCurrentState.onMotionEvent(event, rawEvent, policyFlags); in onMotionEventInternal()
239 Slog.i(mLogTag, "state transition: " + (State.nameOf(mCurrentState) + " -> " in transitionTo()
244 mPreviousState = mCurrentState; in transitionTo()
248 mCurrentState = state; in transitionTo()
249 if (mCurrentState != null) { in transitionTo()
250 mCurrentState.onEnter(); in transitionTo()
443 + ", mCurrentState=" + State.nameOf(mCurrentState) in toString()
DFullScreenMagnificationGestureHandler.java137 @VisibleForTesting State mCurrentState; field in FullScreenMagnificationGestureHandler
176 handleEventWith(mCurrentState, event, rawEvent, policyFlags); in onMotionEventInternal()
232 mCurrentState = mDetectingState; in clearAndTransitionToStateDetecting()
273 (State.nameOf(mCurrentState) + " -> " + State.nameOf(state) in transitionTo()
277 mPreviousState = mCurrentState; in transitionTo()
278 mCurrentState = state; in transitionTo()
350 if (mCurrentState != mPanningScalingState) { in onScroll()
402 return /* continue recognizing: */ (mCurrentState == mPanningScalingState); in onScaleBegin()
977 + ", mCurrentState=" + State.nameOf(mCurrentState) in toString()
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
DBinderLocationTimeZoneProvider.java84 ProviderState currentState = mCurrentState.get(); in handleProviderLost()
128 ProviderState currentState = mCurrentState.get(); in handleOnProviderBound()
187 ipw.println("mCurrentState=" + mCurrentState); in dump()
192 mCurrentState.dump(ipw); in dump()
207 + ", mCurrentState=" + mCurrentState in toString()
DLocationTimeZoneProvider.java366 final ReferenceWithHistory<ProviderState> mCurrentState = new ReferenceWithHistory<>(10); field in LocationTimeZoneProvider
436 ProviderState currentState = mCurrentState.get(); in destroy()
483 ProviderState oldState = mCurrentState.get(); in setCurrentState()
484 mCurrentState.set(newState); in setCurrentState()
514 return mCurrentState.get(); in getCurrentState()
539 ProviderState currentState = mCurrentState.get(); in startUpdates()
557 ProviderState currentState = mCurrentState.get(); in handleInitializationTimeout()
590 ProviderState currentState = mCurrentState.get(); in stopUpdates()
637 ProviderState currentState = mCurrentState.get(); in handleTimeZoneProviderEvent()
732 ProviderState currentState = mCurrentState.get(); in assertIsStarted()
[all …]
/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/core/java/android/nfc/
DNfcControllerAlwaysOnListener.java39 private boolean mCurrentState = false; field in NfcControllerAlwaysOnListener
119 mCurrentState)); in sendCurrentState()
129 mCurrentState = isEnabled; in onControllerAlwaysOnChanged()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedTutorialHandler.java68 private @OneHandedState.State int mCurrentState; field in OneHandedTutorialHandler
113 mCurrentState = newState; in onStateChanged()
158 mTargetViewContainer.setAlpha(mCurrentState == STATE_ACTIVE ? 1.0f : 0.0f); in createViewAndAttachToWindow()
216 if (mCurrentState == STATE_ENTERING || mCurrentState == STATE_ACTIVE) { in onConfigurationChanged()
275 pw.println(mCurrentState); in dump()
DOneHandedBackgroundPanelOrganizer.java61 private @OneHandedState.State int mCurrentState; field in OneHandedBackgroundPanelOrganizer
234 if (mCurrentState != STATE_ACTIVE) { in onConfigurationChanged()
257 mCurrentState = newState; in onStateChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationGestureHandlerTest.java173 check(mWindowMagnificationGestureHandler.mCurrentState in assertIn()
180 check(mWindowMagnificationGestureHandler.mCurrentState in assertIn()
186 check(mWindowMagnificationGestureHandler.mCurrentState in assertIn()
315 return "\nCurrent state dump:\n" + mWindowMagnificationGestureHandler.mCurrentState; in stateDump()
DFullScreenMagnificationGestureHandlerTest.java540 check(mMgh.mCurrentState == mMgh.mViewportDraggingState, in assertIn()
546 check(mMgh.mCurrentState == mMgh.mViewportDraggingState, in assertIn()
556 check(mMgh.mCurrentState == mMgh.mPanningScalingState, in assertIn()
562 check(mMgh.mCurrentState == mMgh.mPanningScalingState, in assertIn()
/frameworks/base/core/java/android/view/translation/
DUiTranslationController.java89 private int mCurrentState; field in UiTranslationController
121 mCurrentState = state; in updateUiTranslationState()
178 "onActivityDestroyed(): mCurrentState is " + stateToString(mCurrentState)); in onActivityDestroyed()
180 if (mCurrentState != STATE_UI_TRANSLATION_FINISHED) { in onActivityDestroyed()
216 pw.print(pfx); pw.print("current state: "); pw.println(mCurrentState); in dump()
352 if (mCurrentState == STATE_UI_TRANSLATION_FINISHED) { in onVirtualViewTranslationCompleted()
403 if (mCurrentState == STATE_UI_TRANSLATION_FINISHED) { in onTranslationCompleted()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp542 flinger->mCurrentState.displays.removeItem(this); in createDisplay()
558 mCurrentState.displays.add(token, state); in createDisplay()
566 const ssize_t index = mCurrentState.displays.indexOfKey(displayToken); in destroyDisplay()
572 const DisplayDeviceState& state = mCurrentState.displays.valueAt(index); in destroyDisplay()
578 mCurrentState.displays.removeItemsAt(index); in destroyDisplay()
819 mDrawingState = mCurrentState; in init()
1171 auto& state = mCurrentState.displays.editValueFor(display->getDisplayToken()); in setActiveModeInternal()
2602 mCurrentState.displays.add(token, state); in processDisplayHotplugEventsLocked()
2614 auto& state = mCurrentState.displays.editValueFor(token); in processDisplayHotplugEventsLocked()
2625 const ssize_t index = mCurrentState.displays.indexOfKey(it->second); in processDisplayHotplugEventsLocked()
[all …]
DFpsReporter.cpp57 mFlinger.mCurrentState.traverse([&](Layer* layer) { in dispatchLayerFps()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java227 assertTrue(mNetworkController.mWifiSignalController.mCurrentState.enabled); in testFetchInitialData_correctValues()
228 assertTrue(mNetworkController.mWifiSignalController.mCurrentState.connected); in testFetchInitialData_correctValues()
229 assertEquals(testSsid, mNetworkController.mWifiSignalController.mCurrentState.ssid); in testFetchInitialData_correctValues()
/frameworks/av/services/camera/libcameraservice/tests/
DCameraProviderManagerTest.cpp174 mCurrentState = newState; in notifyDeviceStateChange()
208 hardware::hidl_bitfield<DeviceState> mCurrentState = 0xFFFFFFFF; // Unlikely to be a real state member
529 ASSERT_EQ(provider->mCurrentState, in TEST()
537 ASSERT_EQ(provider->mCurrentState, in TEST()

12