Home
last modified time | relevance | path

Searched refs:bcd (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DStringPoolTest.java27 String bcd = stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3); in testStringPool() local
28 assertEquals("bcd", bcd); in testStringPool()
29 assertSame(bcd, stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3)); in testStringPool()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java94 public static byte[] bcdToBytes(String bcd) { in bcdToBytes() argument
95 byte[] output = new byte[(bcd.length() + 1) / 2]; in bcdToBytes()
96 bcdToBytes(bcd, output); in bcdToBytes()
107 public static void bcdToBytes(String bcd, byte[] bytes) { in bcdToBytes() argument
108 bcdToBytes(bcd, bytes, 0); in bcdToBytes()
119 public static void bcdToBytes(String bcd, byte[] bytes, int offset) { in bcdToBytes() argument
120 if (bcd.length() % 2 != 0) { in bcdToBytes()
121 bcd += "0"; in bcdToBytes()
123 int size = Math.min((bytes.length - offset) * 2, bcd.length()); in bcdToBytes()
125 bytes[j] = (byte) (charToByte(bcd.charAt(i + 1)) << 4 | charToByte(bcd.charAt(i))); in bcdToBytes()