/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | HexDump.java | 41 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() 119 return toHexString(array, offset, length, true); in toHexString() 139 public static String toHexString(int i) in toHexString() method in HexDump [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | HexDumpTest.java | 20 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() 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() 110 assertEquals(expected.toLowerCase(), toHexString(bytes, false)); in testToHexString_case() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/util/proto/ |
H A D | ProtoInputStream.java | 243 + Integer.toHexString(mPackedEnd) in nextField() 610 + Integer.toHexString(getOffset()) in readVarint() 661 + Integer.toHexString(getOffset()) in readFixed32() 707 + Integer.toHexString(getOffset()) 741 + Integer.toHexString(mEnd) 839 + Integer.toHexString(mOffset) 935 + ") at offset 0x" + Integer.toHexString(getOffset()) in assertFieldNumber() 975 sb.append("\nmState : 0x").append(Integer.toHexString(mState)); in dumpDebugData() 977 sb.append("\nmOffset : 0x").append(Integer.toHexString(mOffset)); in dumpDebugData() 980 sb.append("\nmDepth : 0x").append(Integer.toHexString(mDepth)); in dumpDebugData() [all …]
|
H A D | ProtoUtils.java | 95 sb.append("Offset : 0x").append(Integer.toHexString(proto.getOffset())); in currentFieldToString() 96 sb.append("\nField Number : 0x").append(Integer.toHexString(proto.getFieldNumber())); in currentFieldToString() 103 sb.append(Long.toHexString(proto.readLong(fieldConstant))); in currentFieldToString() 109 sb.append(Long.toHexString(proto.readLong(fieldConstant))); in currentFieldToString() 127 sb.append(Integer.toHexString(proto.readInt(fieldConstant))); in currentFieldToString()
|
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | BitwiseStreamsTest.java | 45 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()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A 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()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | CharsetUtilsTest.java | 45 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/uri/ |
H A 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() 314 sb.append(Integer.toHexString(System.identityHashCode(this))); in toString() 328 pw.print("mode=0x" + Integer.toHexString(modeFlags)); in dump() 329 pw.print(" owned=0x" + Integer.toHexString(ownedModeFlags)); in dump() 330 pw.print(" global=0x" + Integer.toHexString(globalModeFlags)); in dump() 331 pw.print(" persistable=0x" + Integer.toHexString(persistableModeFlags)); in dump() 332 pw.print(" persisted=0x" + Integer.toHexString(persistedModeFlags)); in dump()
|
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
H A 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()
|
H A 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()
|
H A 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() 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() 544 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasMic() 570 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasSpeaker() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/text/ |
H A 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()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/database/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/content/pm/ |
H A 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()
|
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A 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()
|
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/transport/ |
H A D | Transport.java | 159 Slog.d(TAG, "Received message 0x" + Integer.toHexString(message) in handleMessage() 168 Slog.w(TAG, "Failed to respond to 0x" + Integer.toHexString(message), e); in handleMessage() 173 Slog.w(TAG, "Unknown message 0x" + Integer.toHexString(message)); in handleMessage() 200 Slog.w(TAG, "Unknown request 0x" + Integer.toHexString(message)); in processRequest() 211 Slog.i(TAG, "Message 0x" + Integer.toHexString(message) in callback() 239 Slog.w(TAG, "Ignoring unknown response 0x" + Integer.toHexString(message)); in processResponse()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/content/res/ |
H A D | ResourcesImpl.java | 273 + Integer.toHexString(resid)); in getResourceName() 281 + Integer.toHexString(resid)); in getResourcePackageName() 289 + Integer.toHexString(resid)); in getResourceTypeName() 297 + Integer.toHexString(resid)); in getResourceEntryName() 788 + Integer.toHexString(resourceId) in verifyPreloadConfig() 800 + Integer.toHexString(resourceId) in verifyPreloadConfig() 1066 + Integer.toHexString(id)); 1106 + Integer.toHexString(id)); 1194 + Integer.toHexString(id)); 1263 + Integer.toHexString(id)); [all …]
|
H A D | Resources.java | 455 + Integer.toHexString(id)); in getText() 483 + Integer.toHexString(id)); in getFont() 767 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getDimension() 802 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getDimensionPixelOffset() 837 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getDimensionPixelSize() 868 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getFraction() 1182 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getBoolean() 1208 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getInteger() 1234 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id) in getFloat() 1985 sb.append("id=0x").append(Integer.toHexString(themeResId)); in toString() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/contexthub/ |
H A 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()
|
/aosp14/frameworks/base/services/autofill/java/com/android/server/autofill/ |
H A 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()
|
/aosp14/frameworks/base/core/tests/companiontests/src/android/companion/ |
H A D | SystemDataTransportTest.java | 104 assertEquals(HexDump.toHexString(expected), HexDump.toHexString(actual)); in testPingTrickle() 117 assertEquals(HexDump.toHexString(expected), HexDump.toHexString(actual)); in testPingDelay() 229 assertEquals(HexDump.toHexString(expected), HexDump.toHexString(actual)); in assertTransportBehavior()
|
/aosp14/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | AudioServiceEvents.java | 122 Integer.toHexString(mState.mAttributes.getInternalType())) in eventToString() 184 mDeviceNativeType = "0x" + Integer.toHexString(device.getInternalType()); in DeviceVolumeEvent() 212 sb.append(" currDevForStream:Ox").append(Integer.toHexString(mDeviceForStream)); in eventToString() 444 .append(" flags:0x").append(Integer.toHexString(mVal2)) in eventToString() 451 .append(" flags:0x").append(Integer.toHexString(mVal2)) in eventToString() 458 .append(" flags:0x").append(Integer.toHexString(mVal2)) in eventToString() 465 .append(" flags:0x").append(Integer.toHexString(mVal2)) in eventToString() 486 .append(" flags:0x").append(Integer.toHexString(mVal2)) in eventToString() 505 .append(" flags:0x").append(Integer.toHexString(mVal2)) in eventToString() 615 .append(Integer.toHexString(mRingerZenMutedStreams)) in eventToString() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | SparseMappingTable.java | 199 logOrThrow("key=0x" + Integer.toHexString(key) in getValue() 233 logOrThrow("id=0x" + Integer.toHexString(id) + " idx=" + idx in getValueForId() 234 + " key=0x" + Integer.toHexString(key) + " index=" + index in getValueForId() 275 + " key=0x" + Integer.toHexString(key) in setValue() 285 logOrThrow("key=0x" + Integer.toHexString(key) in setValue() 460 sb.append(Integer.toHexString((key >> ID_SHIFT) & ID_MASK)); in dumpInternalState() 462 sb.append(Integer.toHexString((key >> ARRAY_SHIFT) & ARRAY_MASK)); in dumpInternalState() 464 sb.append(Integer.toHexString((key >> INDEX_SHIFT) & INDEX_MASK)); in dumpInternalState()
|