HomeSort by relevance Sort by last modified time
    Searched refs:hexString (Results 1 - 25 of 153) sorted by null

1 2 3 4 5 6 7

  /packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
Hex.java 82 public static byte[] decodeHex(String hexString) {
83 int length = hexString.length();
86 throw new IllegalArgumentException("Odd number of characters: " + hexString);
92 int c1 = hexString.charAt(j++);
104 int c2 = hexString.charAt(j++);
120 throw new IllegalArgumentException("Invalid hexadecimal digit: " + hexString);
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
Hex.java 50 public static byte[] decodeHex(String hexString) {
52 for (int i = 0; i < hexString.length(); i += 2) {
53 int b = Integer.parseInt(hexString.substring(i, i + 2), 16);
  /system/nfc/src/adaptation/
android_logmsg.cc 37 static void ToHex(const uint8_t* data, uint16_t len, char* hexString,
50 void ToHex(const uint8_t* data, uint16_t len, char* hexString,
54 hexString[j++] = sTable[(*data >> 4) & 0xf];
55 hexString[j++] = sTable[*data & 0xf];
58 hexString[j] = '\0';
  /system/tools/hidl/include_hash/hidl-hash/
Hash.h 39 static std::string hexString(const std::vector<uint8_t> &hash);
40 std::string hexString() const;
  /packages/apps/CertInstaller/src/com/android/certinstaller/
Util.java 73 StringBuilder hexString = new StringBuilder();
75 hexString.append(Integer.toHexString(0xFF & b)).append(separator);
77 return hexString.toString();
  /external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
HexDump.java 152 public static byte[] hexStringToByteArray(String hexString)
154 int length = hexString.length();
159 buffer[i / 2] = (byte)((toByte(hexString.charAt(i)) << 4) | toByte(hexString.charAt(i+1)));
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
UiccCarrierPrivilegeRulesTest.java 103 private void testHelper(String hexString) {
119 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString));
155 final String hexString =
159 testHelper(hexString);
184 final String hexString = "FF4034E232E11E4F06FFFFFFFFFFFFC114B61BE34AD2C20D7AFED84"
187 testHelper(hexString);
206 final String hexString = "FF4031E22FE11E4F06FFFFFFFFFFFFC114B61BE34AD2C20D7AFED8493C313A"
209 testHelper(hexString);
236 final String hexString =
241 testHelper(hexString);
    [all...]
  /frameworks/base/wifi/java/android/net/wifi/p2p/
WifiP2pDevice.java 399 private int parseHex(String hexString) {
401 if (hexString.startsWith("0x") || hexString.startsWith("0X")) {
402 hexString = hexString.substring(2);
406 num = Integer.parseInt(hexString, 16);
408 Log.e(TAG, "Failed to parse hex string " + hexString);
  /frameworks/base/core/java/com/android/internal/util/
HexDump.java 164 public static byte[] hexStringToByteArray(String hexString)
166 int length = hexString.length();
171 buffer[i / 2] = (byte)((toByte(hexString.charAt(i)) << 4) | toByte(hexString.charAt(i+1)));
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
IccIoResult.java 184 public IccIoResult(int sw1, int sw2, String hexString) {
185 this(sw1, sw2, IccUtils.hexStringToBytes(hexString));
  /external/icu/icu4c/source/test/intltest/
tscoll.cpp 459 UnicodeString hexString("0x");
461 appendHex(o, 8, hexString);
462 hexString += " ";
463 err(hexString);
470 UnicodeString hexString("0x");
472 appendHex(o, 8, hexString);
473 hexString += " ";
474 err(hexString);
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
TypedValueTest.java 48 String hexString = TypedValue.coerceToString(TypedValue.TYPE_INT_HEX, 0xcafebabe);
50 assertThat(hexString, equalTo("0xcafebabe"));
  /external/fonttools/Lib/fontTools/misc/
eexec.py 38 def hexString(s):
  /cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
TestSuiteContentReport.java 280 StringBuffer hexString = new StringBuffer();
282 hexString.append(Integer.toHexString(0xFF & mdbytes[i]));
284 return hexString.toString();
297 StringBuffer hexString = new StringBuffer();
299 hexString.append(Integer.toHexString(0xFF & mdbytes[i]));
301 return hexString.toString();
311 StringBuffer hexString = new StringBuffer();
313 hexString.append(Integer.toHexString(0xFF & mdbytes[i]));
315 return hexString.toString();
  /libcore/luni/src/test/java/libcore/java/lang/
StringTest.java 447 private void assertFastPathUtf8DecodedEquals(String expected, String hexString)
449 String actual = new String(hexStringtoBytes(hexString));
450 assertEquals("Fast-path UTF-8 decoder decodes sequence [" + hexString
458 + " result for sequence [" + hexString + "]",
459 decoder.decode(ByteBuffer.wrap(hexStringtoBytes(hexString))).toString(), actual);
462 private static String decodeCESU8(String hexString) throws IOException {
464 return cesu8Decoder.decode(ByteBuffer.wrap(hexStringtoBytes(hexString))).toString();
467 private static String decodeModifiedUTF8(String hexString) throws IOException {
468 byte[] bytes = hexStringtoBytes(hexString);
    [all...]
  /frameworks/support/buildSrc/src/main/kotlin/androidx/build/checkapi/
CheckApiTask.kt 45 val hexString = Integer.toHexString(byte.toInt() and 0xFF)
46 if (hexString.length < 2) {
49 builder.append(hexString)
  /hardware/interfaces/automotive/vehicle/2.0/default/tests/
VehicleHalTestUtils.h 146 inline std::string hexString(T value) {
176 return hexString(toInt(value));
  /system/tools/hidl/
Hash.cpp 71 std::string Hash::hexString(const std::vector<uint8_t> &hash) {
80 std::string Hash::hexString() const {
81 return hexString(mHash);
  /cts/tests/tests/telephony/src/android/telephony/cts/
SmsMessageTest.java 357 private static byte[] hexStringToByteArray(String hexString) {
358 int length = hexString.length();
363 (byte)((toByte(hexString.charAt(i)) << 4) | toByte(hexString.charAt(i+1)));
  /external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DefaultDeflateCompatibilityWindow.java 269 private final static String hexString(byte[] bytes) {
352 String sha256String = hexString(sha256OfCompressedData);
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
CatService.java 618 String hexString = IccUtils.bytesToHexString(rawData);
620 CatLog.d(this, "TERMINAL RESPONSE: " + hexString);
623 mCmdIf.sendTerminalResponse(hexString, null);
716 String hexString = IccUtils.bytesToHexString(rawData);
718 mCmdIf.sendEnvelope(hexString, null);
788 String hexString = IccUtils.bytesToHexString(rawData);
790 CatLog.d(this, "ENVELOPE COMMAND: " + hexString);
792 mCmdIf.sendEnvelope(hexString, null);
    [all...]
  /libcore/ojluni/src/main/java/sun/security/x509/
AVA.java 351 String hexString = getEmbeddedHexString(embeddedHex);
352 temp.append(hexString);
364 String hexString = getEmbeddedHexString(embeddedHex);
365 temp.append(hexString);
483 String hexString = getEmbeddedHexString(embeddedHex);
484 temp.append(hexString);
513 String hexString = getEmbeddedHexString(embeddedHex);
514 temp.append(hexString);
    [all...]
  /test/vts-testcase/hal/treble/vintf/
SingleManifestTest.cpp 271 hash_chain.push_back(Hash::hexString(hash));
285 if (hash == Hash::hexString(Hash::kEmptyHash)) {
  /packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
StringUtils.java 571 public static byte[] hexStringToByteArray(@Nullable final String hexString) {
572 if (isEmpty(hexString)) {
575 final int N = hexString.length();
582 bytes[i / 2] = (byte) ((Character.digit(hexString.charAt(i), 16) << 4)
583 + Character.digit(hexString.charAt(i + 1), 16));
  /frameworks/native/cmds/lshal/
TableEntry.cpp 97 static const std::string unreleased = Hash::hexString(Hash::kEmptyHash);

Completed in 1153 milliseconds

1 2 3 4 5 6 7