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

/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
H A DIccUtils.java71 * Converts a bcd byte array to String with offset 0 and byte array length.
80 * @param bcd This should have an even length. If not, an "0" will be appended to the string.
82 public static byte[] bcdToBytes(String bcd) { argument
83 byte[] output = new byte[(bcd.length() + 1) / 2];
84 bcdToBytes(bcd, output);
91 * @param bcd This should have an even length. If not, an "0" will be appended to the string.
95 public static void bcdToBytes(String bcd, byte[] bytes) { argument
96 if (bcd.length() % 2 != 0) {
97 bcd += "0";
99 int size = Math.min(bytes.length * 2, bcd
[all...]

Completed in 133 milliseconds