Home
last modified time | relevance | path

Searched refs:getState (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java.broken102 } 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/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp89 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 …]
DDisplayTest.cpp124 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaCallTrackerTest.java106 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testMOCallDial()
107 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial()
108 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallDial()
109 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallDial()
119 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial()
120 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallDial()
137 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testMOCallPickUp()
138 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallPickUp()
149 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallHangup()
150 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup()
[all …]
DGsmCdmaCallTest.java53 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()
DCallManagerTest.java102 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp()
109 doReturn(Call.State.IDLE).when(mBgCall).getState(); in setUp()
110 doReturn(Call.State.IDLE).when(mFgCall).getState(); in setUp()
111 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
282 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState()
286 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState(); in testGetServiceState()
290 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState(); in testGetServiceState()
294 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState()
295 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mServiceState).getState(); in testGetServiceState()
300 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getState(); in testGetServiceState()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DMessagingMessage.java60 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/base/core/java/android/print/
DPrintJob.java84 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTest.java75 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()
101 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected()
103 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected()
105 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected()
106 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected()
108 assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); in testConnectionDisconnected()
133 assertEquals(Call.State.ALERTING, mImsCallUT.getState()); in testUpdateRingBackTone()
136 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testUpdateRingBackTone()
[all …]
DImsPhoneCallTrackerTest.java353 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCall()
359 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCall()
381 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAccept()
382 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAccept()
400 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallReject()
407 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp()
408 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHangUp()
415 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallAcceptHangUp()
416 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp()
424 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold()
[all …]
DImsPhoneTest.java126 doReturn(Call.State.IDLE).when(mForegroundCall).getState(); in setUp()
127 doReturn(Call.State.IDLE).when(mBackgroundCall).getState(); in setUp()
128 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
160 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
170 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
171 doReturn(Call.State.ACTIVE).when(mBackgroundCall).getState(); in testHandleInCallMmiCommandCallDeflection()
179 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallWaiting()
197 doReturn(Call.State.IDLE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallWaiting()
198 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallWaiting()
206 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallHold()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeDockHandlerTest.java94 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/src/java/com/android/internal/telephony/sip/
DSipPhone.java106 if (mRingingCall.getState().isAlive()) { in takeIncomingCall()
113 if (mForegroundCall.getState().isAlive() in takeIncomingCall()
114 && mBackgroundCall.getState().isAlive()) { in takeIncomingCall()
127 boolean makeCallWait = mForegroundCall.getState().isAlive(); in takeIncomingCall()
130 if (sipAudioCall.getState() != SipSession.State.INCOMING_CALL) { in takeIncomingCall()
153 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall()
154 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall()
172 if (mRingingCall.getState().isRinging()) { in rejectCall()
200 if (mForegroundCall.getState() == SipCall.State.ACTIVE) { in dialInternal()
203 if (mForegroundCall.getState() != SipCall.State.IDLE) { in dialInternal()
[all …]
DSipPhoneBase.java103 public PhoneConstants.State getState() { in getState() method in SipPhoneBase
185 int serviceState = getServiceState().getState(); in canDial()
194 Rlog.v(LOG_TAG, "canDial(): ringingCall: " + getRingingCall().getState()); in canDial()
195 Rlog.v(LOG_TAG, "canDial(): foregndCall: " + getForegroundCall().getState()); in canDial()
196 Rlog.v(LOG_TAG, "canDial(): backgndCall: " + getBackgroundCall().getState()); in canDial()
198 && (!getForegroundCall().getState().isAlive() in canDial()
199 || !getBackgroundCall().getState().isAlive()); in canDial()
208 Call.State foregroundCallState = getForegroundCall().getState(); in isInCall()
209 Call.State backgroundCallState = getBackgroundCall().getState(); in isInCall()
210 Call.State ringingCallState = getRingingCall().getState(); in isInCall()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp100 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()
321 return mCompositionDisplay->getState().bounds; in getBounds()
325 return mCompositionDisplay->getState().undefinedRegion; in getUndefinedRegion()
329 return mCompositionDisplay->getState().needsFiltering; in needsFiltering()
333 return mCompositionDisplay->getState().layerStackId; in getLayerStack()
337 return mCompositionDisplay->getState().transform; in getTransform()
341 return mCompositionDisplay->getState().viewport; in getViewport()
[all …]
/frameworks/base/core/java/android/printservice/
DPrintJob.java125 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/core/java/android/os/
DSystemService.java81 public static State getState(String service) { in getState() method in SystemService
95 return State.STOPPED.equals(getState(service)); in isStopped()
102 return State.RUNNING.equals(getState(service)); in isRunning()
113 final State currentState = getState(service); in waitForState()
138 if (State.STOPPED.equals(getState(service))) { in waitForAnyStopped()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioTrackTest.java103 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/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp87 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/
DAudioStream.cpp50 LOG_ALWAYS_FATAL_IF(!(getState() == AAUDIO_STREAM_STATE_CLOSED in ~AudioStream()
51 || getState() == AAUDIO_STREAM_STATE_UNINITIALIZED in ~AudioStream()
52 || getState() == AAUDIO_STREAM_STATE_DISCONNECTED), in ~AudioStream()
54 AAudio_convertStreamStateToText(getState())); in ~AudioStream()
132 switch (getState()) { in systemPause()
158 AAudio_convertStreamStateToText(getState())); in systemPause()
182 aaudio_result_t result = AAudio_isFlushAllowed(getState()); in safeFlush()
217 switch (getState()) { in safeStop()
243 AAudio_convertStreamStateToText(getState())); in safeStop()
286 aaudio_stream_state_t state = getState(); in waitForStateChange()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java115 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/
DStateMachineTest.java231 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
236 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
333 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
338 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
432 assertEquals(smQuitNowAfterStartTest.mS1, lr.getState()); in testStateMachineQuitNowAfterStart()
573 assertEquals(smEnterExitTranstionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest()
577 assertEquals(smEnterExitTranstionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest()
581 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
585 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
591 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCall.java124 public State getState() { in getState() method in Call
144 return !getState().isAlive(); in isIdle()
227 return getState().isDialing();
232 return getState().isRinging();
266 if (getState().isAlive()) {
281 if (c.getState() == State.DISCONNECTED) {
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java218 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceInService_returnTrue()
224 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue()
231 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse()
240 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataOutOfService_returnFalse()
247 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in isInService_ServiceStatePowerOff_returnFalse()
259 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in getCombinedServiceState_ServiceStatePowerOff_returnPowerOff()
266 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getCombinedServiceState_voiceInService_returnInService()
273 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getCombinedServiceState_voiceOutOfServiceDataInService_returnInService()
281 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getCombinedServiceState_voiceOutOfServiceDataOutOfService_returnOutOfService()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataEnabledOverrideTest.java71 doReturn(PhoneConstants.State.IDLE).when(mPhone).getState(); in testOverrideEnabled()
76 doReturn(PhoneConstants.State.OFFHOOK).when(mPhone).getState(); in testOverrideEnabled()
101 doReturn(PhoneConstants.State.IDLE).when(mPhone).getState(); in testUpdateRules()
106 doReturn(PhoneConstants.State.OFFHOOK).when(mPhone).getState(); in testUpdateRules()
141 doReturn(PhoneConstants.State.OFFHOOK).when(mPhone).getState(); in testAllApnTypesInRule()
212 doReturn(PhoneConstants.State.OFFHOOK).when(mPhone).getState(); in testSetDataAllowedInVoiceCall()

12345678910>>...15