OSDN Git Service

Add GTS test APIs for testing ImsService
authorBrad Ebinger <breadley@google.com>
Tue, 3 Apr 2018 22:16:38 +0000 (15:16 -0700)
committerBrad Ebinger <breadley@google.com>
Wed, 6 Jun 2018 22:28:32 +0000 (15:28 -0700)
Bug: 77141737
Test: Manual
Merged-In: Id60cf07121cf98ab3f0a10af10cf70beb25feb54
Change-Id: Ia41a96b5013bc6a7f534c347db72a14348c1fc5d

telephony/java/android/telephony/ims/stub/ImsFeatureConfiguration.java
telephony/java/com/android/internal/telephony/ITelephony.aidl

index 2f52c0a..dfb6e2c 100644 (file)
@@ -77,6 +77,11 @@ public final class ImsFeatureConfiguration implements Parcelable {
             result = 31 * result + featureType;
             return result;
         }
+
+        @Override
+        public String toString() {
+            return "{s=" + slotId + ", f=" + featureType + "}";
+        }
     }
 
     /**
index e0297ca..3fd1d04 100644 (file)
@@ -823,6 +823,16 @@ interface ITelephony {
     boolean isResolvingImsBinding();
 
     /**
+    *  @return true if the ImsService to bind to for the slot id specified was set, false otherwise.
+    */
+    boolean setImsService(int slotId, boolean isCarrierImsService, String packageName);
+
+    /**
+    * @return the package name of the carrier/device ImsService associated with this slot.
+    */
+    String getImsService(int slotId, boolean isCarrierImsService);
+
+    /**
      * Set the network selection mode to automatic.
      *
      * @param subId the id of the subscription to update.