/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
D | WifiSignalController.java | 76 mCurrentState.iconGroup = mLastState.iconGroup = mUnmergedWifiIconGroup; in WifiSignalController() 90 if (mCurrentState.isCarrierMerged) { in notifyListeners() 91 if (mCurrentState.isDefault || !mNetworkController.isRadioOn()) { in notifyListeners() 103 boolean wifiVisible = mCurrentState.enabled && ( in notifyListenersForNonCarrierWifi() 104 (mCurrentState.connected && mCurrentState.inetCondition == 1) in notifyListenersForNonCarrierWifi() 105 || !mHasMobileDataFeature || mCurrentState.isDefault in notifyListenersForNonCarrierWifi() 107 String wifiDesc = mCurrentState.connected ? mCurrentState.ssid : null; in notifyListenersForNonCarrierWifi() 108 boolean ssidPresent = wifiVisible && mCurrentState.ssid != null; in notifyListenersForNonCarrierWifi() 110 if (mCurrentState.inetCondition == 0) { in notifyListenersForNonCarrierWifi() 116 if (mCurrentState.isDefault || (!mNetworkController.isRadioOn() in notifyListenersForNonCarrierWifi() [all …]
|
D | MobileSignalController.java | 150 mLastState.networkName = mCurrentState.networkName = networkName; in MobileSignalController() 151 mLastState.networkNameData = mCurrentState.networkNameData = networkName; in MobileSignalController() 152 mLastState.enabled = mCurrentState.enabled = hasMobileData; in MobileSignalController() 153 mLastState.iconGroup = mCurrentState.iconGroup = mDefaultIcons; in MobileSignalController() 172 mCurrentState.airplaneMode = airplaneMode; in setAirplaneMode() 177 mCurrentState.userSetup = userSetup; in setUserSetupComplete() 184 mCurrentState.isDefault = connectedTransports.get(mTransportType); in updateConnectivity() 186 mCurrentState.inetCondition = (isValidated || !mCurrentState.isDefault) ? 1 : 0; in updateConnectivity() 191 mCurrentState.carrierNetworkChangeMode = carrierNetworkChangeMode; in setCarrierNetworkChangeMode() 229 if (mCurrentState.iconGroup == TelephonyIcons.CARRIER_NETWORK_CHANGE) { in getCurrentIconId() [all …]
|
D | SignalController.java | 48 protected final T mCurrentState; field in SignalController 71 mCurrentState = cleanState(); in SignalController() 82 return mCurrentState; in getState() 86 mCurrentState.inetCondition = validatedTransports.get(mTransportType) ? 1 : 0; in updateConnectivity() 98 mCurrentState.copyFrom(mLastState); in resetLastState() 106 if (!mLastState.equals(mCurrentState)) { in isDirty() 109 + "\tto: " + mCurrentState); in isDirty() 121 mCurrentState.time = System.currentTimeMillis(); in saveLastState() 122 mLastState.copyFrom(mCurrentState); in saveLastState() 129 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() 60 if (mCurrentState.connected) { in getContentDescription()
|
/frameworks/av/media/libmedia/ |
D | mediarecorder.cpp | 46 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 …]
|
D | mediaplayer.cpp | 57 mCurrentState = MEDIA_PLAYER_IDLE; in MediaPlayer() 129 if ( !( (mCurrentState & MEDIA_PLAYER_IDLE) || in attachNewPlayer() 130 (mCurrentState == MEDIA_PLAYER_STATE_ERROR ) ) ) { in attachNewPlayer() 131 ALOGE("attachNewPlayer called in state %d", mCurrentState); in attachNewPlayer() 139 mCurrentState = MEDIA_PLAYER_INITIALIZED; in attachNewPlayer() 225 (mCurrentState != MEDIA_PLAYER_STATE_ERROR) && in invoke() 226 ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_IDLE); in invoke() 231 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke() 289 if ( (mPlayer != 0) && ( mCurrentState & (MEDIA_PLAYER_INITIALIZED | MEDIA_PLAYER_STOPPED) ) ) { in prepareAsync_l() 295 mCurrentState = MEDIA_PLAYER_PREPARING; in prepareAsync_l() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationShadeWindowControllerImpl.java | 125 private final NotificationShadeWindowState mCurrentState = new NotificationShadeWindowState(); field in NotificationShadeWindowControllerImpl 242 if (mCurrentState.shadeOrQsExpanded != isExpanded) { in onShadeOrQsExpanded() 243 mCurrentState.shadeOrQsExpanded = isExpanded; in onShadeOrQsExpanded() 244 apply(mCurrentState); in onShadeOrQsExpanded() 641 cb.onStateChanged(mCurrentState.keyguardShowing, in notifyStateChangedCallbacks() 642 mCurrentState.keyguardOccluded, in notifyStateChangedCallbacks() 643 mCurrentState.keyguardGoingAway, in notifyStateChangedCallbacks() 644 mCurrentState.bouncerShowing, in notifyStateChangedCallbacks() 645 mCurrentState.dozing, in notifyStateChangedCallbacks() 646 mCurrentState.shadeOrQsExpanded, in notifyStateChangedCallbacks() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DeviceStateControllerTests.java | 59 private DeviceStateController.DeviceState mCurrentState = field in DeviceStateControllerTests 67 mCurrentState = DeviceStateController.DeviceState.UNKNOWN; in setUp() 73 mCurrentState = newFoldState; in initialize() 83 assertEquals(DeviceStateController.DeviceState.OPEN, mCurrentState); in testInitialization() 91 assertEquals(DeviceStateController.DeviceState.UNKNOWN, mCurrentState); in testInitializationWithNoFoldSupport() 98 assertEquals(DeviceStateController.DeviceState.OPEN, mCurrentState); in testWithFoldSupported() 100 assertEquals(DeviceStateController.DeviceState.FOLDED, mCurrentState); in testWithFoldSupported() 102 assertEquals(DeviceStateController.DeviceState.UNKNOWN, mCurrentState); // Ignored in testWithFoldSupported() 109 assertEquals(DeviceStateController.DeviceState.OPEN, mCurrentState); in testWithHalfFoldSupported() 111 assertEquals(DeviceStateController.DeviceState.FOLDED, mCurrentState); in testWithHalfFoldSupported() [all …]
|
/frameworks/av/media/libheadtracking/ |
D | StillnessDetector.cpp | 30 mCurrentState = true; in reset() 46 mPreviousState = mCurrentState; in calculate() 74 mCurrentState = mOptions.defaultValue; in calculate() 78 mCurrentState = false; in calculate() 81 mCurrentState = !moved; in calculate() 84 return mCurrentState; in calculate()
|
/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 …]
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 162 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/packages/SettingsLib/src/com/android/settingslib/users/ |
D | CreateUserDialogController.java | 80 private @AddUserState int mCurrentState; field in CreateUserDialogController 127 mCurrentState = INITIAL_DIALOG; in clear() 135 mCurrentState = savedInstanceState.getInt(KEY_CURRENT_STATE); in onRestoreInstanceState() 158 savedInstanceState.putInt(KEY_CURRENT_STATE, mCurrentState); in onSaveInstanceState() 204 mCurrentState++; in addCustomViews() 205 if (mCurrentState == GRANT_ADMIN_DIALOG && !isMultipleAdminEnabled) { in addCustomViews() 206 mCurrentState++; in addCustomViews() 211 mCurrentState--; in addCustomViews() 212 if (mCurrentState == GRANT_ADMIN_DIALOG && !isMultipleAdminEnabled) { in addCustomViews() 213 mCurrentState--; in addCustomViews() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/ |
D | StatusBarWindowController.java | 78 private final State mCurrentState = new State(); field in StatusBarWindowController 134 apply(mCurrentState); in refreshStatusBarHeight() 160 apply(mCurrentState); in attach() 279 mCurrentState.mForceStatusBarVisible = forceStatusBarVisible; 280 apply(mCurrentState); 294 mCurrentState.mOngoingProcessRequiresStatusBarVisible = visible; 295 apply(mCurrentState); 304 if (isLaunchAnimationRunning == mCurrentState.mIsLaunchAnimationRunning) { 308 mCurrentState.mIsLaunchAnimationRunning = isLaunchAnimationRunning; 309 apply(mCurrentState);
|
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/ |
D | LongArrayMultiStateCounter_host.java | 38 private int mCurrentState; field in LongArrayMultiStateCounter_host.LongArrayMultiStateCounterRavenwood 70 setState(mCurrentState, timestampMs); in setEnabled() 91 mStates[mCurrentState].mTimeInStateSinceUpdate += in setState() 99 mCurrentState = state; in setState() 108 mCurrentState = source.mCurrentState; in copyStatesFrom() 123 setState(mCurrentState, timestampMs); in updateValue() 162 mStates[mCurrentState].mCounter[i] += delta[i]; in addCounts() 219 sb.append(" currentState: ").append(mCurrentState); in toString()
|
D | LongMultiStateCounter_host.java | 36 private int mCurrentState; field in LongMultiStateCounter_host.LongMultiStateCounterRavenwood 63 setState(mCurrentState, timestampMs); in setEnabled() 84 mStates[mCurrentState].mTimeInStateSinceUpdate += in setState() 92 mCurrentState = state; in setState() 103 setState(mCurrentState, timestampMs); in updateValue() 184 sb.append(" currentState: ").append(mCurrentState); in toString()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneProvider.java | 408 final ReferenceWithHistory<ProviderState> mCurrentState = new ReferenceWithHistory<>(10); field in LocationTimeZoneProvider 488 ProviderState currentState = mCurrentState.get(); in destroy() 533 ProviderState oldState = mCurrentState.get(); in setCurrentState() 534 mCurrentState.set(newState); in setCurrentState() 564 return mCurrentState.get(); in getCurrentState() 590 ProviderState currentState = mCurrentState.get(); in startUpdates() 607 ProviderState currentState = mCurrentState.get(); in handleInitializationTimeout() 642 ProviderState currentState = mCurrentState.get(); in stopUpdates() 670 ProviderState currentState = mCurrentState.get(); in handleTimeZoneProviderEvent() 764 ProviderState currentState = mCurrentState.get(); in handleTemporaryFailure() [all …]
|
D | BinderLocationTimeZoneProvider.java | 86 ProviderState currentState = mCurrentState.get(); in handleOnProviderBound() 136 ipw.println("mCurrentState=" + mCurrentState); in dump() 141 mCurrentState.dump(ipw); in dump() 156 + ", mCurrentState=" + mCurrentState in toString()
|
D | DisabledLocationTimeZoneProvider.java | 73 ipw.println("mCurrentState=" + mCurrentState); in dump() 82 + ", mCurrentState=" + 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/nfc/java/android/nfc/ |
D | NfcWlcStateListener.java | 39 private WlcListenerDeviceInfo mCurrentState = null; field in NfcWlcStateListener 103 mCurrentState)); in sendCurrentState() 114 mCurrentState = wlcListenerDeviceInfo; in onWlcStateChanged()
|
D | NfcControllerAlwaysOnListener.java | 39 private boolean mCurrentState = false; field in NfcControllerAlwaysOnListener 119 mCurrentState)); in sendCurrentState() 129 mCurrentState = isEnabled; in onControllerAlwaysOnChanged()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | LongArrayMultiStateCounterPerfTest.java | 46 private int mCurrentState; field in LongArrayMultiStateCounterPerfTest.TestLongArrayMultiStateCounter 74 mStates[mCurrentState].mTimeInStateSinceUpdate += in setState() 82 mCurrentState = state; in setState() 87 setState(mCurrentState, timestampMs); in updateValue()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
D | OneHandedTutorialHandler.java | 69 private @OneHandedState.State int mCurrentState; field in OneHandedTutorialHandler 125 mCurrentState = newState; in onStateChanged() 166 mTargetViewContainer.setAlpha(mCurrentState == STATE_ACTIVE ? 1.0f : 0.0f); in createViewAndAttachToWindow() 232 if (mCurrentState == STATE_ENTERING || mCurrentState == STATE_ACTIVE) { in onConfigurationChanged() 300 pw.println(mCurrentState); in dump()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | WindowMagnificationGestureHandler.java | 93 State mCurrentState; field in WindowMagnificationGestureHandler 153 mCurrentState.onMotionEvent(event, rawEvent, policyFlags); in onMotionEventInternal() 300 Slog.i(mLogTag, "state transition: " + (State.nameOf(mCurrentState) + " -> " in transitionTo() 305 mPreviousState = mCurrentState; in transitionTo() 309 mCurrentState = state; in transitionTo() 310 if (mCurrentState != null) { in transitionTo() 311 mCurrentState.onEnter(); in transitionTo() 587 + ", mCurrentState=" + State.nameOf(mCurrentState) in toString()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/ |
D | SatelliteSessionController.java | 141 @SatelliteManager.SatelliteModemState private int mCurrentState; field in SatelliteSessionController 218 mCurrentState = SatelliteManager.SATELLITE_MODEM_STATE_UNKNOWN; in SatelliteSessionController() 318 callback.onSatelliteModemStateChanged(mCurrentState); in registerForSatelliteModemStateChanged() 444 mCurrentState = SatelliteManager.SATELLITE_MODEM_STATE_UNAVAILABLE; in enter() 460 mCurrentState = SatelliteManager.SATELLITE_MODEM_STATE_OFF; in enter() 504 mCurrentState = SatelliteManager.SATELLITE_MODEM_STATE_ENABLING_SATELLITE; in enter() 557 mCurrentState = SatelliteManager.SATELLITE_MODEM_STATE_DISABLING_SATELLITE; in enter() 591 mCurrentState = SatelliteManager.SATELLITE_MODEM_STATE_IDLE; in enter() 689 mCurrentState = SatelliteManager.SATELLITE_MODEM_STATE_DATAGRAM_TRANSFERRING; in enter() 748 mCurrentState = SatelliteManager.SATELLITE_MODEM_STATE_LISTENING; in enter() [all …]
|