Home
last modified time | relevance | path

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

1234

/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java105 } while (state.getState() != ServiceState.STATE_IN_SERVICE); in setUp()
147 assertEquals(Phone.State.IDLE, mGSMPhone.getState()); in brokenTestGeneral()
152 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); in brokenTestGeneral()
153 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState()); in brokenTestGeneral()
154 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState()); in brokenTestGeneral()
166 assertEquals(Phone.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral()
171 assertEquals(Phone.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral()
172 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState()); in brokenTestGeneral()
183 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); in brokenTestGeneral()
185 mGSMPhone.getForegroundCall().getState()); in brokenTestGeneral()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/sip/
DSipPhone.java89 if (ringingCall.getState().isAlive()) return false; in canTake()
93 if (foregroundCall.getState().isAlive() in canTake()
94 && backgroundCall.getState().isAlive()) { in canTake()
104 boolean makeCallWait = foregroundCall.getState().isAlive(); in canTake()
106 if (sipAudioCall.getState() in canTake()
126 if ((ringingCall.getState() == Call.State.INCOMING) || in acceptCall()
127 (ringingCall.getState() == Call.State.WAITING)) { in acceptCall()
140 if (ringingCall.getState().isRinging()) { in rejectCall()
166 if (foregroundCall.getState() == SipCall.State.ACTIVE) { in dialInternal()
169 if (foregroundCall.getState() != SipCall.State.IDLE) { in dialInternal()
[all …]
DSipPhoneBase.java117 public State getState() { in getState() method in SipPhoneBase
194 int serviceState = getServiceState().getState(); in canDial()
203 Log.v(LOG_TAG, "canDial(): ringingCall: " + getRingingCall().getState()); in canDial()
204 Log.v(LOG_TAG, "canDial(): foregndCall: " + getForegroundCall().getState()); in canDial()
205 Log.v(LOG_TAG, "canDial(): backgndCall: " + getBackgroundCall().getState()); in canDial()
207 && (!getForegroundCall().getState().isAlive() in canDial()
208 || !getBackgroundCall().getState().isAlive()); in canDial()
217 Call.State foregroundCallState = getForegroundCall().getState(); in isInCall()
218 Call.State backgroundCallState = getBackgroundCall().getState(); in isInCall()
219 Call.State ringingCallState = getRingingCall().getState(); in isInCall()
/frameworks/base/telephony/java/com/android/internal/telephony/
DConnection.java174 public Call.State getState() { in getState() method in Connection
182 return c.getState(); in getState()
194 return getState().isAlive(); in isAlive()
202 return getState().isRinging(); in isRinging()
306 .append(" state: " + getState()) in toString()
DCall.java101 public State getState() { in getState() method in Call
112 return !getState().isAlive(); in isIdle()
194 return getState().isDialing();
199 return getState().isRinging();
247 if (getState().isAlive()) {
DCallManager.java237 public Phone.State getState() { in getState() method in CallManager
241 if (phone.getState() == Phone.State.RINGING) { in getState()
243 } else if (phone.getState() == Phone.State.OFFHOOK) { in getState()
264 int serviceState = phone.getServiceState().getState(); in getServiceState()
377 switch (getState()) { in setAudioMode()
770 int serviceState = phone.getServiceState().getState(); in canDial()
1528 } else if (call.getState() != Call.State.IDLE) { in getFirstNonIdleCall()
1589 return fgCall.getState(); in getActiveFgCallState()
1662 if (call.getState() == state) { in getFirstCallOfState()
1673 if (call.getState().isRinging()) { in hasMoreThanOneRingingCall()
[all …]
DMmiCode.java38 public State getState(); in getState() method
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java108 … cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_MOBILE, networkInfo.getState(), in test3GToWifiNotification()
111 cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_WIFI, networkInfo.getState(), in test3GToWifiNotification()
144 … cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_MOBILE, networkInfo.getState(), in testConnectToWifi()
147 cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_WIFI, networkInfo.getState(), in testConnectToWifi()
213 networkInfo.getState(), NetworkState.DO_NOTHING, in testConnectToWifWithKnownAP()
216 cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_WIFI, networkInfo.getState(), in testConnectToWifWithKnownAP()
259 networkInfo.getState(), in testDisconnectWifi()
263 cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_WIFI, networkInfo.getState(), in testDisconnectWifi()
295 networkInfo.getState(), in testDataConnectionWith3GToAmTo3G()
299 assertEquals(State.DISCONNECTED, networkInfo.getState()); in testDataConnectionWith3GToAmTo3G()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
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()
396 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterStop()
427 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterPause()
542 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRate()
565 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRateZero()
591 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRateTwiceOutputSR()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java367 public int getState() { in getState() method in BluetoothAdapter
483 if (getState() != STATE_ON) return false; in setName()
507 if (getState() != STATE_ON) return SCAN_MODE_NONE; in getScanMode()
543 if (getState() != STATE_ON) return false; in setScanMode()
552 if (getState() != STATE_ON) return false; in setScanMode()
558 if (getState() != STATE_ON) return -1; in getDiscoverableTimeout()
567 if (getState() != STATE_ON) return; in setDiscoverableTimeout()
604 if (getState() != STATE_ON) return false; in startDiscovery()
629 if (getState() != STATE_ON) return false; in cancelDiscovery()
656 if (getState() != STATE_ON) return false; in isDiscovering()
[all …]
DIBluetoothPbap.aidl27 int getState(); in getState() method
DBluetoothPbap.java148 public int getState() { in getState() method in BluetoothPbap
152 return mService.getState(); in getState()
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/mockril/
DMockRilTest.java65 assertTrue(String.format("expected rs.state == 0 was %d", rs.getState()), in testProtobufSerDes()
66 rs.getState() == 0); in testProtobufSerDes()
68 assertTrue(String.format("expected rs.state == 1 was %d", rs.getState()), in testProtobufSerDes()
69 rs.getState() == 1); in testProtobufSerDes()
73 assertTrue(String.format("expected rsNew.state == 1 was %d", rs.getState()), in testProtobufSerDes()
74 rs.getState() == 1); in testProtobufSerDes()
173 int state = rsp.getState(); in testGetRadioState()
188 assertEquals(0, cmdrs.getState()); in testSetRadioState()
191 assertEquals(2, cmdrs.getState()); in testSetRadioState()
202 int state = rsp.getState(); in testSetRadioState()
/frameworks/base/core/tests/coretests/src/android/os/
DHierarchicalStateMachineTest.java129 assertEquals(smQuitTest.mS1, pmi.getState()); in testStateMachineQuitTest()
134 assertEquals(smQuitTest.mS1, pmi.getState()); in testStateMachineQuitTest()
140 assertEquals(null, pmi.getState()); in testStateMachineQuitTest()
289 assertEquals(smEnterExitTranstionToTest.mS2, pmi.getState()); in testStateMachineEnterExitTransitionToTest()
371 assertEquals(sm0.mS1, pmi.getState()); in testStateMachine0()
376 assertEquals(sm0.mS1, pmi.getState()); in testStateMachine0()
381 assertEquals(sm0.mS1, pmi.getState()); in testStateMachine0()
471 assertEquals(sm1.mS1, pmi.getState()); in testStateMachine1()
476 assertEquals(sm1.mS1, pmi.getState()); in testStateMachine1()
573 assertEquals(sm2.mS1, pmi.getState()); in testStateMachine2()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmCallTracker.java182 if (foregroundCall.getState() == GsmCall.State.ACTIVE) { in dial()
196 if (foregroundCall.getState() != GsmCall.State.IDLE) { in dial()
247 if (ringingCall.getState() == GsmCall.State.INCOMING) { in acceptCall()
252 } else if (ringingCall.getState() == GsmCall.State.WAITING) { in acceptCall()
264 if (ringingCall.getState().isRinging()) { in rejectCall()
274 if (ringingCall.getState() == GsmCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
302 return foregroundCall.getState() == GsmCall.State.ACTIVE in canConference()
303 && backgroundCall.getState() == GsmCall.State.HOLDING in canConference()
311 int serviceState = phone.getServiceState().getState(); in canDial()
319 && (!foregroundCall.getState().isAlive() in canDial()
[all …]
DGsmConnection.java216 if (getState() != GsmCall.State.HOLDING) { in getHoldDurationMillis()
232 public GsmCall.State getState() { in getState() method in GsmConnection
236 return super.getState(); in getState()
368 int serviceState = phone.getServiceState().getState(); in disconnectCauseFromCode()
374 } else if (phone.getIccCard().getState() != SimCard.State.READY) { in disconnectCauseFromCode()
431 boolean wasHolding = (getState() == GsmCall.State.HOLDING); in update()
469 if (changed && !wasHolding && (getState() == GsmCall.State.HOLDING)) { in update()
DGsmServiceStateTracker.java272 if (ss.getState() == ServiceState.STATE_IN_SERVICE) { in registerForNetworkAttach()
508 if (ss != null && !isGprsConsistent(gprsState, ss.getState())) { in handleMessage()
566 if (dcTracker.getState() != DataConnectionTracker.State.CONNECTED in powerOffRadioSafely()
567 && dcTracker.getState() != DataConnectionTracker.State.DISCONNECTING) { in powerOffRadioSafely()
876 ss.getState() != ServiceState.STATE_IN_SERVICE in pollStateDone()
877 && newSS.getState() == ServiceState.STATE_IN_SERVICE; in pollStateDone()
880 ss.getState() == ServiceState.STATE_IN_SERVICE in pollStateDone()
881 && newSS.getState() != ServiceState.STATE_IN_SERVICE; in pollStateDone()
902 if (ss.getState() != newSS.getState() || gprsState != newGPRSState) { in pollStateDone()
904 ss.getState(), gprsState, newSS.getState(), newGPRSState); in pollStateDone()
[all …]
DGsmCall.java122 if (connections.get(i).getState() in connectionDisconnected()
198 if (cn.getState() == State.DISCONNECTED) { in clearDisconnected()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaCallTracker.java204 if (foregroundCall.getState() == CdmaCall.State.ACTIVE) { in dial()
267 if (ringingCall.getState() == CdmaCall.State.INCOMING) { in acceptCall()
272 } else if (ringingCall.getState() == CdmaCall.State.WAITING) { in acceptCall()
292 if (ringingCall.getState().isRinging()) { in rejectCall()
302 if (ringingCall.getState() == CdmaCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
336 return foregroundCall.getState() == CdmaCall.State.ACTIVE in canConference()
337 && backgroundCall.getState() == CdmaCall.State.HOLDING in canConference()
345 int serviceState = phone.getServiceState().getState(); in canDial()
353 && (!foregroundCall.getState().isAlive() in canDial()
354 || (foregroundCall.getState() == CdmaCall.State.ACTIVE) in canDial()
[all …]
DCdmaCall.java72 getState() { in getState() method in CdmaCall
126 if (connections.get(i).getState() in connectionDisconnected()
199 if (cn.getState() == State.DISCONNECTED) { in clearDisconnected()
DCdmaConnection.java268 if (getState() != CdmaCall.State.HOLDING) { in getHoldDurationMillis()
284 public CdmaCall.State getState() { in getState() method in CdmaConnection
288 return super.getState(); in getState()
427 int serviceState = phone.getServiceState().getState(); in disconnectCauseFromCode()
434 && phone.getIccCard().getState() != RuimCard.State.READY) { in disconnectCauseFromCode()
489 boolean wasHolding = (getState() == CdmaCall.State.HOLDING); in update()
542 if (changed && !wasHolding && (getState() == CdmaCall.State.HOLDING)) { in update()
/frameworks/base/core/tests/coretests/src/com/android/server/
DMountServiceTests.java81 public int getState() { in getState() method in MountServiceTests.ObbObserver
156 assertEquals(expectedState, observer.getState()); in mountObb()
181 assertEquals(expectedState, observer.getState()); in waitForObbActionCompletion()
202 assertEquals(expectedState, observer.getState()); in unmountObb()
/frameworks/base/graphics/java/android/graphics/drawable/
DStateListDrawable.java84 onStateChange(getState()); in addState()
178 onStateChange(getState()); in inflate()
306 onStateChange(getState()); in StateListDrawable()
/frameworks/base/voip/java/android/net/sip/
DISipSession.aidl56 int getState(); in getState() method
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestActivity.java143 recordNetworkState(mNetworkInfo.getType(), mNetworkInfo.getState()); in onReceive()
145 recordNetworkState(mOtherNetworkInfo.getType(), mOtherNetworkInfo.getState()); in onReceive()
162 if (mWifiNetworkInfo.getState() == State.CONNECTED) { in onReceive()
365 if (mCM.getNetworkInfo(networkType).getState() != expectedState) { in waitForNetworkState()
383 (mNetworkInfo.getState() != expectedState)) { in waitForNetworkState()
385 "is: " + mNetworkInfo.getState()); in waitForNetworkState()

1234