Home
last modified time | relevance | path

Searched refs:Base64 (Results 1 – 25 of 68) sorted by relevance

123

/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainActivityTest.java26 import android.util.Base64;
173 mPrivateKey = Base64.decode(PRIVATE_SERVER_KEY, Base64.DEFAULT); in setUp()
174 mLeafRsaCertificate = Base64.decode(LEAF_SERVER_CERT_RSA, Base64.DEFAULT); in setUp()
175 mIntermediateRsaCertificate = Base64.decode(INTERMEDIATE_CA_CERT_RSA, Base64.DEFAULT); in setUp()
176 mRootRsaCertificate = Base64.decode(ROOT_CA_CERT_RSA, Base64.DEFAULT); in setUp()
DBasicKeyChainServiceTest.java40 import android.util.Base64;
304 final byte[] userCert = Base64.decode(USER_CERT1, Base64.DEFAULT); in testSetKeyPairCertificate()
305 final byte[] certChain = Base64.decode(CA_CERT, Base64.DEFAULT); in testSetKeyPairCertificate()
314 final byte[] newUserCert = Base64.decode(USER_CERT2, Base64.DEFAULT); in testSetKeyPairCertificate()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DStoreUtils.java25 import android.util.Base64;
127 return Base64.decode(s, Base64.URL_SAFE); in stringToByteArray()
139 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in byteArrayToString()
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DAliasLoaderTest.java22 import android.util.Base64;
156 mRSACertOne = Base64.decode(SELF_SIGNED_RSA_CERT_1_B64, Base64.DEFAULT); in setUp()
157 mRSACertTwo = Base64.decode(SELF_SIGNED_RSA_CERT_2_B64, Base64.DEFAULT); in setUp()
158 mECCertOne = Base64.decode(SELF_SIGNED_EC_CERT_1_B64, Base64.DEFAULT); in setUp()
159 mECCertTwo = Base64.decode(SELF_SIGNED_EC_CERT_2_B64, Base64.DEFAULT); in setUp()
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DTestCommandProvider.java39 import android.util.Base64;
118 String path = Base64.encodeToString(uri.getPath().getBytes(), in openFile()
119 Base64.NO_CLOSE | Base64.NO_PADDING | Base64.NO_WRAP); in openFile()
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java21 import android.util.Base64;
77 return byteValue == null ? null : Base64.decode(byteValue, Base64.DEFAULT); in getBytes()
122 final String encodedBytes = Base64.encodeToString(value, Base64.DEFAULT); in putBytes()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/
DPasspointTestUtils.java24 import android.util.Base64;
107 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy()
124 Base64.encodeToString("subPassword".getBytes(), Base64.DEFAULT)); in createSubscriptionUpdate()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java51 import android.util.Base64;
279 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT)); in testAnalyticsVideo()
338 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT)); in testAnalyticsDumpToProto()
441 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT));
460 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT));
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DTextBody.java18 import android.util.Base64;
37 out.write(Base64.encode(bytes, Base64.CRLF)); in writeTo()
DBinaryTempFileBody.java18 import android.util.Base64;
69 Base64OutputStream base64Out = new Base64OutputStream(out, Base64.CRLF | Base64.NO_CLOSE); in writeTo()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionUtils.java23 import android.util.Base64;
59 return Base64.encodeToString(md5Bytes, Base64.DEFAULT); in getFingerprintFor()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java55 import android.util.Base64;
879 return Base64.encodeToString(encryptedBytes, 0, encryptedBytes.length, encodingFlag); in encryptDataUsingPublicKey()
913 imsiEncryptionInfo.getPublicKey(), identity.getBytes(), Base64.NO_WRAP); in buildEncryptedIdentity()
1157 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmAuthResponseWithLength()
1168 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in getGsmAuthResponseWithLength()
1230 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimpleSimNoLengthAuthResponse()
1241 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in getGsmSimpleSimNoLengthAuthResponse()
1316 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse()
1330 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in get3GAuthResponse()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapConnection.java19 import android.util.Base64;
275 return new String(Base64.decode(string, Base64.DEFAULT)); in decodeBase64()
279 return Base64.encodeToString(string.getBytes(), Base64.NO_WRAP); in encodeBase64()
/packages/modules/Wifi/service/tests/mts/src/android/net/wifi/mts/
DWifiDumpsysMetricsTest.java25 import android.util.Base64;
74 byte[] protoBytes = Base64.decode(protoString, Base64.DEFAULT); in testWifiDumpMetrics()
/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
DWebViewFragment.java21 import android.util.Base64;
65 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.java19 import android.util.Base64;
52 final String nonce = Base64.encodeToString(nonceBytes, Base64.DEFAULT); in requestAccessToken()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/
DConfigParser.java21 import android.util.Base64;
148 byte[] decodedData = Base64.decode(new String(data, StandardCharsets.ISO_8859_1), in parsePasspointConfig()
149 Base64.DEFAULT); in parsePasspointConfig()
306 part.data = Base64.decode(text.toString(), Base64.DEFAULT); in parseMimePart()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeCertX509CertPayloadTest.java35 import java.util.Base64;
162 Base64.Decoder bs64Decoder = Base64.getDecoder(); in pemStringToCertificate()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParserTest.java115 import android.util.Base64;
702 return Base64.encodeToString(TEST_PACKAGE_CHECKSUM, in buildTestPackageChecksum()
703 Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in buildTestPackageChecksum()
707 return Base64.encodeToString(TEST_SIGNATURE_CHECKSUM, in buildTestSignatureChecksum()
708 Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in buildTestSignatureChecksum()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisioningTestUtil.java22 import android.util.Base64;
133 Base64.decode(certString, Base64.DEFAULT)); in getOsuCertsForTest()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java27 import android.util.Base64;
196 String base64Challenge = Base64.encodeToString(formattedChallenge, Base64.NO_WRAP); in processUiccAuthentication()
207 return Base64.decode(base64Response, Base64.DEFAULT); in processUiccAuthentication()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyConfigJobService.java29 import android.util.Base64;
112 final byte[] config = Base64.decode(rawConfig, Base64.DEFAULT); in checkAnomalyConfig()
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DServerInterface.java20 import android.util.Base64;
61 + Base64.encodeToString(challenge, Base64.URL_SAFE)); in requestSignedCertificates()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java60 import android.util.Base64;
574 String encryptedImsi = Base64.encodeToString(permanentIdentity.getBytes(), 0, in getEncryptedIdentity_WithRfc4648()
575 permanentIdentity.getBytes().length, Base64.NO_WRAP); 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()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java26 import android.util.Base64;
455 encoded = Base64.encode(nai.getBytes("UTF-8"), Base64.NO_WRAP); in getEncodedNai()
457 encoded = Base64.encode(nai.getBytes(), Base64.NO_WRAP); in getEncodedNai()

123