/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; 65 byte[] reconstruction = hexStringToByteArray(toHexString(bytes)); in testRoundTrip_fromBytes() 75 String reconstruction = toHexString(hexStringToByteArray(original)); in testRoundTrip_fromString() 117 assertBytesEqual(new byte[0], HexDump.hexStringToByteArray("")); in testHexStringToByteArray_empty() 123 () -> HexDump.hexStringToByteArray((String) null)); in testHexStringToByteArray_null() 131 () -> HexDump.hexStringToByteArray("GG")); in testHexStringToByteArray_invalidCharacters() 134 () -> HexDump.hexStringToByteArray("\0\0")); in testHexStringToByteArray_invalidCharacters() 137 () -> HexDump.hexStringToByteArray("abcdefgh")); in testHexStringToByteArray_invalidCharacters() 145 () -> HexDump.hexStringToByteArray("A")); in testHexStringToByteArray_oddLength() 148 () -> HexDump.hexStringToByteArray("123")); in testHexStringToByteArray_oddLength() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
H A D | HarmfulDigestsTests.java | 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 | 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");
|
H A D | HarmfulCrcsTests.java | 41 private static final byte[] TEST_DIGEST = HexDump.hexStringToByteArray("AABBCCDD");
|
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | BitwiseStreamsTest.java | 36 byte[] inBuf = HexDump.hexStringToByteArray("FFDD"); in testOne() 51 byte[] inBuf = HexDump.hexStringToByteArray("11d4f29c0e9ad3c36e72584e064d9b53"); in testTwo() 65 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testThree() 79 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testFour() 120 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testSix()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | SP800DeriveTests.java | 38 byte[] keyBytes = HexDump.hexStringToByteArray( in testFixedInput() 42 byte[] fixedInput = HexDump.hexStringToByteArray( in testFixedInput()
|
/aosp14/frameworks/base/errorprone/tests/res/com/android/internal/util/ |
H A D | HexDump.java | 24 public static byte[] hexStringToByteArray(String hexString) { in hexStringToByteArray() method in HexDump
|
/aosp14/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
H A D | ClientTest.java | 129 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate() 131 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate()
|
/aosp14/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
H A D | ReportEncoder.java | 92 byte[] digest = HexDump.hexStringToByteArray(key); in serializeReport()
|
H A D | WatchlistSettings.java | 115 byte[] key = HexDump.hexStringToByteArray(parser.nextText()); in parseSecretKey()
|
H A D | WatchlistConfig.java | 159 byte[] hash = HexDump.hexStringToByteArray(parser.nextText()); in parseHashes()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | HexDump.java | 173 public static byte[] hexStringToByteArray(String hexString) in hexStringToByteArray() method in HexDump
|
H A D | XmlUtils.java | 149 return HexDump.hexStringToByteArray(getAttributeValue(index)); in getAttributeBytesHex()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PerPackageReadTimeouts.java | 42 return HexDump.hexStringToByteArray(str); in tryParseSha256()
|
/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiUtils.java | 677 byte[] sadBytes = HexDump.hexStringToByteArray(sad); in readSad() 773 this.sad = HexDump.hexStringToByteArray(sad); in CodecSad()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/util/ |
H A D | XmlPerfTest.java | 145 private static final byte[] KEY_BLOB = HexDump.hexStringToByteArray(""
|
/aosp14/frameworks/base/services/core/java/com/android/server/vcn/util/ |
H A D | PersistableBundleUtils.java | 222 return HexDump.hexStringToByteArray(hex); in toByteArray()
|
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | VpnIkev2Utils.java | 448 return new IkeKeyIdIdentification(HexDump.hexStringToByteArray(hexStr)); in parseIkeIdentification()
|
/aosp14/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/ |
H A D | WifiNl80211ManagerTest.java | 1376 return byteArrayToArrayList(hexStringToByteArray(str)); in hexOrQuotedStringToBytes() 1419 public static byte[] hexStringToByteArray(String hexStr) { in hexStringToByteArray() method in WifiNl80211ManagerTest.LocalNativeUtil
|
/aosp14/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnProfile.java | 332 final byte[] bytes = HexDump.hexStringToByteArray(values[27]); in decode()
|
/aosp14/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkManagementService.java | 648 HexDump.hexStringToByteArray(hex)); in onStrictCleartextDetected()
|