/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 41 private String encodeToString(String in, int flags) throws Exception { in encodeToString() method in Base64Test 42 String b64 = Base64.encodeToString(in.getBytes(), flags); in encodeToString() 150 assertEquals("", Base64.encodeToString(BYTES, 0, 0, Base64.URL_SAFE)); in testWebSafe() 151 assertEquals("_w==\n", Base64.encodeToString(BYTES, 0, 1, Base64.URL_SAFE)); in testWebSafe() 152 assertEquals("_-4=\n", Base64.encodeToString(BYTES, 0, 2, Base64.URL_SAFE)); in testWebSafe() 153 assertEquals("_-7d\n", Base64.encodeToString(BYTES, 0, 3, Base64.URL_SAFE)); in testWebSafe() 154 assertEquals("_-7dzA==\n", Base64.encodeToString(BYTES, 0, 4, Base64.URL_SAFE)); in testWebSafe() 155 assertEquals("_-7dzLs=\n", Base64.encodeToString(BYTES, 0, 5, Base64.URL_SAFE)); in testWebSafe() 156 assertEquals("_-7dzLuq\n", Base64.encodeToString(BYTES, 0, 6, Base64.URL_SAFE)); in testWebSafe() 157 assertEquals("_-7dzLuqmQ==\n", Base64.encodeToString(BYTES, 0, 7, Base64.URL_SAFE)); in testWebSafe() [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/content/res/ |
D | FontResourcesParserCompatTest.java | 114 String firstValue = Base64.encodeToString(firstSet.get(0), Base64.DEFAULT).trim(); in testReadCertsSingleArray() 116 String secondValue = Base64.encodeToString(firstSet.get(1), Base64.DEFAULT).trim(); in testReadCertsSingleArray() 128 String firstValue = Base64.encodeToString(firstSet.get(0), Base64.DEFAULT).trim(); in testReadCertsMultiArray() 130 String secondValue = Base64.encodeToString(firstSet.get(1), Base64.DEFAULT).trim(); in testReadCertsMultiArray() 134 String thirdValue = Base64.encodeToString(secondSet.get(0), Base64.DEFAULT).trim(); in testReadCertsMultiArray() 136 String fourthValue = Base64.encodeToString(secondSet.get(1), Base64.DEFAULT).trim(); in testReadCertsMultiArray()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TelephonyUtilTest.java | 164 return Base64.encodeToString(challengeLengthAndValue, android.util.Base64.NO_WRAP); in createSimChallengeRequest() 182 return Base64.encodeToString(result, Base64.NO_WRAP); in createGsmSimAuthResponse() 266 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAuthResponse() 277 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAutsResponse() 308 .thenReturn(Base64.encodeToString(new byte[] {(byte) 0xdc}, Base64.NO_WRAP)); in get3GAuthResponseIccAuthenticationTooShort() 321 .thenReturn(Base64.encodeToString(new byte[] {0x31, 0x1, 0x2, 0x3, 0x4}, in get3GAuthResponseBadTag()
|
/frameworks/base/core/java/android/provider/ |
D | FontRequest.java | 129 builder.append(Base64.encodeToString(array, Base64.DEFAULT)); in toString()
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/ |
D | PasspointConfigurationTest.java | 120 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy() 137 Base64.encodeToString("subPassword".getBytes(), Base64.DEFAULT)); in createSubscriptionUpdate()
|
/frameworks/base/core/java/android/util/ |
D | Base64.java | 454 public static String encodeToString(byte[] input, int flags) { in encodeToString() method in Base64 475 public static String encodeToString(byte[] input, int offset, int len, int flags) { in encodeToString() method in Base64
|
/frameworks/support/compat/java/android/support/v4/provider/ |
D | FontRequest.java | 156 builder.append(Base64.encodeToString(array, Base64.DEFAULT)); in toString()
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | BackupDataTest.java | 193 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadMockData() 223 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadRealData()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | TelephonyUtil.java | 244 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimAuthResponse() 340 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | AppSmsManager.java | 152 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING); in generateNonce()
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | PackageValidator.java | 112 String signature = Base64.encodeToString( in isCallerAllowed()
|
/frameworks/base/telephony/java/android/telephony/ |
D | Rlog.java | 149 return Base64.encodeToString( in secureHash()
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/ |
D | PolicyTest.java | 85 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy()
|
D | UpdateParameterTest.java | 59 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createUpdateParameter()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageInfo.java | 164 final String encoded = Base64.getEncoder().encodeToString(mSigHashes.get(i)); in saveToXml()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/est/ |
D | ESTHandler.java | 215 String data = Base64.encodeToString(csrData, Base64.DEFAULT); in execute() 356 Base64.encodeToString(tlsUnique, Base64.DEFAULT))); in buildCSR()
|
/frameworks/base/packages/Osu/src/com/android/configparse/ |
D | ConfigBuilder.java | 155 String alias = Base64.encodeToString(reference, Base64.DEFAULT); in buildTLSConfig()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiDiagnostics.java | 557 result = android.util.Base64.encodeToString(input, Base64.DEFAULT); in compressToBase64() 567 result = android.util.Base64.encodeToString( in compressToBase64()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | IpConnectivityMetrics.java | 180 return Base64.encodeToString(data, Base64.DEFAULT); in flushEncodedOutput()
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
D | SessionManager.java | 387 return Base64.encodeToString(idByteArray, Base64.NO_WRAP | Base64.NO_PADDING); in getBase64Encoding()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/ |
D | WebViewUpdateServiceTest.java | 288 Base64.encodeToString( in testWithSignatures() 291 Base64.encodeToString( in testWithSignatures() 1127 Base64.encodeToString(signature.toByteArray(), Base64.DEFAULT); in checkPackageVersions()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccRecords.java | 730 return android.util.Base64.encodeToString(auth_rsp.payload, android.util.Base64.NO_WRAP); in getIccSimChallengeResponse()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NsdService.java | 703 Base64.encodeToString(service.getTxtRecord(), Base64.DEFAULT) in registerService()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsState.java | 987 return Base64.encodeToString(toBytes(s), Base64.NO_WRAP); in base64Encode()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/ |
D | MOManager.java | 646 Base64.encodeToString(cred.getPassword().getBytes(StandardCharsets.UTF_8), in buildHomeSPTree()
|