Home
last modified time | relevance | path

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

/cts/tests/tests/telecom/src/android/telecom/cts/
DCallTest.java19 import static android.telecom.Call.Details.*;
21 import android.telecom.Call;
27 assertTrue(Call.Details.can(CAPABILITY_HOLD, CAPABILITY_HOLD)); in testCapabilitiesCan()
28 assertTrue(Call.Details.can(CAPABILITY_MUTE, CAPABILITY_MUTE)); in testCapabilitiesCan()
29 assertTrue(Call.Details.can(CAPABILITY_HOLD | CAPABILITY_DISCONNECT_FROM_CONFERENCE, in testCapabilitiesCan()
31 assertTrue(Call.Details.can(CAPABILITY_MERGE_CONFERENCE in testCapabilitiesCan()
35 assertFalse(Call.Details.can(CAPABILITY_MUTE, CAPABILITY_HOLD)); in testCapabilitiesCan()
36 assertFalse(Call.Details.can(CAPABILITY_MERGE_CONFERENCE in testCapabilitiesCan()
43 Call.Details.capabilitiesToString(CAPABILITY_HOLD)); in testCapabilitiesToString()
45 Call.Details.capabilitiesToString(CAPABILITY_SUPPORT_HOLD)); in testCapabilitiesToString()
[all …]
DMockInCallService.java22 import android.telecom.Call;
35 private ArrayList<Call> mCalls = new ArrayList<>();
36 private ArrayList<Call> mConferenceCalls = new ArrayList<>();
38 private Map<Call, MockVideoCallCallback> mVideoCallCallbacks =
39 new ArrayMap<Call, MockVideoCallCallback>();
48 public void onCallAdded(Call call, int numCalls) {}; in onCallAdded()
49 public void onCallRemoved(Call call, int numCalls) {}; in onCallRemoved()
50 public void onCallStateChanged(Call call, int state) {}; in onCallStateChanged()
51 public void onParentChanged(Call call, Call parent) {}; in onParentChanged()
52 public void onChildrenChanged(Call call, List<Call> children) {}; in onChildrenChanged()
[all …]
DExtendedInCallServiceTest.java23 import android.telecom.Call;
70 final Call call = inCallService.getLastCall(); in testMuteAndUnmutePhone()
72 assertCallState(call, Call.STATE_DIALING); in testMuteAndUnmutePhone()
97 final Call call = inCallService.getLastCall(); in testSwitchAudioRoutes()
98 assertCallState(call, Call.STATE_DIALING); in testSwitchAudioRoutes()
136 final Call call = inCallService.getLastCall(); in testPlayAndStopDtmfTones()
137 assertCallState(call, Call.STATE_DIALING); in testPlayAndStopDtmfTones()
169 final Call call = inCallService.getLastCall(); in testHoldAndUnholdCall()
171 assertCallState(call, Call.STATE_DIALING); in testHoldAndUnholdCall()
175 assertCallState(call, Call.STATE_ACTIVE); in testHoldAndUnholdCall()
[all …]
DConferenceTest.java22 import android.telecom.Call;
45 private Call mCall1, mCall2;
66 final Call conf = mInCallService.getLastConferenceCall(); in testConferenceCreate()
67 assertCallState(conf, Call.STATE_ACTIVE); in testConferenceCreate()
86 final Call conf = mInCallService.getLastConferenceCall(); in testConferenceSplit()
87 assertCallState(conf, Call.STATE_ACTIVE); in testConferenceSplit()
106 final Call conf = mInCallService.getLastConferenceCall(); in testConferenceHoldAndUnhold()
107 assertCallState(conf, Call.STATE_ACTIVE); in testConferenceHoldAndUnhold()
110 assertCallState(conf, Call.STATE_HOLDING); in testConferenceHoldAndUnhold()
111 assertCallState(mCall1, Call.STATE_HOLDING); in testConferenceHoldAndUnhold()
[all …]
DWiredHeadsetTest.java19 import android.telecom.Call;
46 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallShortPress_acceptsCall()
47 assertCallState(call, Call.STATE_RINGING); in testIncomingCallShortPress_acceptsCall()
51 assertCallState(call, Call.STATE_ACTIVE); in testIncomingCallShortPress_acceptsCall()
63 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallLongPress_rejectsCall()
64 assertCallState(call, Call.STATE_RINGING); in testIncomingCallLongPress_rejectsCall()
68 assertCallState(call, Call.STATE_DISCONNECTED); in testIncomingCallLongPress_rejectsCall()
102 final Call call = mInCallCallbacks.getService().getLastCall(); in testInCallLongPress_hangupCall()
103 assertCallState(call, Call.STATE_DIALING); in testInCallLongPress_hangupCall()
106 assertCallState(call, Call.STATE_ACTIVE); in testInCallLongPress_hangupCall()
[all …]
DCallDetailsTest.java27 import android.telecom.Call;
53 Call.Details.CAPABILITY_HOLD | Call.Details.CAPABILITY_MUTE;
55 Call.Details.PROPERTY_HIGH_DEF_AUDIO | Call.Details.PROPERTY_WIFI;
63 private Call mCall;
105 assertCallState(mCall, Call.STATE_DIALING); in setUp()
131 assertTrue(mCall.getDetails().can(Call.Details.CAPABILITY_HOLD)); in testCallCapabilities()
132 assertTrue(mCall.getDetails().can(Call.Details.CAPABILITY_MUTE)); in testCallCapabilities()
133 assertFalse(mCall.getDetails().can(Call.Details.CAPABILITY_MANAGE_CONFERENCE)); in testCallCapabilities()
134 assertFalse(mCall.getDetails().can(Call.Details.CAPABILITY_RESPOND_VIA_TEXT)); in testCallCapabilities()
DVideoCallTest.java20 import android.telecom.Call;
67 final Call call = inCallService.getLastCall(); in testMakeTwoWayVideoCall()
69 assertCallState(call, Call.STATE_DIALING); in testMakeTwoWayVideoCall()
71 assertCallState(call, Call.STATE_ACTIVE); in testMakeTwoWayVideoCall()
89 final Call call = inCallService.getLastCall(); in testMakeOneWayVideoCall()
107 final Call call = inCallService.getLastCall(); in testUpgradeToVideo()
131 final Call call = inCallService.getLastCall(); in testReceiveSessionModifyRequest()
160 final Call call = inCallService.getLastCall(); in testSendSessionModifyResponse()
189 final Call call = inCallService.getLastCall(); in testVideoCallDelayProvider()
221 final Call call = inCallService.getLastCall(); in testChangeCamera()
[all …]
DRemoteConferenceTest.java24 import android.telecom.Call;
57 Call mCall1, mCall2;
74 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceCreate()
75 assertCallState(confCall, Call.STATE_ACTIVE); in testRemoteConferenceCreate()
97 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceSplit()
98 assertCallState(confCall, Call.STATE_ACTIVE); in testRemoteConferenceSplit()
119 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceHoldAndUnhold()
120 assertCallState(confCall, Call.STATE_ACTIVE); in testRemoteConferenceHoldAndUnhold()
123 assertCallState(confCall, Call.STATE_HOLDING); in testRemoteConferenceHoldAndUnhold()
124 assertCallState(mCall1, Call.STATE_HOLDING); in testRemoteConferenceHoldAndUnhold()
[all …]
DBaseTelecomTestWithMockServices.java32 import android.telecom.Call;
167 public void onCallAdded(Call call, int numCalls) { in setupCallbacks()
172 public void onCallRemoved(Call call, int numCalls) { in setupCallbacks()
176 public void onParentChanged(Call call, Call parent) { in setupCallbacks()
181 public void onChildrenChanged(Call call, List<Call> children) { in setupCallbacks()
186 public void onConferenceableCallsChanged(Call call, List<Call> conferenceableCalls) { in setupCallbacks()
191 public void onDetailsChanged(Call call, Call.Details details) { in setupCallbacks()
195 public void onCallDestroyed(Call call) { in setupCallbacks()
199 public void onCallStateChanged(Call call, int newState) { in setupCallbacks()
212 public void onPostDialWait(Call call, String remainingPostDialSequence) { in setupCallbacks()
[all …]
DConnectionServiceTest.java21 import android.telecom.Call;
57 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection()
58 assertCallState(call, Call.STATE_HOLDING); in testAddExistingConnection()
76 assertCallState(mInCallCallbacks.getService().getLastCall(), Call.STATE_ACTIVE); in testGetAllConnections()
DMockVideoCallCallback.java19 import android.telecom.Call;
28 private Call mCall;
37 public MockVideoCallCallback(Call call) { in MockVideoCallCallback()
DRemoteConnectionTest.java27 import android.telecom.Call;
62 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionOutgoingCall()
63 assertCallState(call, Call.STATE_DIALING); in testRemoteConnectionOutgoingCall()
70 assertCallState(call, Call.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
76 assertCallState(call, Call.STATE_HOLDING); in testRemoteConnectionOutgoingCall()
82 assertCallState(call, Call.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
88 assertCallState(call, Call.STATE_DISCONNECTED); in testRemoteConnectionOutgoingCall()
99 final Call call = mInCallCallbacks.getService().getLastCall(); in testRemoteConnectionIncomingCallAccept()
100 assertCallState(call, Call.STATE_RINGING); in testRemoteConnectionIncomingCallAccept()
109 assertCallState(call, Call.STATE_ACTIVE); in testRemoteConnectionIncomingCallAccept()
[all …]
DBasicInCallServiceTest.java26 import android.telecom.Call;
92 public void onCallAdded(Call call, int numCalls) { in createCallbacks()
/cts/tests/tests/calllog/src/android/calllog/cts/
DCallLogBackupTest.java80 class Call { class in CallLogBackupTest
149 private Call verifyCall() { in verifyCall()
150 List<Call> calls = getCalls(); in verifyCall()
153 Call call = calls.get(0); in verifyCall()
231 private List<Call> getCalls() { in getCalls()
232 List<Call> calls = new LinkedList<>(); in getCalls()
239 Call call = new Call(); in getCalls()