/frameworks/base/core/java/com/android/internal/util/ |
D | HexDump.java | 43 result.append(toHexString(offset)); in dumpHexString() 64 result.append(toHexString(i)); in dumpHexString() 101 public static String toHexString(byte b) in toHexString() method in HexDump 103 return toHexString(toByteArray(b)); in toHexString() 107 public static String toHexString(byte[] array) in toHexString() method in HexDump 109 return toHexString(array, 0, array.length, true); in toHexString() 113 public static String toHexString(byte[] array, boolean upperCase) in toHexString() method in HexDump 115 return toHexString(array, 0, array.length, upperCase); in toHexString() 119 public static String toHexString(byte[] array, int offset, int length) in toHexString() method in HexDump 121 return toHexString(array, offset, length, true); in toHexString() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | HexDumpTest.java | 20 import static com.android.internal.util.HexDump.toHexString; 39 assertEquals("abcdef", HexDump.toHexString( in testBytesToHexString() 41 assertEquals("ABCDEF", HexDump.toHexString( in testBytesToHexString() 49 () -> HexDump.toHexString(null)); in testNullByteArray() 67 assertEquals(expected, HexDump.toHexString(bytes)); in testBytesToHexString_allByteValues() 76 byte[] reconstruction = hexStringToByteArray(toHexString(bytes)); in testRoundTrip_fromBytes() 87 String reconstruction = toHexString(hexStringToByteArray(original)); in testRoundTrip_fromString() 106 String actual = toHexString(bytes, offset, len); in testToHexString_offsetLength() 108 assertEquals(toHexString(subBytes), actual); in testToHexString_offsetLength() 123 assertEquals(expected.toUpperCase(), toHexString(bytes, true)); in testToHexString_case() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | WatchlistSettingsTests.java | 72 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()
|
D | FileHashCacheTests.java | 114 assertEquals(APK_A_CONTENT_HASH, HexDump.toHexString(fileHashCache.getSha256Hash(apkA))); in testFileHashCache_generic() 116 assertEquals(APK_B_CONTENT_HASH, HexDump.toHexString(fileHashCache.getSha256Hash(apkB))); in testFileHashCache_generic() 118 HexDump.toHexString(fileHashCache.getSha256HashFromCache(apkA))); in testFileHashCache_generic() 120 HexDump.toHexString(fileHashCache.getSha256HashFromCache(apkB))); in testFileHashCache_generic() 125 HexDump.toHexString(fileHashCache.getSha256HashFromCache(apkA))); in testFileHashCache_generic() 127 HexDump.toHexString(fileHashCache.getSha256HashFromCache(apkB))); in testFileHashCache_generic() 138 HexDump.toHexString(fileHashCache.getSha256Hash(apkA))); in testFileHashCache_generic()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | TestedScreen.java | 41 + 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/java/android/util/proto/ |
D | ProtoInputStream.java | 244 + Integer.toHexString(mPackedEnd) in nextField() 611 + Integer.toHexString(getOffset()) in readVarint() 625 + Integer.toHexString(getOffset() + i) in readVarint() 662 + Integer.toHexString(getOffset()) in readFixed32() 708 + Integer.toHexString(getOffset()) 742 + Integer.toHexString(mEnd) 840 + Integer.toHexString(mOffset) 934 + ") does not match current field number (0x" + Integer.toHexString( in assertFieldNumber() 936 + ") at offset 0x" + Integer.toHexString(getOffset()) in assertFieldNumber() 952 + " at offset 0x" + Integer.toHexString(getOffset()) in assertWireType() [all …]
|
D | ProtoUtils.java | 96 sb.append("Offset : 0x").append(Integer.toHexString(proto.getOffset())); in currentFieldToString() 97 sb.append("\nField Number : 0x").append(Integer.toHexString(proto.getFieldNumber())); in currentFieldToString() 104 sb.append(Long.toHexString(proto.readLong(fieldConstant))); in currentFieldToString() 110 sb.append(Long.toHexString(proto.readLong(fieldConstant))); in currentFieldToString() 128 sb.append(Integer.toHexString(proto.readInt(fieldConstant))); in currentFieldToString()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | BitwiseStreamsTest.java | 48 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testOne() 63 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testTwo() 78 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testThree() 96 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testFour() 139 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testSix()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | CharsetUtilsTest.java | 55 assertEquals("0000000000000000", HexDump.toHexString(dest)); in testModifiedUtf8_Empty() 62 assertEquals("21C0802100000000", HexDump.toHexString(dest)); in testModifiedUtf8_Null() 69 assertEquals("6578616D706C6500", HexDump.toHexString(dest)); in testModifiedUtf8_Simple() 76 assertEquals("00000000E2988300", HexDump.toHexString(dest)); in testModifiedUtf8_Complex() 94 assertEquals("3F002E0021000000", HexDump.toHexString(dest)); in testModifiedUtf8_Overwrite()
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbBinaryParser.java | 36 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()
|
D | UsbACInterface.java | 109 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()
|
D | UsbDescriptorParser.java | 239 + Integer.toHexString(type)); in allocDescriptor() 250 + Integer.toHexString(type)); in allocDescriptor() 260 + Integer.toHexString(type)); in allocDescriptor() 266 + Integer.toHexString(subClass)); in allocDescriptor() 415 + " t:0x" + Integer.toHexString(descriptor.getType())); in getInterfaceDescriptorsForClass() 438 + " type:0x" + Integer.toHexString(descriptor.getType())); in getACInterfaceDescriptors() 465 Log.d(TAG, " type:0x" + Integer.toHexString(type)); in hasInput() 476 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasInput() 503 Log.d(TAG, " type:0x" + Integer.toHexString(type)); in hasOutput() 514 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasOutput() [all …]
|
/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriPermission.java | 105 + 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() 318 sb.append(Integer.toHexString(System.identityHashCode(this))); in toString() 332 pw.print("mode=0x" + Integer.toHexString(modeFlags)); in dump() 333 pw.print(" owned=0x" + Integer.toHexString(ownedModeFlags)); in dump() 334 pw.print(" global=0x" + Integer.toHexString(globalModeFlags)); in dump() 335 pw.print(" persistable=0x" + Integer.toHexString(persistableModeFlags)); in dump() 336 pw.print(" persisted=0x" + Integer.toHexString(persistedModeFlags)); in dump()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | EmojiTest.java | 111 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/services/companion/java/com/android/server/companion/transport/ |
D | Transport.java | 161 Slog.w(TAG, "Failed to send message 0x" + Integer.toHexString(message)); in sendMessage() 217 Slog.d(TAG, "Received message 0x" + Integer.toHexString(message) in handleMessage() 228 Slog.w(TAG, "Failed to respond to 0x" + Integer.toHexString(message), e); in handleMessage() 233 Slog.w(TAG, "Unknown message 0x" + Integer.toHexString(message)); in handleMessage() 246 Slog.w(TAG, "Ignoring unknown message 0x" + Integer.toHexString(message)); in processOneway() 276 Slog.w(TAG, "Unknown request 0x" + Integer.toHexString(message)); in processRequest() 287 Slog.d(TAG, "Message 0x" + Integer.toHexString(message) in callback() 315 Slog.w(TAG, "Ignoring unknown response 0x" + Integer.toHexString(message)); in processResponse()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseStatementTest.java | 156 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/ |
D | FeatureInfo.java | 94 + 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/ |
D | Sms7BitEncodingTranslator.java | 99 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DarkIconDispatcherImpl.java | 170 pw.println(" mIconTint: 0x" + Integer.toHexString(mIconTint)); in dump() 171 pw.println(" mContrastTint: 0x" + Integer.toHexString(mContrastTint)); in dump() 174 + Integer.toHexString(mDarkModeIconColorSingleTone)); in dump() 176 + Integer.toHexString(mLightModeIconColorSingleTone)); in dump() 178 pw.println(" mDarkModeContrastColor: 0x" + Integer.toHexString(mDarkModeContrastColor)); in dump() 179 pw.println(" mLightModeContrastColor: 0x" + Integer.toHexString(mLightModeContrastColor)); in dump()
|
/frameworks/base/services/core/java/com/android/server/location/contexthub/ |
D | NanoAppStateManager.java | 131 + contextHubId + ": ID=0x" + Long.toHexString(nanoAppId) in addNanoAppInstance() 132 + ", version=0x" + Integer.toHexString(nanoAppVersion)); in addNanoAppInstance() 192 + contextHubId + ": ID=0x" + Long.toHexString(nanoAppId) in handleQueryAppEntry() 193 + ", version=0x" + Integer.toHexString(nanoAppVersion)); in handleQueryAppEntry()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillUriGrantsManager.java | 23 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/backup/java/com/android/server/backup/internal/ |
D | LifecycleOperationStorage.java | 211 + Integer.toHexString(token)); in waitUntilOperationComplete() 233 + Integer.toHexString(token)); in waitUntilOperationComplete() 248 Slog.v(TAG, "[UserID:" + mUserId + "] operation " + Integer.toHexString(token) in waitUntilOperationComplete() 268 + Integer.toHexString(token) + " result=" + result); in onOperationComplete() 282 + Integer.toHexString(token)); in onOperationComplete() 323 + Integer.toHexString(token) + " but no op found"); in cancelOperation() 338 + Integer.toHexString(token)); in cancelOperation()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ComprehensionTlv.java | 134 … 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/content/res/ |
D | Resources.java | 466 + Integer.toHexString(id)); in getText() 494 + Integer.toHexString(id)); in getFont() 682 throw new NotFoundException("Text array resource ID #0x" + Integer.toHexString(id)); in getTextArray() 703 throw new NotFoundException("String array resource ID #0x" + Integer.toHexString(id)); in getStringArray() 723 throw new NotFoundException("Int array resource ID #0x" + Integer.toHexString(id)); in getIntArray() 744 throw new NotFoundException("Array resource ID #0x" + Integer.toHexString(id)); in obtainTypedArray() 778 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getDimension() 779 + " type #0x" + Integer.toHexString(value.type) + " is not valid"); in getDimension() 813 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getDimensionPixelOffset() 814 + " type #0x" + Integer.toHexString(value.type) + " is not valid"); in getDimensionPixelOffset() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityNodeInfoTest.java | 70 + Long.toHexString(brokenStandardAction.mSerializationFlag) in testStandardActions_serializationFlagIsValid() 85 + Long.toHexString(brokenStandardAction.mSerializationFlag) in testStandardActions_serializationFlagIsValid() 87 + Integer.toHexString(brokenStandardAction.getId()) in testStandardActions_serializationFlagIsValid() 99 fail("Id 0x" + Integer.toHexString(id) in testStandardActions_idsAreUnique()
|