/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | HexDumpTest.java | 19 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 D | BitwiseStreamsTest.java | 21 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 D | WatchlistSettingsTests.java | 28 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 D | HarmfulDigestsTests.java | 25 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 D | WatchlistConfigTests.java | 30 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 D | HarmfulCrcsTests.java | 25 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 D | CharsetUtilsTest.java | 23 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 D | SP800DeriveTests.java | 26 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 D | DrmReceiver.java | 24 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 D | ReceiverActivity.java | 24 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 D | ReceiverService.java | 25 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 D | ClientTest.java | 37 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 D | SystemDataTransportTest.java | 24 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 D | HarmfulDigests.java | 19 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 D | ReportEncoder.java | 25 import com.android.internal.util.HexDump; 87 HexDump.toHexString(watchlistHash)); in serializeReport() 92 byte[] digest = HexDump.hexStringToByteArray(key); in serializeReport()
|
H A D | HarmfulCrcs.java | 19 import com.android.internal.util.HexDump; 59 pw.println(HexDump.toHexString(crc)); in dump()
|
H A D | WatchlistSettings.java | 27 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 D | WatchlistConfig.java | 26 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 D | WatchlistReportDbHelper.java | 29 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 D | LogUtils.java | 22 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 D | UserData.java | 23 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 D | PackageSignaturesTest.java | 33 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 D | HexDump.java | 19 public class HexDump { class
|
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
H A D | CdmaSmsAddress.java | 24 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 D | PerPackageReadTimeouts.java | 22 import com.android.internal.util.HexDump; 42 return HexDump.hexStringToByteArray(str); in tryParseSha256()
|