summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/simulator/Simulator.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android/dialer/simulator/Simulator.java')
-rw-r--r--java/com/android/dialer/simulator/Simulator.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/java/com/android/dialer/simulator/Simulator.java b/java/com/android/dialer/simulator/Simulator.java
index d75d10e82..3931ae49f 100644
--- a/java/com/android/dialer/simulator/Simulator.java
+++ b/java/com/android/dialer/simulator/Simulator.java
@@ -16,9 +16,10 @@
package com.android.dialer.simulator;
-import android.content.Context;
import android.support.annotation.IntDef;
import android.support.annotation.Nullable;
+import android.support.annotation.StringDef;
+import android.support.v7.app.AppCompatActivity;
import android.view.ActionProvider;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -28,7 +29,7 @@ import java.util.Objects;
public interface Simulator {
boolean shouldShow();
- ActionProvider getActionProvider(Context context);
+ ActionProvider getActionProvider(AppCompatActivity activity);
/** The type of conference to emulate. */
// TODO(a bug): add VoLTE and CDMA conference call
@@ -55,6 +56,19 @@ public interface Simulator {
static final int ON_NEW_INCOMING_CONNECTION = 2;
static final int ON_CONFERENCE = 3;
+ static final String CALLER_ID_PRESENTATION_TYPE = "caller_id_";
+
+ /** Bundle keys that are used in making fake call. */
+ @Retention(RetentionPolicy.SOURCE)
+ @StringDef({
+ IS_VOLTE,
+ PRESENTATION_CHOICE,
+ })
+ @interface BundleKey {}
+
+ public final String IS_VOLTE = "ISVOLTE";
+ public final String PRESENTATION_CHOICE = "PRESENTATIONCHOICE";
+
/** Information about a connection event. */
public static class Event {
/** The type of connection event. */