Home
last modified time | relevance | path

Searched refs:videoState (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Dialer/java/com/android/incallui/
DVideoCallPresenter.java151 private static boolean isCameraRequired(int videoState, int sessionModificationState) { in isCameraRequired() argument
152 return VideoProfile.isBidirectional(videoState) in isCameraRequired()
153 || VideoProfile.isTransmissionEnabled(videoState) in isCameraRequired()
166 static boolean showIncomingVideo(int videoState, int callState) { in showIncomingVideo() argument
168 boolean isPaused = VideoProfile.isPaused(videoState); in showIncomingVideo()
176 && VideoProfile.isReceptionEnabled(videoState); in showIncomingVideo()
187 Context context, int videoState, int sessionModificationState) { in showOutgoingVideo() argument
193 return VideoProfile.isTransmissionEnabled(videoState) in showOutgoingVideo()
268 private static int toCameraDirection(int videoState) { in toCameraDirection() argument
269 return VideoProfile.isTransmissionEnabled(videoState) in toCameraDirection()
[all …]
DNotificationBroadcastReceiver.java167 private void answerIncomingCall(int videoState, @NonNull Context context) { in answerIncomingCall() argument
191 answerIncomingCallCallback(call, videoState); in answerIncomingCall()
196 answerIncomingCallCallback(call, videoState); in answerIncomingCall()
206 private void answerIncomingCallCallback(@NonNull DialerCall call, int videoState) { in answerIncomingCallCallback() argument
207 call.answer(videoState); in answerIncomingCallCallback()
DStatusBarNotifier.java125 private int videoState = VideoProfile.STATE_AUDIO_ONLY; field in StatusBarNotifier
485 int videoState, in checkForChangeAndSaveData() argument
509 || (this.videoState != videoState) in checkForChangeAndSaveData()
522 (this.videoState != videoState), in checkForChangeAndSaveData()
541 this.videoState = videoState; in checkForChangeAndSaveData()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomSystemTest.java608 int videoState) throws Exception { in startOutgoingPhoneCall() argument
613 connectionServiceFixture, initiatingUser, videoState); in startOutgoingPhoneCall()
645 int videoState) throws Exception { in startOutgoingEmergencyCall() argument
652 connectionServiceFixture, initiatingUser, videoState, true /*isEmergency*/); in startOutgoingEmergencyCall()
661 int videoState, boolean isEmergency) throws Exception { in startOutgoingPhoneCallWaitForBroadcaster() argument
687 if (videoState != VideoProfile.STATE_AUDIO_ONLY) { in startOutgoingPhoneCallWaitForBroadcaster()
688 actionCallIntent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, videoState); in startOutgoingPhoneCallWaitForBroadcaster()
719 int videoState) throws Exception { in startOutgoingPhoneCallPendingCreateConnection() argument
721 connectionServiceFixture, initiatingUser, videoState, false /*isEmergency*/); in startOutgoingPhoneCallPendingCreateConnection()
832 int videoState, in startIncomingPhoneCall() argument
[all …]
DConnectionServiceFixture.java152 public FakeConnection(int videoState, Uri address) { in FakeConnection() argument
158 setVideoState(videoState); in FakeConnection()
241 c.videoState = request.getVideoState(); in createConnection()
272 public void answerVideo(String callId, int videoState, in answerVideo() argument
421 int videoState; field in ConnectionServiceFixture.ConnectionInfo
434 int videoState; field in ConnectionServiceFixture.ConferenceInfo
589 a.setVideoState(id, mConnectionById.get(id).videoState, null /*Session.Info*/); in sendSetVideoState()
669 c.videoState, in parcelable()
692 c.videoState, in parcelable()
DNewOutgoingCallIntentBroadcasterTest.java273 int videoState = VideoProfile.STATE_BIDIRECTIONAL; in emergencyCallTestHelper() local
278 intent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, videoState); in emergencyCallTestHelper()
283 eq(isSpeakerphoneOn), eq(videoState)); in emergencyCallTestHelper()
403 int videoState = VideoProfile.STATE_BIDIRECTIONAL;
406 intent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, videoState);
/packages/services/Telecomm/src/com/android/server/telecom/
DCallsManager.java883 int videoState = videoProfile != null ? videoProfile.getVideoState() : in onSessionModifyRequestReceived() local
886 .videoStateToString(videoState)); in onSessionModifyRequestReceived()
921 public void onHandoverRequested(Call call, PhoneAccountHandle handoverTo, int videoState, in onHandoverRequested() argument
924 requestHandoverViaEvents(call, handoverTo, videoState, extras); in onHandoverRequested()
926 requestHandover(call, handoverTo, videoState, extras); in onHandoverRequested()
1112 int videoState = VideoProfile.STATE_AUDIO_ONLY; in processIncomingCallIntent() local
1116 videoState = extras.getInt(TelecomManager.EXTRA_INCOMING_VIDEO_STATE); in processIncomingCallIntent()
1117 call.setVideoState(videoState); in processIncomingCallIntent()
1162 if (isSpeakerEnabledForVideoCalls() && VideoProfile.isVideo(videoState)) { in processIncomingCallIntent()
1302 int videoState = VideoProfile.STATE_AUDIO_ONLY; in startOutgoingCall() local
[all …]
DCall.java142 void onHandoverRequested(Call call, PhoneAccountHandle handoverTo, int videoState, in onHandoverRequested() argument
222 public void onHandoverRequested(Call call, PhoneAccountHandle handoverTo, int videoState, in onHandoverRequested() argument
795 private String getVideoStateDescription(int videoState) { in getVideoStateDescription() argument
799 if (VideoProfile.isTransmissionEnabled(videoState)) { in getVideoStateDescription()
803 if (VideoProfile.isReceptionEnabled(videoState)) { in getVideoStateDescription()
807 if (VideoProfile.isPaused(videoState)) { in getVideoStateDescription()
1952 public void answer(int videoState) { in answer() argument
1956 if (!isVideoCallingSupportedByPhoneAccount() && VideoProfile.isVideo(videoState)) { in answer()
1959 videoState = VideoProfile.STATE_AUDIO_ONLY; in answer()
1966 mConnectionService.answer(this, videoState); in answer()
[all …]
DTelecomServiceImpl.java861 public void acceptRingingCallWithVideoState(String packageName, int videoState) {
869 acceptRingingCallInternal(videoState);
1128 public void acceptHandover(Uri srcAddr, int videoState, PhoneAccountHandle destAcct) {
1133 Log.pii(srcAddr), VideoProfile.videoStateToString(videoState),
1159 mCallsManager.acceptHandover(srcAddr, videoState, destAcct);
1786 private void acceptRingingCallInternal(int videoState) { in acceptRingingCallInternal() argument
1789 if (videoState == DEFAULT_VIDEO_STATE || !isValidAcceptVideoState(videoState)) { in acceptRingingCallInternal()
1790 videoState = call.getVideoState(); in acceptRingingCallInternal()
1792 call.answer(videoState); in acceptRingingCallInternal()
2043 private boolean isValidAcceptVideoState(int videoState) { in isValidAcceptVideoState() argument
[all …]
DInCallAdapter.java50 public void answerCall(String callId, int videoState) { in answerCall() argument
56 Log.d(this, "answerCall(%s,%d)", callId, videoState); in answerCall()
59 mCallsManager.answerCall(call, videoState); in answerCall()
616 public void handoverTo(String callId, PhoneAccountHandle destAcct, int videoState, in handoverTo() argument
625 call.handoverTo(destAcct, videoState, extras); in handoverTo()
DNewOutgoingCallIntentBroadcaster.java335 int videoState = mIntent.getIntExtra( in processCall() local
339 speakerphoneOn, videoState); in processCall()
484 boolean speakerphoneOn, int videoState) { in placeOutgoingCallImmediately() argument
490 mCallsManager.placeOutgoingCall(call, handle, gatewayInfo, speakerphoneOn, videoState); in placeOutgoingCallImmediately()
DConnectionServiceWrapper.java596 public void setVideoState(String callId, int videoState, Session.Info sessionInfo) { in setVideoState() argument
601 logIncoming("setVideoState %s %d", callId, videoState); in setVideoState()
604 call.setVideoState(videoState); in setVideoState()
1367 void answer(Call call, int videoState) { in answer() argument
1371 logOutgoing("answer %s %d", callId, videoState); in answer()
1372 if (VideoProfile.isAudioOnly(videoState)) { in answer()
1375 mServiceInterface.answerVideo(callId, videoState, Log.getExternalSession()); in answer()
DCallIntentProcessor.java139 final int videoState = intent.getIntExtra( TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, in processOutgoingCallIntent() local
141 clientExtras.putInt(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, videoState); in processOutgoingCallIntent()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestCallList.java184 public void sendUpgradeToVideoRequest(int videoState) { in sendUpgradeToVideoRequest() argument
185 Log.v(TAG, "sendUpgradeToVideoRequest : videoState = " + videoState); in sendUpgradeToVideoRequest()
195 videoCall.sendSessionModifyRequest(new VideoProfile(videoState)); in sendUpgradeToVideoRequest()
205 public void sendUpgradeToVideoResponse(int videoState) { in sendUpgradeToVideoResponse() argument
206 Log.v(TAG, "sendUpgradeToVideoResponse : videoState = " + videoState); in sendUpgradeToVideoResponse()
215 videoCall.sendSessionModifyResponse(new VideoProfile(videoState)); in sendUpgradeToVideoResponse()
DTestInCallServiceBroadcastReceiver.java55 final int videoState = Integer.parseInt(intent.getData().getSchemeSpecificPart()); in onReceive() local
56 TestCallList.getInstance().sendUpgradeToVideoRequest(videoState); in onReceive()
58 final int videoState = Integer.parseInt(intent.getData().getSchemeSpecificPart()); in onReceive() local
59 TestCallList.getInstance().sendUpgradeToVideoResponse(videoState); in onReceive()
DTestConnectionManager.java90 public void onVideoStateChanged(RemoteConnection connection, int videoState) {
91 if (videoState == VideoProfile.STATE_BIDIRECTIONAL) {
94 setVideoState(videoState);
170 public void onAnswer(int videoState) { in onAnswer() argument
171 mRemote.answer(videoState); in onAnswer()
DCallNotificationReceiver.java84 public static void sendIncomingCallIntent(Context context, Uri handle, int videoState) { in sendIncomingCallIntent() argument
92 extras.putInt(TestConnectionService.EXTRA_START_VIDEO_STATE, videoState); in sendIncomingCallIntent()
100 public static void sendIncomingRttCallIntent(Context context, Uri handle, int videoState) { in sendIncomingRttCallIntent() argument
108 extras.putInt(TestConnectionService.EXTRA_START_VIDEO_STATE, videoState); in sendIncomingRttCallIntent()
DTestConnectionService.java245 public void onAnswer(int videoState) { in onAnswer() argument
246 setVideoState(videoState); in onAnswer()
443 int videoState = extras.getInt(EXTRA_START_VIDEO_STATE, VideoProfile.STATE_AUDIO_ONLY);
449 VideoProfile.isVideo(videoState)), null)
451 connection.setVideoState(videoState);
477 connection.setVideoState(videoState);
/packages/apps/Dialer/java/com/android/dialer/precall/externalreceiver/
DLaunchPreCallActivity.java107 int videoState = intentExtras.getInt(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE); in filterExtras() local
108 switch (videoState) { in filterExtras()
119 "unsupported video state " + videoState + ", overriding to STATE_BIDIRECTIONAL"); in filterExtras()
123 LogUtil.w("LaunchPreCallActivity.filterExtras", "unknown video state " + videoState); in filterExtras()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java870 int videoState = originalConnection != null ? originalConnection.getVideoState() : in onCreateIncomingConnection() local
876 request.getAddress(), videoState); in onCreateIncomingConnection()
1025 int videoState = unknownConnection != null ? unknownConnection.getVideoState() : in onCreateUnknownConnection() local
1032 request.getAddress(), videoState); in onCreateUnknownConnection()
1198 int videoState = c.getVideoState(); in retryOutgoingOriginalConnection() local
1203 placeOutgoingConnection(c, newPhoneToUse, videoState, connExtras); in retryOutgoingOriginalConnection()
1228 TelephonyConnection connection, Phone phone, int videoState, Bundle extras) { in placeOutgoingConnection() argument
1235 .setVideoState(videoState) in placeOutgoingConnection()
1306 int videoState) { in createConnectionFor() argument
DTelephonyConnection.java173 int videoState = (int) msg.obj;
174 setVideoState(videoState);
424 public void onVideoStateChanged(int videoState) {
425 mHandler.obtainMessage(MSG_SET_VIDEO_STATE, videoState).sendToTarget();
800 public void onAnswer(int videoState) { in onAnswer() argument
804 getPhone().acceptCall(videoState); in onAnswer()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallIntentProcessor.java151 int videoState = intent.getIntExtra( in processOutgoingCallIntent() local
154 Log.d(this, "processOutgoingCallIntent videoState = " + videoState); in processOutgoingCallIntent()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorConnection.java88 public void onAnswer(int videoState) { in onAnswer() argument
90 onEvent(new Event(Event.ANSWER, Integer.toString(videoState), null)); in onAnswer()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnection.java177 public void onAnswer(int videoState) { in onAnswer() argument
181 getPhone().acceptCall(videoState); in onAnswer()
/packages/apps/Dialer/java/com/android/incallui/videotech/ims/
DImsVideoTech.java344 static int getUnpausedVideoState(int videoState) { in getUnpausedVideoState() argument
345 return videoState & (~VideoProfile.STATE_PAUSED); in getUnpausedVideoState()

12