/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 48 private String encodeToString(String in, int flags) throws Exception { in encodeToString() method in Base64Test 49 String b64 = Base64.encodeToString(in.getBytes(), flags); in encodeToString() 157 assertEquals("", Base64.encodeToString(BYTES, 0, 0, Base64.URL_SAFE)); in testWebSafe() 158 assertEquals("_w==\n", Base64.encodeToString(BYTES, 0, 1, Base64.URL_SAFE)); in testWebSafe() 159 assertEquals("_-4=\n", Base64.encodeToString(BYTES, 0, 2, Base64.URL_SAFE)); in testWebSafe() 160 assertEquals("_-7d\n", Base64.encodeToString(BYTES, 0, 3, Base64.URL_SAFE)); in testWebSafe() 161 assertEquals("_-7dzA==\n", Base64.encodeToString(BYTES, 0, 4, Base64.URL_SAFE)); in testWebSafe() 162 assertEquals("_-7dzLs=\n", Base64.encodeToString(BYTES, 0, 5, Base64.URL_SAFE)); in testWebSafe() 163 assertEquals("_-7dzLuq\n", Base64.encodeToString(BYTES, 0, 6, Base64.URL_SAFE)); in testWebSafe() 164 assertEquals("_-7dzLuqmQ==\n", Base64.encodeToString(BYTES, 0, 7, Base64.URL_SAFE)); in testWebSafe() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TelephonyUtilTest.java | 140 String encryptedImsi = Base64.encodeToString(permanentIdentity.getBytes(), 0, in getEncryptedIdentity_WithRfc4648() 300 return Base64.encodeToString(challengeLengthAndValue, android.util.Base64.NO_WRAP); in createSimChallengeRequest() 307 return Base64.encodeToString(challengeValue, android.util.Base64.NO_WRAP); in create2gUsimChallengeRequest() 325 return Base64.encodeToString(result, Base64.NO_WRAP); in createGsmSimAuthResponse() 341 return Base64.encodeToString(result, Base64.NO_WRAP); in create2gUsimAuthResponse() 465 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAuthResponse() 476 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAutsResponse() 504 .thenReturn(Base64.encodeToString(new byte[] {(byte) 0xdc}, Base64.NO_WRAP)); in get3GAuthResponseIccAuthenticationTooShort() 516 .thenReturn(Base64.encodeToString(new byte[] {0x31, 0x1, 0x2, 0x3, 0x4}, in get3GAuthResponseBadTag()
|
/frameworks/base/core/java/android/util/ |
D | HashedStringCache.java | 117 hashText = Base64.encodeToString(bytes, 0, len, Base64.NO_PADDING | Base64.NO_WRAP); in hashString() 167 saltString = Base64.encodeToString(saltBytes, in populateSaltValues()
|
D | PackageUtils.java | 134 return HexEncoding.encodeToString(sha256DigestBytes, true /* uppercase */); in computeSha256Digest()
|
D | Base64.java | 456 public static String encodeToString(byte[] input, int flags) { in encodeToString() method in Base64 477 public static String encodeToString(byte[] input, int offset, int len, int flags) { in encodeToString() method in Base64
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunk/ |
D | ChunkHash.java | 72 return Base64.getEncoder().encodeToString(mHash); in toString()
|
/frameworks/base/tools/lock_agent/java/com/android/lock_checker/ |
D | LockHook.java | 222 return HexEncoding.encodeToString(mHash.digest()); in stacktraceHash() 231 return HexEncoding.encodeToString(mHash.digest()); in stacktraceHash()
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/keys/ |
D | RecoverableKeyStoreSecondaryKeyManager.java | 112 return BACKUP_KEY_ALIAS_PREFIX + HexEncoding.encodeToString(id); in generateId()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | TelephonyUtil.java | 189 return Base64.encodeToString(encryptedBytes, 0, encryptedBytes.length, encodingFlag); in encryptDataUsingPublicKey() 499 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmAuthResponseWithLength() 572 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimpleSimNoLengthAuthResponse() 651 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse()
|
/frameworks/base/core/java/android/hardware/location/ |
D | ContextHubMessage.java | 153 ret += HexEncoding.encodeToString(mData[i], true /* upperCase */); in toString()
|
D | NanoAppMessage.java | 165 ret += HexEncoding.encodeToString(mMessageBody[i], true /* upperCase */); in toString()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | PasswordUtils.java | 79 return HexEncoding.encodeToString(data, true); in byteArrayToHex()
|
/frameworks/base/core/java/android/provider/ |
D | FontRequest.java | 129 builder.append(Base64.encodeToString(array, Base64.DEFAULT)); in toString()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PackageBasedTokenUtil.java | 104 token = Base64.encodeToString(hashSignatures, Base64.NO_PADDING | Base64.NO_WRAP); in generatePackageBasedToken()
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/ |
D | PasspointConfigurationTest.java | 121 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy() 138 Base64.encodeToString("subPassword".getBytes(), Base64.DEFAULT)); in createSubscriptionUpdate()
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | BackupDataTest.java | 186 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadMockData() 216 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadRealData()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpServer.java | 107 return HexEncoding.encodeToString(randomBytes); in getRandId()
|
/frameworks/base/services/core/java/com/android/server/signedconfig/ |
D | SignatureVerifier.java | 104 if (DBG) Slog.i(TAG, "Data: " + Base64.getEncoder().encodeToString(data)); in verifySignature()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigStoreTest.java | 847 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile() 848 HexEncoding.encodeToString(iv), in testReadVersion2StoreFile() 852 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile() 853 HexEncoding.encodeToString(iv), in testReadVersion2StoreFile()
|
/frameworks/base/telephony/java/com/android/telephony/ |
D | Rlog.java | 151 return Base64.encodeToString( in secureHash()
|
/frameworks/base/core/java/android/security/keystore/recovery/ |
D | RecoverySession.java | 76 return HexEncoding.encodeToString(sessionId, /*upperCase=*/ false); in newSessionId()
|
/frameworks/base/core/java/android/telephony/ |
D | Rlog.java | 158 return Base64.encodeToString( in secureHash()
|
/frameworks/base/services/core/java/com/android/server/security/ |
D | VerityUtils.java | 198 return HexEncoding.encodeToString(bytes); in bytesToString()
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/ |
D | UpdateParameterTest.java | 58 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createUpdateParameter()
|
D | PolicyTest.java | 85 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy()
|