Home
last modified time | relevance | path

Searched refs:Base64 (Results 1 – 25 of 37) 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/ManagedProvisioning/tests/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParserTest.java58 import android.util.Base64;
260 Base64.encodeToString(TEST_PACKAGE_CHECKSUM, in setTestDeviceAdminDownload()
261 Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP)); in setTestDeviceAdminDownload()
264 Base64.encodeToString(TEST_SIGNATURE_CHECKSUM, in setTestDeviceAdminDownload()
265 Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP)); in setTestDeviceAdminDownload()
DExtrasProvisioningDataParserTest.java63 import android.util.Base64;
456 Base64.encodeToString(TEST_PACKAGE_CHECKSUM, in getTestDeviceAdminDownloadExtras()
457 Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP)); in getTestDeviceAdminDownloadExtras()
460 Base64.encodeToString(TEST_SIGNATURE_CHECKSUM, in getTestDeviceAdminDownloadExtras()
461 Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP)); in getTestDeviceAdminDownloadExtras()
/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/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()
DMimeUtility.java20 import android.util.Base64;
331 in = new Base64InputStream(in, Base64.DEFAULT); in getInputStreamForContentTransferEncoding()
/packages/services/Telephony/src/com/android/phone/common/mail/internet/
DTextBody.java18 import android.util.Base64;
39 out.write(Base64.encode(bytes, Base64.CRLF)); in writeTo()
DBinaryTempFileBody.java24 import android.util.Base64;
73 out, Base64.CRLF | Base64.NO_CLOSE); in writeTo()
DMimeUtility.java19 import android.util.Base64;
330 in = new Base64InputStream(in, Base64.DEFAULT); in getInputStreamForContentTransferEncoding()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java65 import android.util.Base64;
315 return Base64.decode(s, Base64.URL_SAFE); in stringToByteArray()
327 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in byteArrayToString()
/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/Launcher3/src/com/android/launcher3/
DLauncherBackupHelper.java39 import android.util.Base64;
494 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in restoreFavorite()
544 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in restoreScreen()
631 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in restoreIcon()
722 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in restoreWidget()
768 return Base64.encodeToString(Key.toByteArray(key), Base64.NO_WRAP); in keyToBackupKey()
774 Key key = Key.parseFrom(Base64.decode(backupKey, Base64.DEFAULT)); in backupKeyToKey()
DInstallShortcutReceiver.java29 import android.util.Base64;
334 Base64.encodeToString( in encodeToString()
335 iconByteArray, 0, iconByteArray.length, Base64.DEFAULT)); in encodeToString()
397 byte[] iconArray = Base64.decode(iconBase64, Base64.DEFAULT); in decode()
/packages/services/Telephony/src/com/android/phone/common/mail/
DBase64Body.java18 import android.util.Base64;
56 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()
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallShortcutReceiver.java27 import android.util.Base64;
92 Base64.encodeToString( in addToInstallQueue()
93 iconByteArray, 0, iconByteArray.length, Base64.DEFAULT)); in addToInstallQueue()
130 byte[] iconArray = Base64.decode(iconBase64, Base64.DEFAULT); in getAndClearInstallQueue()
/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/Mms/src/com/android/mms/service/
DMmsHttpClient.java28 import android.util.Base64;
502 encoded = Base64.encode(nai.getBytes("UTF-8"), Base64.NO_WRAP); in getNai()
504 encoded = Base64.encode(nai.getBytes(), Base64.NO_WRAP); in getNai()
/packages/apps/Calendar/src/com/android/calendar/
DGoogleCalendarUriIntentFilter.java35 import android.util.Base64;
77 byte[] decodedBytes = Base64.decode(eidParam, Base64.DEFAULT); in extractEidAndEmail()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessageMime.java29 import android.util.Base64;
113 sb.append(Base64.encodeToString(mData, Base64.DEFAULT)).append("\r\n"); in encode()
658 return Base64.decode(body, Base64.DEFAULT); in decodeBody()
DBluetoothMapUtils.java18 import android.util.Base64;
459 str = new String(Base64.decode(encodedText.getBytes(charset), in stripEncoding()
460 Base64.DEFAULT), charset); in stripEncoding()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapConnection.java20 import android.util.Base64;
117 Base64.encodeToString(oauthCode.getBytes(), Base64.NO_WRAP); in getLoginPhrase()
/packages/services/Telecomm/src/com/android/server/telecom/
DLog.java27 import android.util.Base64;
574 return Base64.encodeToString(idByteArray, Base64.NO_WRAP | Base64.NO_PADDING); in getBase64Encoding()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/
DImapHelper.java29 import android.util.Base64;
591 return Base64.decode(out.toByteArray(), Base64.DEFAULT); in getDataFromBody()

12