summaryrefslogtreecommitdiffstats
path: root/tests/CoreTests
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2009-08-12 10:48:00 -0700
committerWink Saville <wink@google.com>2009-08-13 11:11:46 -0700
commit9688c6046fdbf6a24e3541bd6342995b4605fd5d (patch)
treefe055b6669806f518ef17dab0f9e58834b7865a0 /tests/CoreTests
parentda83f4674a564007baac03db062a289c8158d940 (diff)
downloadframeworks_base-9688c6046fdbf6a24e3541bd6342995b4605fd5d.zip
frameworks_base-9688c6046fdbf6a24e3541bd6342995b4605fd5d.tar.gz
frameworks_base-9688c6046fdbf6a24e3541bd6342995b4605fd5d.tar.bz2
Rename bcdByteToInt to gsmBcdByteToInt and beBcdByteToInt to cdmaBcdByteToInt.
Diffstat (limited to 'tests/CoreTests')
-rw-r--r--tests/CoreTests/com/android/internal/telephony/SimUtilsTest.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/CoreTests/com/android/internal/telephony/SimUtilsTest.java b/tests/CoreTests/com/android/internal/telephony/SimUtilsTest.java
index e733af9..6f25fd9 100644
--- a/tests/CoreTests/com/android/internal/telephony/SimUtilsTest.java
+++ b/tests/CoreTests/com/android/internal/telephony/SimUtilsTest.java
@@ -44,13 +44,22 @@ public class SimUtilsTest extends TestCase {
assertEquals("890", IccUtils.bcdToString(data, 0, data.length));
/*
- * bcdByteToInt()
- */
+ * gsmBcdByteToInt()
+ */
+
+ assertEquals(98, IccUtils.gsmBcdByteToInt((byte) 0x89));
+
+ // Out of range is treated as 0
+ assertEquals(8, IccUtils.gsmBcdByteToInt((byte) 0x8c));
- assertEquals(98, IccUtils.bcdByteToInt((byte) 0x89));
+ /*
+ * cdmaBcdByteToInt()
+ */
+
+ assertEquals(89, IccUtils.cdmaBcdByteToInt((byte) 0x89));
// Out of range is treated as 0
- assertEquals(8, IccUtils.bcdByteToInt((byte) 0x8c));
+ assertEquals(80, IccUtils.gsmBcdByteToInt((byte) 0x8c));
/*
* adnStringFieldToString()
@@ -76,4 +85,3 @@ public class SimUtilsTest extends TestCase {
}
}
-