/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/ |
D | ProtoUtil.java | 21 import android.util.Base64; 56 return Base64.encodeToString( in encodeContentProviderAllowlist() 57 contentProviderAllowlists.toByteArray(), Base64.NO_PADDING | Base64.NO_WRAP); in encodeContentProviderAllowlist() 64 return Base64.encodeToString( in encodeContentProviderAllowlist() 65 allowedContentProvidersBuilder.toByteArray(), Base64.NO_PADDING | Base64.NO_WRAP); in encodeContentProviderAllowlist() 84 Base64.encodeToString( in encodeActivityAllowlist() 85 activityAllowlists.toByteArray(), Base64.NO_PADDING | Base64.NO_WRAP); in encodeActivityAllowlist() 94 return Base64.encodeToString( in encodeActivityAllowlist() 95 allowedActivitiesBuilder.toByteArray(), Base64.NO_PADDING | Base64.NO_WRAP); in encodeActivityAllowlist() 117 return Base64.encodeToString( in encodeBroadcastReceiverAllowlist() [all …]
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
D | KeyChainActivityTest.java | 25 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()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/ |
D | CryptUtils.java | 22 import android.util.Base64; 75 return Base64.encodeToString(sealedBytes, Base64.URL_SAFE | Base64.NO_WRAP); in encrypt() 81 byte[] cipherMessage = Base64.decode(base64data, Base64.URL_SAFE | Base64.NO_WRAP); in decrypt()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | BpfDump.java | 22 import android.util.Base64; 47 final String keyBase64Str = Base64.encodeToString(keyBytes, Base64.DEFAULT) in toBase64EncodedString() 50 final String valueBase64Str = Base64.encodeToString(valueBytes, Base64.DEFAULT) in toBase64EncodedString() 61 final byte[] bytes = Base64.decode(base64Str, Base64.DEFAULT); in parseStruct()
|
/packages/modules/Permission/SafetyCenter/InternalData/java/com/android/safetycenter/internaldata/ |
D | SafetyCenterIds.java | 21 import android.util.Base64; 33 private static final int ENCODING_FLAGS = Base64.NO_WRAP | Base64.URL_SAFE; 79 return Base64.encodeToString(message.toByteArray(), ENCODING_FLAGS); in encodeToString() 130 return parser.parseFrom(Base64.decode(encoded, ENCODING_FLAGS)); in decodeToProto()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | StoreUtils.java | 25 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/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/proto/ |
D | ProtoParserTest.java | 19 import android.util.Base64; 38 String encodedStr = getBase64EncodedString(SAMPLE_RATE, Base64.DEFAULT); in parseBase64EncodedStringToProto_success() 50 String encodedStr = getBase64EncodedString(SAMPLE_RATE, Base64.NO_WRAP | Base64.NO_PADDING); in parseBase64EncodedStringToProto_noWrapNoPadding_success() 89 return Base64.encodeToString(value.toByteArray(), flag); in getBase64EncodedString()
|
/packages/apps/KeyChain/robotests/src/com/android/keychain/ |
D | AliasLoaderTest.java | 22 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/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/proto/ |
D | ProtoParser.java | 21 import android.util.Base64; 78 return Base64.decode(base64value, Base64.NO_PADDING | Base64.NO_WRAP); in getDecodedPropertyValue()
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/errorlogging/ |
D | ErrorCodeSamplerTest.java | 22 import android.util.Base64; 45 Base64.encodeToString(SAMPLE_INTERVAL.toByteArray(), Base64.DEFAULT); 84 .thenReturn(Base64.encodeToString(sampleInterval.toByteArray(), Base64.DEFAULT)); in testShouldLog_noSampling_errorCodeNotPresent()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | ProtectedSignalsFixture.java | 23 import java.util.Base64; 65 .setBase64EncodedValue(Base64.getEncoder().encodeToString(value)) in generateProtectedSignal() 72 return Base64.getEncoder().encodeToString(key.getBytes()); in generateKey() 77 return Base64.getEncoder().encodeToString(value.getBytes()); in generateValue()
|
D | SignalsProviderImplTest.java | 37 import java.util.Base64; 123 byte[] key = Base64.getDecoder().decode(generateKey(seed)); in generateDBProtectedSignal() 124 byte[] value = Base64.getDecoder().decode(generateValue(seed)); in generateDBProtectedSignal() 143 return Base64.getEncoder().encodeToString(key.getBytes()); in generateKey() 148 return Base64.getEncoder().encodeToString(value.getBytes()); in generateValue()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
D | TestCommandProvider.java | 39 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/ |
D | BuglePrefsImpl.java | 21 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/ |
D | PasspointTestUtils.java | 25 import android.util.Base64; 110 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy() 127 Base64.encodeToString("subPassword".getBytes(), Base64.DEFAULT)); in createSubscriptionUpdate()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregateCryptoFixture.java | 24 import java.util.Base64; 31 private static final byte[] sPublicKey = Base64.getDecoder().decode(PUBLIC_KEY_BASE64); 32 private static final byte[] sPrivateKey = Base64.getDecoder().decode(PRIVATE_KEY_BASE64);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
D | TextBody.java | 18 import android.util.Base64; 37 out.write(Base64.encode(bytes, Base64.CRLF)); in writeTo()
|
D | BinaryTempFileBody.java | 18 import android.util.Base64; 69 Base64OutputStream base64Out = new Base64OutputStream(out, Base64.CRLF | Base64.NO_CLOSE); in writeTo()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/ |
D | AdSelectionEncryptionKeyManagerTest.java | 79 import java.util.Base64; 225 Base64.getDecoder() in test_getLatestActiveAuctionKey_returnsActiveAuctionKey() 415 Base64.getDecoder() in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey() 448 Base64.getDecoder().decode(ENCRYPTION_KEY_AUCTION_TTL_1SECS.getPublicKey()); in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey() 470 Base64.getDecoder() in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey() 494 Base64.getDecoder() in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging() 528 Base64.getDecoder() in test_getLatestOhttpKeyConfigOfType_withExpiredKey_shouldReturnExpiredKey() 553 Base64.getDecoder() in test_getLatestOhttpKeyConfigOfType_withExpiredKey_withLogging() 595 Base64.getDecoder() in test_getLatestActiveOhttpKeyConfig_withExpiredKey_shouldFetchAndPersistAndReturnNewKey() 628 Base64.getDecoder() in test_getLatestActiveOhttpKeyConfigOfType_withNoKey_shouldFetchPersistAndReturnNewKey() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregateCryptoConverter.java | 39 import java.util.Base64; 54 private static final Base64.Encoder sBase64Encoder = Base64.getEncoder(); 55 private static final Base64.Decoder sBase64Decoder = Base64.getDecoder();
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/ |
D | SignalsProviderImpl.java | 27 import java.util.Base64; 48 String base64EncodedKey = Base64.getEncoder().encodeToString(dbSignal.getKey()); in getSignals() 53 Base64.getEncoder().encodeToString(dbSignal.getValue())) in getSignals()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/ |
D | ProtectedAudienceSignatureManager.java | 33 import java.util.Base64; 126 Base64.getEncoder().encodeToString(publicKey)); in isVerified() 134 Base64.getEncoder().encodeToString(publicKey)); in isVerified() 150 Base64.Decoder decoder = Base64.getDecoder(); in fetchPublicKeyForAdTech()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/updateprocessors/ |
D | UpdateProcessorUtils.java | 24 import java.util.Base64; 92 Base64.getDecoder().decode(key.getBytes(StandardCharsets.ISO_8859_1), toReturn); in decodeKey() 114 toReturn = Base64.getDecoder().decode(value); in decodeValue()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/ |
D | TranscriptionUtils.java | 23 import android.util.Base64; 59 return Base64.encodeToString(md5Bytes, Base64.DEFAULT); in getFingerprintFor()
|
/packages/modules/RemoteKeyProvisioning/util/src/com/android/rkpdapp/ |
D | RkpRegistrationCheck.java | 30 import android.util.Base64; 218 String encodedChallenge = Base64.encodeToString(challenge, in signCertificates() 219 Base64.URL_SAFE | Base64.NO_WRAP); in signCertificates() 276 Log.i(TAG, "response (CBOR): " + Base64.encodeToString(response, in httpPost() 277 Base64.URL_SAFE | Base64.NO_WRAP)); in httpPost()
|