Home
last modified time | relevance | path

Searched refs:Call (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTest.java33 import com.android.internal.telephony.Call;
75 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach()
78 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testAttachDetach()
82 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testAttachDetach()
89 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach()
96 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testConnectionDisconnected()
97 mImsCallUT.attach(mConnection2, Call.State.ACTIVE); in testConnectionDisconnected()
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()
[all …]
DImsPhoneConnectionTest.java48 import com.android.internal.telephony.Call;
144 doReturn(Call.State.DIALING).when(mForeGroundCall).getState(); in testImsUpdateStateForeGround()
145 assertTrue(mConnectionUT.update(mImsCall, Call.State.ACTIVE)); in testImsUpdateStateForeGround()
149 eq(Call.State.ACTIVE)); in testImsUpdateStateForeGround()
157 doReturn(Call.State.HOLDING).when(mBackGroundCall).getState(); in testImsUpdateStateBackGround()
158 assertFalse(mConnectionUT.update(mImsCall, Call.State.ACTIVE)); in testImsUpdateStateBackGround()
162 eq(Call.State.ACTIVE)); in testImsUpdateStateBackGround()
172 assertFalse(mConnectionUT.update(mImsCall, Call.State.ACTIVE)); in testImsUpdateStatePendingHold()
174 eq(Call.State.ACTIVE)); in testImsUpdateStatePendingHold()
216 doReturn(Call.State.DIALING).when(mForeGroundCall).getState(); in testPostDialWait()
[all …]
DImsPhoneCallTrackerTest.java86 import com.android.internal.telephony.Call;
369 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAccept()
461 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp()
470 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp()
478 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold()
492 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold()
506 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold()
508 assertEquals(Call.State.HOLDING, mCTUT.mBackgroundCall.getState()); in testImsMTCallAcceptHold()
583 assertEquals(Call.State.ALERTING, mCTUT.mForegroundCall.getState()); in testImsMOCallDial()
587 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); in startOutgoingCall()
[all …]
DImsPhoneTest.java71 import com.android.internal.telephony.Call;
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()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DPhone.java82 public void onCallAdded(Phone phone, Call call) { } in onCallAdded()
93 public void onCallRemoved(Phone phone, Call call) { } in onCallRemoved()
118 private final Map<String, Call> mCallByTelecomCallId = new ArrayMap<>();
122 private final List<Call> mCalls = new CopyOnWriteArrayList<>();
125 private final List<Call> mUnmodifiableCalls = Collections.unmodifiableList(mCalls);
150 && parcelableCall.getState() == Call.STATE_AUDIO_PROCESSING) { in internalAddCall()
155 Call call = mCallByTelecomCallId.get(parcelableCall.getId()); in internalAddCall()
157 call = new Call(this, parcelableCall.getId(), mInCallAdapter, in internalAddCall()
171 final void internalRemoveCall(Call call) { in internalRemoveCall()
184 && parcelableCall.getState() == Call.STATE_AUDIO_PROCESSING) { in internalUpdateCall()
[all …]
DCall.java50 public final class Call { class
1212 public void onStateChanged(Call call, int state) {} in onStateChanged()
1220 public void onParentChanged(Call call, Call parent) {} in onParentChanged()
1228 public void onChildrenChanged(Call call, List<Call> children) {} in onChildrenChanged()
1236 public void onDetailsChanged(Call call, Details details) {} in onDetailsChanged()
1246 public void onCannedTextResponsesLoaded(Call call, List<String> cannedTextResponses) {} in onCannedTextResponsesLoaded()
1257 public void onPostDialWait(Call call, String remainingPostDialSequence) {} in onPostDialWait()
1265 public void onVideoCallChanged(Call call, InCallService.VideoCall videoCall) {} in onVideoCallChanged()
1276 public void onCallDestroyed(Call call) {} in onCallDestroyed()
1286 public void onConferenceableCallsChanged(Call call, List<Call> conferenceableCalls) {} in onConferenceableCallsChanged()
[all …]
DCallScreeningService.java111 Call.Details callDetails = Call.Details
114 if (callDetails.getCallDirection() == Call.Details.DIRECTION_OUTGOING) {
356 public abstract void onScreenCall(@NonNull Call.Details callDetails); in onScreenCall()
375 public final void respondToCall(@NonNull Call.Details callDetails, in respondToCall()
DInCallService.java418 public void onCallAdded(Phone phone, Call call) {
424 public void onCallRemoved(Phone phone, Call call) {
490 public final List<Call> getCalls() { in getCalls()
491 return mPhone == null ? Collections.<Call>emptyList() : mPhone.getCalls(); in getCalls()
633 public void onCallAdded(Call call) { in onCallAdded()
644 public void onCallRemoved(Call call) { in onCallRemoved()
673 public void onConnectionEvent(Call call, String event, Bundle extras) { in onConnectionEvent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java.broken28 import com.android.internal.telephony.Call;
149 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
150 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
151 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState());
169 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState());
180 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
181 assertEquals(Call.State.DIALING,
183 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState());
203 while (mGSMPhone.getForegroundCall().getState() != Call.State.ALERTING);
212 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCallManager.java95 private final ArrayList<Call> mRingingCalls;
99 private final ArrayList<Call> mBackgroundCalls;
103 private final ArrayList<Call> mForegroundCalls;
193 mRingingCalls = new ArrayList<Call>(); in CallManager()
194 mBackgroundCalls = new ArrayList<Call>(); in CallManager()
195 mForegroundCalls = new ArrayList<Call>(); in CallManager()
662 public void rejectCall(Call ringingCall) throws CallStateException { in rejectCall()
682 public boolean canConference(Call heldCall) { in canConference()
705 public boolean canConference(Call heldCall, int subId) { in canConference()
730 public void conference(Call heldCall) throws CallStateException { in conference()
[all …]
DCall.java30 public abstract class Call { class
34 public Call() { in Call() method in Call
117 public void copyConnectionFrom(Call other) { in copyConnectionFrom()
138 public abstract void hangup(@android.telecom.Call.RejectReason int rejectReason) in hangup()
DCallTracker.java119 if (hoConn.getStateBeforeHandover() == Call.stateFromDCState(dc.state)) { in getHoConnection()
127 protected void notifySrvccState(Call.SrvccState state, ArrayList<Connection> c) { in notifySrvccState()
128 if (state == Call.SrvccState.STARTED && c != null) { in notifySrvccState()
131 } else if (state != Call.SrvccState.COMPLETED) { in notifySrvccState()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
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()
DDefaultPhoneNotifierTest.java190 doReturn(Call.State.IDLE).when(mForeGroundCall).getState(); in testNotifyPreciseCallState()
191 doReturn(Call.State.IDLE).when(mBackGroundCall).getState(); in testNotifyPreciseCallState()
192 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testNotifyPreciseCallState()
217 doReturn(Call.State.ACTIVE).when(mForeGroundCall).getState(); in testNotifyPreciseCallState()
226 doReturn(Call.State.HOLDING).when(mBackGroundCall).getState(); in testNotifyPreciseCallState()
235 doReturn(Call.State.ALERTING).when(mRingingCall).getState(); in testNotifyPreciseCallState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java36 import com.android.internal.telephony.Call;
155 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall()
156 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall()
263 public void conference(Call that) throws CallStateException { in conference()
380 public Call getForegroundCall() { in getForegroundCall()
385 public Call getBackgroundCall() { in getBackgroundCall()
390 public Call getRingingCall() { in getRingingCall()
416 private static Call.State getCallStateFrom(SipAudioCall sipAudioCall) { in getCallStateFrom()
417 if (sipAudioCall.isOnHold()) return Call.State.HOLDING; in getCallStateFrom()
420 case SipSession.State.READY_TO_CALL: return Call.State.IDLE; in getCallStateFrom()
[all …]
DSipCallBase.java19 import com.android.internal.telephony.Call;
21 abstract class SipCallBase extends Call {
DSipPhoneBase.java31 import com.android.internal.telephony.Call;
57 public abstract Call getForegroundCall(); in getForegroundCall()
60 public abstract Call getBackgroundCall(); in getBackgroundCall()
63 public abstract Call getRingingCall(); in getRingingCall()
206 Call.State foregroundCallState = getForegroundCall().getState(); in isInCall()
207 Call.State backgroundCallState = getBackgroundCall().getState(); in isInCall()
208 Call.State ringingCallState = getRingingCall().getState(); in isInCall()
DSipConnectionBase.java22 import com.android.internal.telephony.Call;
60 protected void setState(Call.State state) { in setState()
117 if (getState() != Call.State.HOLDING) { in getHoldDurationMillis()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DVoiceCallSessionStatsTest.java50 import com.android.internal.telephony.Call;
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()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsExternalCall.java22 import com.android.internal.telephony.Call;
30 public class ImsExternalCall extends Call {
56 public void hangup(@android.telecom.Call.RejectReason int rejectReason) in hangup()
DImsExternalConnection.java26 import com.android.internal.telephony.Call;
105 public Call getCall() { in getCall()
273 if (mCall.getState() == Call.State.ACTIVE) { in toString()
275 } else if (mCall.getState() == Call.State.DISCONNECTED) { in toString()
DImsExternalCallTracker.java32 import com.android.internal.telephony.Call;
347 Call.State existingState = connection.getState(); in updateExistingConnection()
348 Call.State newState = state.getCallState() == ImsExternalCallState.CALL_STATE_CONFIRMED ? in updateExistingConnection()
349 Call.State.ACTIVE : Call.State.DISCONNECTED; in updateExistingConnection()
352 if (newState == Call.State.ACTIVE) { in updateExistingConnection()
/frameworks/base/core/proto/android/telephony/
Denums.proto24 /** Call bearer is unknown or invalid */
27 /** Call bearer is legacy CS */
30 /** Call bearer is IMS */
35 /** Call direction: unknown or invalid */
38 /** Call direction: mobile originated (outgoing for this device) */
41 /** Call direction: mobile terminated (incoming for this device) */
45 // Call setup duration buckets.
/frameworks/opt/vcard/tests/res/raw/
Dv21_invalid_comment_line.vcf4 N:;Conference Call
5 FN:Conference Call
/frameworks/hardware/interfaces/cameraservice/common/2.0/
Dtypes.hal25 * Call succeeded.
30 * Call failed due to inadequete permissions.
35 * Call tried added something that already existed, eg: add a duplicate
41 * Call received illegal argument.

1234