/libcore/luni/src/test/java/tests/api/java/io/ |
FileWriterTest.java | 354 byte[] bytes = new byte[capacity]; 358 for (int i = 0; i < bytes.length; i++) { 359 bytes[i] = bs[i / 8192]; 361 String inputStr = new String(bytes);
|
ByteArrayOutputStreamTest.java | 153 byte[] bytes; 157 bytes = bos.toByteArray(); 159 assertTrue("Error in byte array", bytes[i] == sbytes[i]); 241 assertEquals("Wrote incorrect bytes", 259 assertTrue("Wrote incorrect bytes",
|
/packages/apps/Email/tests/src/com/android/email/ |
UtilityUnitTests.java | 147 checkIsFirstUtf8Byte("\u00A2"); // 2 bytes in UTF-8. 148 checkIsFirstUtf8Byte("\u20AC"); // 3 bytes in UTF-8. 149 checkIsFirstUtf8Byte("\uD852\uDF62"); // 4 bytes in UTF-8. (surrogate pair) 153 byte[] bytes = Utility.toUtf8(aChar); 154 assertTrue("0", Utility.isFirstUtf8Byte(bytes[0])); 155 for (int i = 1; i < bytes.length; i++) { 156 assertFalse(Integer.toString(i), Utility.isFirstUtf8Byte(bytes[i]));
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
MovieTest.java | 143 byte[] bytes = inputStreamToBytes(is); 144 mMovie = Movie.decodeByteArray(bytes, 0, bytes.length);
|
/dalvik/vm/compiler/template/ |
gen-template.py | 50 # log2(handler_size_bytes). Throws an exception if "bytes" is not a power 61 handler_size_bytes = bytes = int(tokens[1]) 63 while bytes > 0: 64 bytes //= 2 # halve with truncating division
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JDKDigestSignature.java | 142 byte[] bytes = derEncode(hash); 144 return cipher.processBlock(bytes, 0, bytes.length);
|
/external/bouncycastle/src/main/java/org/bouncycastle/x509/ |
X509V2AttributeCertificate.java | 111 byte[] bytes = id.getBytes(); 112 boolean[] boolId = new boolean[bytes.length * 8 - id.getPadBits()]; 116 boolId[i] = (bytes[i / 8] & (0x80 >>> (i % 8))) != 0;
|
/external/chromium/base/ |
shared_memory_posix.cc | 236 bool SharedMemory::Map(size_t bytes) { 240 memory_ = mmap(NULL, bytes, PROT_READ | (read_only_ ? 0 : PROT_WRITE), 244 max_size_ = bytes;
|
/external/chromium/third_party/icu/source/common/ |
ucnvbocu.c | 46 * C0 control codes and space are encoded with their US-ASCII bytes. 60 /* number of lead bytes */ 67 /* number of trail bytes */ 76 /* number of lead bytes for positive and negative 2/3/4-byte sequences */ 141 * but are also used as trail bytes in difference encoding 150 * External byte values that are illegal as trail bytes are mapped to -1. 254 * Encode a difference -0x10ffff..0x10ffff in 1..4 bytes 283 /* two bytes */ 293 /* three bytes */ 307 /* four bytes */ 945 uint8_t *bytes; local 1167 uint8_t *bytes; local [all...] |
/external/chromium/third_party/icu/source/tools/toolutil/ |
unewdata.c | 40 uint8_t bytes[16]; local 129 /* write padding bytes to align the data section to 16 bytes */ 133 uprv_memset(bytes, 0, headerSize); 134 T_FileStream_write(pData->file, bytes, headerSize);
|
/external/icu4c/common/ |
ucnvbocu.c | 46 * C0 control codes and space are encoded with their US-ASCII bytes. 60 /* number of lead bytes */ 67 /* number of trail bytes */ 76 /* number of lead bytes for positive and negative 2/3/4-byte sequences */ 141 * but are also used as trail bytes in difference encoding 150 * External byte values that are illegal as trail bytes are mapped to -1. 254 * Encode a difference -0x10ffff..0x10ffff in 1..4 bytes 283 /* two bytes */ 293 /* three bytes */ 307 /* four bytes */ 945 uint8_t *bytes; local 1167 uint8_t *bytes; local [all...] |
/external/icu4c/tools/toolutil/ |
unewdata.c | 41 uint8_t bytes[16]; local 130 /* write padding bytes to align the data section to 16 bytes */ 134 uprv_memset(bytes, 0, headerSize); 135 T_FileStream_write(pData->file, bytes, headerSize);
|
/external/libffi/src/arm/ |
ffi.c | 113 /* Round the stack up to a multiple of 8 bytes. This isn't needed 116 cif->bytes = (cif->bytes + 7) & ~7; 134 /* A Composite Type not larger than 4 bytes is returned in r0. */ 137 /* A Composite Type larger than 4 bytes, or whose size cannot 182 ffi_call_SYSV(ffi_prep_args, &ecif, cif->bytes, cif->flags, ecif.rvalue,
|
/external/libffi/src/frv/ |
ffi.c | 121 cif->bytes = ALIGN (cif->bytes, 8); 157 ffi_call_EABI(ffi_prep_args, &ecif, cif->bytes,
|
/external/proguard/src/proguard/classfile/io/ |
LibraryClassReader.java | 273 // Read the UTF-8 bytes. 274 byte[] bytes = new byte[u2length]; 275 dataInput.readFully(bytes); 276 utf8Constant.setBytes(bytes);
|
/external/protobuf/src/google/protobuf/io/ |
zero_copy_stream_impl_lite.cc | 193 int bytes = Read(junk, min(count - skipped, local 195 if (bytes <= 0) { 199 skipped += bytes; 259 << " Can't back up over more bytes than were returned by the last call" 275 // First skip any bytes left over from a previous BackUp(). 349 << " Can't back up over more bytes than were returned by the last call"
|
/external/v8/src/ |
unicode-inl.h | 105 uchar Utf8::ValueOf(const byte* bytes, unsigned length, unsigned* cursor) { 107 byte first = bytes[0]; 113 return CalculateValue(bytes, length, cursor);
|
/external/webkit/WebCore/platform/graphics/wince/ |
ImageBufferWince.cpp | 107 const unsigned char* src = static_cast<const unsigned char*>(bitmap->bytes()); 165 unsigned char* dst = (unsigned char*)bitmap->bytes(); 219 if (!m_data.m_bitmap->bytes())
|
/frameworks/base/core/jni/ |
android_database_SQLiteProgram.cpp | 128 jbyte * bytes = env->GetByteArrayElements(value, NULL); local 130 err = sqlite3_bind_blob(statement, index, bytes, len, SQLITE_TRANSIENT); 131 env->ReleaseByteArrayElements(value, bytes, JNI_ABORT);
|
android_emoji_EmojiFactory.cpp | 173 const char *bytes = factory->GetImageBinaryFromAndroidPua(pua, &size); local 174 if (bytes == NULL) { 179 if (!SkImageDecoder::DecodeMemory(bytes, size, bitmap)) {
|
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/ |
VNodeBuilder.java | 166 byte[] bytes = new byte[byteBuffer.remaining()]; 167 byteBuffer.get(bytes); 169 return new String(bytes, targetCharset);
|
/frameworks/base/media/jni/ |
android_media_MediaScanner.cpp | 248 jbyte* bytes = env->GetByteArrayElements(array, NULL); local 249 memcpy(bytes, data + 4, len); 250 env->ReleaseByteArrayElements(array, bytes, 0);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
DOMTest.java | 228 public InputStream createStream(String bytes) throws DOMTestLoadException, 230 int byteCount = bytes.length() / 2; 233 array[i] = Byte.parseByte(bytes.substring(i * 2, i * 2 + 2), 16);
|
/libcore/luni/src/main/java/org/apache/harmony/luni/net/ |
PlainDatagramSocketImpl.java | 164 byte[] bytes = new byte[0]; 165 DatagramPacket packet = new DatagramPacket(bytes, bytes.length);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
CharsetTest.java | 200 byte[] bytes = new byte[out.remaining()]; 201 out.get(bytes); 202 assertEquals(Arrays.toString(toByteArray(expectedByteInts)), Arrays.toString(bytes));
|