summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2014-09-05 14:27:25 -0700
committerJay Shrauner <shrauner@google.com>2014-09-06 10:39:23 -0700
commit137458b4bf3516941483e59c123c22cbee27ed43 (patch)
tree3bb53887841af31aea157fd24a8f31bb0ed6f32f /tests
parentf5f0daec7eee6b1e27dd98fdd88bc54fa72d4bce (diff)
downloadandroid_packages_services_Telephony-137458b4bf3516941483e59c123c22cbee27ed43.tar.gz
android_packages_services_Telephony-137458b4bf3516941483e59c123c22cbee27ed43.tar.bz2
android_packages_services_Telephony-137458b4bf3516941483e59c123c22cbee27ed43.zip
Use framework scheme definitions
Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}. Bug:17398074 Change-Id: I36adb16f659daef89957072f9e00d08ea2cb8e9e
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/phone/tests/CallDialTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/phone/tests/CallDialTest.java b/tests/src/com/android/phone/tests/CallDialTest.java
index 5ea80d1d1..baade3279 100644
--- a/tests/src/com/android/phone/tests/CallDialTest.java
+++ b/tests/src/com/android/phone/tests/CallDialTest.java
@@ -23,6 +23,7 @@ import android.net.Uri;
import android.os.Bundle;
import android.os.RemoteException;
import android.os.ServiceManager;
+import android.telecomm.PhoneAccount;
import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
import android.util.Log;
@@ -125,9 +126,9 @@ public class CallDialTest extends Activity implements View.OnClickListener {
if (number.contains(":")) {
uri = Uri.parse(number);
} else if (PhoneNumberUtils.isUriNumber(number)) {
- uri = Uri.fromParts(Constants.SCHEME_SIP, number, null);
+ uri = Uri.fromParts(PhoneAccount.SCHEME_SIP, number, null);
} else {
- uri = Uri.fromParts(Constants.SCHEME_TEL, number, null);
+ uri = Uri.fromParts(PhoneAccount.SCHEME_TEL, number, null);
}
}
log("==> uri: " + uri);