/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | TelecomSystemTest.java | 500 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/ |
D | PhoneUtils.java | 162 (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 …]
|
D | CallNotifier.java | 276 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 …]
|
D | EmergencyCallHelper.java | 204 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/ |
D | SipConnection.java | 135 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/ |
D | TelephonyConnection.java | 92 … 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 …]
|
D | TelephonyConnectionService.java | 184 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()
|
D | ImsConferenceController.java | 156 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()
|
D | EmergencyCallHelper.java | 162 if (isOkToCall(state.getState(), mPhone.getState())) { in onServiceStateChanged() 196 PhoneConstants.State phoneState = mPhone.getState(); in onRetryTimeout() 197 int serviceState = mPhone.getServiceState().getState(); in onRetryTimeout()
|
D | TelephonyConferenceController.java | 125 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()
|
D | PstnIncomingCallNotifier.java | 179 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/ |
D | CallCardPresenter.java | 134 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 …]
|
D | StatusBarNotifier.java | 165 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()
|
D | VideoPauseController.java | 58 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()
|
D | CallList.java | 85 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()
|
D | CallUtils.java | 50 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()
|
D | Call.java | 306 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/ |
D | CallsManager.java | 756 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/ |
D | BluetoothTestUtils.java | 24 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/ |
D | HeadsetClientStateMachine.java | 236 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/ |
D | ActionTest.java | 59 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/ |
D | StatePanelTrack.java | 116 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/ |
D | AdapterProperties.java | 218 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/ |
D | SapService.java | 163 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/ |
D | BluetoothMapService.java | 424 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()
|