/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetEncoder2Test.java | 155 * Test reserve bytes encode(CharBuffer,ByteBuffer,boolean) 162 ByteBuffer bytes = ByteBuffer.allocate(4); local 166 CoderResult result = encoder.encode(char1, bytes, false); 169 assertEquals(4, bytes.remaining()); 171 result = encoder.encode(char2, bytes, true); 175 assertEquals(0, bytes.remaining()); 178 assertEquals(4, bytes.limit()); 179 assertEquals((byte) 0xf0, bytes.get(0)); 180 assertEquals((byte) 0x90, bytes.get(1)); 181 assertEquals((byte) 0x80, bytes.get(2)) [all...] |
/art/runtime/native/ |
org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 103 * (1b) bytes per entry 124 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); local 125 JDWP::Append4BE(bytes, t->GetThreadId()); 126 JDWP::Append1BE(bytes, Dbg::ToJdwpThreadStatus(t->GetState())); 127 JDWP::Append4BE(bytes, t->GetTid()); 128 JDWP::Append4BE(bytes, utime); 129 JDWP::Append4BE(bytes, stime); 130 JDWP::Append1BE(bytes, t->IsDaemon()); 134 std::vector<uint8_t> bytes; local 143 JDWP::Append1BE(bytes, kThstHeaderLen) [all...] |
/bionic/libc/kernel/uapi/linux/netfilter/ |
xt_sctp.h | 51 #define bytes(type) (sizeof(type) * 8) macro 52 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while (0) 54 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ ((chunkmap)[type / bytes (__u32)] & (1 << (type % bytes (__u32)))) ? 1: 0; })
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
ByteArray.java | 31 private final byte[] bytes; field in class:ByteArray 36 /** {@code >= 0, <= bytes.length}; size computed as 43 * @param bytes {@code non-null;} the underlying array 45 * @param end {@code >= start, <= bytes.length;} end index of 48 public ByteArray(byte[] bytes, int start, int end) { 49 if (bytes == null) { 50 throw new NullPointerException("bytes == null"); 61 if (end > bytes.length) { 62 throw new IllegalArgumentException("end > bytes.length"); 65 this.bytes = bytes [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
AttributeListParser.java | 57 * @param offset offset in {@code bytes} to the start of the list 126 ByteArray bytes = cf.getBytes(); local 129 observer.parsed(bytes, offset, 2, 136 observer.parsed(bytes, at, 0, 149 observer.parsed(bytes, at, 0,
|
CodeObserver.java | 40 private final ByteArray bytes; field in class:CodeObserver 48 * @param bytes {@code non-null;} actual array of bytecode 51 public CodeObserver(ByteArray bytes, ParseObserver observer) { 52 if (bytes == null) { 53 throw new NullPointerException("bytes == null"); 60 this.bytes = bytes; 66 observer.parsed(bytes, offset, length, header(offset)); 71 observer.parsed(bytes, offset, length, header(offset)); 91 observer.parsed(bytes, offset, length [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
DotDumper.java | 44 private final byte[] bytes; field in class:DotDumper 50 static void dump(byte[] bytes, String filePath, Args args) { 51 new DotDumper(bytes, filePath, args).run(); 54 DotDumper(byte[] bytes, String filePath, Args args) { 55 this.bytes = bytes; 63 ByteArray ba = new ByteArray(bytes); 93 public void parsed(ByteArray bytes, int offset, int len, String human) { 98 public void startParsingMember(ByteArray bytes, int offset, String name, 103 public void endParsingMember(ByteArray bytes, int offset, String name [all...] |
/dalvik/dx/src/com/android/dx/util/ |
ByteArray.java | 31 private final byte[] bytes; field in class:ByteArray 36 /** {@code >= 0, <= bytes.length}; size computed as 43 * @param bytes {@code non-null;} the underlying array 45 * @param end {@code >= start, <= bytes.length;} end index of 48 public ByteArray(byte[] bytes, int start, int end) { 49 if (bytes == null) { 50 throw new NullPointerException("bytes == null"); 61 if (end > bytes.length) { 62 throw new IllegalArgumentException("end > bytes.length"); 65 this.bytes = bytes [all...] |
/development/ndk/platforms/android-3/include/linux/netfilter/ |
xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/development/ndk/platforms/android-3/include/linux/netfilter_ipv4/ |
ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/development/ndk/platforms/android-L/include/linux/netfilter/ |
xt_sctp.h | 51 #define bytes(type) (sizeof(type) * 8) macro 52 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while (0) 54 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ ((chunkmap)[type / bytes (__u32)] & (1 << (type % bytes (__u32)))) ? 1: 0; })
|
/device/asus/grouper/liblights/ |
lights.c | 43 int bytes = sprintf(buffer, "%d\n", value); local 44 int amt = write(fd, buffer, bytes);
|
/device/lge/hammerhead/liblight/ |
lights.c | 67 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); local 68 int amt = write(fd, buffer, bytes); 88 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); local 89 int amt = write(fd, buffer, bytes);
|
/external/bison/lib/ |
mbchar.h | 40 returns the number of bytes occupied by the multibyte sequence. 169 size_t bytes; /* number of bytes of current character, > 0 */ member in struct:mbchar 172 char buf[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ 175 /* EOF (not a real character) is represented with bytes = 0 and 182 #define mb_len(mbc) ((mbc).bytes) 194 : (mbc1).bytes == (mbc2).bytes \ 195 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ 196 : (mbc1).bytes < (mbc2).bytes [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DERBitString.java | 69 * return the correct number of bytes for a bit string defined in 74 int bytes = 4; local 81 bytes--; 84 byte[] result = new byte[bytes]; 85 for (int i = 0; i < bytes; i++) 216 byte[] bytes = new byte[getBytes().length + 1]; 218 bytes[0] = (byte)getPadBits(); 219 System.arraycopy(getBytes(), 0, bytes, 1, bytes.length - 1); local 221 out.writeEncoded(BERTags.BIT_STRING, bytes); [all...] |
/external/chromium_org/base/memory/ |
discardable_memory_manager.cc | 35 void DiscardableMemoryManager::SetMemoryLimit(size_t bytes) { 37 memory_limit_ = bytes; 42 void DiscardableMemoryManager::SetSoftMemoryLimit(size_t bytes) { 44 soft_memory_limit_ = bytes; 57 void DiscardableMemoryManager::ReduceMemoryUsageUntilWithinLimit(size_t bytes) { 60 bytes); local 63 void DiscardableMemoryManager::Register(Allocation* allocation, size_t bytes) { 66 allocations_.Put(allocation, AllocationInfo(bytes)); 76 size_t bytes_purgable = info.bytes; 93 if (!info->bytes) [all...] |
/external/chromium_org/cc/layers/ |
texture_layer_impl.cc | 117 size_t bytes = texture_mailbox_.SharedMemorySizeInBytes(); local 118 swizzled.resize(bytes); 119 for (size_t i = 0; i < bytes; i += 4) {
|
/external/chromium_org/chrome/browser/chromeos/login/supervised/ |
supervised_user_creation_controller_new.cc | 50 int bytes = base::WriteFile(token_file, token.c_str(), token.length()); local 51 return bytes >= 0;
|
/external/chromium_org/chrome/browser/printing/ |
print_view_manager_base.cc | 168 scoped_refptr<base::RefCountedBytes> bytes = new base::RefCountedBytes( local 172 document->DebugDumpData(bytes, FILE_PATH_LITERAL(".pdf")); 174 bytes, params.page_size, params.content_area);
|
/external/chromium_org/chromeos/cryptohome/ |
cryptohome_parameters.h | 80 // sequence of |bytes|. The metadata is entirely opaque to cryptohome. It is 89 ProviderData(const std::string& name, const std::string& bytes); 97 scoped_ptr<std::string> bytes; member in struct:cryptohome::KeyDefinition::ProviderData
|
/external/chromium_org/chromeos/dbus/ |
bluetooth_gatt_characteristic_client.cc | 268 const uint8* bytes = NULL; local 271 if (!reader.PopArrayOfBytes(&bytes, &length)) { 278 if (bytes) 279 value.assign(bytes, bytes + length); 305 const uint8* bytes = NULL; local 308 if (!reader.PopArrayOfBytes(&bytes, &length)) 309 VLOG(2) << "Error reading array of bytes in ValueCallback"; 313 if (bytes) 314 value.assign(bytes, bytes + length) [all...] |
bluetooth_gatt_characteristic_service_provider.cc | 256 const uint8* bytes = NULL; local 258 if (!variant_reader.PopArrayOfBytes(&bytes, &length)) { 268 std::vector<uint8> value(bytes, bytes + length);
|
bluetooth_gatt_descriptor_client.cc | 204 const uint8* bytes = NULL; local 207 if (!reader.PopArrayOfBytes(&bytes, &length)) 208 VLOG(2) << "Error reading array of bytes in ValueCallback"; 212 if (bytes) 213 value.assign(bytes, bytes + length);
|
bluetooth_gatt_descriptor_service_provider.cc | 253 const uint8* bytes = NULL; local 255 if (!variant_reader.PopArrayOfBytes(&bytes, &length)) { 265 std::vector<uint8> value(bytes, bytes + length);
|
/external/chromium_org/components/rappor/ |
byte_vector_utils.cc | 125 ByteVector bytes(byte_count_); 126 crypto::RandBytes(&bytes[0], bytes.size()); 127 return bytes; 132 ByteVector bytes = GetRandomByteVector(); local 135 return *ByteVectorOr(GetRandomByteVector(), &bytes); 137 return bytes; 139 return *ByteVectorAnd(GetRandomByteVector(), &bytes); 142 return bytes; 197 // Streams bytes from HMAC_DRBG_Generat [all...] |