Home
last modified time | relevance | path

Searched refs:HexDump (Results 1 – 25 of 55) sorted by relevance

123

/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DHexDumpTest.java19 import static com.android.internal.util.HexDump.hexStringToByteArray;
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()
131 () -> HexDump.hexStringToByteArray("GG")); in testHexStringToByteArray_invalidCharacters()
134 () -> HexDump.hexStringToByteArray("\0\0")); in testHexStringToByteArray_invalidCharacters()
145 () -> HexDump.hexStringToByteArray("A")); in testHexStringToByteArray_oddLength()
148 () -> HexDump.hexStringToByteArray("123")); in testHexStringToByteArray_oddLength()
[all …]
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DBitwiseStreamsTest.java21 import com.android.internal.util.HexDump;
36 byte[] inBuf = HexDump.hexStringToByteArray("FFDD"); in testOne()
45 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testOne()
51 byte[] inBuf = HexDump.hexStringToByteArray("11d4f29c0e9ad3c36e72584e064d9b53"); in testTwo()
59 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testTwo()
65 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testThree()
73 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testThree()
79 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testFour()
90 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testFour()
120 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testSix()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
H A DWatchlistSettingsTests.java28 import com.android.internal.util.HexDump;
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()
H A DHarmfulDigestsTests.java25 import com.android.internal.util.HexDump;
41 private static final byte[] TEST_DIGEST_1 = HexDump.hexStringToByteArray("AAAAAA");
42 private static final byte[] TEST_DIGEST_2 = HexDump.hexStringToByteArray("BBBBBB");
43 private static final byte[] TEST_DIGEST_3 = HexDump.hexStringToByteArray("AAAABB");
44 private static final byte[] TEST_DIGEST_4 = HexDump.hexStringToByteArray("BBBBAA");
H A DWatchlistConfigTests.java30 import com.android.internal.util.HexDump;
65 private static final byte[] TEST_NEW_CC_DOMAIN_SHA256 = HexDump.hexStringToByteArray(
67 private static final byte[] TEST_NEW_CC_DOMAIN_CRC32 = HexDump.hexStringToByteArray("76795BD3");
70 private static final byte[] TEST_NEW_CC_IP_SHA256 = HexDump.hexStringToByteArray(
72 private static final byte[] TEST_NEW_CC_IP_CRC32 = HexDump.hexStringToByteArray("940B8BEE");
120 assertEquals(TEST_XML_1_HASH, HexDump.toHexString(config.getWatchlistConfigHash())); in testWatchlistConfig_getWatchlistConfigHash_hasConfig()
H A DHarmfulCrcsTests.java25 import com.android.internal.util.HexDump;
41 private static final byte[] TEST_DIGEST = HexDump.hexStringToByteArray("AABBCCDD");
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DCharsetUtilsTest.java23 import com.android.internal.util.HexDump;
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/tests/servicestests/src/com/android/server/locksettings/
H A DSP800DeriveTests.java26 import com.android.internal.util.HexDump;
38 byte[] keyBytes = HexDump.hexStringToByteArray( in testFixedInput()
42 byte[] fixedInput = HexDump.hexStringToByteArray( in testFixedInput()
50 + "d8287b4fd537d5c1fffa956910e7c779").toUpperCase(), HexDump.toHexString(res)); in testFixedInput()
/aosp14/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DDrmReceiver.java24 import com.android.internal.util.HexDump;
44 Log.d(LOG_TAG, HexDump.dumpHexString(header)); in onReceive()
46 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onReceive()
H A DReceiverActivity.java24 import com.android.internal.util.HexDump;
45 Log.d(LOG_TAG, HexDump.dumpHexString(header)); in onCreate()
47 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onCreate()
H A DReceiverService.java25 import com.android.internal.util.HexDump;
54 Log.d(LOG_TAG, HexDump.dumpHexString(header)); in onStartCommand()
56 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onStartCommand()
H A DClientTest.java37 import com.android.internal.util.HexDump;
129 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate()
131 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate()
/aosp14/frameworks/base/core/tests/companiontests/src/android/companion/
H A DSystemDataTransportTest.java24 import com.android.internal.util.HexDump;
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/net/watchlist/
H A DHarmfulDigests.java19 import com.android.internal.util.HexDump;
40 tmpDigestSet.add(HexDump.toHexString(digests.get(i))); in HarmfulDigests()
46 return mDigestSet.contains(HexDump.toHexString(digest)); in contains()
H A DReportEncoder.java25 import com.android.internal.util.HexDump;
87 HexDump.toHexString(watchlistHash)); in serializeReport()
92 byte[] digest = HexDump.hexStringToByteArray(key); in serializeReport()
H A DHarmfulCrcs.java19 import com.android.internal.util.HexDump;
59 pw.println(HexDump.toHexString(crc)); in dump()
H A DWatchlistSettings.java27 import com.android.internal.util.HexDump;
115 byte[] key = HexDump.hexStringToByteArray(parser.nextText()); in parseSecretKey()
153 out.text(HexDump.toHexString(mPrivacySecretKey)); in saveSettings()
H A DWatchlistConfig.java26 import com.android.internal.util.HexDump;
159 byte[] hash = HexDump.hexStringToByteArray(parser.nextText()); in parseHashes()
273 pw.println("Watchlist config hash: " + (hash != null ? HexDump.toHexString(hash) : null)); in dump()
H A DWatchlistReportDbHelper.java29 import com.android.internal.util.HexDump;
176 String digestHexStr = HexDump.toHexString(c.getBlob(INDEX_DIGEST)); in getAggregatedRecords()
/aosp14/frameworks/base/services/core/java/com/android/server/vcn/util/
H A DLogUtils.java22 import com.android.internal.util.HexDump;
37 return HexDump.toHexString(uuid.hashCode()); in getHashedSubscriptionGroup()
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
H A DUserData.java23 import com.android.internal.util.HexDump;
179 builder.append(", payload='" + HexDump.toHexString(payload) + "'"); in toString()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DPackageSignaturesTest.java33 import com.android.internal.util.HexDump;
361 String signatureValue = HexDump.toHexString(signature.toByteArray(), false); in testReadXmlWithPastSignerWithNoCapabilities()
406 String signatureValue = HexDump.toHexString(signature.toByteArray(), false); in verifyReadXmlReturnsExpectedSignaturesAndLineage()
431 signatureString = HexDump.toHexString(signature.toByteArray(), false); in verifySignaturesContainExpectedValues()
/aosp14/frameworks/base/errorprone/tests/res/com/android/internal/util/
H A DHexDump.java19 public class HexDump { class
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
H A DCdmaSmsAddress.java24 import com.android.internal.util.HexDump;
112 builder.append(", origBytes=" + HexDump.toHexString(origBytes)); in toString()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DPerPackageReadTimeouts.java22 import com.android.internal.util.HexDump;
42 return HexDump.hexStringToByteArray(str); in tryParseSha256()

123