Searched refs:size (Results 26 - 50 of 26517) sorted by relevance

1234567891011>>

/external/chromium_org/printing/backend/
H A Dprinting_info_win.cc14 DWORD size = 0; local
15 ::GetPrinterDriver(printer, NULL, level, NULL, 0, &size);
16 if (size == 0) {
19 scoped_ptr<uint8[]> buffer(new uint8[size]);
20 memset(buffer.get(), 0, size);
21 if (!::GetPrinterDriver(printer, NULL, level, buffer.get(), size, &size)) {
28 DWORD size = 0; local
29 ::GetPrinter(printer, level, NULL, 0, &size);
30 if (size
[all...]
/external/zopfli/src/zopfli/
H A Dutil.h36 The window size for deflate. Must be a power of two. This should be 32768, the
44 window size must be a power of two.
53 Dividing into huge blocks hurts compression, but not much relative to the size.
84 consumes a lot of memory but speeds it up. No effect on compression size.
141 Appends value to dynamically allocated memory, doubling its allocation size
146 size: pointer to the size of the array to append to, type size_t*. This is the
147 size that you consider the array to be, not the internal allocation size.
148 Precondition: allocated size o
[all...]
/external/pdfium/core/src/fxge/Microsoft SDK/include/
H A Dspecstrings.h48 // | _deref | _in | _ecount | _full | _opt | (size) |
49 // | _deref_opt | _out | _bcount | _part | | (size,length) |
78 // Size: Describes the total size of the buffer. This may be less than the space actually
81 // <> : No buffer size is given. If the type specifies the buffer size (such as
84 // _ecount : The buffer size is an explicit element count.
85 // _bcount : The buffer size is an explicit byte count.
101 // Parameters: Gives explicit counts for the size and length of the buffer.
104 // (size) : Only the buffer's total size i
[all...]
H A Dsal.h51 | _deref | _in | _ecount | _full | _nz | _opt | (size) |
52 | _deref_opt | _out | _bcount | _part | | | (size,length) |
81 Size: Describes the total size of the buffer. This may be less than the space actually
84 <> : No buffer size is given. If the type specifies the buffer size (such as
87 _ecount : The buffer size is an explicit element count.
88 _bcount : The buffer size is an explicit byte count.
108 Parameters: Gives explicit counts for the size and length of the buffer.
111 (size) : Only the buffer's total size i
[all...]
/external/chromium_org/third_party/brotli/src/brotli/dec/
H A Dsafe_malloc.c25 /* Returns 0 in case of overflow of nmemb * size. */
26 static int CheckSizeArgumentsOverflow(uint64_t nmemb, size_t size) { argument
27 const uint64_t total_size = nmemb * size;
29 if ((uint64_t)size > BROTLI_MAX_ALLOCABLE_MEMORY / nmemb) return 0;
34 void* BrotliSafeMalloc(uint64_t nmemb, size_t size) { argument
35 if (!CheckSizeArgumentsOverflow(nmemb, size)) return NULL;
36 assert(nmemb * size > 0);
37 return malloc((size_t)(nmemb * size));
/external/chromium_org/third_party/lzma_sdk/
H A DAlloc.h13 void *MyAlloc(size_t size);
20 void *MidAlloc(size_t size);
22 void *BigAlloc(size_t size);
27 #define MidAlloc(size) MyAlloc(size)
29 #define BigAlloc(size) MyAlloc(size)
H A DAlloc.c23 void *MyAlloc(size_t size) argument
25 if (size == 0)
29 void *p = malloc(size);
30 fprintf(stderr, "\nAlloc %10d bytes, count = %10d, addr = %8X", size, g_allocCount++, (unsigned)p);
34 return malloc(size);
49 void *MidAlloc(size_t size) argument
51 if (size == 0)
54 fprintf(stderr, "\nAlloc_Mid %10d bytes; count = %10d", size, g_allocCountMid++);
56 return VirtualAlloc(0, size, MEM_COMMIT, PAGE_READWRITE);
82 SIZE_T size local
95 BigAlloc(size_t size) argument
[all...]
/external/chromium_org/third_party/ots/third_party/lzma_sdk/
H A DAlloc.h14 void *MyAlloc(size_t size);
21 void *MidAlloc(size_t size);
23 void *BigAlloc(size_t size);
28 #define MidAlloc(size) MyAlloc(size)
30 #define BigAlloc(size) MyAlloc(size)
H A DAlloc.c24 void *MyAlloc(size_t size) argument
26 if (size == 0)
30 void *p = malloc(size);
31 fprintf(stderr, "\nAlloc %10d bytes, count = %10d, addr = %8X", size, g_allocCount++, (unsigned)p);
35 return malloc(size);
50 void *MidAlloc(size_t size) argument
52 if (size == 0)
55 fprintf(stderr, "\nAlloc_Mid %10d bytes; count = %10d", size, g_allocCountMid++);
57 return VirtualAlloc(0, size, MEM_COMMIT, PAGE_READWRITE);
83 SIZE_T size local
96 BigAlloc(size_t size) argument
[all...]
/external/lzma/C/
H A DAlloc.h13 void *MyAlloc(size_t size);
20 void *MidAlloc(size_t size);
22 void *BigAlloc(size_t size);
27 #define MidAlloc(size) MyAlloc(size)
29 #define BigAlloc(size) MyAlloc(size)
H A DAlloc.c23 void *MyAlloc(size_t size) argument
25 if (size == 0)
29 void *p = malloc(size);
30 fprintf(stderr, "\nAlloc %10d bytes, count = %10d, addr = %8X", size, g_allocCount++, (unsigned)p);
34 return malloc(size);
49 void *MidAlloc(size_t size) argument
51 if (size == 0)
54 fprintf(stderr, "\nAlloc_Mid %10d bytes; count = %10d", size, g_allocCountMid++);
56 return VirtualAlloc(0, size, MEM_COMMIT, PAGE_READWRITE);
82 SIZE_T size local
95 BigAlloc(size_t size) argument
[all...]
/external/protobuf/src/google/protobuf/io/
H A Dcoded_stream_inl.h48 int size) {
49 if (size < 0) return false; // security: size is often user-supplied
51 if (BufferSize() >= size) {
52 STLStringResizeUninitialized(buffer, size);
53 memcpy(string_as_array(buffer), buffer_, size); local
54 Advance(size);
58 return ReadStringFallback(buffer, size);
47 InternalReadStringInline(string* buffer, int size) argument
/external/chromium_org/ui/views/window/
H A Dwindow_shape.cc8 #include "ui/gfx/size.h"
12 void GetDefaultWindowMask(const gfx::Size &size, gfx::Path *window_mask) { argument
13 // Redefine the window visible region for the new size.
20 window_mask->lineTo(SkIntToScalar(size.width() - 3), 0);
21 window_mask->lineTo(SkIntToScalar(size.width() - 2), 1);
22 window_mask->lineTo(SkIntToScalar(size.width() - 1), 1);
23 window_mask->lineTo(SkIntToScalar(size.width() - 1), 2);
24 window_mask->lineTo(SkIntToScalar(size.width()), 3);
26 window_mask->lineTo(SkIntToScalar(size.width()),
27 SkIntToScalar(size
[all...]
/external/chromium_org/third_party/angle/src/libGLESv2/
H A DVertexAttribute.cpp17 size(4),
28 GLuint size = attrib.size; local
31 case GL_BYTE: return size * sizeof(GLbyte);
32 case GL_UNSIGNED_BYTE: return size * sizeof(GLubyte);
33 case GL_SHORT: return size * sizeof(GLshort);
34 case GL_UNSIGNED_SHORT: return size * sizeof(GLushort);
35 case GL_INT: return size * sizeof(GLint);
36 case GL_UNSIGNED_INT: return size * sizeof(GLuint);
39 case GL_FIXED: return size * sizeo
[all...]
/external/oprofile/libop/
H A Dop_xml_out.c99 int size, ret; local
102 size = strlen(buffer);
103 buf = &buffer[size];
104 size = max - 1 - size;
106 ret = snprintf(buf, size, "<%s%s", xml_tag_name(tag),
109 if (ret < 0 || ret >= size) {
119 int size, ret; local
122 size = strlen(buffer);
123 buf = &buffer[size];
141 int size, ret; local
160 int size, ret; local
181 size_t size; local
246 int size, ret; local
[all...]
/external/chromium_org/ui/gfx/geometry/
H A Dsize_conversions.cc11 Size ToFlooredSize(const SizeF& size) { argument
12 int w = ToFlooredInt(size.width());
13 int h = ToFlooredInt(size.height());
17 Size ToCeiledSize(const SizeF& size) { argument
18 int w = ToCeiledInt(size.width());
19 int h = ToCeiledInt(size.height());
23 Size ToRoundedSize(const SizeF& size) { argument
24 int w = ToRoundedInt(size.width());
25 int h = ToRoundedInt(size.height());
/external/ceres-solver/internal/ceres/
H A Darray_utils.h53 void InvalidateArray(int size, double* x);
58 bool IsArrayValid(int size, const double* x);
61 // otherwise return size.
62 int FindInvalidValue(const int size, const double* x);
66 void AppendArrayToString(const int size, const double* x, string* result);
83 void MapValuesToContiguousRange(int size, int* array);
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/
H A Dgetcwd.c17 char* getcwd(char* buf, size_t size) { argument
18 // If size is 0, allocate as much as we need.
19 if (size == 0) {
23 size = strlen(stack_buf) + 1;
27 buf = (char*)malloc(size);
29 return ki_getcwd(buf, size);
/external/chromium_org/net/spdy/
H A Dhpack_string_util.cc13 size_t size = str1.size(); local
14 if (str2.size() != size)
18 for (size_t i = 0; i < size; ++i) {
/external/chromium_org/skia/ext/
H A DSkMemory_new_handler.cpp21 static inline void* throw_on_failure(size_t size, void* p) { argument
22 if (size > 0 && p == NULL) {
39 void* sk_realloc_throw(void* addr, size_t size) { argument
40 return throw_on_failure(size, realloc(addr, size));
49 void* sk_malloc_throw(size_t size) { argument
50 return throw_on_failure(size, malloc(size));
53 static void* sk_malloc_nothrow(size_t size) { argument
60 ignore_result(base::UncheckedMalloc(size,
73 sk_malloc_flags(size_t size, unsigned flags) argument
80 sk_calloc_throw(size_t size) argument
84 sk_calloc(size_t size) argument
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DIoTestCase.java36 /** Returns a byte array of length size that has values 0 .. size - 1. */
37 protected static byte[] newPreFilledByteArray(int size) { argument
38 return newPreFilledByteArray(0, size);
42 * Returns a byte array of length size that has values
43 * offset .. offset + size - 1.
45 protected static byte[] newPreFilledByteArray(int offset, int size) { argument
46 byte[] array = new byte[size];
47 for (int i = 0; i < size; i++) {
/external/lzma/CPP/7zip/Compress/
H A DBranchMisc.cpp9 UInt32 CBC_ARM_Encoder::SubFilter(Byte *data, UInt32 size) argument
10 { return (UInt32)::ARM_Convert(data, size, _bufferPos, 1); }
12 UInt32 CBC_ARM_Decoder::SubFilter(Byte *data, UInt32 size) argument
13 { return (UInt32)::ARM_Convert(data, size, _bufferPos, 0); }
15 UInt32 CBC_ARMT_Encoder::SubFilter(Byte *data, UInt32 size) argument
16 { return (UInt32)::ARMT_Convert(data, size, _bufferPos, 1); }
18 UInt32 CBC_ARMT_Decoder::SubFilter(Byte *data, UInt32 size) argument
19 { return (UInt32)::ARMT_Convert(data, size, _bufferPos, 0); }
21 UInt32 CBC_PPC_Encoder::SubFilter(Byte *data, UInt32 size) argument
22 { return (UInt32)::PPC_Convert(data, size, _bufferPo
24 SubFilter(Byte *data, UInt32 size) argument
27 SubFilter(Byte *data, UInt32 size) argument
30 SubFilter(Byte *data, UInt32 size) argument
33 SubFilter(Byte *data, UInt32 size) argument
36 SubFilter(Byte *data, UInt32 size) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DAlignment.h46 template<size_t size, size_t alignment> struct AlignedBuffer;
47 template<size_t size> struct AlignedBuffer<size, 1> { AlignedBufferChar buffer[size]; };
48 template<size_t size> struct AlignedBuffer<size, 2> { WTF_ALIGNED(AlignedBufferChar, buffer[size], 2); };
49 template<size_t size> struct AlignedBuffer<size, 4> { WTF_ALIGNED(AlignedBufferChar, buffer[size],
[all...]
/external/chromium_org/third_party/speex/libspeex/
H A Dstack_alloc.h51 * @def ALIGN(stack, size)
53 * Aligns the stack to a 'size' boundary
56 * @param size New size boundary
60 * @def PUSH(stack, size, type)
62 * Allocates 'size' elements of type 'type' on the stack
65 * @param size Number of elements
78 * @def ALLOC(var, size, type)
80 * Allocate 'size' elements of 'type' on stack
83 * @param size Numbe
[all...]
/external/speex/libspeex/
H A Dstack_alloc.h51 * @def ALIGN(stack, size)
53 * Aligns the stack to a 'size' boundary
56 * @param size New size boundary
60 * @def PUSH(stack, size, type)
62 * Allocates 'size' elements of type 'type' on the stack
65 * @param size Number of elements
78 * @def ALLOC(var, size, type)
80 * Allocate 'size' elements of 'type' on stack
83 * @param size Numbe
[all...]

Completed in 3296 milliseconds

1234567891011>>