diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-05-15 23:40:39 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-15 23:40:39 +0000 |
commit | 5b9d0c58eeaf9d41b99d77a85cc8d26810f909fc (patch) | |
tree | ce45a289ed8a81353fe7f94c6597f27aec92ce57 /java/com/android/dialer/simulator/impl/SimulatorVoiceCall.java | |
parent | dd84cbcd28d387e937e2363258dbf50fbefdcd43 (diff) | |
parent | 8e1eddf0b8dc8d52331eb4fefbe91d8ff187a8e8 (diff) |
Merge "Refactoring simulator portal and related files."
Diffstat (limited to 'java/com/android/dialer/simulator/impl/SimulatorVoiceCall.java')
-rw-r--r-- | java/com/android/dialer/simulator/impl/SimulatorVoiceCall.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/java/com/android/dialer/simulator/impl/SimulatorVoiceCall.java b/java/com/android/dialer/simulator/impl/SimulatorVoiceCall.java index a9f332e4a..4b3033f32 100644 --- a/java/com/android/dialer/simulator/impl/SimulatorVoiceCall.java +++ b/java/com/android/dialer/simulator/impl/SimulatorVoiceCall.java @@ -36,13 +36,13 @@ import com.android.dialer.simulator.SimulatorComponent; import com.android.dialer.simulator.SimulatorEnrichedCall; /** Entry point in the simulator to create voice calls. */ -public final class SimulatorVoiceCall +final class SimulatorVoiceCall implements SimulatorConnectionService.Listener, SimulatorConnection.Listener { @NonNull private final Context context; @Nullable private String connectionTag; private final SimulatorEnrichedCall simulatorEnrichedCall; - public SimulatorVoiceCall(@NonNull Context context) { + SimulatorVoiceCall(@NonNull Context context) { this.context = Assert.isNotNull(context); simulatorEnrichedCall = SimulatorComponent.get(context).getSimulatorEnrichedCall(); SimulatorConnectionService.addListener(this); @@ -50,7 +50,7 @@ public final class SimulatorVoiceCall new SimulatorConferenceCreator(context, Simulator.CONFERENCE_TYPE_GSM)); } - public void incomingEnrichedCall() { + void incomingEnrichedCall() { simulatorEnrichedCall .setupIncomingEnrichedCall(Simulator.ENRICHED_CALL_INCOMING_NUMBER) .addListener( @@ -67,7 +67,7 @@ public final class SimulatorVoiceCall DialerExecutorComponent.get(context).uiExecutor()); } - public void outgoingEnrichedCall() { + void outgoingEnrichedCall() { getEnrichedCallManager().registerStateChangedListener(simulatorEnrichedCall); simulatorEnrichedCall .setupOutgoingEnrichedCall(Simulator.ENRICHED_CALL_OUTGOING_NUMBER) @@ -85,14 +85,14 @@ public final class SimulatorVoiceCall DialerExecutorComponent.get(context).uiExecutor()); } - public void addNewIncomingCall() { + void addNewIncomingCall() { String callerId = "+44 (0) 20 7031 3000" /* Google London office */; connectionTag = SimulatorSimCallManager.addNewIncomingCall( context, callerId, SimulatorSimCallManager.CALL_TYPE_VOICE); } - public void addNewIncomingCall(AppCompatActivity activity) { + void addNewIncomingCall(AppCompatActivity activity) { SimulatorDialogFragment.newInstance( (callerId, callerIdPresentation) -> { Bundle extras = new Bundle(); @@ -104,14 +104,14 @@ public final class SimulatorVoiceCall .show(activity.getSupportFragmentManager(), "SimulatorDialog"); } - public void addNewOutgoingCall() { + void addNewOutgoingCall() { String callerId = "+55-31-2128-6800"; // Brazil office. connectionTag = SimulatorSimCallManager.addNewOutgoingCall( context, callerId, SimulatorSimCallManager.CALL_TYPE_VOICE); } - public void addNewOutgoingCall(AppCompatActivity activity) { + void addNewOutgoingCall(AppCompatActivity activity) { SimulatorDialogFragment.newInstance( (callerId, callerIdPresentation) -> { Bundle extras = new Bundle(); @@ -123,14 +123,14 @@ public final class SimulatorVoiceCall .show(activity.getSupportFragmentManager(), "SimulatorDialog"); } - public void addSpamIncomingCall() { + void addSpamIncomingCall() { String callerId = "+1-661-778-3020"; /* Blacklisted custom spam number */ connectionTag = SimulatorSimCallManager.addNewIncomingCall( context, callerId, SimulatorSimCallManager.CALL_TYPE_VOICE); } - public void addNewEmergencyCallBack() { + void addNewEmergencyCallBack() { String callerId = "911"; connectionTag = SimulatorSimCallManager.addNewIncomingCall( |