Searched refs:Call (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipCallBase.java19 import com.android.internal.telephony.Call;
24 abstract class SipCallBase extends Call {
H A DSipPhone.java36 import com.android.internal.telephony.Call;
153 if ((mRingingCall.getState() == Call.State.INCOMING) ||
154 (mRingingCall.getState() == Call.State.WAITING)) {
255 public void conference(Call that) throws CallStateException {
372 public Call getForegroundCall() {
377 public Call getBackgroundCall() {
382 public Call getRingingCall() {
408 private static Call.State getCallStateFrom(SipAudioCall sipAudioCall) {
409 if (sipAudioCall.isOnHold()) return Call.State.HOLDING;
412 case SipSession.State.READY_TO_CALL: return Call
[all...]
H A DSipConnectionBase.java19 import com.android.internal.telephony.Call;
61 protected void setState(Call.State state) {
118 if (getState() != Call.State.HOLDING) {
H A DSipPhoneBase.java34 import com.android.internal.telephony.Call;
63 public abstract Call getForegroundCall();
66 public abstract Call getBackgroundCall();
69 public abstract Call getRingingCall();
173 * {@link com.android.internal.telephony.Call.State}. Use this when changes
230 Call.State foregroundCallState = getForegroundCall().getState();
231 Call.State backgroundCallState = getBackgroundCall().getState();
232 Call.State ringingCallState = getRingingCall().getState();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
H A DImsPhoneCallTest.java23 import com.android.internal.telephony.Call;
69 assertEquals(Call.State.IDLE, mImsCallUT.getState());
72 mImsCallUT.attach(mConnection1, Call.State.ACTIVE);
76 assertEquals(Call.State.ACTIVE, mImsCallUT.getState());
83 assertEquals(Call.State.IDLE, mImsCallUT.getState());
90 mImsCallUT.attach(mConnection1, Call.State.ACTIVE);
91 mImsCallUT.attach(mConnection2, Call.State.ACTIVE);
94 assertEquals(Call.State.ACTIVE, mImsCallUT.getState());
96 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState();
98 assertEquals(Call
[all...]
H A DImsPhoneConnectionTest.java30 import com.android.internal.telephony.Call;
122 doReturn(Call.State.DIALING).when(mForeGroundCall).getState();
123 assertTrue(mConnectionUT.update(mImsCall, Call.State.ACTIVE));
127 eq(Call.State.ACTIVE));
135 doReturn(Call.State.HOLDING).when(mBackGroundCall).getState();
136 assertTrue(mConnectionUT.update(mImsCall, Call.State.ACTIVE));
140 eq(Call.State.ACTIVE));
150 assertFalse(mConnectionUT.update(mImsCall, Call.State.ACTIVE));
152 eq(Call.State.ACTIVE));
193 doReturn(Call
[all...]
H A DImsPhoneCallTrackerTest.java58 import com.android.internal.telephony.Call;
94 mCTUT.addReasonCodeRemapping(501, "Call answered elsewhere.",
96 mCTUT.addReasonCodeRemapping(510, "Call answered elsewhere.",
274 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState());
299 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState());
308 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState());
316 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState());
331 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState());
345 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState());
347 assertEquals(Call
[all...]
H A DImsExternalCallTrackerTest.java21 import com.android.internal.telephony.Call;
106 assertEquals(connection.getState(), Call.State.DISCONNECTED);
H A DImsPhoneTest.java57 import com.android.internal.telephony.Call;
118 doReturn(Call.State.IDLE).when(mForegroundCall).getState();
119 doReturn(Call.State.IDLE).when(mBackgroundCall).getState();
120 doReturn(Call.State.IDLE).when(mRingingCall).getState();
152 doReturn(Call.State.INCOMING).when(mRingingCall).getState();
162 doReturn(Call.State.IDLE).when(mRingingCall).getState();
163 doReturn(Call.State.ACTIVE).when(mBackgroundCall).getState();
171 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState();
189 doReturn(Call.State.IDLE).when(mForegroundCall).getState();
190 doReturn(Call
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmCdmaCallTest.java53 assertEquals(Call.State.IDLE, mCallUnderTest.getState());
61 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState());
68 assertEquals(Call.State.IDLE, mCallUnderTest.getState());
75 assertEquals(Call.State.IDLE, mCallUnderTest.getState());
114 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState());
117 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState();
119 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState());
121 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState();
123 assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState());
H A DDefaultPhoneNotifierTest.java194 doReturn(Call.State.IDLE).when(mForeGroundCall).getState();
195 doReturn(Call.State.IDLE).when(mBackGroundCall).getState();
196 doReturn(Call.State.IDLE).when(mRingingCall).getState();
219 doReturn(Call.State.ACTIVE).when(mForeGroundCall).getState();
226 doReturn(Call.State.HOLDING).when(mBackGroundCall).getState();
233 doReturn(Call.State.ALERTING).when(mRingingCall).getState();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A 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
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DPhone.java62 * ongoing {@code Call}s.
70 * Called when a {@code Call} has been added to this in-call session. The in-call user
71 * experience should add necessary state listeners to the specified {@code Call} and
73 * and nature of this {@code Call}. Subsequent invocations of {@link #getCalls()} will
74 * include this {@code Call}.
77 * @param call A newly added {@code Call}.
79 public void onCallAdded(Phone phone, Call call) { }
82 * Called when a {@code Call} has been removed from this in-call session. The in-call user
83 * experience should remove any state listeners from the specified {@code Call} and
84 * immediately stop displaying any information about this {@code Call}
[all...]
H A DCall.java45 public final class Call { class
47 * The state of a {@code Call} when newly created.
52 * The state of an outgoing {@code Call} when dialing the remote number, but not yet connected.
57 * The state of an incoming {@code Call} when ringing locally, but not yet connected.
62 * The state of a {@code Call} when in a holding state.
67 * The state of a {@code Call} when actively supporting conversation.
72 * The state of a {@code Call} when no further voice or other communication is being
73 * transmitted, the remote side has been or will inevitably be informed that the {@code Call}
75 * associated with this {@code Call}.
80 * The state of an outgoing {@code Call} whe
1584 Call(Phone phone, String telecomCallId, InCallAdapter inCallAdapter, String callingPackage, method in class:Call
1595 Call(Phone phone, String telecomCallId, InCallAdapter inCallAdapter, int state, method in class:Call
[all...]
H A DCallScreeningService.java67 Call.Details.createFromParcelableCall((ParcelableCall) args.arg2));
211 * {@link CallScreeningService#respondToCall(Call.Details, CallScreeningService.CallResponse)}
214 * @param callDetails Information about a new incoming call, see {@link Call.Details}.
216 public abstract void onScreenCall(Call.Details callDetails);
225 public final void respondToCall(Call.Details callDetails, CallResponse response) {
H A DInCallService.java247 public void onCallAdded(Phone phone, Call call) {
253 public void onCallRemoved(Phone phone, Call call) {
315 * Obtains the current list of {@code Call}s to be displayed by this in-call service.
317 * @return A list of the relevant {@code Call}s.
319 public final List<Call> getCalls() {
320 return mPhone == null ? Collections.<Call>emptyList() : mPhone.getCalls();
431 * ongoing {@code Call}s.
439 * Called when a {@code Call} has been added to this in-call session. The in-call user
440 * experience should add necessary state listeners to the specified {@code Call} and
442 * and nature of this {@code Call}
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsExternalCall.java19 import com.android.internal.telephony.Call;
30 public class ImsExternalCall extends Call {
H A DImsExternalConnection.java20 import com.android.internal.telephony.Call;
107 public Call getCall() {
256 if (mCall.getState() == Call.State.ACTIVE) {
258 } else if (mCall.getState() == Call.State.DISCONNECTED) {
H A DImsExternalCallTracker.java23 import com.android.internal.telephony.Call;
348 Call.State existingState = connection.getState();
349 Call.State newState = state.getCallState() == ImsExternalCallState.CALL_STATE_CONFIRMED ?
350 Call.State.ACTIVE : Call.State.DISCONNECTED;
353 if (newState == Call.State.ACTIVE) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCallManager.java52 * 1. Call control and operation, such as dial() and hangup()
96 private final ArrayList<Call> mRingingCalls;
99 private final ArrayList<Call> mBackgroundCalls;
102 private final ArrayList<Call> mForegroundCalls;
191 mRingingCalls = new ArrayList<Call>();
192 mBackgroundCalls = new ArrayList<Call>();
193 mForegroundCalls = new ArrayList<Call>();
231 * If the Call Manager has an active call and call waiting occurs,
250 * If the Call Manager has an active call and call waiting occurs,
510 if (getActiveFgCallState() == Call
[all...]
H A DConnection.java195 public Call.State mPreHandoverState = Call.State.IDLE;
274 * @return Call that owns this Connection, or null if none
276 public abstract Call getCall();
386 * a Call.
388 * Returns getCall().getState() or Call.State.IDLE if not
391 public Call.State getState() {
392 Call c;
397 return Call.State.IDLE;
407 public Call
[all...]
H A DCallTracker.java109 if (hoConn.getStateBeforeHandover() == Call.stateFromDCState(dc.state)) {
117 protected void notifySrvccState(Call.SrvccState state, ArrayList<Connection> c) {
118 if (state == Call.SrvccState.STARTED && c != null) {
121 } else if (state != Call.SrvccState.COMPLETED) {
H A DDefaultPhoneNotifier.java53 Call ringingCall = sender.getRingingCall();
249 Call ringingCall = sender.getRingingCall();
250 Call foregroundCall = sender.getForegroundCall();
251 Call backgroundCall = sender.getBackgroundCall();
342 * Convert the {@link Call.State} enum into the PreciseCallState.PRECISE_CALL_STATE_* constants
345 public static int convertPreciseCallState(Call.State state) {
H A DGsmCdmaCall.java24 public class GsmCdmaCall extends Call {
35 /************************** Overridden from Call *************************/
140 * Called when this Call is being hung up locally (eg, user pressed "end")
/frameworks/base/telephony/java/com/android/ims/
H A DImsConferenceState.java27 import android.telecom.Call;
168 return Call.STATE_ACTIVE;

Completed in 1327 milliseconds

12