Home
last modified time | relevance | path

Searched refs:encodeToString (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/Wifi/framework/java/android/net/wifi/util/
DHexEncoding.java42 public static String encodeToString(byte b, boolean upperCase) { in encodeToString() method in HexEncoding
90 public static String encodeToString(byte[] data) { in encodeToString() method in HexEncoding
91 return encodeToString(data, true /* upperCase */); in encodeToString()
97 public static String encodeToString(byte[] data, boolean upperCase) { in encodeToString() method in HexEncoding
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/
DHexEncodingTest.java21 import static android.net.wifi.util.HexEncoding.encodeToString;
49 String actualUpper = encodeToString(toEncode.byteValue(), true /* upperCase */); in testEncodeByte()
52 String actualLower = encodeToString(toEncode.byteValue(), false /* upperCase */); in testEncodeByte()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNetlinkTestUtils.kt24 import libcore.util.HexEncoding.encodeToString
79 encodeToString(neighAddr.address) +
DStructNdOptPref64Test.java67 String actual = HexEncoding.encodeToString(opt.toByteBuffer().array()); in assertToByteBufferMatches()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/
DPasspointTestUtils.java107 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy()
124 Base64.encodeToString("subPassword".getBytes(), Base64.DEFAULT)); in createSubscriptionUpdate()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java417 .encodeToString(wifiConf.enterpriseConfig.getCaCertificate().getEncoded())); in assertCertificateInformation()
421 .encodeToString(wifiConf.enterpriseConfig.getClientPrivateKey().getEncoded())); in assertCertificateInformation()
442 encodedCertChain.append(Base64.getEncoder().encodeToString(certificate.getEncoded())); in buildEncodedCertificateChain()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java574 String encryptedImsi = Base64.encodeToString(permanentIdentity.getBytes(), 0, in getEncryptedIdentity_WithRfc4648()
702 return Base64.encodeToString(challengeLengthAndValue, android.util.Base64.NO_WRAP); in createSimChallengeRequest()
709 return Base64.encodeToString(challengeValue, android.util.Base64.NO_WRAP); in create2gUsimChallengeRequest()
727 return Base64.encodeToString(result, Base64.NO_WRAP); in createGsmSimAuthResponse()
743 return Base64.encodeToString(result, Base64.NO_WRAP); in create2gUsimAuthResponse()
888 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAuthResponse()
899 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAutsResponse()
932 .thenReturn(Base64.encodeToString(new byte[] {(byte) 0xdc}, Base64.NO_WRAP)); in get3GAuthResponseIccAuthenticationTooShort()
946 .thenReturn(Base64.encodeToString(new byte[] {0x31, 0x1, 0x2, 0x3, 0x4}, in get3GAuthResponseBadTag()
DWifiConfigStoreTest.java902 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile()
903 HexEncoding.encodeToString(iv), in testReadVersion2StoreFile()
907 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile()
908 HexEncoding.encodeToString(iv), in testReadVersion2StoreFile()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionUtils.java59 return Base64.encodeToString(md5Bytes, Base64.DEFAULT); in getFingerprintFor()
/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
DWebViewFragment.java65 String encodedHtml = Base64.encodeToString(webViewHtml.getBytes(), Base64.NO_PADDING); in onCreateView()
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/
DTokenViewModel.java52 final String nonce = Base64.encodeToString(nonceBytes, Base64.DEFAULT); in requestAccessToken()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothFastPairTest.java109 .encodeToString(TEST_PUBLIC_KEY_A);
111 .encodeToString(TEST_PRIVATE_KEY_B);
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DServerInterface.java61 + Base64.encodeToString(challenge, Base64.URL_SAFE)); in requestSignedCertificates()
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DTestCommandProvider.java118 String path = Base64.encodeToString(uri.getPath().getBytes(), in openFile()
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java122 final String encodedBytes = Base64.encodeToString(value, Base64.DEFAULT); in putBytes()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java879 return Base64.encodeToString(encryptedBytes, 0, encryptedBytes.length, encodingFlag); in encryptDataUsingPublicKey()
1157 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmAuthResponseWithLength()
1230 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimpleSimNoLengthAuthResponse()
1316 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse()
DWifiDiagnostics.java754 result = android.util.Base64.encodeToString(input, Base64.DEFAULT); in compressToBase64()
764 result = android.util.Base64.encodeToString( in compressToBase64()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DStoreUtils.java139 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in byteArrayToString()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/pps/
DPolicyTest.java85 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy()
DUpdateParameterTest.java58 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createUpdateParameter()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java602 String checksumDataBase64 = mEncoder.encodeToString(allBytes); in readChecksumFile()
732 outputBase64 = mEncoder.encodeToString(outputBytes); in encrypt()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DDigestMd5Utils.java91 return Base64.encodeToString(rawBytes, Base64.NO_WRAP); in createCnonce()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParserTest.java702 return Base64.encodeToString(TEST_PACKAGE_CHECKSUM, in buildTestPackageChecksum()
707 return Base64.encodeToString(TEST_SIGNATURE_CHECKSUM, in buildTestSignatureChecksum()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapConnection.java279 return Base64.encodeToString(string.getBytes(), Base64.NO_WRAP); in encodeBase64()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java196 String base64Challenge = Base64.encodeToString(formattedChallenge, Base64.NO_WRAP); in processUiccAuthentication()

12