cmsdk: Fix tests for N
Change-Id: I49175f9e60440ea40993d1d7a0cc3f64cf92d010
diff --git a/tests/src/org/cyanogenmod/tests/settings/unit/CMPartnerInterfaceTest.java b/tests/src/org/cyanogenmod/tests/settings/unit/CMPartnerInterfaceTest.java
index ca5b681..ed289f0 100644
--- a/tests/src/org/cyanogenmod/tests/settings/unit/CMPartnerInterfaceTest.java
+++ b/tests/src/org/cyanogenmod/tests/settings/unit/CMPartnerInterfaceTest.java
@@ -136,12 +136,14 @@
mNotificationManager = INotificationManager.Stub.asInterface(
ServiceManager.getService(Context.NOTIFICATION_SERVICE));
+ /*
mConditionListener = new CountdownConditionListener();
try {
mNotificationManager.requestZenModeConditions(mConditionListener, Condition.FLAG_RELEVANT_ALWAYS);
} catch (RemoteException e) {
fail("requestZenModeConditions exception " + e);
}
+ */
}
private void teardownZenModeTests() {
diff --git a/tests/src/org/cyanogenmod/tests/telephony/CMTelephonyTest.java b/tests/src/org/cyanogenmod/tests/telephony/CMTelephonyTest.java
index a7f4c70..1f184f7 100644
--- a/tests/src/org/cyanogenmod/tests/telephony/CMTelephonyTest.java
+++ b/tests/src/org/cyanogenmod/tests/telephony/CMTelephonyTest.java
@@ -36,7 +36,7 @@
CMTelephonyManager.getInstance(CMTelephonyTest.this);
Toast.makeText(CMTelephonyTest.this, "Test default sub active "
+ cmTelephonyManager.isSubActive(
- SubscriptionManager.getDefaultSubId()),
+ SubscriptionManager.getDefaultSubscriptionId()),
Toast.LENGTH_SHORT).show();
}
},
@@ -44,7 +44,7 @@
public void run() {
CMTelephonyManager cmTelephonyManager =
CMTelephonyManager.getInstance(CMTelephonyTest.this);
- cmTelephonyManager.setSubState(SubscriptionManager.getDefaultSubId(), true);
+ cmTelephonyManager.setSubState(SubscriptionManager.getDefaultSubscriptionId(), true);
}
},
new Test("test is data enabled on default sub") {
@@ -53,7 +53,7 @@
CMTelephonyManager.getInstance(CMTelephonyTest.this);
Toast.makeText(CMTelephonyTest.this, "Test default sub data "
+ cmTelephonyManager.isDataConnectionSelectedOnSub(
- SubscriptionManager.getDefaultSubId()),
+ SubscriptionManager.getDefaultSubscriptionId()),
Toast.LENGTH_SHORT).show();
}
},
@@ -78,7 +78,7 @@
CMTelephonyManager cmTelephonyManager =
CMTelephonyManager.getInstance(CMTelephonyTest.this);
cmTelephonyManager.setDataConnectionSelectedOnSub(
- SubscriptionManager.getDefaultSubId());
+ SubscriptionManager.getDefaultSubscriptionId());
}
},
new Test("test setDefaultPhoneSub") {
@@ -86,7 +86,7 @@
CMTelephonyManager cmTelephonyManager =
CMTelephonyManager.getInstance(CMTelephonyTest.this);
cmTelephonyManager.setDefaultPhoneSub(
- SubscriptionManager.getDefaultSubId());
+ SubscriptionManager.getDefaultSubscriptionId());
}
},
new Test("test setDefaultSmsSub") {
@@ -94,7 +94,7 @@
CMTelephonyManager cmTelephonyManager =
CMTelephonyManager.getInstance(CMTelephonyTest.this);
cmTelephonyManager.setDefaultSmsSub(
- SubscriptionManager.getDefaultSubId());
+ SubscriptionManager.getDefaultSubscriptionId());
}
},
};