Home
last modified time | relevance | path

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

12

/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java20 import android.util.Base64;
297 Base64.encodeToString(username.getBytes(), Base64.NO_WRAP), in saslAuthLogin()
300 Base64.encodeToString(password.getBytes(), Base64.NO_WRAP), in saslAuthLogin()
314 data = Base64.encode(data, Base64.NO_WRAP); in saslAuthPlain()
342 byte[] data = Base64.encode(authPhrase.getBytes(), Base64.NO_WRAP); in saslAuthOAuth()
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DAliasLoaderTest.java24 import android.util.Base64;
131 mRSACertOne = Base64.decode(SELF_SIGNED_RSA_CERT_1_B64, Base64.DEFAULT); in setUp()
132 mRSACertTwo = Base64.decode(SELF_SIGNED_RSA_CERT_2_B64, Base64.DEFAULT); in setUp()
133 mECCertOne = Base64.decode(SELF_SIGNED_EC_CERT_1_B64, Base64.DEFAULT); in setUp()
134 mECCertTwo = Base64.decode(SELF_SIGNED_EC_CERT_2_B64, Base64.DEFAULT); in setUp()
/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/services/Car/service/src/com/android/car/trust/
DCarTrustedDeviceService.java28 import android.util.Base64;
262 byte[] encryptedKey = Base64.decode(values[0], Base64.DEFAULT); in getEncryptionKey()
263 byte[] ivSpec = Base64.decode(values[1], Base64.DEFAULT); in getEncryptionKey()
346 return new StringBuffer(Base64.encodeToString(cipher.doFinal(value), Base64.DEFAULT)) in encryptWithKeyStore()
348 .append(Base64.encodeToString(cipher.getIV(), Base64.DEFAULT)) in encryptWithKeyStore()
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DTestCommandReceiver.java33 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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java44 import android.util.Base64;
258 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT)); in testAnalyticsVideo()
316 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT)); in testAnalyticsDumpToProto()
418 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT));
437 TelecomLogClass.TelecomLog.parseFrom(Base64.decode(sw.toString(), Base64.DEFAULT));
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DTextBody.java22 import android.util.Base64;
40 out.write(Base64.encode(bytes, Base64.CRLF)); in writeTo()
DBinaryTempFileBody.java25 import android.util.Base64;
74 out, Base64.CRLF | Base64.NO_CLOSE); in writeTo()
/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/Email/emailcommon/src/com/android/emailcommon/internet/
DRfc822Output.java22 import android.util.Base64;
263 out, Base64.CRLF | Base64.NO_CLOSE); in writeOneAttachment()
383 out.write(Base64.encode(textBytes, Base64.CRLF)); in writeTextWithHeaders()
/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/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParserTest.java121 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()
DExtrasProvisioningDataParserTest.java127 import android.util.Base64;
940 return Base64.encodeToString(TEST_PACKAGE_CHECKSUM, in buildTestPackageChecksum()
941 Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in buildTestPackageChecksum()
965 return Base64.encodeToString(TEST_SIGNATURE_CHECKSUM, in buildTestSignatureChecksum()
966 Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in buildTestSignatureChecksum()
/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/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/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DUiFactory.java40 import android.util.Base64;
200 writer.println(Base64.encodeToString( in dumpActivity()
201 out.toByteArray(), Base64.NO_WRAP | Base64.NO_PADDING)); in dumpActivity()
/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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAnomalyConfigJobService.java29 import android.util.Base64;
112 final byte[] config = Base64.decode(rawConfig, Base64.DEFAULT); in checkAnomalyConfig()
/packages/services/Car/tests/CarTrustAgentClientApp/src/com/android/car/trust/client/
DPhoneUnlockController.java27 import android.util.Base64;
96 byte[] token = Base64.decode(prefs.getString(mEscrowTokenKey, null), Base64.DEFAULT); in sendUnlockRequest()
DPhoneEnrolmentController.java27 import android.util.Base64;
124 String byteArray = Base64.encodeToString(token, Base64.DEFAULT); in storeToken()
/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java29 import android.util.Base64;
527 encoded = Base64.encode(nai.getBytes("UTF-8"), Base64.NO_WRAP); in getNai()
529 encoded = Base64.encode(nai.getBytes(), Base64.NO_WRAP); in getNai()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DBase64Body.java18 import android.util.Base64;
55 final Base64OutputStream b64out = new Base64OutputStream(out, Base64.DEFAULT); in writeTo()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DBase64Body.java19 import android.util.Base64;
57 final Base64OutputStream b64out = new Base64OutputStream(out, Base64.DEFAULT); in writeTo()

12