Home
last modified time | relevance | path

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

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DStringPoolTest.java36 String bcd = stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3); in testStringPool() local
37 assertEquals("bcd", bcd); in testStringPool()
38 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.java99 public static byte[] bcdToBytes(String bcd) { in bcdToBytes() argument
100 byte[] output = new byte[(bcd.length() + 1) / 2]; in bcdToBytes()
101 bcdToBytes(bcd, output); in bcdToBytes()
112 public static void bcdToBytes(String bcd, byte[] bytes) { in bcdToBytes() argument
113 bcdToBytes(bcd, bytes, 0); in bcdToBytes()
124 public static void bcdToBytes(String bcd, byte[] bytes, int offset) { in bcdToBytes() argument
125 if (bcd.length() % 2 != 0) { in bcdToBytes()
126 bcd += "0"; in bcdToBytes()
128 int size = Math.min((bytes.length - offset) * 2, bcd.length()); in bcdToBytes()
130 bytes[j] = (byte) (charToByte(bcd.charAt(i + 1)) << 4 | charToByte(bcd.charAt(i))); in bcdToBytes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DUtils.kt33 fun <A, B, C, D> toQuad(a: A, bcd: Triple<B, C, D>) = in <lambda>()
34 Quad(a, bcd.first, bcd.second, bcd.third) in <lambda>()