//packages/services/Telecomm/src/com/android/server/telecomm/CallsManager.java
void processIncomingCallIntent(PhoneAccountHandle phoneAccountHandle, Bundle extras) {
......
call.initAnalytics();
+ call.setStartWithSpeakerphoneOn(true);
if (getForegroundCall() != null) {
getForegroundCall().getAnalytics().setCallIsInterrupted(true);
call.getAnalytics().setCallIsAdditional(true);
}
......
}
......
@VisibleForTesting
public void placeOutgoingCall(Call call, Uri handle, GatewayInfo gatewayInfo,
boolean speakerphoneOn, int videoState) {
......
// Auto-enable speakerphone if the originating intent specified to do so, if the call
// is a video call, of if using speaker when docked
+// call.setStartWithSpeakerphoneOn(speakerphoneOn || useSpeakerForVideoCall
+// || (useSpeakerWhenDocked && useSpeakerForDock));
+ call.setStartWithSpeakerphoneOn(true);
call.setVideoState(videoState);
......
}
Android Q 默认免提接听电话
最新推荐文章于 2024-07-03 23:19:22 发布