/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
StringUtil.java | 24 /** Returns true if-and-only-if |byteArray| can be safely printed as ASCII. */ 25 public static boolean isAsciiPrintable(byte[] byteArray) { 26 if (byteArray == null) { 30 for (byte b : byteArray) {
|
NativeUtil.java | 72 byte[] byteArray = new byte[byteArrayList.size()]; 75 byteArray[i] = b; 78 return new String(byteArray, StandardCharsets.UTF_8); 97 * @return the string decoded from UTF_8 byte values in byteArray. 100 public static String stringFromByteArray(byte[] byteArray) { 101 if (byteArray == null) { 104 return new String(byteArray); 246 byte[] byteArray = byteArrayFromArrayList(bytes); 251 CharBuffer decoded = decoder.decode(ByteBuffer.wrap(byteArray)); 256 return hexStringFromByteArray(byteArray); [all...] |
/external/sl4a/Utils/src/com/googlecode/android_scripting/ |
ConvertUtils.java | 35 byte[] byteArray = new byte[parseString.length]; 36 if (byteArray.length > 0) { 41 byteArray[i] = (byte)val; 44 return byteArray; 50 * @param byteArray 53 public static String convertByteArrayToString(byte[] byteArray) { 55 if (byteArray != null) { 56 for (int i = 0; i < byteArray.length; i++) { 57 if ((i + 1) != byteArray.length) { 58 ret = ret + Integer.valueOf((byteArray[i]&0xFF)) + "," [all...] |
/external/r8/src/test/examples/barray/ |
BArray.java | 10 byte[] byteArray = null; 19 bits = byteArray[0];
|
/external/mdnsresponder/mDNSWindows/DLLX/ |
DNSSDRecord.cpp | 40 std::vector< BYTE > byteArray; 54 ok = VariantToByteArray( &rdata, byteArray ); 60 err = DNSServiceUpdateRecord( m_serviceObject->GetSubordRef(), m_rref, flags, ( uint16_t ) byteArray.size(), byteArray.size() > 0 ? &byteArray[ 0 ] : NULL, ttl );
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
BufferedOutputStreamTest.java | 168 byte[] byteArray = new byte[10]; 234 bos.write(byteArray, -1, -1); 241 bos.write(byteArray, -1, 0); 248 bos.write(byteArray, -1, 1); 255 bos.write(byteArray, 0, -1); 262 bos.write(byteArray, 0, byteArray.length + 1); 269 bos.write(byteArray, 1, byteArray.length); 276 bos.write(byteArray, -1, byteArray.length) [all...] |
DataInputStreamTest.java | 163 byte[] byteArray = new byte[fileString.length()]; 166 is.readFully(byteArray, -1, -1); 173 is.readFully(byteArray, 0, -1); 180 is.readFully(byteArray, 1, -1); 186 is.readFully(byteArray, -1, 0); 187 is.readFully(byteArray, 0, 0); 188 is.readFully(byteArray, 1, 0); 191 is.readFully(byteArray, -1, 1); 197 is.readFully(byteArray, 0, 1); 198 is.readFully(byteArray, 1, 1) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
CheckedOutputStreamTest.java | 55 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; 61 chkOut.write(byteArray[4]); 68 chkOut.write(byteArray, 5, 4); 88 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; 94 for (byte element : byteArray) { 113 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; 119 chkOut.write(byteArray, 4, 5); 125 chkOut.write(byteArray, 4, 6);
|
DeflaterTest.java | 71 byte byteArray[] = { 1, 3, 4, 7, 8 }; 76 defl.setInput(byteArray); 86 assertEquals(byteArray.length, totalIn); 100 for (int i = 0; i < byteArray.length; i++) { 101 assertEquals(byteArray[i], outPutInf[i]); 104 0, outPutInf[byteArray.length]); 113 byte byteArray[] = { 5, 2, 3, 7, 8 }; 120 defl.setInput(byteArray); 130 assertEquals(byteArray.length, totalIn); 144 for (int i = 0; i < byteArray.length; i++) [all...] |
Adler32Test.java | 108 byte byteArray[] = { 1, 2 }; 110 adl.update(byteArray); 131 byte[] byteArray = { 1, 2, 3 }; 133 int off = 2;// accessing the 2nd element of byteArray 137 adl.update(byteArray, off, len); 145 adl.update(byteArray, off, lenError); 153 adl.update(byteArray, offError, len);
|
CRC32Test.java | 124 byte byteArray[] = { 1, 2 }; 126 crc.update(byteArray); 148 byte[] byteArray = { 1, 2, 3 }; 150 int off = 2;// accessing the 2nd element of byteArray 154 crc.update(byteArray, off, len); 162 crc.update(byteArray, off, lenError); 170 crc.update(byteArray, offError, len);
|
DeflaterOutputStreamTest.java | 73 byte byteArray[] = { 1, 3, 4, 7, 8 }; 76 deflate.setInput(byteArray); 92 byte byteArray[] = { 1, 3, 4, 7, 8 }; 110 dos.write(byteArray); 142 byte byteArray[] = { 1, 3, 4, 7, 8, 3, 6 }; 175 dos.write(byteArray); 203 byte byteArray[] = { 1, 3, 4, 6 }; 204 dos.write(byteArray); 256 byte byteArray[] = { 1, 3, 4, 6 }; 257 dos.write(byteArray); [all...] |
GZIPOutputStreamTest.java | 96 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; 105 outGZIP.write(byteArray, 0, 1); 124 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; 132 outGZIP.write(byteArray, 0, 1); 149 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; 154 outGZIP.write(byteArray, 0, 10); 163 outGZIP.write(byteArray, 0, 11);
|
InflaterTest.java | 49 byte byteArray[] = { 5, 2, 3, 7, 8 }; 53 inflate.setInput(byteArray); 59 inflate.setInput(byteArray); 74 byte byteArray[] = { 1, 3, 4, 7, 8, 'e', 'r', 't', 'y', '5' }; 92 for (int i = 0; i < byteArray.length; i++) { 95 outPutInf[i], byteArray[i]); 98 0, outPutInf[byteArray.length]); 127 byte byteArray[] = { 1, 3, 5, 6, 7 }; 131 inflate.setInput(byteArray); 145 byte byteArray[] = { 1, 3, 4, 7, 8 } [all...] |
/libcore/luni/src/test/java/libcore/sun/security/x509/ |
ReasonFlagsTest.java | 45 Function<byte[], Object> objectCreator = byteArray -> new ReasonFlags(byteArray);
|
KeyUsageExtensionTest.java | 49 Function<byte[], Object> objectCreator = byteArray -> { 51 return new KeyUsageExtension(byteArray);
|
NetscapeCertTypeExtensionTest.java | 63 Function<byte[], Object> objectCreator = byteArray -> { 65 return new NetscapeCertTypeExtension(byteArray);
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
ClearKeySessionLibrary.cpp | 61 uint8_t *byteArray = (uint8_t *) &mNextSessionId; 62 sessionId->push_back(byteArray[3]); 63 sessionId->push_back(byteArray[2]); 64 sessionId->push_back(byteArray[1]); 65 sessionId->push_back(byteArray[0]);
|
/frameworks/av/drm/mediacas/plugins/mock/ |
MockSessionLibrary.cpp | 48 uint8_t *byteArray = (uint8_t *) &mNextSessionId; 49 sessionId->push_back(byteArray[3]); 50 sessionId->push_back(byteArray[2]); 51 sessionId->push_back(byteArray[1]); 52 sessionId->push_back(byteArray[0]);
|
/art/test/020-string/src/ |
Main.java | 98 byte[] byteArray = "byteArray".getBytes(); 108 String s2 = new String(byteArray); 109 String s3 = new String(byteArray, 1); 110 String s4 = new String(byteArray, 0, 4); 111 String s5 = new String(byteArray, 2, 4, 5); 114 String s6 = new String(byteArray, 2, 4, charsetName); 115 String s7 = new String(byteArray, charsetName); 119 String s8 = new String(byteArray, 3, 3, charset); 120 String s9 = new String(byteArray, charset) [all...] |
/frameworks/ex/framesequence/jni/ |
Stream.h | 76 JavaInputStream(JNIEnv* env, jobject inputStream, jbyteArray byteArray) : 79 mByteArray(byteArray), 80 mByteArrayLength(env->GetArrayLength(byteArray)) {}
|
/external/jmdns/src/javax/jmdns/impl/ |
DNSOutgoing.java | 163 byte[] byteArray = record.toByteArray(); 165 writeShort(byteArray.length); 166 write(byteArray, 0, byteArray.length); 245 byte[] byteArray = record.toByteArray(); 246 if (byteArray.length < this.availableSpace()) { 248 _questionsBytes.write(byteArray, 0, byteArray.length); 279 byte[] byteArray = record.toByteArray(); 280 if (byteArray.length < this.availableSpace()) [all...] |
/art/test/011-array-copy/src/ |
Main.java | 83 byte[] byteArray = new byte[ARRAY_SIZE]; 89 initByteArray(byteArray); 95 System.arraycopy(byteArray, srcPos, byteArray, dstPos, length); 102 if (intArray[i] != byteArray[i]) { 104 Arrays.toString(byteArray));
|
/external/pdfium/xfa/fxbarcode/common/ |
BC_CommonByteArray.h | 18 CBC_CommonByteArray(uint8_t* byteArray, int32_t size);
|
/frameworks/base/media/jni/ |
android_media_MediaMuxer.cpp | 90 jbyteArray byteArray = NULL; 94 byteArray = 97 if (byteArray == NULL) { 99 "byteArray is null"); 104 dst = env->GetByteArrayElements(byteArray, &isCopy); 106 dstSize = env->GetArrayLength(byteArray); 114 if (byteArray != NULL) { 115 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); 126 if (byteArray != NULL) { 127 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0) [all...] |