/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GSMPhoneTest.java.broken | 102 } while (state.getState() != ServiceState.STATE_IN_SERVICE); 144 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); 149 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); 150 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState()); 151 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState()); 163 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 168 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 169 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState()); 180 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); 182 mGSMPhone.getForegroundCall().getState()); [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaCallTrackerTest.java | 87 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testMOCallDial() 88 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial() 89 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallDial() 90 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallDial() 100 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial() 101 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallDial() 118 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testMOCallPickUp() 119 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallPickUp() 130 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallHangup() 131 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup() [all …]
|
D | GsmCdmaCallTest.java | 53 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach() 61 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testAttachDetach() 68 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach() 75 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testMultiparty() 114 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected() 117 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 119 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected() 121 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected() 123 assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); in testConnectionDisconnected()
|
D | CallManagerTest.java | 69 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp() 76 doReturn(Call.State.IDLE).when(mBgCall).getState(); in setUp() 77 doReturn(Call.State.IDLE).when(mFgCall).getState(); in setUp() 78 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp() 245 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState() 249 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState(); in testGetServiceState() 253 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState(); in testGetServiceState() 257 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState() 258 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mServiceState).getState(); in testGetServiceState() 263 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getState(); in testGetServiceState() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputTest.cpp | 89 EXPECT_TRUE(mOutput.getState().isEnabled); in TEST_F() 90 EXPECT_THAT(mOutput.getState().dirtyRegion, RegionEq(Region())); in TEST_F() 98 EXPECT_TRUE(mOutput.getState().isEnabled); in TEST_F() 99 EXPECT_THAT(mOutput.getState().dirtyRegion, RegionEq(Region(kDefaultDisplaySize))); in TEST_F() 107 EXPECT_FALSE(mOutput.getState().isEnabled); in TEST_F() 108 EXPECT_THAT(mOutput.getState().dirtyRegion, RegionEq(Region(kDefaultDisplaySize))); in TEST_F() 125 EXPECT_THAT(mOutput.getState().transform, TransformEq(transform)); in TEST_F() 126 EXPECT_EQ(orientation, mOutput.getState().orientation); in TEST_F() 127 EXPECT_EQ(frame, mOutput.getState().frame); in TEST_F() 128 EXPECT_EQ(viewport, mOutput.getState().viewport); in TEST_F() [all …]
|
D | DisplayTest.cpp | 124 EXPECT_EQ(HAL_COLOR_TRANSFORM_IDENTITY, mDisplay.getState().colorTransform); in TEST_F() 133 EXPECT_EQ(HAL_COLOR_TRANSFORM_ARBITRARY_MATRIX, mDisplay.getState().colorTransform); in TEST_F() 147 ASSERT_EQ(ui::ColorMode::NATIVE, mDisplay.getState().colorMode); in TEST_F() 148 ASSERT_EQ(ui::Dataspace::UNKNOWN, mDisplay.getState().dataspace); in TEST_F() 149 ASSERT_EQ(ui::RenderIntent::COLORIMETRIC, mDisplay.getState().renderIntent); in TEST_F() 155 EXPECT_EQ(ui::ColorMode::NATIVE, mDisplay.getState().colorMode); in TEST_F() 156 EXPECT_EQ(ui::Dataspace::UNKNOWN, mDisplay.getState().dataspace); in TEST_F() 157 EXPECT_EQ(ui::RenderIntent::COLORIMETRIC, mDisplay.getState().renderIntent); in TEST_F() 169 EXPECT_EQ(ui::ColorMode::DISPLAY_P3, mDisplay.getState().colorMode); in TEST_F() 170 EXPECT_EQ(ui::Dataspace::DISPLAY_P3, mDisplay.getState().dataspace); in TEST_F() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingMessage.java | 60 getState().setMessage(message); in setMessage() 65 return getState().getMessage(); in getMessage() 104 getState().setGroup(group); in setMessagingGroup() 108 getState().setIsHistoric(isHistoric); in setIsHistoric() 112 return getState().getGroup(); in getGroup() 116 getState().setIsHidingAnimated(isHiding); in setIsHidingAnimated() 121 return getState().isHidingAnimated(); in isHidingAnimated() 135 getState().recycle(); in recycle() 144 MessagingMessageState getState(); in getState() method
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTest.java | 75 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 82 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testAttachDetach() 89 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 100 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 102 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 104 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 105 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected() 107 assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); in testConnectionDisconnected() 109 assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); in testConnectionDisconnected() 134 assertEquals(Call.State.ALERTING, mImsCallUT.getState()); in testUpdateRingBackTone() [all …]
|
D | ImsPhoneTest.java | 136 doReturn(Call.State.IDLE).when(mForegroundCall).getState(); in setUp() 137 doReturn(Call.State.IDLE).when(mBackgroundCall).getState(); in setUp() 138 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp() 179 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection() 189 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection() 190 doReturn(Call.State.ACTIVE).when(mBackgroundCall).getState(); in testHandleInCallMmiCommandCallDeflection() 198 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallWaiting() 216 doReturn(Call.State.IDLE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallWaiting() 217 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallWaiting() 225 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallHold() [all …]
|
D | ImsPhoneCallTrackerTest.java | 338 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCall() 344 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCall() 368 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAccept() 369 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAccept() 454 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallReject() 461 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp() 462 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHangUp() 469 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallAcceptHangUp() 470 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp() 478 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold() [all …]
|
/frameworks/base/core/java/android/print/ |
D | PrintJob.java | 84 final int state = getInfo().getState(); in cancel() 115 return getInfo().getState() == PrintJobInfo.STATE_QUEUED; in isQueued() 128 return getInfo().getState() == PrintJobInfo.STATE_STARTED; in isStarted() 141 return getInfo().getState() == PrintJobInfo.STATE_BLOCKED; in isBlocked() 152 return getInfo().getState() == PrintJobInfo.STATE_COMPLETED; in isCompleted() 166 return getInfo().getState() == PrintJobInfo.STATE_FAILED; in isFailed() 177 return getInfo().getState() == PrintJobInfo.STATE_CANCELED; in isCancelled() 181 final int state = mCachedInfo.getState(); in isInImmutableState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeDockHandlerTest.java | 94 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnEvent_dockedWhenDoze_requestPulse() 104 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE_AOD); in testOnEvent_dockedWhenDozeAoD_requestPulse() 114 when(mMachine.getState()).thenReturn(State.DOZE_PULSING); in testOnEvent_dockedHideWhenPulsing_requestPulseOut() 125 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE_PULSING); in testOnEvent_undockedWhenPulsing_requestPulseOut() 136 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnEvent_undockedWhenDoze_neverRequestPulseOut() 147 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnEvent_undockedWhenDozeAndEnabledAoD_requestDozeAoD() 157 when(mMachine.getState()).thenReturn(DozeMachine.State.INITIALIZED); in testTransitionToDoze_whenDocked_requestPulse() 159 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testTransitionToDoze_whenDocked_requestPulse() 170 when(mMachine.getState()).thenReturn(DozeMachine.State.INITIALIZED); in testTransitionToDozeAoD_whenDocked_requestPulse() 172 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE_AOD); in testTransitionToDozeAoD_whenDocked_requestPulse() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | VoiceCallSessionStatsTest.java | 222 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moRejected() 223 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moRejected() 229 doReturn(Call.State.ALERTING).when(mImsCall0).getState(); in singleImsCall_moRejected() 230 doReturn(Call.State.ALERTING).when(mImsConnection0).getState(); in singleImsCall_moRejected() 267 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moFailed() 268 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moFailed() 309 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moAccepted() 310 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moAccepted() 316 doReturn(Call.State.ALERTING).when(mImsCall0).getState(); in singleImsCall_moAccepted() 317 doReturn(Call.State.ALERTING).when(mImsConnection0).getState(); in singleImsCall_moAccepted() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhone.java | 108 if (mRingingCall.getState().isAlive()) { in takeIncomingCall() 115 if (mForegroundCall.getState().isAlive() in takeIncomingCall() 116 && mBackgroundCall.getState().isAlive()) { in takeIncomingCall() 129 boolean makeCallWait = mForegroundCall.getState().isAlive(); in takeIncomingCall() 132 if (sipAudioCall.getState() != SipSession.State.INCOMING_CALL) { in takeIncomingCall() 155 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall() 156 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall() 174 if (mRingingCall.getState().isRinging()) { in rejectCall() 208 if (mForegroundCall.getState() == SipCall.State.ACTIVE) { in dialInternal() 211 if (mForegroundCall.getState() != SipCall.State.IDLE) { in dialInternal() [all …]
|
D | SipPhoneBase.java | 102 public PhoneConstants.State getState() { in getState() method in SipPhoneBase 184 int serviceState = getServiceState().getState(); in canDial() 192 Rlog.v(LOG_TAG, "canDial(): ringingCall: " + getRingingCall().getState()); in canDial() 193 Rlog.v(LOG_TAG, "canDial(): foregndCall: " + getForegroundCall().getState()); in canDial() 194 Rlog.v(LOG_TAG, "canDial(): backgndCall: " + getBackgroundCall().getState()); in canDial() 196 && (!getForegroundCall().getState().isAlive() in canDial() 197 || !getBackgroundCall().getState().isAlive()); in canDial() 206 Call.State foregroundCallState = getForegroundCall().getState(); in isInCall() 207 Call.State backgroundCallState = getBackgroundCall().getState(); in isInCall() 208 Call.State ringingCallState = getRingingCall().getState(); in isInCall()
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 100 return mCompositionDisplay->getState().bounds.getWidth(); in getWidth() 104 return mCompositionDisplay->getState().bounds.getHeight(); in getHeight() 163 return mCompositionDisplay->getState().dataspace; in getCompositionDataSpace() 209 const Rect& displayBounds = getCompositionDisplay()->getState().bounds; in setProjection() 325 return mCompositionDisplay->getState().bounds; in getBounds() 329 return mCompositionDisplay->getState().undefinedRegion; in getUndefinedRegion() 333 return mCompositionDisplay->getState().needsFiltering; in needsFiltering() 337 return mCompositionDisplay->getState().layerStackId; in getLayerStack() 341 return mCompositionDisplay->getState().transform; in getTransform() 345 return mCompositionDisplay->getState().viewport; in getViewport() [all …]
|
/frameworks/base/core/java/android/printservice/ |
D | PrintJob.java | 125 return getInfo().getState() == PrintJobInfo.STATE_QUEUED; in isQueued() 141 return getInfo().getState() == PrintJobInfo.STATE_STARTED; in isStarted() 157 return getInfo().getState() == PrintJobInfo.STATE_BLOCKED; in isBlocked() 171 return getInfo().getState() == PrintJobInfo.STATE_COMPLETED; in isCompleted() 185 return getInfo().getState() == PrintJobInfo.STATE_FAILED; in isFailed() 199 return getInfo().getState() == PrintJobInfo.STATE_CANCELED; in isCancelled() 218 final int state = getInfo().getState(); in start() 242 final int state = info.getState(); in block() 459 final int state = mCachedInfo.getState(); in isInImmutableState()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioTrackTest.java | 103 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate() 279 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType() 315 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterInit() 338 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionIncrease() 366 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlush() 397 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterStop() 433 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterPause() 548 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRate() 571 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRateZero() 597 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRateTwiceOutputSR() [all …]
|
/frameworks/base/core/java/android/os/ |
D | SystemService.java | 82 public static State getState(String service) { in getState() method in SystemService 96 return State.STOPPED.equals(getState(service)); in isStopped() 103 return State.RUNNING.equals(getState(service)); in isRunning() 114 final State currentState = getState(service); in waitForState() 139 if (State.STOPPED.equals(getState(service))) { in waitForAnyStopped()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 87 const OutputLayerCompositionState& OutputLayer::getState() const { in getState() function in android::compositionengine::impl::OutputLayer 96 const auto& layerState = mLayer->getState().frontEnd; in calculateInitialCrop() 106 const Rect& viewport = mOutput.getState().viewport; in calculateInitialCrop() 129 const auto& layerState = mLayer->getState().frontEnd; in calculateOutputSourceCrop() 130 const auto& outputState = mOutput.getState(); in calculateOutputSourceCrop() 206 const auto& layerState = mLayer->getState().frontEnd; in calculateOutputDisplayFrame() 207 const auto& outputState = mOutput.getState(); in calculateOutputDisplayFrame() 253 const auto& layerState = mLayer->getState().frontEnd; in calculateOutputRelativeBufferTransform() 254 const auto& outputState = mOutput.getState(); in calculateOutputRelativeBufferTransform() 299 if ((mLayer->getState().frontEnd.isSecure && !mOutput.getState().isSecure) || in updateCompositionState() [all …]
|
/frameworks/av/media/libaaudio/src/core/ |
D | AudioStream.cpp | 51 LOG_ALWAYS_FATAL_IF(!(getState() == AAUDIO_STREAM_STATE_CLOSED in ~AudioStream() 52 || getState() == AAUDIO_STREAM_STATE_UNINITIALIZED in ~AudioStream() 53 || getState() == AAUDIO_STREAM_STATE_DISCONNECTED), in ~AudioStream() 55 AudioGlobal_convertStreamStateToText(getState())); in ~AudioStream() 133 switch (getState()) { in systemPause() 159 AudioGlobal_convertStreamStateToText(getState())); in systemPause() 183 aaudio_result_t result = AAudio_isFlushAllowed(getState()); in safeFlush() 218 switch (getState()) { in safeStop() 244 AudioGlobal_convertStreamStateToText(getState())); in safeStop() 287 aaudio_stream_state_t state = getState(); in waitForStateChange() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | CastTileTest.java | 115 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiDisabled() 127 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiNotConnected() 148 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testStateActive_wifiEnabledAndCasting() 154 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in testStateInactive_wifiEnabledNotCasting() 200 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_projectionOnly() 201 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(device.name)); in testUpdateState_projectionOnly() 224 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_castingAndProjection() 225 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(casting.name)); in testUpdateState_castingAndProjection() 248 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_connectedAndConnecting() 249 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(connected.name)); in testUpdateState_connectedAndConnecting()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | StateMachineTest.java | 229 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit() 234 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit() 331 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow() 336 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow() 430 assertEquals(smQuitNowAfterStartTest.mS1, lr.getState()); in testStateMachineQuitNowAfterStart() 571 assertEquals(smEnterExitTranstionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest() 575 assertEquals(smEnterExitTranstionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest() 579 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest() 583 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest() 589 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 222 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceInService_returnTrue() 229 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue() 241 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse() 253 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataOutOfService_returnFalse() 262 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in isInService_ServiceStatePowerOff_returnFalse() 275 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in getCombinedServiceState_ServiceStatePowerOff_returnPowerOff() 283 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getCombinedServiceState_voiceInService_returnInService() 291 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getCombinedServiceState_voiceOutOfServiceDataInService_returnInService() 304 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getCombinedServiceState_voiceOutOfServiceDataInServiceOnIwLan_returnOutOfService() 317 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getCombinedServiceState_voiceOutOfServiceDataOutOfService_returnOutOfService()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Call.java | 201 public State getState() { in getState() method in Call 221 return !getState().isAlive(); in isIdle() 304 return getState().isDialing(); 309 return getState().isRinging(); 343 if (getState().isAlive()) { 357 if (conn.getState() == State.DISCONNECTED) {
|