/bionic/libc/bionic/ |
jemalloc_wrapper.cpp | 23 void* je_pvalloc(size_t bytes) { 25 size_t size = BIONIC_ALIGN(bytes, pagesize); 26 if (size < bytes) {
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
Output.java | 27 * bytes written to this instance. 76 * @return {@code 1..5;} the number of bytes actually written 86 * @return {@code 1..5;} the number of bytes actually written 93 * @param bytes {@code non-null;} the array to write 95 public void write(ByteArray bytes); 100 * @param bytes {@code non-null;} the array to write 101 * @param offset {@code >= 0;} offset into {@code bytes} for the first 103 * @param length {@code >= 0;} number of bytes to write 105 public void write(byte[] bytes, int offset, int length); 109 * a convenient shorthand for {@code write(bytes, 0, bytes.length)} [all...] |
/dalvik/dx/src/com/android/dx/cf/iface/ |
ParseObserver.java | 37 * @param bytes {@code non-null;} the source that is being parsed 38 * @param offset offset into {@code bytes} for the start of the 43 public void startParsingMember(ByteArray bytes, int offset, String name, 49 * @param bytes {@code non-null;} the source that was parsed 50 * @param offset offset into {@code bytes} for the end of the 56 public void endParsingMember(ByteArray bytes, int offset, String name, 62 * @param bytes {@code non-null;} the source that was parsed 63 * @param offset offset into {@code bytes} for what was parsed 64 * @param len number of bytes parsed 67 public void parsed(ByteArray bytes, int offset, int len, String human) [all...] |
/dalvik/dx/src/com/android/dx/util/ |
Output.java | 29 * bytes written to this instance. 78 * @return {@code 1..5;} the number of bytes actually written 88 * @return {@code 1..5;} the number of bytes actually written 95 * @param bytes {@code non-null;} the array to write 97 public void write(ByteArray bytes); 102 * @param bytes {@code non-null;} the array to write 103 * @param offset {@code >= 0;} offset into {@code bytes} for the first 105 * @param length {@code >= 0;} number of bytes to write 107 public void write(byte[] bytes, int offset, int length); 111 * a convenient shorthand for {@code write(bytes, 0, bytes.length)} [all...] |
/external/dexmaker/src/dx/java/com/android/dx/util/ |
Output.java | 27 * bytes written to this instance. 76 * @return {@code 1..5;} the number of bytes actually written 86 * @return {@code 1..5;} the number of bytes actually written 93 * @param bytes {@code non-null;} the array to write 95 public void write(ByteArray bytes); 100 * @param bytes {@code non-null;} the array to write 101 * @param offset {@code >= 0;} offset into {@code bytes} for the first 103 * @param length {@code >= 0;} number of bytes to write 105 public void write(byte[] bytes, int offset, int length); 109 * a convenient shorthand for {@code write(bytes, 0, bytes.length)} [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
IsoTypeWriterVariable.java | 23 public static void write(long v, ByteBuffer bb, int bytes) { 24 switch (bytes) { 41 throw new RuntimeException("I don't know how to read " + bytes + " bytes");
|
/external/chromium_org/third_party/WebKit/public/platform/ |
WebFileWriterClient.h | 43 virtual void didWrite(long long bytes, bool complete) = 0;
|
/external/chromium_org/third_party/openmax_dl/dl/sp/src/test/ |
aligned_ptr.h | 24 * Allocate an aligned pointer to an area of size |bytes| bytes. The 25 * pointer is aligned to |alignment| bytes, which MUST be a power of 29 struct AlignedPtr* AllocAlignedPointer(int alignment, int bytes);
|
/external/chromium_org/third_party/skia/include/core/ |
SkChunkAlloc.h | 31 void* alloc(size_t bytes, AllocFailType); 32 void* allocThrow(size_t bytes) { 33 return this->alloc(bytes, kThrow_AllocFailType); 37 success, the number of bytes freed is returned, or 0 if the block could 65 Block* newBlock(size_t bytes, AllocFailType ftype);
|
/external/chromium_org/third_party/tlslite/tlslite/ |
x509.py | 18 @type bytes: L{bytearray} of unsigned bytes 19 @ivar bytes: The DER-encoded ASN.1 certificate 24 @type subject: L{bytearray} of unsigned bytes 29 self.bytes = bytearray(0) 42 bytes = dePem(s, "CERTIFICATE") 43 self.parseBinary(bytes) 46 def parseBinary(self, bytes): 49 @type bytes: str or L{bytearray} of unsigned bytes [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
decode.h | 30 const uint16_t *bytes, /* (i) encoded signal bits */
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
Strings.java | 10 public static String fromUTF8ByteArray(byte[] bytes) 15 while (i < bytes.length) 18 if ((bytes[i] & 0xf0) == 0xf0) 24 else if ((bytes[i] & 0xe0) == 0xe0) 28 else if ((bytes[i] & 0xc0) == 0xc0) 43 while (i < bytes.length) 47 if ((bytes[i] & 0xf0) == 0xf0) 49 int codePoint = ((bytes[i] & 0x03) << 18) | ((bytes[i+1] & 0x3F) << 12) | ((bytes[i+2] & 0x3F) << 6) | (bytes[i+3] & 0x3F) [all...] |
BigIntegers.java | 23 byte[] bytes = value.toByteArray(); 25 if (bytes[0] == 0) 27 byte[] tmp = new byte[bytes.length - 1]; 29 System.arraycopy(bytes, 1, tmp, 0, tmp.length); 34 return bytes; 45 byte[] bytes = value.toByteArray(); 46 if (bytes.length == length) 48 return bytes; 51 int start = bytes[0] == 0 ? 1 : 0; 52 int count = bytes.length - start [all...] |
/art/runtime/jdwp/ |
jdwp_bits.h | 35 static inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { 36 bytes.push_back(value); 39 static inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { 40 bytes.push_back(static_cast<uint8_t>(value >> 8)); 41 bytes.push_back(static_cast<uint8_t>(value)); 44 static inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { 45 bytes.push_back(static_cast<uint8_t>(value >> 24)); 46 bytes.push_back(static_cast<uint8_t>(value >> 16)); 47 bytes.push_back(static_cast<uint8_t>(value >> 8)); 48 bytes.push_back(static_cast<uint8_t>(value)) [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkChunkAlloc.cpp | 72 SkChunkAlloc::Block* SkChunkAlloc::newBlock(size_t bytes, AllocFailType ftype) { 73 size_t size = bytes; 94 void* SkChunkAlloc::alloc(size_t bytes, AllocFailType ftype) { 95 fTotalUsed += bytes; 97 bytes = SkAlign4(bytes); 101 if (block == NULL || bytes > block->fFreeSize) { 102 block = this->newBlock(bytes, ftype); 110 SkASSERT(block && bytes <= block->fFreeSize); 113 block->fFreeSize -= bytes; 119 size_t bytes = 0; local [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
CstUtf8.java | 35 /** {@code non-null;} the UTF-8 value as bytes */ 36 private final ByteArray bytes; field in class:CstUtf8 44 * @return {@code non-null;} the UTF-8 bytes for it 48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. 54 bytes[outAt] = (byte) c; 57 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0); 58 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80); 61 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0); 62 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80); 63 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80) [all...] |
/dalvik/dx/src/com/android/dx/rop/cst/ |
CstString.java | 36 /** {@code non-null;} the UTF-8 value as bytes */ 37 private final ByteArray bytes; field in class:CstString 44 * @return {@code non-null;} the UTF-8 bytes for it 48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. 54 bytes[outAt] = (byte) c; 57 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0); 58 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80); 61 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0); 62 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80); 63 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80) [all...] |
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
CstString.java | 36 /** {@code non-null;} the UTF-8 value as bytes */ 37 private final ByteArray bytes; field in class:CstString 44 * @return {@code non-null;} the UTF-8 bytes for it 48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. 54 bytes[outAt] = (byte) c; 57 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0); 58 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80); 61 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0); 62 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80); 63 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80) [all...] |
/bionic/tests/ |
wchar_test.cpp | 31 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; local 32 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, NULL)); 33 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, NULL)); 35 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, NULL)); 36 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, NULL)); 46 char bytes[MB_LEN_MAX]; local 49 EXPECT_EQ(1, wctomb(bytes, L'\0')); 50 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', NULL)); 53 memset(bytes, 0, sizeof(bytes)); 117 char bytes[BUFSIZ]; local [all...] |
/art/test/004-NativeAllocations/src/ |
Main.java | 29 private int bytes; field in class:Main.NativeAllocation 31 NativeAllocation(int bytes) throws Exception { 32 this.bytes = bytes; 33 register_native_allocation.invoke(runtime, bytes); 35 nativeBytes += bytes; 44 nativeBytes -= bytes; 46 register_native_free.invoke(runtime, bytes);
|
/dalvik/dx/src/com/android/dx/command/dump/ |
ClassDumper.java | 32 * @param bytes {@code non-null;} bytes of the (alleged) class file 39 public static void dump(byte[] bytes, PrintStream out, 42 new ClassDumper(bytes, out, filePath, args); 50 private ClassDumper(byte[] bytes, PrintStream out, 52 super(bytes, out, filePath, args); 59 byte[] bytes = getBytes(); 60 ByteArray ba = new ByteArray(bytes); 69 if (at != bytes.length) { 70 parsed(ba, at, bytes.length - at, "<extra data at end of file>") [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
PBEParametersGenerator.java | 24 * @param password the password converted into bytes (see below). 108 byte[] bytes = new byte[password.length]; 110 for (int i = 0; i != bytes.length; i++) 112 bytes[i] = (byte)password[i]; 115 return bytes; 145 * PKCS12 (unicode, big endian, 2 zero pad bytes at the end). 155 // +1 for extra 2 pad bytes. 156 byte[] bytes = new byte[(password.length + 1) * 2]; 160 bytes[i * 2] = (byte)(password[i] >>> 8); 161 bytes[i * 2 + 1] = (byte)password[i] [all...] |
/external/chromium_org/base/memory/ |
discardable_memory_manager.h | 71 // The maximum number of bytes of memory that may be allocated before we force 73 void SetMemoryLimit(size_t bytes); 75 // The number of bytes of memory that may be allocated but unused for the hard 77 void SetSoftMemoryLimit(size_t bytes); 89 // limit for bytes to keep under moderate pressure. 90 void ReduceMemoryUsageUntilWithinLimit(size_t bytes); 93 void Register(Allocation* allocation, size_t bytes); 124 explicit AllocationInfo(size_t bytes) : bytes(bytes), purgable(false) { 126 const size_t bytes; member in struct:base::internal::DiscardableMemoryManager::AllocationInfo [all...] |
/external/chromium_org/components/rappor/ |
bloom_filter.h | 19 // Constructs a BloomFilter using |bytes_size| bytes of Bloom filter bits, 32 const ByteVector& bytes() const { return bytes_; }; function in class:rappor::BloomFilter 34 // Sets bytes for testing purposes. 35 void SetBytesForTesting(const ByteVector& bytes);
|
/external/chromium_org/net/tools/balsa/ |
buffer_interface.h | 13 // Returns the bytes which can be read from the buffer. There is no 14 // guarantee that the bytes are contiguous. 24 // returns the number of bytes free in this buffer. 26 // number of bytes free. 42 // appends up-to-'size' bytes to the buffer. 44 // bytes - bytes which are read, and copied into the buffer. 45 // size - number of bytes which are read and copied. 47 virtual int Write(const char* bytes, int size) = 0; 57 // size - the amount of data (in bytes) that it is safe to write to ptr [all...] |