Home
last modified time | relevance | path

Searched refs:toHexString (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/frameworks/libs/net/common/device/com/android/net/module/util/
DHexDump.java55 result.append(toHexString(offset)); in dumpHexString()
70 result.append(toHexString(i)); in dumpHexString()
106 public static String toHexString(byte b) { in toHexString() method in HexDump
107 return toHexString(toByteArray(b)); in toHexString()
115 public static String toHexString(byte[] array) { in toHexString() method in HexDump
116 return toHexString(array, 0, array.length, true); in toHexString()
125 public static String toHexString(byte[] array, boolean upperCase) { in toHexString() method in HexDump
126 return toHexString(array, 0, array.length, upperCase); in toHexString()
136 public static String toHexString(byte[] array, int offset, int length) { in toHexString() method in HexDump
137 return toHexString(array, offset, length, true); in toHexString()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DHexDump.java41 result.append(toHexString(offset)); in dumpHexString()
62 result.append(toHexString(i)); in dumpHexString()
99 public static String toHexString(byte b) in toHexString() method in HexDump
101 return toHexString(toByteArray(b)); in toHexString()
105 public static String toHexString(byte[] array) in toHexString() method in HexDump
107 return toHexString(array, 0, array.length, true); in toHexString()
111 public static String toHexString(byte[] array, boolean upperCase) in toHexString() method in HexDump
113 return toHexString(array, 0, array.length, upperCase); in toHexString()
117 public static String toHexString(byte[] array, int offset, int length) in toHexString() method in HexDump
119 return toHexString(array, offset, length, true); in toHexString()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DHexDumpTest.java20 import static com.android.internal.util.HexDump.toHexString;
31 assertEquals("abcdef", HexDump.toHexString( in testBytesToHexString()
33 assertEquals("ABCDEF", HexDump.toHexString( in testBytesToHexString()
40 () -> HexDump.toHexString(null)); in testNullByteArray()
57 assertEquals(expected, HexDump.toHexString(bytes)); in testBytesToHexString_allByteValues()
65 byte[] reconstruction = hexStringToByteArray(toHexString(bytes)); in testRoundTrip_fromBytes()
75 String reconstruction = toHexString(hexStringToByteArray(original)); in testRoundTrip_fromString()
93 String actual = toHexString(bytes, offset, len); in testToHexString_offsetLength()
95 assertEquals(toHexString(subBytes), actual); in testToHexString_offsetLength()
109 assertEquals(expected.toUpperCase(), toHexString(bytes, true)); in testToHexString_case()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistSettingsTests.java72 assertEquals(HARD_CODED_SECRET_KEY, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsing()
74 assertEquals(HARD_CODED_SECRET_KEY, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsing()
81 final String tmpKey1 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_parsingWithoutKey()
85 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsingWithoutKey()
88 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsingWithoutKey()
94 final String tmpKey1 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_noExistingXml()
98 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_noExistingXml()
101 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_noExistingXml()
105 final String tmpKey2 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_noExistingXml()
/frameworks/base/core/java/android/bluetooth/
DOobData.java925 + "Device Address With Type: " + toHexString(mDeviceAddressWithType) + "\n\t" in toString()
926 + "Confirmation: " + toHexString(mConfirmationHash) + "\n\t" in toString()
927 + "Randomizer: " + toHexString(mRandomizerHash) + "\n\t" in toString()
928 + "Device Name: " + toHexString(mDeviceName) + "\n\t" in toString()
930 + "OobData Length: " + toHexString(mClassicLength) + "\n\t" in toString()
931 + "Class of Device: " + toHexString(mClassOfDevice) + "\n\t" in toString()
933 + "LE Device Role: " + toHexString(mLeDeviceRole) + "\n\t" in toString()
934 + "LE Temporary Key: " + toHexString(mLeTemporaryKey) + "\n\t" in toString()
935 + "LE Appearance: " + toHexString(mLeAppearance) + "\n\t" in toString()
936 + "LE Flags: " + toHexString(mLeFlags) + "\n\t"; in toString()
[all …]
/frameworks/base/core/java/android/util/proto/
DProtoInputStream.java241 + Integer.toHexString(mPackedEnd) in nextField()
608 + Integer.toHexString(getOffset()) in readVarint()
622 + Integer.toHexString(getOffset() + i) in readVarint()
659 + Integer.toHexString(getOffset()) in readFixed32()
705 + Integer.toHexString(getOffset())
739 + Integer.toHexString(mEnd)
837 + Integer.toHexString(mOffset)
931 + ") does not match current field number (0x" + Integer.toHexString( in assertFieldNumber()
933 + ") at offset 0x" + Integer.toHexString(getOffset()) in assertFieldNumber()
949 + " at offset 0x" + Integer.toHexString(getOffset()) in assertWireType()
[all …]
DProtoUtils.java94 sb.append("Offset : 0x" + Integer.toHexString(proto.getOffset())); in currentFieldToString()
95 sb.append("\nField Number : 0x" + Integer.toHexString(proto.getFieldNumber())); in currentFieldToString()
102 sb.append("\nField Value : 0x" + Long.toHexString(proto.readLong(fieldConstant))); in currentFieldToString()
108 sb.append("\nField Value : 0x" + Long.toHexString(proto.readLong(fieldConstant))); in currentFieldToString()
126 sb.append("\nField Value : 0x" + Integer.toHexString(proto.readInt(fieldConstant))); in currentFieldToString()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DTestedScreen.java41 + Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent()); in onCreate()
48 + Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent()); in onCreate()
54 + Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent()); in onCreate()
70 + Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent()); in onResume()
87 + Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent()); in onStop()
103 + Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent());
120 + Integer.toHexString(System.identityHashCode(this)) + ": " + getIntent()); in queueIdle()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DBitwiseStreamsTest.java45 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testOne()
59 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testTwo()
73 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testThree()
90 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testFour()
131 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testSix()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DHexDumpTest.java33 assertEquals("abcdef", HexDump.toHexString( in testBytesToHexString()
35 assertEquals("ABCDEF", HexDump.toHexString( in testBytesToHexString()
65 assertEquals("FF000004", HexDump.toHexString((int) 0xff000004)); in testIntegerToHexString()
70 assertEquals("7F", HexDump.toHexString((byte) 0x7f)); in testByteToHexString()
/frameworks/base/core/tests/coretests/src/android/util/
DCharsetUtilsTest.java45 assertEquals("0000000000000000", HexDump.toHexString(dest)); in testModifiedUtf8_Empty()
52 assertEquals("21C0802100000000", HexDump.toHexString(dest)); in testModifiedUtf8_Null()
59 assertEquals("6578616D706C6500", HexDump.toHexString(dest)); in testModifiedUtf8_Simple()
66 assertEquals("00000000E2988300", HexDump.toHexString(dest)); in testModifiedUtf8_Complex()
84 assertEquals("3F002E0021000000", HexDump.toHexString(dest)); in testModifiedUtf8_Overwrite()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbBinaryParser.java36 Log.i(TAG, "l: " + length + " t: " + Integer.toHexString(type) + " " in dumpDescriptor()
40 sb.append("0x" + Integer.toHexString(stream.getByte() & 0xFF) + " "); in dumpDescriptor()
47 + " t:0x" + Integer.toHexString(type) + " " in dumpDescriptor()
50 builder.append("0x" + Integer.toHexString(stream.getByte() & 0xFF) + " "); in dumpDescriptor()
DUsbACInterface.java109 Log.d(TAG, " acInterfaceSpec:0x" + Integer.toHexString(acInterfaceSpec)); in allocAudioControlDescriptor()
125 Log.d(TAG, " acInterfaceSpec:0x" + Integer.toHexString(acInterfaceSpec)); in allocAudioControlDescriptor()
141 Log.d(TAG, " acInterfaceSpec:0x" + Integer.toHexString(acInterfaceSpec)); in allocAudioControlDescriptor()
169 Log.d(TAG, " acInterfaceSpec:0x" + Integer.toHexString(acInterfaceSpec)); in allocAudioControlDescriptor()
184 + Integer.toHexString(subtype)); in allocAudioControlDescriptor()
209 + Integer.toHexString(subtype)); in allocAudioStreamingDescriptor()
233 + Integer.toHexString(subtype)); in allocMidiStreamingDescriptor()
269 + Integer.toHexString(subClass)); in allocDescriptor()
DUsbDescriptorParser.java233 + Integer.toHexString(type)); in allocDescriptor()
242 + Integer.toHexString(type)); in allocDescriptor()
248 + Integer.toHexString(subClass)); in allocDescriptor()
394 + " t:0x" + Integer.toHexString(descriptor.getType())); in getInterfaceDescriptorsForClass()
417 + " type:0x" + Integer.toHexString(descriptor.getType())); in getACInterfaceDescriptors()
444 Log.d(TAG, " type:0x" + Integer.toHexString(type)); in hasInput()
455 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasInput()
482 Log.d(TAG, " type:0x" + Integer.toHexString(type)); in hasOutput()
493 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasOutput()
523 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasMic()
[all …]
/frameworks/base/services/core/java/com/android/server/uri/
DUriPermission.java105 + Integer.toHexString(oldModeFlags) + " to 0x" in updateModeFlags()
106 + Integer.toHexString(modeFlags) + " via calling UID " in updateModeFlags()
160 + Integer.toHexString(modeFlags) + ", but only 0x" in takePersistableModes()
161 + Integer.toHexString(persistableModeFlags) + " are allowed"); in takePersistableModes()
312 sb.append(Integer.toHexString(System.identityHashCode(this))); in toString()
326 pw.print("mode=0x" + Integer.toHexString(modeFlags)); in dump()
327 pw.print(" owned=0x" + Integer.toHexString(ownedModeFlags)); in dump()
328 pw.print(" global=0x" + Integer.toHexString(globalModeFlags)); in dump()
329 pw.print(" persistable=0x" + Integer.toHexString(persistableModeFlags)); in dump()
330 pw.print(" persisted=0x" + Integer.toHexString(persistedModeFlags)); in dump()
/frameworks/base/core/tests/coretests/src/android/text/
DEmojiTest.java111 assertTrue(Integer.toHexString(c) + " should be emoji", Emoji.isEmoji(c)); in testIsNewEmoji_Emoji()
113 assertEquals(Integer.toHexString(c) + " should have neutral directionality", in testIsNewEmoji_Emoji()
117 assertEquals(Integer.toHexString(c) + " shoud be OTHER_NEUTRAL for ICU Bidi", in testIsNewEmoji_Emoji()
157 assertTrue(Integer.toHexString(c) + " should be emoji modifier base", in testisEmojiModifierBase()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseStatementTest.java156 statement.bindString(1, Long.toHexString(i)); in testStatementStringBinding()
166 assertEquals(Long.toHexString(i), num); in testStatementStringBinding()
201 args[i] = Integer.toHexString(i); in testSimpleStringBinding()
211 assertEquals(Integer.toHexString(0), num); in testSimpleStringBinding()
214 assertEquals(Integer.toHexString(1), val); in testSimpleStringBinding()
226 statement.bindString(2, Long.toHexString(i)); in testStatementMultipleBindings()
239 assertEquals(Long.toHexString(i), str); in testStatementMultipleBindings()
260 mStatement.bindString(2, Long.toHexString(i)); in run()
274 assertEquals(Long.toHexString(i), str); in run()
/frameworks/base/core/java/android/content/pm/
DFeatureInfo.java94 + Integer.toHexString(System.identityHashCode(this)) in toString()
95 + " " + name + " v=" + version + " fl=0x" + Integer.toHexString(flags) + "}"; in toString()
98 + Integer.toHexString(System.identityHashCode(this)) in toString()
100 + " fl=0x" + Integer.toHexString(flags) + "}"; in toString()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSms7BitEncodingTranslator.java99 Rlog.v(TAG, "No translation needed for " + Integer.toHexString(c)); in translateIfNeeded()
133 Rlog.v(TAG, Integer.toHexString(c) + " (" + c + ")" + " translated to " in translateIfNeeded()
134 + Integer.toHexString(translation) + " (" + (char) translation + ")"); in translateIfNeeded()
139 Rlog.w(TAG, "No translation found for " + Integer.toHexString(c) in translateIfNeeded()
209 Rlog.d(TAG, "Loading mapping " + Integer.toHexString(from) in load7BitTranslationTableFromXml()
210 .toUpperCase() + " -> " + Integer.toHexString(to) in load7BitTranslationTableFromXml()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillUriGrantsManager.java23 import static java.lang.Integer.toHexString;
86 + ", targetActivityToken=" + toHexString(targetActivityToken.hashCode())); in grantUriPermissions()
106 + ", permissionOwner=" + toHexString(permissionOwner.hashCode())); in grantUriPermissions()
123 + ", permissionOwner=" + toHexString(permissionOwner.hashCode()), e); in grantUriPermissions()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DNanoAppStateManager.java131 + contextHubId + ": ID=0x" + Long.toHexString(nanoAppId) in addNanoAppInstance()
132 + ", version=0x" + Integer.toHexString(nanoAppVersion)); in addNanoAppInstance()
190 + contextHubId + ": ID=0x" + Long.toHexString(nanoAppId) in handleQueryAppEntry()
191 + ", version=0x" + Integer.toHexString(nanoAppVersion)); in handleQueryAppEntry()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java225 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id)); in getValue()
234 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id)); in getValueForDensity()
264 + Integer.toHexString(resid)); in getResourceName()
272 + Integer.toHexString(resid)); in getResourcePackageName()
280 + Integer.toHexString(resid)); in getResourceTypeName()
288 + Integer.toHexString(resid)); in getResourceEntryName()
310 throw new NotFoundException("Plural resource ID #0x" + Integer.toHexString(id) in getQuantityText()
334 + "resource ID #0x" + Integer.toHexString(id), e); in openRawResourceFd()
348 + " from resource ID #0x" + Integer.toHexString(id)); in openRawResource()
717 + " with resource ID #0x" + Integer.toHexString(id), e); in loadDrawable()
[all …]
DResources.java444 + Integer.toHexString(id)); in getText()
472 + Integer.toHexString(id)); in getFont()
660 throw new NotFoundException("Text array resource ID #0x" + Integer.toHexString(id)); in getTextArray()
681 throw new NotFoundException("String array resource ID #0x" + Integer.toHexString(id)); in getStringArray()
701 throw new NotFoundException("Int array resource ID #0x" + Integer.toHexString(id)); in getIntArray()
722 throw new NotFoundException("Array resource ID #0x" + Integer.toHexString(id)); in obtainTypedArray()
756 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getDimension()
757 + " type #0x" + Integer.toHexString(value.type) + " is not valid"); in getDimension()
791 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getDimensionPixelOffset()
792 + " type #0x" + Integer.toHexString(value.type) + " is not valid"); in getDimensionPixelOffset()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DComprehensionTlv.java134 … Rlog.d("CAT ", "decode: unexpected first tag byte=" + Integer.toHexString(temp) + in decode()
166 "length < 0x80 length=" + Integer.toHexString(length) + in decode()
177 "two byte length < 0x100 length=" + Integer.toHexString(length) + in decode()
189 "three byte length < 0x10000 length=0x" + Integer.toHexString(length) + in decode()
/frameworks/base/core/java/android/view/animation/
DAnimationUtils.java142 Integer.toHexString(id)); in loadAnimation()
147 Integer.toHexString(id)); in loadAnimation()
223 Integer.toHexString(id)); in loadLayoutAnimation()
228 Integer.toHexString(id)); in loadLayoutAnimation()
345 Integer.toHexString(id)); in loadInterpolator()
350 Integer.toHexString(id)); in loadInterpolator()
375 Integer.toHexString(id)); in loadInterpolator()
380 Integer.toHexString(id)); in loadInterpolator()

12345678910>>...20