/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/ |
D | CrossDeviceCall.java | 26 import android.telecom.Call; 47 private final Call mCall; 56 private int mStatus = android.companion.Telecom.Call.UNKNOWN_STATUS; 65 public CrossDeviceCall(Context context, @NonNull Call call, in CrossDeviceCall() 70 CrossDeviceCall(Context context, Call.Details callDetails, in CrossDeviceCall() 75 private CrossDeviceCall(Context context, @Nullable Call call, in CrossDeviceCall() 76 Call.Details callDetails, CallAudioState callAudioState) { in CrossDeviceCall() 95 mIsEnterprise = (callDetails.getCallProperties() & Call.Details.PROPERTY_ENTERPRISE_CALL) in CrossDeviceCall() 96 == Call.Details.PROPERTY_ENTERPRISE_CALL; in CrossDeviceCall() 128 if (mStatus == android.companion.Telecom.Call.RINGING) { in updateSilencedIfRinging() [all …]
|
D | CallMetadataSyncConnectionService.java | 22 import android.telecom.Call; 62 for (CallMetadataSyncData.Call call : callMetadataSyncData.getCalls()) { 130 final CallMetadataSyncData.Call call = CallMetadataSyncData.Call.fromBundle( in onCreateIncomingConnection() 132 call.setDirection(android.companion.Telecom.Call.INCOMING); in onCreateIncomingConnection() 168 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in onCreateOutgoingConnection() 171 call.setStatus(android.companion.Telecom.Call.UNKNOWN_STATUS); in onCreateOutgoingConnection() 181 call.setDirection(android.companion.Telecom.Call.OUTGOING); in onCreateOutgoingConnection() 283 private final CallMetadataSyncData.Call mCall; 288 int associationId, CallMetadataSyncData.Call call, in CallMetadataSyncConnection() 311 if (status == android.companion.Telecom.Call.RINGING_SILENCED) { in initialize() [all …]
|
D | CallMetadataSyncData.java | 34 final Map<String, CallMetadataSyncData.Call> mCalls = new HashMap<>(); 39 public void addCall(CallMetadataSyncData.Call call) { in addCall() 47 public Collection<CallMetadataSyncData.Call> getCalls() { in getCalls() 173 public static class Call { class in CallMetadataSyncData 199 public static Call fromBundle(Bundle bundle) { in fromBundle() 200 final Call call = new Call(); in fromBundle() 299 if (other instanceof CallMetadataSyncData.Call) { in equals() 300 return mId != null && mId.equals(((Call) other).getId()); in equals()
|
D | CrossDeviceSyncController.java | 590 CallMetadataSyncData.Call processCallDataFromSync(ProtoInputStream pis) throws IOException { in processCallDataFromSync() 591 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in processCallDataFromSync() 594 case (int) Telecom.Call.ID: in processCallDataFromSync() 595 call.setId(pis.readString(Telecom.Call.ID)); in processCallDataFromSync() 597 case (int) Telecom.Call.ORIGIN: in processCallDataFromSync() 598 final long originToken = pis.start(Telecom.Call.ORIGIN); in processCallDataFromSync() 601 case (int) Telecom.Call.Origin.APP_ICON: in processCallDataFromSync() 602 call.setAppIcon(pis.readBytes(Telecom.Call.Origin.APP_ICON)); in processCallDataFromSync() 604 case (int) Telecom.Call.Origin.CALLER_ID: in processCallDataFromSync() 605 call.setCallerId(pis.readString(Telecom.Call.Origin.CALLER_ID)); in processCallDataFromSync() [all …]
|
D | CallMetadataSyncInCallService.java | 21 import android.telecom.Call; 48 final Map<Call, CrossDeviceCall> mCurrentCalls = new HashMap<>(); 50 final Call.Callback mTelecomCallback = new Call.Callback() { 52 public void onDetailsChanged(Call call, Call.Details details) { 192 public void onCallAdded(Call call) { in onCallAdded() 203 public void onCallRemoved(Call call) { in onCallRemoved()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/datatransfer/contextsync/ |
D | CrossDeviceCallTest.java | 23 import android.telecom.Call; 43 private final Call.Details mUninitializedCallDetails = createCallDetails( 52 .isEqualTo(android.companion.Telecom.Call.UNKNOWN_STATUS); in updateCallDetails_uninitialized() 61 crossDeviceCall.updateCallDetails(createCallDetails(Call.STATE_RINGING, in updateCallDetails_ringing() 62 Call.Details.CAPABILITY_HOLD | Call.Details.CAPABILITY_MUTE)); in updateCallDetails_ringing() 64 .isEqualTo(android.companion.Telecom.Call.RINGING); in updateCallDetails_ringing() 76 crossDeviceCall.updateCallDetails(createCallDetails(Call.STATE_ACTIVE, in updateCallDetails_ongoing() 77 Call.Details.CAPABILITY_HOLD | Call.Details.CAPABILITY_MUTE)); in updateCallDetails_ongoing() 79 .isEqualTo(android.companion.Telecom.Call.ONGOING); in updateCallDetails_ongoing() 91 crossDeviceCall.updateCallDetails(createCallDetails(Call.STATE_HOLDING, in updateCallDetails_holding() [all …]
|
D | CrossDeviceSyncControllerTest.java | 117 when(mMockCrossDeviceCall.getStatus()).thenReturn(android.companion.Telecom.Call.RINGING); in processTelecomDataFromSync_createCallUpdateMessage_hasCalls() 130 final CallMetadataSyncData.Call call = in processTelecomDataFromSync_createCallUpdateMessage_hasCalls() 139 .isEqualTo(android.companion.Telecom.Call.RINGING); in processTelecomDataFromSync_createCallUpdateMessage_hasCalls() 240 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in updateCalls_newIncomingCall_added() 242 call.setDirection(android.companion.Telecom.Call.INCOMING); in updateCalls_newIncomingCall_added() 258 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in updateCalls_newOutgoingCall_added() 260 call.setDirection(android.companion.Telecom.Call.OUTGOING); in updateCalls_newOutgoingCall_added() 277 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in updateCalls_newOutgoingCall_noAddress_notAdded() 279 call.setDirection(android.companion.Telecom.Call.OUTGOING); in updateCalls_newOutgoingCall_noAddress_notAdded() 295 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in updateCalls_newIncomingCall_noFacilitator_notAdded() [all …]
|
D | CallMetadataSyncDataTest.java | 32 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in call_writeToBundle_fromBundle_reconstructsSuccessfully() 40 final int direction = android.companion.Telecom.Call.OUTGOING; in call_writeToBundle_fromBundle_reconstructsSuccessfully() 55 final CallMetadataSyncData.Call reconstructedCall = CallMetadataSyncData.Call.fromBundle( in call_writeToBundle_fromBundle_reconstructsSuccessfully()
|
D | CallMetadataSyncConnectionServiceTest.java | 72 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in processContextSyncMessage_newCall() 83 final CallMetadataSyncData.Call call = new CallMetadataSyncData.Call(); in processContextSyncMessage_existingCall()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTest.java | 40 import com.android.internal.telephony.Call; 83 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 86 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testAttachDetach() 90 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testAttachDetach() 97 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 104 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testConnectionDisconnected() 105 mImsCallUT.attach(mConnection2, Call.State.ACTIVE); in testConnectionDisconnected() 108 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 110 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 112 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() [all …]
|
D | ImsCallInfoTrackerTest.java | 35 import com.android.internal.telephony.Call; 69 ImsPhoneConnection c = getConnection(Call.State.DIALING, false); in testDialingNormalCall() 83 assertEquals(Call.State.DIALING, info.getCallState()); in testDialingNormalCall() 94 ImsPhoneConnection c = getConnection(Call.State.DIALING, true); in testDialingEmergencyCall() 108 assertEquals(Call.State.DIALING, info.getCallState()); in testDialingEmergencyCall() 119 ImsPhoneConnection c = getConnection(Call.State.INCOMING, false); in testIncomingCall() 133 assertEquals(Call.State.INCOMING, info.getCallState()); in testIncomingCall() 140 doReturn(Call.State.ACTIVE).when(c).getState(); in testIncomingCall() 154 assertEquals(Call.State.ACTIVE, info.getCallState()); in testIncomingCall() 157 doReturn(Call.State.HOLDING).when(c).getState(); in testIncomingCall() [all …]
|
D | ImsPhoneConnectionTest.java | 59 import com.android.internal.telephony.Call; 174 doReturn(Call.State.DIALING).when(mForeGroundCall).getState(); in testImsUpdateStateForeGround() 175 assertTrue(mConnectionUT.update(mImsCall, Call.State.ACTIVE)); in testImsUpdateStateForeGround() 179 eq(Call.State.ACTIVE)); in testImsUpdateStateForeGround() 188 doReturn(Call.State.ACTIVE).when(mForeGroundCall).getState(); in testUpdateCodec() 197 doReturn(Call.State.HOLDING).when(mBackGroundCall).getState(); in testImsUpdateStateBackGround() 198 assertFalse(mConnectionUT.update(mImsCall, Call.State.ACTIVE)); in testImsUpdateStateBackGround() 202 eq(Call.State.ACTIVE)); in testImsUpdateStateBackGround() 212 assertFalse(mConnectionUT.update(mImsCall, Call.State.ACTIVE)); in testImsUpdateStatePendingHold() 214 eq(Call.State.ACTIVE)); in testImsUpdateStatePendingHold() [all …]
|
D | ImsPhoneCallTrackerTest.java | 119 import com.android.internal.telephony.Call; 608 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAccept() 704 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp() 713 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp() 721 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold() 735 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold() 749 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold() 751 assertEquals(Call.State.HOLDING, mCTUT.mBackgroundCall.getState()); in testImsMTCallAcceptHold() 759 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTActiveHoldServiceDisconnect() 773 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTActiveHoldServiceDisconnect() [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | Phone.java | 88 public void onCallAdded(Phone phone, Call call) { } in onCallAdded() 99 public void onCallRemoved(Phone phone, Call call) { } in onCallRemoved() 125 private final Map<String, Call> mCallByTelecomCallId = new ArrayMap<>(); 129 private final List<Call> mCalls = new CopyOnWriteArrayList<>(); 132 private final List<Call> mUnmodifiableCalls = Collections.unmodifiableList(mCalls); 159 && parcelableCall.getState() == Call.STATE_AUDIO_PROCESSING) { in internalAddCall() 164 Call call = getCallById(parcelableCall.getId()); in internalAddCall() 166 call = new Call(this, parcelableCall.getId(), mInCallAdapter, in internalAddCall() 177 if (call.getState() == Call.STATE_DISCONNECTED) { in internalAddCall() 187 final void internalRemoveCall(Call call) { in internalRemoveCall() [all …]
|
D | Call.java | 54 public final class Call { class 1216 sb.append(Call.stateToString(mState)); in toString() 1333 public void onStateChanged(Call call, @CallState int state) {} in onStateChanged() 1341 public void onParentChanged(Call call, Call parent) {} in onParentChanged() 1349 public void onChildrenChanged(Call call, List<Call> children) {} in onChildrenChanged() 1357 public void onDetailsChanged(Call call, Details details) {} in onDetailsChanged() 1367 public void onCannedTextResponsesLoaded(Call call, List<String> cannedTextResponses) {} in onCannedTextResponsesLoaded() 1378 public void onPostDialWait(Call call, String remainingPostDialSequence) {} in onPostDialWait() 1386 public void onVideoCallChanged(Call call, InCallService.VideoCall videoCall) {} in onVideoCallChanged() 1397 public void onCallDestroyed(Call call) {} in onCallDestroyed() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VsyncScheduleTest.cpp | 80 EXPECT_CALL(mRequestHardwareVsync, Call(_, _)).Times(0); in TEST_F() 86 EXPECT_CALL(mRequestHardwareVsync, Call(_, _)).Times(0); in TEST_F() 92 EXPECT_CALL(mRequestHardwareVsync, Call(_, _)).Times(0); in TEST_F() 103 EXPECT_CALL(mRequestHardwareVsync, Call(_, _)).Times(0); in TEST_F() 110 EXPECT_CALL(mRequestHardwareVsync, Call(_, _)).Times(0); in TEST_F() 117 EXPECT_CALL(mRequestHardwareVsync, Call(kDisplayId, true)); in TEST_F() 124 EXPECT_CALL(mRequestHardwareVsync, Call(kDisplayId, true)); in TEST_F() 128 EXPECT_CALL(mRequestHardwareVsync, Call(_, _)).Times(0); in TEST_F() 139 EXPECT_CALL(mRequestHardwareVsync, Call(kDisplayId, true)); in TEST_F() 143 EXPECT_CALL(mRequestHardwareVsync, Call(kDisplayId, false)); in TEST_F() [all …]
|
D | DisplayModeControllerTest.cpp | 56 mActiveModeListener.Call(displayId, vsyncRate, renderFps); in SetUp() 142 EXPECT_CALL(mActiveModeListener, Call(_, _, _)).Times(0); in TEST_F() 150 EXPECT_CALL(mActiveModeListener, Call(mDisplayId, 60_Hz, 60_Hz)).Times(1); in TEST_F() 163 EXPECT_CALL(mActiveModeListener, Call(mDisplayId, 60_Hz, 60_Hz)).Times(1); in TEST_F() 175 EXPECT_CALL(mActiveModeListener, Call(mDisplayId, 60_Hz, 60_Hz)).Times(1); in TEST_F() 194 EXPECT_CALL(mActiveModeListener, Call(mDisplayId, 60_Hz, 30_Hz)).Times(1); in TEST_F() 203 EXPECT_CALL(mActiveModeListener, Call(mDisplayId, 60_Hz, 60_Hz)).Times(1); in TEST_F()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CallManager.java | 97 private final ArrayList<Call> mRingingCalls; 101 private final ArrayList<Call> mBackgroundCalls; 105 private final ArrayList<Call> mForegroundCalls; 195 mRingingCalls = new ArrayList<Call>(); in CallManager() 196 mBackgroundCalls = new ArrayList<Call>(); in CallManager() 197 mForegroundCalls = new ArrayList<Call>(); in CallManager() 659 public void rejectCall(Call ringingCall) throws CallStateException { in rejectCall() 679 public boolean canConference(Call heldCall) { in canConference() 702 public boolean canConference(Call heldCall, int subId) { in canConference() 727 public void conference(Call heldCall) throws CallStateException { in conference() [all …]
|
D | SrvccConnection.java | 58 private Call.State mState; 87 if (mState == Call.State.ALERTING) { in SrvccConnection() 104 mIsMT = cp.getCallDirection() == android.telecom.Call.Details.DIRECTION_INCOMING; in SrvccConnection() 171 private static Call.State toCallState(int preciseCallState) { in toCallState() 173 case PRECISE_CALL_STATE_ACTIVE: return Call.State.ACTIVE; in toCallState() 174 case PRECISE_CALL_STATE_HOLDING: return Call.State.HOLDING; in toCallState() 175 case PRECISE_CALL_STATE_DIALING: return Call.State.DIALING; in toCallState() 176 case PRECISE_CALL_STATE_ALERTING: return Call.State.ALERTING; in toCallState() 177 case PRECISE_CALL_STATE_INCOMING: return Call.State.INCOMING; in toCallState() 178 case PRECISE_CALL_STATE_WAITING: return Call.State.WAITING; in toCallState() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaCallTest.java | 55 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach() 63 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testAttachDetach() 70 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach() 77 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testMultiparty() 116 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected() 119 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 121 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected() 123 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected() 125 assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); in testConnectionDisconnected() 127 assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); in testConnectionDisconnected()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsCallInfo.java | 24 import com.android.internal.telephony.Call; 33 private Call.State mState = Call.State.IDLE; 43 mState = Call.State.IDLE; in reset() 66 Call.State state = c.getState(); in update() 83 mState = Call.State.DISCONNECTED; in onDisconnect() 92 public Call.State getCallState() { in getCallState()
|
D | ImsExternalCall.java | 23 import com.android.internal.telephony.Call; 31 public class ImsExternalCall extends Call { 57 public void hangup(@android.telecom.Call.RejectReason int rejectReason) in hangup()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | VoiceCallSessionStatsTest.java | 70 import com.android.internal.telephony.Call; 277 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moRejected() 278 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moRejected() 284 doReturn(Call.State.ALERTING).when(mImsCall0).getState(); in singleImsCall_moRejected() 285 doReturn(Call.State.ALERTING).when(mImsConnection0).getState(); in singleImsCall_moRejected() 328 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moFailed() 329 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moFailed() 372 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moStartFailed() 373 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moStartFailed() 420 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moAccepted() [all …]
|
/frameworks/base/core/java/android/service/remotelockscreenvalidation/ |
D | RemoteLockscreenValidationClientImpl.java | 53 private final Queue<Call> mRequestQueue; 92 executeApiCall(new Call() { in validateLockscreenGuess() 151 for (Call call : new ArrayList<>(mRequestQueue)) { in onConnectedInternal() 187 private void executeApiCall(Call call) { in executeApiCall() 191 private void executeInternal(RemoteLockscreenValidationClientImpl.Call call) { in executeInternal() 201 RemoteLockscreenValidationClientImpl.Call apiCaller, in performApiCallInternal() 239 private abstract static class Call { class in RemoteLockscreenValidationClientImpl
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceShellCommand.java | 338 pos.write(Telecom.Call.ID, callId); in onCommand() 339 final long originToken = pos.start(Telecom.Call.ORIGIN); in onCommand() 340 pos.write(Telecom.Call.Origin.CALLER_ID, "Caller Name"); in onCommand() 341 pos.write(Telecom.Call.Origin.APP_ICON, BitmapUtils.renderDrawableToByteArray( in onCommand() 350 pos.write(Telecom.Call.STATUS, status); in onCommand() 352 pos.write(Telecom.Call.CONTROLS, Telecom.ACCEPT); in onCommand() 355 pos.write(Telecom.Call.CONTROLS, Telecom.REJECT); in onCommand() 358 pos.write(Telecom.Call.CONTROLS, Telecom.SILENCE); in onCommand() 361 pos.write(Telecom.Call.CONTROLS, Telecom.MUTE); in onCommand() 364 pos.write(Telecom.Call.CONTROLS, Telecom.UNMUTE); in onCommand() [all …]
|