Home
last modified time | relevance | path

Searched refs:binaryData (Results 1 – 5 of 5) sorted by relevance

/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java640 public static byte[] encodeBase64(byte[] binaryData) { in encodeBase64() argument
641 return encodeBase64(binaryData, false); in encodeBase64()
652 public static String encodeBase64String(byte[] binaryData) { in encodeBase64String() argument
653 return StringUtils.newStringUtf8(encodeBase64(binaryData, true)); in encodeBase64String()
665 public static byte[] encodeBase64URLSafe(byte[] binaryData) { in encodeBase64URLSafe() argument
666 return encodeBase64(binaryData, false, true); in encodeBase64URLSafe()
678 public static String encodeBase64URLSafeString(byte[] binaryData) { in encodeBase64URLSafeString() argument
679 return StringUtils.newStringUtf8(encodeBase64(binaryData, false, true)); in encodeBase64URLSafeString()
689 public static byte[] encodeBase64Chunked(byte[] binaryData) { in encodeBase64Chunked() argument
690 return encodeBase64(binaryData, true); in encodeBase64Chunked()
[all …]
/external/apache-http/src/org/apache/commons/codec/binary/
DBase64.java182 public static byte[] encodeBase64(byte[] binaryData) { in encodeBase64() argument
183 return encodeBase64(binaryData, false); in encodeBase64()
193 public static byte[] encodeBase64Chunked(byte[] binaryData) { in encodeBase64Chunked() argument
194 return encodeBase64(binaryData, true); in encodeBase64Chunked()
237 public static byte[] encodeBase64(byte[] binaryData, boolean isChunked) { in encodeBase64() argument
238 int lengthDataBits = binaryData.length * EIGHTBIT; in encodeBase64()
276 b1 = binaryData[dataIndex]; in encodeBase64()
277 b2 = binaryData[dataIndex + 1]; in encodeBase64()
278 b3 = binaryData[dataIndex + 2]; in encodeBase64()
327 b1 = binaryData[dataIndex]; in encodeBase64()
[all …]
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
DWebSocketWriterTest.java118 sink.write(binaryData(50)).flush(); in serverBinaryMessage()
120 assertData(binaryData(50)); in serverBinaryMessage()
122 sink.write(binaryData(50)).flush(); in serverBinaryMessage()
124 assertData(binaryData(50)); in serverBinaryMessage()
180 byte[] part1 = binaryData(50); in clientBinary()
187 byte[] part2 = binaryData(50); in clientBinary()
281 serverWriter.writePing(new Buffer().write(binaryData(1000))); in pingTooLongThrows()
290 serverWriter.writePong(new Buffer().write(binaryData(1000))); in pongTooLongThrows()
299 String longString = ByteString.of(binaryData(75)).hex(); in closeTooLongThrows()
333 private static byte[] binaryData(int length) { in binaryData() method in WebSocketWriterTest
DWebSocketReaderTest.java228 byte[] bytes = binaryData(256); in clientSimpleBinary()
235 byte[] bytes = binaryData(200); in clientTwoFrameBinary()
243 byte[] bytes = binaryData(200); in twoFrameNotContinuation()
404 private byte[] binaryData(int length) { in binaryData() method in WebSocketReaderTest
/external/apache-http/src/org/apache/http/impl/auth/
DDigestScheme.java456 private static String encode(byte[] binaryData) { in encode() argument
457 if (binaryData.length != 16) { in encode()
463 int low = (binaryData[i] & 0x0f); in encode()
464 int high = ((binaryData[i] & 0xf0) >> 4); in encode()