/aosp12/art/test/041-narrowing/src/ |
H A D | Main.java | 18 + Long.toHexString(Double.doubleToRawLongBits(Double.NaN))); in test_printNarrowing() 20 + Long.toHexString(Double.doubleToRawLongBits(Float.NaN))); in test_printNarrowing() 24 + (Long.toHexString((byte)dbl2).equals("0") ? "00" : Long.toHexString((byte)dbl2) in test_printNarrowing() 27 + (Integer.toHexString((short)dbl2).equals("0") ? "0000" : Integer.toHexString( in test_printNarrowing() 31 .toHexString((int)dbl2)) + " expected: 00000000"); in test_printNarrowing() 38 + (Long.toHexString((byte)fl2).equals("0") ? "00" : Long.toHexString((byte)fl2) in test_printNarrowing() 41 + (Integer.toHexString((short)fl2).equals("0") ? "0000" : Integer.toHexString( in test_printNarrowing() 52 + (Integer.toHexString((byte)dbl3).equals("0") ? "00" : Integer.toHexString( in test_printNarrowing() 55 + (Integer.toHexString((short)dbl3).equals("0") ? "0000" : Integer.toHexString( in test_printNarrowing() 76 + (Integer.toHexString((byte)fl3).equals("0") ? "00" : Integer.toHexString( in test_printNarrowing() [all …]
|
/aosp12/frameworks/libs/net/common/device/com/android/net/module/util/ |
H A D | HexDump.java | 55 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() 137 return toHexString(array, offset, length, true); in toHexString() 167 public static String toHexString(int i) { in toHexString() method in HexDump [all …]
|
/aosp12/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 …]
|
/aosp12/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 …]
|
/aosp12/art/test/027-arithmetic/src/ |
H A D | Main.java | 34 System.out.println("values are " + Integer.toHexString(i1) in shiftTest1() 35 + " and " + Integer.toHexString(i2)); in shiftTest1() 37 System.out.println("First l is " + Long.toHexString(l)); in shiftTest1() 48 System.out.println("Second l is " + Long.toHexString(l)); in shiftTest1() 65 System.out.println("shiftTest2 l is " + Long.toHexString(result)); in shiftTest2() 143 System.out.println("b=0x" + Integer.toHexString((int)b) in unsignedShiftTest() 144 + ", s=0x" + Integer.toHexString((int)s) in unsignedShiftTest() 145 + ", c=0x" + Integer.toHexString((int)c) in unsignedShiftTest() 146 + ", i=0x" + Integer.toHexString(i)); in unsignedShiftTest()
|
/aosp12/frameworks/base/core/java/android/bluetooth/ |
H A D | OobData.java | 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() 933 + "LE Device Role: " + toHexString(mLeDeviceRole) + "\n\t" in toString() 935 + "LE Appearance: " + toHexString(mLeAppearance) + "\n\t" in toString() 936 + "LE Flags: " + toHexString(mLeFlags) + "\n\t"; in toString() 940 private String toHexString(@NonNull int b) { in toHexString() method in OobData 941 return toHexString(new byte[] {(byte) b}); in toHexString() 945 private String toHexString(@NonNull byte b) { in toHexString() method in OobData 946 return toHexString(new byte[] {b}); in toHexString() [all …]
|
/aosp12/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()
|
/aosp12/frameworks/base/core/java/android/util/proto/ |
H A D | ProtoInputStream.java | 241 + Integer.toHexString(mPackedEnd) in nextField() 608 + Integer.toHexString(getOffset()) in readVarint() 659 + Integer.toHexString(getOffset()) in readFixed32() 705 + Integer.toHexString(getOffset()) 739 + Integer.toHexString(mEnd) 837 + Integer.toHexString(mOffset) 972 sb.append("\nmWireType : 0x" + Integer.toHexString(mWireType)); in dumpDebugData() 973 sb.append("\nmState : 0x" + Integer.toHexString(mState)); in dumpDebugData() 975 sb.append("\nmOffset : 0x" + Integer.toHexString(mOffset)); in dumpDebugData() 982 sb.append("\nmDepth : 0x" + Integer.toHexString(mDepth)); in dumpDebugData() [all …]
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | CarPropertyService.java | 19 import static java.lang.Integer.toHexString; 190 writer.println("propId: 0x" + toHexString(propId) in dump() 203 toHexString(propId), toHexString(areaId), areaIdToClient.valueAt(j))); in dump() 296 Slog.d(TAG, "unregisterListener propId=0x" + toHexString(propId)); in unregisterListener() 329 + "propId=0x" + toHexString(propId)); in unregisterListenerBinderLocked() 432 + toHexString(prop)); in getPropertySafe() 506 + "property Id: 0x" + Integer.toHexString(propId)); in checkPropertyAccessibility() 536 Slog.d("ErrorEvent", " Clear propId:0x" + toHexString(propId) in clearSetOperationRecorderLocked() 537 + " areaId: 0x" + toHexString(areaIdToClient.keyAt(index))); in clearSetOperationRecorderLocked() 555 + toHexString(propId)); in onPropertyChange() [all …]
|
/aosp12/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()
|
/aosp12/art/test/567-checker-builder-intrinsics/src/ |
H A D | TestFpAbs.java | 137 throw new Error("Expected: 0x" + Integer.toHexString(expected) in expectEquals32() 138 + ", found: 0x" + Integer.toHexString(result)); in expectEquals32() 152 throw new Error("Expected: 0x" + Integer.toHexString(expected) in expectEqualsNaN32() 153 + ", found: 0x" + Integer.toHexString(result)); in expectEqualsNaN32() 159 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEquals64() 160 + ", found: 0x" + Long.toHexString(result)); in expectEquals64() 174 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEqualsNaN64() 175 + ", found: 0x" + Long.toHexString(result)); in expectEqualsNaN64()
|
/aosp12/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()
|
/aosp12/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() 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()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
H A D | HalClientUnitTest.java | 70 assertThat(actualException).hasMessageThat().contains(Integer.toHexString(PROP)); in testSet_remoteExceptionThenFail() 71 assertThat(actualException).hasMessageThat().contains(Integer.toHexString(AREA_ID)); in testSet_remoteExceptionThenFail() 90 assertThat(actualException).hasMessageThat().contains(Integer.toHexString(PROP)); in testSet_invalidArgument() 91 assertThat(actualException).hasMessageThat().contains(Integer.toHexString(AREA_ID)); in testSet_invalidArgument() 101 assertThat(actualException).hasMessageThat().contains(Integer.toHexString(PROP)); in testSet_otherError() 102 assertThat(actualException).hasMessageThat().contains(Integer.toHexString(AREA_ID)); in testSet_otherError()
|
/aosp12/packages/services/Car/service/src/com/android/car/hal/ |
H A D | PropertyHalService.java | 24 import static java.lang.Integer.toHexString; 179 throw new IllegalArgumentException("Invalid property Id : 0x" + toHexString(mgrPropId)); in getProperty() 208 + toHexString(mgrPropId) + " area id: 0x" + toHexString(areaId) in getPropertySafe() 221 throw new IllegalArgumentException("Invalid property Id : 0x" + toHexString(mgrPropId)); in getSampleRate() 283 + toHexString(prop.getPropertyId())); in setProperty() 309 Slog.d(TAG, "subscribeProperty propId=0x" + toHexString(mgrPropId) + ", rate=" + rate); in subscribeProperty() 314 + toHexString(mgrPropId)); in subscribeProperty() 335 Slog.d(TAG, "unsubscribeProperty propId=0x" + toHexString(mgrPropId)); in unsubscribeProperty() 340 + toHexString(mgrPropId)); in unsubscribeProperty() 393 Slog.d(TAG, "takeSupportedProperties: " + toHexString(p.prop)); in takeProperties() [all …]
|
/aosp12/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()
|
/aosp12/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 | UsbDescriptorParser.java | 233 + Integer.toHexString(type)); in allocDescriptor() 242 + Integer.toHexString(type)); in allocDescriptor() 248 + Integer.toHexString(subClass)); in allocDescriptor() 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() 549 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasSpeaker() 653 + " t:0x" + Integer.toHexString(descriptor.getType())); in hasMIDIInterface() [all …]
|
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()
|
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
H A D | HexDumpTest.java | 33 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()
|
/aosp12/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/ |
H A D | ContextHubEventBetweenAppsTestExecutor.java | 77 assertFalse("Multiple CONTINUE messages from app 0x" + Long.toHexString(nanoAppId), in handleMessageFromNanoApp() 87 fail("Not enough data provided in CONTINUE message from 0x" + Long.toHexString( in handleMessageFromNanoApp() 91 "Too much data provided in CONTINUE message from 0x" + Long.toHexString(nanoAppId), in handleMessageFromNanoApp() 100 assertEquals("Incorrect app ID given for 0x" + Long.toHexString(mNanoAppId0), in handleMessageFromNanoApp() 103 assertEquals("Incorrect app ID given for 0x" + Long.toHexString(mNanoAppId1), in handleMessageFromNanoApp()
|
/aosp12/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()
|
/aosp12/packages/services/Car/car-lib/src/android/car/hardware/property/ |
H A D | CarInternalErrorException.java | 19 import static java.lang.Integer.toHexString; 26 super("Property 0x" + toHexString(property) + " with area: " + toHexString(areaId) in CarInternalErrorException()
|
H A D | PropertyAccessDeniedSecurityException.java | 19 import static java.lang.Integer.toHexString; 27 + toHexString(property) + " in area: " + toHexString(areaId)); in PropertyAccessDeniedSecurityException()
|
H A D | PropertyNotAvailableAndRetryException.java | 19 import static java.lang.Integer.toHexString; 27 super("Property 0x" + toHexString(property) + " with area: " + toHexString(areaId) in PropertyNotAvailableAndRetryException()
|