Searched refs:size (Results 151 - 175 of 10126) sorted by relevance

1234567891011>>

/external/webkit/Source/WebKit2/Shared/
H A DWebData.h43 static PassRefPtr<WebData> createWithoutCopying(const unsigned char* bytes, size_t size, FreeDataFunction freeDataFunction, const void* context) argument
45 return adoptRef(new WebData(bytes, size, freeDataFunction, context));
48 static PassRefPtr<WebData> create(const unsigned char* bytes, size_t size) argument
52 if (size) {
53 copiedBytes = static_cast<unsigned char*>(fastMalloc(size));
54 memcpy(copiedBytes, bytes, size);
57 return createWithoutCopying(copiedBytes, size, fastFreeBytes, 0);
62 return create(buffer.data(), buffer.size());
71 size_t size() const { return m_size; } function in class:WebKit::WebData
74 WebData(const unsigned char* bytes, size_t size, FreeDataFunctio argument
[all...]
H A DShareableBitmap.cpp60 PassRefPtr<ShareableBitmap> ShareableBitmap::create(const IntSize& size, Flags flags) argument
62 size_t numBytes = numBytesForSize(size);
68 return adoptRef(new ShareableBitmap(size, flags, data));
71 PassRefPtr<ShareableBitmap> ShareableBitmap::createShareable(const IntSize& size, Flags flags) argument
73 size_t numBytes = numBytesForSize(size);
79 return adoptRef(new ShareableBitmap(size, flags, sharedMemory));
82 PassRefPtr<ShareableBitmap> ShareableBitmap::create(const IntSize& size, Flags flags, PassRefPtr<SharedMemory> sharedMemory) argument
86 size_t numBytes = numBytesForSize(size);
87 ASSERT_UNUSED(numBytes, sharedMemory->size() >= numBytes);
89 return adoptRef(new ShareableBitmap(size, flag
113 ShareableBitmap(const IntSize& size, Flags flags, void* data) argument
120 ShareableBitmap(const IntSize& size, Flags flags, PassRefPtr<SharedMemory> sharedMemory) argument
134 resize(const IntSize& size) argument
[all...]
/external/chromium/net/disk_cache/
H A Dmapped_file_posix.cc16 void* MappedFile::Init(const FilePath& name, size_t size) { argument
21 if (!size)
22 size = GetLength();
24 buffer_ = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
31 view_size_ = size;
37 return Read(block->buffer(), block->size(), offset);
42 return Write(block->buffer(), block->size(), offset);
/external/clang/lib/include/
H A Dmm_malloc.h33 extern int posix_memalign(void **memptr, size_t alignment, size_t size);
39 extern "C" int posix_memalign(void **memptr, size_t alignment, size_t size);
46 _mm_malloc(size_t size, size_t align) argument
49 return malloc(size);
57 mallocedMemory = __mingw_aligned_malloc(size, align);
59 mallocedMemory = _aligned_malloc(size, align);
61 if (posix_memalign(&mallocedMemory, align, size))
/external/webkit/Source/WebCore/svg/
H A DSVGTransformList.cpp54 unsigned size = this->size(); local
55 if (!size)
58 for (unsigned i = 0; i < size; ++i)
67 unsigned size = this->size(); local
68 for (unsigned i = 0; i < size; ++i) {
/external/clang/lib/Headers/
H A Dmm_malloc.h33 extern int posix_memalign(void **memptr, size_t alignment, size_t size);
39 extern "C" int posix_memalign(void **memptr, size_t alignment, size_t size);
46 _mm_malloc(size_t size, size_t align) argument
49 return malloc(size);
57 mallocedMemory = __mingw_aligned_malloc(size, align);
59 mallocedMemory = _aligned_malloc(size, align);
61 if (posix_memalign(&mallocedMemory, align, size))
/external/chromium/sdch/open-vcdiff/src/
H A Dencodetable.cc119 // instructions_and_sizes_, followed by a representation of its size
120 // if the opcode does not implicitly give the instruction size.
123 // of which contains the opcode 0x02 (ADD size 1). Because that was the
125 // EncodeInstruction is then called with inst = VCD_COPY, size = 4, mode = 0.
127 // opcode 0xA3 (ADD size 1 + COPY size 4 mode 0).
130 // have implicit sizes, meaning that the size of the instruction will not
134 // double-instruction opcode (say, COPY size 0 mode 0 + ADD size 0)
135 // followed by the size o
140 EncodeInstruction(VCDiffInstructionType inst, size_t size, unsigned char mode) argument
210 Add(const char* data, size_t size) argument
216 Copy(int32_t offset, size_t size) argument
245 Run(size_t size, unsigned char byte) argument
251 CalculateLengthOfSizeAsVarint(size_t size) argument
255 AppendSizeToString(size_t size, string* out) argument
259 AppendSizeToOutputString( size_t size, OutputStringInterface* out) argument
[all...]
/external/kernel-headers/original/asm-generic/
H A Dioctl.h5 * size of the parameter structure in the lower 14 bits of the
7 * Encoding the size of the parameter structure in the ioctl request
11 * NOTE: This limits the max parameter size to 16kB -1 !
44 #define _IOC(dir,type,nr,size) \
48 ((size) << _IOC_SIZESHIFT))
50 /* provoke compile error for invalid uses of size argument */
59 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
60 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
[all...]
/external/kernel-headers/original/asm-mips/
H A Dioctl.h57 #define _IOC(dir, type, nr, size) \
61 ((size) << _IOC_SIZESHIFT))
63 /* provoke compile error for invalid uses of size argument */
72 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size)))
73 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size)))
74 #define _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size)))
75 #define _IOR_BAD(type, nr, size) _IO
[all...]
/external/compiler-rt/lib/asan/
H A Dasan_malloc_linux.cc24 DECLARE_REAL_AND_INTERCEPTOR(void*, malloc, uptr size);
26 DECLARE_REAL_AND_INTERCEPTOR(void*, calloc, uptr nmemb, uptr size);
27 DECLARE_REAL_AND_INTERCEPTOR(void*, realloc, void *ptr, uptr size);
28 DECLARE_REAL_AND_INTERCEPTOR(void*, memalign, uptr boundary, uptr size);
71 INTERCEPTOR(void*, malloc, uptr size) { argument
73 return asan_malloc(size, &stack);
76 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { argument
82 uptr size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize;
89 return asan_calloc(nmemb, size, &stack);
92 INTERCEPTOR(void*, realloc, void *ptr, uptr size) {
[all...]
/external/dropbear/libtomcrypt/src/pk/asn1/der/set/
H A Dder_encode_setof.c22 unsigned long size; member in struct:edge
32 r = XMEMCMP(A->start, B->start, MIN(A->size, B->size));
34 if (r == 0 && A->size != B->size) {
35 if (A->size > B->size) {
36 for (x = B->size; x < A->size; x++) {
42 for (x = A->size;
[all...]
/external/skia/include/core/
H A DSkBuffer.h18 The RBuffer is given the buffer to read from, with either a specified size
19 or no size (in which case no range checking is performed). It is iillegal
35 SkRBuffer(const void* data, size_t size) { argument
36 SkASSERT(data != 0 || size == 0);
39 fStop = (const char*)data + size;
46 /** Return the total size of the data pointer. Only defined if the length was
49 size_t size() const { return fStop - fData; } function in class:SkRBuffer
59 void read(void* buffer, size_t size) { argument
60 if (size) {
61 this->readNoSizeCheck(buffer, size);
97 SkWBuffer(void* data, size_t size) argument
105 reset(void* data, size_t size) argument
115 write(const void* buffer, size_t size) argument
[all...]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
H A DFluidSimHeightMap.java66 * @param size
67 * size the size of the terrain to be generated
85 * if size of the terrain is not greater that zero, or number of
89 public FluidSimHeightMap(int size, int iterations, float minInitialHeight, float maxInitialHeight, float viscosity, float waveSpeed, float timestep, float nodeDistance, long seed) throws Exception { argument
90 if (size <= 0 || iterations <= 0 || minInitialHeight >= maxInitialHeight) {
92 "Either size of the terrain is not greater that zero, "
98 this.size = size;
115 * @param size
123 FluidSimHeightMap(int size, int iterations) argument
[all...]
H A DRawHeightMap.java75 * @param size
76 * the size of the RAW (must be square).
78 * if the filename is null or not RAW, and if the size is 0 or
81 public RawHeightMap(String filename, int size) throws Exception { argument
82 this(filename, size, FORMAT_8BIT, false);
87 this.size = (int) FastMath.sqrt(heightData.length);
91 public RawHeightMap(String filename, int size, int format, boolean swapxy) throws Exception { argument
92 // varify that filename and size are valid.
93 if (null == filename || size <= 0) {
95 + "size (>
104 RawHeightMap(InputStream stream, int size, int format, boolean swapxy) argument
108 RawHeightMap(URL resource, int size, int format, boolean swapxy) argument
123 setup(InputStream stream, int size, int format, boolean swapxy) argument
[all...]
H A DHillHeightMap.java39 * Algorithm. Terrain is generatd by growing hills of random size and height at
50 private float minRadius; // the minimum size of a hill radius
51 private float maxRadius; // the maximum size of a hill radius
58 * @param size
59 * size the size of the terrain to be generated
70 * if size of the terrain is not greater that zero, or number of
73 public HillHeightMap(int size, int iterations, float minRadius, argument
75 if (size <= 0 || iterations <= 0 || minRadius <= 0 || maxRadius <= 0
78 "Either size o
111 HillHeightMap(int size, int iterations, float minRadius, float maxRadius) argument
[all...]
/external/valgrind/main/coregrind/m_gdbserver/
H A Dvalgrind-low-ppc32.c180 transfer_direction dir, int size, Bool *mod)
192 case 0: VG_(transfer) (&ppc32->guest_GPR0, buf, dir, size, mod); break;
193 case 1: VG_(transfer) (&ppc32->guest_GPR1, buf, dir, size, mod); break;
194 case 2: VG_(transfer) (&ppc32->guest_GPR2, buf, dir, size, mod); break;
195 case 3: VG_(transfer) (&ppc32->guest_GPR3, buf, dir, size, mod); break;
196 case 4: VG_(transfer) (&ppc32->guest_GPR4, buf, dir, size, mod); break;
197 case 5: VG_(transfer) (&ppc32->guest_GPR5, buf, dir, size, mod); break;
198 case 6: VG_(transfer) (&ppc32->guest_GPR6, buf, dir, size, mod); break;
199 case 7: VG_(transfer) (&ppc32->guest_GPR7, buf, dir, size, mod); break;
200 case 8: VG_(transfer) (&ppc32->guest_GPR8, buf, dir, size, mo
179 transfer_register(ThreadId tid, int abs_regno, void * buf, transfer_direction dir, int size, Bool *mod) argument
[all...]
H A Dvalgrind-low-ppc64.c177 transfer_direction dir, int size, Bool *mod)
189 case 0: VG_(transfer) (&ppc64->guest_GPR0, buf, dir, size, mod); break;
190 case 1: VG_(transfer) (&ppc64->guest_GPR1, buf, dir, size, mod); break;
191 case 2: VG_(transfer) (&ppc64->guest_GPR2, buf, dir, size, mod); break;
192 case 3: VG_(transfer) (&ppc64->guest_GPR3, buf, dir, size, mod); break;
193 case 4: VG_(transfer) (&ppc64->guest_GPR4, buf, dir, size, mod); break;
194 case 5: VG_(transfer) (&ppc64->guest_GPR5, buf, dir, size, mod); break;
195 case 6: VG_(transfer) (&ppc64->guest_GPR6, buf, dir, size, mod); break;
196 case 7: VG_(transfer) (&ppc64->guest_GPR7, buf, dir, size, mod); break;
197 case 8: VG_(transfer) (&ppc64->guest_GPR8, buf, dir, size, mo
176 transfer_register(ThreadId tid, int abs_regno, void * buf, transfer_direction dir, int size, Bool *mod) argument
[all...]
/external/webkit/Source/WebKit2/UIProcess/
H A DWebBackForwardList.cpp42 ASSERT(m_current == NoCurrentItemIndex || m_current < m_entries.size());
52 size_t size = m_entries.size(); local
53 for (size_t i = 0; i < size; ++i)
62 ASSERT(m_current == NoCurrentItemIndex || m_current < m_entries.size());
72 removedItems.reserveCapacity(m_entries.size() - targetSize);
73 while (m_entries.size() > targetSize) {
83 if (m_entries.size() == m_capacity && (m_current != 0 || m_capacity == 1)) {
97 ASSERT(m_current == NoCurrentItemIndex || m_current < m_entries.size());
102 ASSERT(m_current == NoCurrentItemIndex || m_current < m_entries.size());
179 unsigned size = std::min(backListSize, limit); local
197 unsigned size = std::min(static_cast<unsigned>(forwardListCount()), limit); local
[all...]
/external/guava/guava/src/com/google/common/base/
H A DPreconditions.java268 * list or string of size {@code size}. An element index may range from zero,
269 * inclusive, to {@code size}, exclusive.
273 * @param size the size of that array, list or string
276 * less than {@code size}
277 * @throws IllegalArgumentException if {@code size} is negative
279 public static int checkElementIndex(int index, int size) { argument
280 return checkElementIndex(index, size, "index");
285 * list or string of size {
297 checkElementIndex( int index, int size, @Nullable String desc) argument
306 badElementIndex(int index, int size, String desc) argument
329 checkPositionIndex(int index, int size) argument
347 checkPositionIndex( int index, int size, @Nullable String desc) argument
356 badPositionIndex(int index, int size, String desc) argument
381 checkPositionIndexes(int start, int end, int size) argument
388 badPositionIndexes(int start, int end, int size) argument
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DRegularImmutableList.java35 private final transient int size; field in class:RegularImmutableList
38 RegularImmutableList(Object[] array, int offset, int size) { argument
40 this.size = size;
49 public int size() { method in class:RegularImmutableList
50 return size;
58 return offset != 0 || size != array.length;
68 return (UnmodifiableIterator<E>) Iterators.forArray(array, offset, size);
72 Object[] newArray = new Object[size()];
73 System.arraycopy(array, offset, newArray, 0, size);
[all...]
/external/astl/src/
H A Dostream.cpp65 int size = snprintf(buf, kNumSize, fmt, val); local
66 return write(buf, size);
72 int size = snprintf(buf, kNumSize, fmt, val); local
73 return write(buf, size);
79 int size = snprintf(buf, kNumSize, fmt, val); local
80 return write(buf, size);
86 int size = snprintf(buf, kNumSize, fmt, val); local
87 return write(buf, size);
93 int size = snprintf(buf, kNumSize, fmt, val); local
94 return write(buf, size);
100 int size = snprintf(buf, kNumSize, fmt, val); local
108 int size = snprintf(buf, kNumSize, fmt, precision(), val); local
115 int size = snprintf(buf, kNumSize, fmt, precision(), val); local
122 int size = snprintf(buf, kNumSize, fmt, p); local
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace.h25 uptr size; member in struct:__sanitizer::StackTrace
28 static void PrintStack(uptr *addr, uptr size,
32 for (uptr i = 0; i < size && i < dst_size; i++)
34 for (uptr i = size; i < dst_size; i++)
39 size = src_size;
40 if (size > kStackTraceMax) size = kStackTraceMax;
41 for (uptr i = 0; i < size; i++) {
51 u32 *compressed, uptr size);
53 u32 *compressed, uptr size);
[all...]
/external/qemu/elff/
H A Delf_alloc.cc34 void* ElfAllocator::alloc(size_t size) { argument
36 size = (size + ELFALLOC_ALIGNMENT_MASK) & ~ELFALLOC_ALIGNMENT_MASK;
38 if (current_chunk_ == NULL || current_chunk_->remains < size) {
47 new_chunk->size = ELF_ALLOC_CHUNK_SIZE;
49 new_chunk->remains = new_chunk->size - sizeof(ElfAllocatorChunk);
55 current_chunk_->remains -= size;
56 current_chunk_->avail = INC_PTR(current_chunk_->avail, size);
60 void* DwarfAllocBase::operator new(size_t size, const ElfFile* elf) { argument
61 return elf->allocator()->alloc(size);
[all...]
/external/regex-re2/util/
H A Darena.h48 void* GetMemoryFallback(const size_t size, const int align);
51 void* GetMemory(const size_t size, const int align) { argument
52 if ( size > 0 && size < remaining_ && align == 1 ) { // common case
54 freestart_ += size;
55 remaining_ -= size;
58 return GetMemoryFallback(size, align);
64 size_t size; member in struct:re2::UnsafeArena::AllocatedBlock
96 inline void* operator new(size_t size, argument
99 return reinterpret_cast<char*>(arena->GetMemory(size,
[all...]
/external/v8/test/mjsunit/
H A Dbig-object-literal.js31 function testLiteral(size, array_in_middle) {
32 print(size);
39 for (var i = 0; i < size; i++) {
45 for (var i = 0; i < size; i++) {
47 if (i < size - 1) {
60 for (var i = 0; i < size; i++) {
73 for (var i = 0; i < size; i++) {
95 function testLiteralAndCatch(size) {
98 testLiteral(size, false);
103 testLiteral(size, tru
[all...]

Completed in 2396 milliseconds

1234567891011>>