Home
last modified time | relevance | path

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

12345

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomSystemTest.java500 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
501 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
504 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
505 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
517 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
518 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
522 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
524 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
535 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallRemoteDisconnect()
537 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallRemoteDisconnect()
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java162 (frC.fgCall.getState() == Call.State.DISCONNECTING) && in handleMessage()
222 if (ringingCall.getState() == Call.State.WAITING) { in answerCall()
228 if (DBG) log("answerCall: call state = " + ringingCall.getState()); in answerCall()
249 final boolean isRealIncomingCall = isRealIncomingCall(ringingCall.getState()); in answerCall()
361 Call.State state = ringing.getState(); in hangupRingingCall()
426 if (call.getState() == Call.State.ACTIVE && cm.hasActiveBgCall()) { in hangup()
614 final boolean initiallyIdle = app.mCM.getState() == PhoneConstants.State.IDLE; in placeCall()
725 if (fgCall.getState() == Call.State.ACTIVE) { in sendEmptyFlash()
894 MmiCode.State state = mmiCode.getState(); in displayMMIComplete()
1954 final Call.State fgCallState = fgCall.getState(); in okToHoldCall()
[all …]
DCallNotifier.java276 log("onNewRingingConnection(): state = " + mCM.getState() + ", conn = { " + c + " }"); in onNewRingingConnection()
303 Call.State state = c.getState(); in onNewRingingConnection()
419 PhoneConstants.State state = mCM.getState(); in onUnknownConnectionAppeared()
437 PhoneConstants.State state = mCM.getState(); in onPhoneStateChanged()
448 if ((fgPhone.getForegroundCall().getState() == Call.State.ACTIVE) in onPhoneStateChanged()
458 mPreviousCdmaCallState = fgPhone.getForegroundCall().getState(); in onPhoneStateChanged()
487 if (VDBG) log("onDisconnect()... CallManager state: " + mCM.getState()); in onDisconnect()
536 && (mCM.getState() == PhoneConstants.State.IDLE) in onDisconnect()
548 if (mCM.getState() == PhoneConstants.State.IDLE) { in onDisconnect()
876 if (mCM.getState() == PhoneConstants.State.IDLE) { in run()
[all …]
DEmergencyCallHelper.java204 boolean okToCall = (state.getState() == ServiceState.STATE_IN_SERVICE) in onServiceStateChanged()
205 || (state.getState() == ServiceState.STATE_EMERGENCY_ONLY); in onServiceStateChanged()
268 PhoneConstants.State phoneState = mCM.getState(); in onRetryTimeout()
269 int serviceState = mCM.getDefaultPhone().getServiceState().getState(); in onRetryTimeout()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnection.java135 if (getPhone() != null && getState() == STATE_ACTIVE in onHold()
136 && getPhone().getRingingCall().getState() != Call.State.WAITING) { in onHold()
140 mOriginalConnection.getState() == Call.State.ACTIVE) { in onHold()
155 if (getPhone() != null && getState() == STATE_HOLDING && in onUnhold()
156 getPhone().getForegroundCall().getState() != Call.State.DIALING) { in onUnhold()
160 mOriginalConnection.getState() == Call.State.HOLDING) { in onUnhold()
218 return call != null && call.getState().isRinging() && in isValidRingingCall()
227 Call.State newState = mOriginalConnection.getState(); in updateState()
264 if (getState() == STATE_ACTIVE || getState() == STATE_HOLDING) { in buildCallCapabilities()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnection.java92 … connection.getState() == mOriginalConnection.getStateBeforeHandover())) {
473 if (ringingCall.getState() != Call.State.WAITING) { in performHold()
545 if (getState() == STATE_ACTIVE || getState() == STATE_HOLDING) { in buildConnectionCapabilities()
755 if (!ringingCall.getState().isRinging()) { in isValidRingingCall()
843 Call.State newState = mOriginalConnection.getState(); in updateState()
925 if (getState() == STATE_ACTIVE) { in setActiveInternal()
940 if (other.getState() == STATE_ACTIVE) { in setActiveInternal()
1045 if (getState() == Connection.STATE_HOLDING) { in resetStateForConference()
1046 if (mOriginalConnection.getState() == Call.State.ACTIVE) { in resetStateForConference()
1053 if (getState() == Connection.STATE_ACTIVE) { in setHoldingForConference()
[all …]
DTelephonyConnectionService.java184 int state = phone.getServiceState().getState(); in onCreateOutgoingConnection()
265 if (connection.getState() == Connection.STATE_DISCONNECTED) { in onCreateOutgoingConnection()
312 if (!call.getState().isRinging()) { in onCreateIncomingConnection()
321 call.getState() == Call.State.WAITING ? in onCreateIncomingConnection()
373 if ((foregroundCall.getState() != Call.State.DISCONNECTED) in onCreateUnknownConnection()
379 if ((imsFgCall.getState() != Call.State.DISCONNECTED) && imsFgCall.hasConnections()) { in onCreateUnknownConnection()
529 if (ServiceState.STATE_IN_SERVICE == phone.getServiceState().getState()) { in getFirstPhoneForEmergencyCall()
533 } else if (ServiceState.STATE_POWER_OFF != phone.getServiceState().getState()) { in getFirstPhoneForEmergencyCall()
DImsConferenceController.java156 Log.d(this, "recalc - %s %s supportsConf? %s", connection.getState(), connection, in recalculateConferenceable()
175 switch (connection.getState()) { in recalculateConferenceable()
190 Log.d(this, "recalc - %s %s", conference.getState(), conference); in recalculateConferenceable()
200 switch (conference.getState()) { in recalculateConferenceable()
326 conference.setState(conferenceHostConnection.getState()); in startConference()
DEmergencyCallHelper.java162 if (isOkToCall(state.getState(), mPhone.getState())) { in onServiceStateChanged()
196 PhoneConstants.State phoneState = mPhone.getState(); in onRetryTimeout()
197 int serviceState = mPhone.getServiceState().getState(); in onRetryTimeout()
DTelephonyConferenceController.java125 Log.d(this, "recalc - %s %s supportsConf? %s", connection.getState(), connection, in recalculateConferenceable()
129 switch (connection.getState()) { in recalculateConferenceable()
184 Call.State state = radioConnection.getState(); in recalculateConference()
265 switch (conferencedConnection.getState()) { in recalculateConference()
DPstnIncomingCallNotifier.java179 if (call != null && call.getState().isRinging()) { in handleNewRingingConnection()
189 if (call.getState() == Call.State.WAITING) { in handleCdmaCallWaiting()
211 Call.State state = connection.getState(); in handleNewUnknownConnection()
218 if (call != null && call.getState().isAlive()) { in handleNewUnknownConnection()
/packages/apps/InCallUI/src/com/android/incallui/
DCallCardPresenter.java134 startContactInfoSearch(call, true, call.getState() == Call.State.INCOMING); in init()
240 mPrimary.getState() == Call.State.INCOMING); in onStateChange()
257 mSecondary.getState() == Call.State.INCOMING); in onStateChange()
276 callState = mPrimary.getState(); in onStateChange()
330 maybeShowProgressSpinner(mPrimary.getState(), sessionModificationState); in onSessionModificationStateChange()
381 mPrimary.getState(), in updatePrimaryCallState()
514 startContactInfoSearch(call, isPrimary, call.getState() == Call.State.INCOMING); in maybeStartSearch()
807 return Call.State.isDialing(mPrimary.getState()) && mPrimary.getGatewayInfo() != null && in hasOutgoingGatewayCall()
874 return mPrimary != null && mPrimary.getState() == Call.State.ACTIVE; in isPrimaryCallActive()
942 boolean isIncomingOrWaiting = mPrimary.getState() == Call.State.INCOMING || in shouldShowCallSubject()
[all …]
DStatusBarNotifier.java165 final boolean isIncoming = (call.getState() == Call.State.INCOMING || in showNotification()
166 call.getState() == Call.State.CALL_WAITING); in showNotification()
211 final int state = call.getState(); in buildAndSendNotification()
417 if (call.getState() == Call.State.ONHOLD) { in getIconToDisplay()
430 boolean isIncomingOrWaiting = call.getState() == Call.State.INCOMING || in getContentString()
431 call.getState() == Call.State.CALL_WAITING; in getContentString()
454 } else if (call.getState() == Call.State.ONHOLD) { in getContentString()
456 } else if (Call.State.isDialing(call.getState())) { in getContentString()
591 boolean isCallWaiting = (call.getState() == Call.State.CALL_WAITING || in configureFullScreenIntent()
592 (call.getState() == Call.State.INCOMING && in configureFullScreenIntent()
DVideoPauseController.java58 mState = call.getState(); in update()
62 public int getState() { in getState() method in VideoPauseController.CallContext
400 return isVideoCall(callContext) && callContext.getState() == Call.State.ACTIVE; in canVideoPause()
430 return call != null && (call.getState() == Call.State.CALL_WAITING in isIncomingCall()
431 || call.getState() == Call.State.INCOMING); in isIncomingCall()
441 return call != null && Call.State.isDialing(call.getState()); in isDialing()
451 return call != null && call.getState() == Call.State.ONHOLD; in isHolding()
DCallList.java85 Log.d(this, "onCallAdded: callState=" + call.getState()); in onCallAdded()
86 if (call.getState() == Call.State.INCOMING || in onCallAdded()
87 call.getState() == Call.State.CALL_WAITING) { in onCallAdded()
393 if (call.getState() == state) { in getCallWithState()
414 final int state = call.getState(); in clearOnDisconnect()
479 if (call.getState() == Call.State.DISCONNECTED) { in updateCallInMap()
508 Preconditions.checkState(call.getState() == Call.State.DISCONNECTED); in getDelayForDisconnect()
548 final int state = call.getState(); in isCallDead()
DCallUtils.java50 final int state = call.getState(); in isIncomingVideoCall()
55 return CallUtils.isVideoCall(call) && call.getState() == Call.State.ACTIVE; in isActiveVideoCall()
62 final int state = call.getState(); in isOutgoingVideoCall()
73 return isVideoCall(call) && call.getState() == Call.State.ACTIVE; in canVideoPause()
DCall.java306 int oldState = getState(); in update()
308 if (oldState != getState() && getState() == Call.State.DISCONNECTED) { in update()
318 setState(translateState(mTelecommCall.getState())); in updateFromTelecommCall()
450 public int getState() { in getState() method in Call
694 State.toString(getState()), in toString()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallsManager.java756 mForegroundCall.getState() == CallState.DIALING)) { in answerCall()
1016 if (mForegroundCall != null && mForegroundCall.getState() == CallState.ON_HOLD) { in markCallAsRemoved()
1032 if (call.getState() != CallState.DISCONNECTED) { in handleConnectionServiceDeath()
1141 if (call.getParentCall() == null && call.getState() == CallState.ON_HOLD) { in getNumHeldCalls()
1166 if (mForegroundCall != null && mForegroundCall.getState() == currentState) { in getFirstCallWithState()
1180 if (currentState == call.getState()) { in getFirstCallWithState()
1214 setCallState(call, Call.getStateFromConnectionState(parcelableConference.getState()), in createConferenceCall()
1320 int oldState = call.getState(); in setCallState()
1374 if (call.isAlive() || call.getState() == CallState.RINGING) { in updateForegroundCall()
1455 if (call.getParentCall() == null && call.getState() == state) { in getNumCallsWithState()
[all …]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothTestUtils.java24 if (adapter.getState() == BluetoothAdapter.STATE_ON) { in enableBt()
28 assertEquals(BluetoothAdapter.STATE_OFF, adapter.getState()); in enableBt()
32 int state = adapter.getState(); in enableBt()
43 assertEquals(BluetoothAdapter.STATE_TURNING_ON, adapter.getState()); in enableBt()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java236 if (c.getState() == s) { in removeCalls()
249 if (c.getState() == old_state) { in changeCallsState()
259 if (c.getState() == s) { in getCall()
271 if (c.getState() == state) { in callsInState()
283 if (c.getState() == BluetoothHeadsetClientCall.CALL_STATE_ACTIVE) { in updateCallsMultiParty()
300 if (state == c.getState()) { in setCallState()
642 if (cc.getState() == in updateCallHeldIndicator()
646 } else if (cc.getState() == in updateCallHeldIndicator()
668 if (cc.getState() == BluetoothHeadsetClientCall.CALL_STATE_ACTIVE) { in updateCallHeldIndicator()
670 … } else if (cc.getState() == BluetoothHeadsetClientCall.CALL_STATE_HELD) { in updateCallHeldIndicator()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTest.java59 assertEquals(to, mMonitor.getState()); in verifyState()
82 mMonitor.getState()); in testActionStartTransitionsCorrectly()
113 mMonitor.getState()); in testActionTransitionsEndToEndWithRequests()
178 mMonitor.getState()); in testActionTransitionsEndToEndFailsRequests()
233 mMonitor.getState()); in testActionTransitionsEndToEndNoRequests()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStatePanelTrack.java116 mAdapter.insert(new State(mCurrentSelectedView.getState()), pos); in addDuplicate()
146 if (view.getState() == state) { in findChildWithState()
161 if (!mAdapter.contains(child.getState())) { in fillContent()
260 FilterRepresentation representation = mCurrentView.getState().getFilterRepresentation(); in onTouchEvent()
272 … FilterRepresentation representation = mCurrentView.getState().getFilterRepresentation(); in onTouchEvent()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java218 int getState() { in getState() method in AdapterProperties
604 Log.d(TAG, "State = " + getState() ); in onBluetoothReady()
609 if (getState() == BluetoothAdapter.STATE_TURNING_ON && in onBluetoothReady()
631 if (getState() == BluetoothAdapter.STATE_BLE_TURNING_OFF) { in onBleDisable()
645 if (getState() == BluetoothAdapter.STATE_TURNING_OFF) { in onBluetoothDisable()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java163 int state = mAdapter.getState(); in initSocket()
477 public int getState() { in getState() method in SapService
540 if (getState() == BluetoothSap.STATE_CONNECTED && getRemoteDevice().equals(device)) { in getConnectionState()
790 public int getState() { in getState() method in SapService.SapBinder
794 return getService().getState(); in getState()
809 return (service.getState() == BluetoothSap.STATE_CONNECTED in isConnected()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java424 public int getState() { in getState() method in BluetoothMapService
514 if (getState() == BluetoothMap.STATE_CONNECTED && getRemoteDevice().equals(device)) { in getConnectionState()
613 if (DEBUG) Log.d(TAG,"updateMasInstancesHandler() state = " + getState()); in updateMasInstancesHandler()
616 if(getState() == BluetoothMap.STATE_DISCONNECTED) { in updateMasInstancesHandler()
1088 public int getState() { in getState() method in BluetoothMapService.BluetoothMapBinder
1092 return getService().getState(); in getState()
1107 return service.getState() == BluetoothMap.STATE_CONNECTED in isConnected()

12345