Searched refs:hex (Results 1 - 25 of 61) sorted by relevance

123

/frameworks/base/core/java/android/service/carrier/
H A DCarrierIdentifier.java76 String hex = IccUtils.bytesToHexString(mccMnc);
77 mMcc = new String(new char[] {hex.charAt(1), hex.charAt(0), hex.charAt(3)});
78 if (hex.charAt(2) == 'F') {
79 mMnc = new String(new char[] {hex.charAt(5), hex.charAt(4)});
81 mMnc = new String(new char[] {hex.charAt(5), hex.charAt(4), hex
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
H A DAsn1DecoderTest.java40 String hex = "e30c5a0a98102100000000000000";
41 Asn1Decoder decoder = new Asn1Decoder(hex);
46 assertEquals(hex.length() / 2, decoder.getPosition());
65 assertEquals(hex.length() / 2, decoder.getPosition());
71 String hex = "bf370c5a0a98102100000000000000";
72 Asn1Decoder decoder = new Asn1Decoder(hex);
88 String hex = "e30c5a0a98102100000000000000e30c5a0a98102100000000000001";
90 Asn1Decoder decoder = new Asn1Decoder(hex);
95 assertEquals(hex.length() / 4, decoder.getPosition());
108 assertEquals(hex
[all...]
/frameworks/minikin/tests/unittest/
H A DSparseBitSetTest.cpp44 ASSERT_FALSE(bitset.get(ch)) << std::hex << ch;
47 ASSERT_TRUE(bitset.get(ch)) << std::hex << ch;
51 ASSERT_FALSE(bitset.get(ch)) << std::hex << ch;
H A DFontCollectionTest.cpp51 << "Glyph for U+" << std::hex << codepoint << " U+" << vs;
54 << "Glyph for U+" << std::hex << codepoint << " U+" << vs;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
H A DLogicalChannelMocker.java76 String hex = responseObject.toString();
78 int l = hex.length();
79 sw1 = Integer.parseInt(hex.substring(l - 4, l - 2), 16);
80 sw2 = Integer.parseInt(hex.substring(l - 2), 16);
81 hex = hex.substring(0, l - 4);
83 IccIoResult result = isException ? null : new IccIoResult(sw1, sw2, hex);
/frameworks/minikin/tests/stresstest/
H A DFontFamilyTest.cpp61 << "Inconsistent Result: " << fontPath << "#" << ttcIndex << ": U+" << std::hex
62 << codePoint << " U+" << std::hex << vs
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
H A DAsn1Decoder.java22 * This represents a decoder helping decode an array of bytes or a hex string into
34 /** Creates a decoder on a hex string. */
35 public Asn1Decoder(String hex) { argument
36 this(IccUtils.hexStringToBytes(hex));
/frameworks/native/services/vr/bufferhubd/
H A Dbuffer_hub.cpp90 stream << "0x" << std::hex << std::setfill('0');
96 stream << "0x" << std::hex << std::setfill('0');
126 stream << "0x" << std::hex << std::setfill('0');
132 stream << std::hex << std::setfill(' ');
163 stream << std::hex << std::setfill('0');
166 stream << std::hex << std::setfill('0');
169 stream << std::hex << std::setfill('0');
172 stream << std::hex << std::setfill('0');
174 stream << std::hex << std::setfill('0');
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DTelephonyUtil.java283 throw new NumberFormatException("" + ch + " is not a valid hex digit");
287 private static byte[] parseHex(String hex) { argument
289 if (hex == null) {
293 if (hex.length() % 2 != 0) {
294 throw new NumberFormatException(hex + " is not a valid hex string");
297 byte[] result = new byte[(hex.length()) / 2 + 1];
298 result[0] = (byte) ((hex.length()) / 2);
299 for (int i = 0, j = 1; i < hex.length(); i += 2, j++) {
300 int val = parseHex(hex
[all...]
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pServiceResponse.java265 * Converts hex string to byte array.
267 * @param hex hex string. if invalid, return null.
270 private static byte[] hexStr2Bin(String hex) { argument
271 int sz = hex.length()/2;
272 byte[] b = new byte[hex.length()/2];
276 b[i] = (byte)Integer.parseInt(hex.substring(i*2, i*2+2), 16);
/frameworks/native/cmds/lshal/
H A Dutils.cpp24 os << std::hex << std::setfill('0') << std::setw(16) << t;
/frameworks/base/tools/aapt2/cmd/
H A DDiff.cpp184 str_stream << "0x" << std::hex << entry_b->id.value();
190 str_stream << "0x " << std::hex << entry_a->id.value();
250 str_stream << "0x" << std::hex << type_b->id.value();
256 str_stream << "0x " << std::hex << type_a->id.value();
298 str_stream << "0x" << std::hex << pkg_b->id.value();
304 str_stream << "0x" << std::hex << pkg_a->id.value();
/frameworks/native/libs/nativewindow/tests/
H A DAHardwareBufferTest.cpp32 ss << type << " 0x" << std::hex << actual
33 << " does not match expected " << type << " 0x" << std::hex
/frameworks/compile/mclinker/lib/LD/
H A DRelocator.cpp65 ss << "0x" << std::hex << undef_sym_pos;
/frameworks/native/services/sensorservice/
H A DSensorRegistrationInfo.h70 << " 0x" << std::hex << std::setw(8) << mSensorHandle << std::dec
/frameworks/base/tools/aapt2/compile/
H A DIdAssigner_test.cpp142 << "package " << package->name << " has non-unique ID " << std::hex
159 << " has non-unique ID " << std::hex << (int)type->id.value()
177 << std::hex << (int)entry->id.value() << std::dec;
/frameworks/native/libs/ui/tools/
H A Dlutgen.cpp175 outputStream << "0x" << setfill('0') << setw(4) << hex << r << ", ";
176 outputStream << "0x" << setfill('0') << setw(4) << hex << g << ", ";
177 outputStream << "0x" << setfill('0') << setw(4) << hex << b << ", ";
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp1151 struct hex { struct
1154 static const size_t EXT_CSD_REV = 192 * sizeof(hex);
1155 static const size_t EXT_PRE_EOL_INFO = 267 * sizeof(hex);
1156 static const size_t EXT_DEVICE_LIFE_TIME_EST_TYP_A = 268 * sizeof(hex);
1157 static const size_t EXT_DEVICE_LIFE_TIME_EST_TYP_B = 269 * sizeof(hex);
1166 if (buffer.length() < (EXT_CSD_REV + sizeof(hex))) {
1172 std::string sub = buffer.substr(EXT_CSD_REV, sizeof(hex));
1189 if (buffer.length() < (EXT_PRE_EOL_INFO + sizeof(hex))) {
1195 sub = buffer.substr(EXT_PRE_EOL_INFO, sizeof(hex));
1214 lifetime += sizeof(hex)) {
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiInfo.java229 * quotation marks. Otherwise, it is returned as a string of hex digits. The
243 String hex = mWifiSsid.getHexString();
244 return (hex != null) ? hex : WifiSsid.NONE;
/frameworks/av/services/oboeservice/
H A DAAudioStreamTracker.cpp124 result << " 0x" << std::setfill('0') << std::setw(8) << std::hex << handle
H A DAAudioServiceEndpointShared.cpp48 << std::hex << mStreamInternal->getServiceHandle()
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbDebuggingManager.java294 String hex = "0123456789ABCDEF";
318 sb.append(hex.charAt((digest[i] >> 4) & 0xf));
319 sb.append(hex.charAt(digest[i] & 0xf));
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestPixelComparator.cpp91 stream << std::hex; member in class:std
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
H A DSupplicantP2pIfaceCallbackTest.java450 // TLVS hex data encoded as a hex string.
487 * Converts hex string to byte array.
489 * @param hex hex string. if invalid, return null.
492 private static byte[] hexStr2Bin(String hex) { argument
493 int sz = hex.length() / 2;
494 byte[] b = new byte[hex.length() / 2];
497 b[i] = (byte) Integer.parseInt(hex.substring(i * 2, i * 2 + 2), 16);
/frameworks/rs/script_api/
H A DUtilities.cpp131 stream << "0x" << std::hex << hash << "l";

Completed in 599 milliseconds

123