| /device/generic/vulkan-cereal/base/ |
| D | address_space.h | 41 uint64_t size : 63; member 48 * blocks[i].size > 0 49 * blocks[i+1].offset = blocks[i].offset + blocks[i].size 53 int size; member 74 static void* address_space_realloc(void* ptr, size_t size) { in address_space_realloc() argument 76 return ANDROID_EMU_ADDRESS_SPACE_REALLOC_FUNC(ptr, size); in address_space_realloc() 78 void* res = realloc(ptr, size); in address_space_realloc() 91 /* Looks for the smallest (to reduce fragmentation) available block with size to 106 uint64_t this_size = block->size; in address_space_allocator_find_available_block() 132 uint64_t this_size = block->size; in address_space_allocator_find_available_block_at_offset() [all …]
|
| D | StringUtils.cpp | 51 char* ret = static_cast<char*>(malloc(view.size() + 1u)); in strDup() 52 ::memcpy(ret, view.data(), view.size()); in strDup() 53 ret[view.size()] = '\0'; in strDup() 58 return ::memmem(haystack.data(), haystack.size(), needle, in strContains() 65 if (s.size() == 0) { in Trim() 70 size_t end_index = s.size() - 1; in Trim() 73 while (start_index < s.size()) { in Trim() 101 return s.substr(0, prefix.size()) == prefix; in StartsWith() 105 return string.size() >= prefix.size() && in startsWith() 106 memcmp(string.data(), prefix.data(), prefix.size()) == 0; in startsWith() [all …]
|
| /device/generic/goldfish-opengl/android-emu/android/base/ |
| D | address_space.h | 44 uint64_t size : 63; member 51 * blocks[i].size > 0 52 * blocks[i+1].offset = blocks[i].offset + blocks[i].size 56 int size; member 73 static void* address_space_malloc0(size_t size) { in address_space_malloc0() argument 75 return ANDROID_EMU_ADDRESS_SPACE_MALLOC0_FUNC(size); in address_space_malloc0() 77 void* res = malloc(size); in address_space_malloc0() 78 memset(res, 0, size); in address_space_malloc0() 83 static void* address_space_realloc(void* ptr, size_t size) { in address_space_realloc() argument 85 return ANDROID_EMU_ADDRESS_SPACE_REALLOC_FUNC(ptr, size); in address_space_realloc() [all …]
|
| /device/generic/vulkan-cereal/third-party/angle/src/libANGLE/renderer/d3d/d3d11/shaders/ |
| D | Passthrough3D11.hlsl | 67 uint3 size; 68 TextureUI.GetDimensions(size.x, size.y, size.z); 70 return TextureUI.Load(int4(size * input.TexCoord, 0)).rgba; 75 uint3 size; 76 TextureI.GetDimensions(size.x, size.y, size.z); 78 return TextureI.Load(int4(size * input.TexCoord, 0)).rgba; 88 uint3 size; 89 TextureUI.GetDimensions(size.x, size.y, size.z); 91 return uint4(TextureUI.Load(int4(size * input.TexCoord, 0)).rgb, 0); 96 uint3 size; [all …]
|
| D | Passthrough2DArray11.hlsl | 20 uint3 size; 21 TextureUI.GetDimensions(size.x, size.y, size.z); 23 int4 location = int4(size.xy * inTexCoord.xy, inLayer, 0); 30 uint3 size; 31 TextureI.GetDimensions(size.x, size.y, size.z); 33 int4 location = int4(size.xy * inTexCoord.xy, inLayer, 0); 45 uint3 size; 46 TextureUI.GetDimensions(size.x, size.y, size.z); 48 int4 location = int4(size.xy * inTexCoord.xy, inLayer, 0); 55 uint3 size; [all …]
|
| D | Swizzle11.hlsl | 45 uint2 size; 46 TextureI2D.GetDimensions(size.x, size.y); 48 return SwizzleLookup(TextureI2D.Load(int3(size * inTexCoord, 0))); 53 uint2 size; 54 TextureUI2D.GetDimensions(size.x, size.y); 56 return SwizzleLookup(TextureUI2D.Load(int3(size * inTexCoord, 0))); 66 uint3 size; 67 TextureI3D.GetDimensions(size.x, size.y, size.z); 69 return SwizzleLookup(TextureI3D.Load(int4(size * inTexCoord, 0))); 74 uint3 size; [all …]
|
| D | Passthrough2D11.hlsl | 37 uint2 size; 38 TextureUI.GetDimensions(size.x, size.y); 40 return TextureUI.Load(int3(size * inTexCoord, 0)).rgba; 45 uint2 size; 46 TextureI.GetDimensions(size.x, size.y); 48 return TextureI.Load(int3(size * inTexCoord, 0)).rgba; 58 uint2 size; 59 TextureUI.GetDimensions(size.x, size.y); 61 return uint4(TextureUI.Load(int3(size * inTexCoord, 0)).rgb, 0); 66 uint2 size; [all …]
|
| /device/generic/vulkan-cereal/third-party/angle/src/tests/gl_tests/ |
| D | MultisampledRenderToTextureTest.cpp | 148 // Renderbuffer size too large in TEST_P() 307 GLsizei size = 6; variable 310 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, size, size, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); 320 glViewport(0, 0, size, size); 339 EXPECT_PIXEL_COLOR_EQ(size / 2, size / 2, GLColor::green); 355 EXPECT_PIXEL_COLOR_EQ(size / 2, size / 2, GLColor::red); 365 GLsizei size = 6; variable 369 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, size, size, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); 379 glRenderbufferStorageMultisampleEXT(GL_RENDERBUFFER, 4, GL_DEPTH_COMPONENT16, size, size); 385 glViewport(0, 0, size, size); [all …]
|
| /device/google/contexthub/util/common/ |
| D | ring.cpp | 25 RingBuffer::RingBuffer(size_t size) in RingBuffer() argument 26 : mSize(size), in RingBuffer() 37 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() argument 43 if (size > numAvailableToWrite) { in write() 44 size = numAvailableToWrite; in write() 50 if (copy > size) { in write() 51 copy = size; in write() 56 if (size > copy) { in write() 57 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write() 60 mWritePos += size; in write() [all …]
|
| /device/generic/vulkan-cereal/protocols/vulkan/katex/ |
| D | katex.min.css | 1 …size:1em}.katex .reset-textstyle.scriptstyle{font-size:.7em}.katex .reset-textstyle.scriptscriptst…
|
| D | katex.css | 327 font-size: 1em; 330 font-size: 0.7em; 333 font-size: 0.5em; 336 font-size: 1.42857em; 339 font-size: 1em; 342 font-size: 0.71429em; 345 font-size: 2em; 348 font-size: 1.4em; 351 font-size: 1em; 449 font-size: 0.75em; [all …]
|
| /device/generic/vulkan-cereal/protocols/vulkan/out/katex/ |
| D | katex.min.css | 1 …size:1em}.katex .reset-textstyle.scriptstyle{font-size:.7em}.katex .reset-textstyle.scriptscriptst…
|
| D | katex.css | 327 font-size: 1em; 330 font-size: 0.7em; 333 font-size: 0.5em; 336 font-size: 1.42857em; 339 font-size: 1em; 342 font-size: 0.71429em; 345 font-size: 2em; 348 font-size: 1.4em; 351 font-size: 1em; 449 font-size: 0.75em; [all …]
|
| /device/generic/vulkan-cereal/third-party/perfetto/include/perfetto/ext/base/ |
| D | string_view.h | 41 StringView(const char* data, size_t size) : data_(data), size_(size) { in StringView() argument 42 PERFETTO_DCHECK(size == 0 || data != nullptr); in StringView() 45 // Allow implicit conversion from any class that has a |data| and |size| field 48 StringView(const T& x) : StringView(x.data, x.size) { in StringView() 49 PERFETTO_DCHECK(x.size == 0 || x.data != nullptr); in StringView() 61 : data_(str.data()), size_(str.size()) {} in StringView() 64 size_t size() const { return size_; } in size() function 83 if (start_pos > size()) 87 return pos + str.size() <= size() ? pos : npos; 110 if (size() != other.size()) in CaseInsensitiveEq() [all …]
|
| /device/generic/vulkan-cereal/fake-android-guest/utils/ |
| D | Flattenable.h | 35 static size_t align(size_t size) { in align() argument 37 return (size + (N-1)) & ~(N-1); in align() 53 static void advance(void*& buffer, size_t& size, size_t offset) { in advance() argument 55 size -= offset; in advance() 58 static void advance(void const*& buffer, size_t& size, size_t offset) { in advance() argument 60 size -= offset; in advance() 65 static void write(void*& buffer, size_t& size, const T& value) { in write() argument 69 advance(buffer, size, sizeof(T)); in write() 74 static void read(void const*& buffer, size_t& size, T& value) { in read() argument 78 advance(buffer, size, sizeof(T)); in read() [all …]
|
| /device/linaro/hikey/gralloc960/ |
| D | mali_gralloc_bufferallocation.cpp | 92 * Computes the strides and size for an RGB buffer 96 * pixel_size size of one pixel in bytes 100 * size (out) size of the buffer in bytes 104 size_t *size, AllocType type) in get_rgb_stride_and_size() argument 111 …* It's more efficient to write to 64-byte aligned addresses because it's the burst size on the bus… in get_rgb_stride_and_size() 114 if (size != NULL) in get_rgb_stride_and_size() 116 *size = stride *height; in get_rgb_stride_and_size() 177 if (size != NULL) in get_rgb_stride_and_size() 179 *size = stride *h_aligned + in get_rgb_stride_and_size() 186 * Computes the strides and size for an AFBC 8BIT YUV 4:2:0 buffer [all …]
|
| /device/amlogic/yukawa/hal/gralloc/ |
| D | mali_gralloc_bufferallocation.cpp | 92 * Computes the strides and size for an RGB buffer 96 * pixel_size size of one pixel in bytes 100 * size (out) size of the buffer in bytes 104 size_t *size, AllocType type) in get_rgb_stride_and_size() argument 111 …* It's more efficient to write to 64-byte aligned addresses because it's the burst size on the bus… in get_rgb_stride_and_size() 114 if (size != NULL) in get_rgb_stride_and_size() 116 *size = stride *height; in get_rgb_stride_and_size() 177 if (size != NULL) in get_rgb_stride_and_size() 179 *size = stride *h_aligned + in get_rgb_stride_and_size() 186 * Computes the strides and size for an AFBC 8BIT YUV 4:2:0 buffer [all …]
|
| /device/google/crosshatch/json-c/ |
| D | printbuf.c | 39 p->size = 32; in printbuf_new() 41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new() 50 * Extend the buffer p so it has a size of at least min_size. 52 * If the current size is large enough, nothing is changed. 62 if (p->size >= min_size) in printbuf_extend() 65 new_size = p->size * 2; in printbuf_extend() 71 p->bpos, min_size, p->size, new_size); in printbuf_extend() 75 p->size = new_size; in printbuf_extend() 80 int printbuf_memappend(struct printbuf *p, const char *buf, int size) in printbuf_memappend() argument 82 if (p->size <= p->bpos + size + 1) { in printbuf_memappend() [all …]
|
| /device/google/coral/json-c/ |
| D | printbuf.c | 39 p->size = 32; in printbuf_new() 41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new() 50 * Extend the buffer p so it has a size of at least min_size. 52 * If the current size is large enough, nothing is changed. 62 if (p->size >= min_size) in printbuf_extend() 65 new_size = p->size * 2; in printbuf_extend() 71 p->bpos, min_size, p->size, new_size); in printbuf_extend() 75 p->size = new_size; in printbuf_extend() 80 int printbuf_memappend(struct printbuf *p, const char *buf, int size) in printbuf_memappend() argument 82 if (p->size <= p->bpos + size + 1) { in printbuf_memappend() [all …]
|
| /device/google/bonito/json-c/ |
| D | printbuf.c | 39 p->size = 32; in printbuf_new() 41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new() 50 * Extend the buffer p so it has a size of at least min_size. 52 * If the current size is large enough, nothing is changed. 62 if (p->size >= min_size) in printbuf_extend() 65 new_size = p->size * 2; in printbuf_extend() 71 p->bpos, min_size, p->size, new_size); in printbuf_extend() 75 p->size = new_size; in printbuf_extend() 80 int printbuf_memappend(struct printbuf *p, const char *buf, int size) in printbuf_memappend() argument 82 if (p->size <= p->bpos + size + 1) { in printbuf_memappend() [all …]
|
| /device/google/sunfish/json-c/ |
| D | printbuf.c | 39 p->size = 32; in printbuf_new() 41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new() 50 * Extend the buffer p so it has a size of at least min_size. 52 * If the current size is large enough, nothing is changed. 62 if (p->size >= min_size) in printbuf_extend() 65 new_size = p->size * 2; in printbuf_extend() 71 p->bpos, min_size, p->size, new_size); in printbuf_extend() 75 p->size = new_size; in printbuf_extend() 80 int printbuf_memappend(struct printbuf *p, const char *buf, int size) in printbuf_memappend() argument 82 if (p->size <= p->bpos + size + 1) { in printbuf_memappend() [all …]
|
| /device/google/redbull/json-c/ |
| D | printbuf.c | 39 p->size = 32; in printbuf_new() 41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new() 50 * Extend the buffer p so it has a size of at least min_size. 52 * If the current size is large enough, nothing is changed. 62 if (p->size >= min_size) in printbuf_extend() 65 new_size = p->size * 2; in printbuf_extend() 71 p->bpos, min_size, p->size, new_size); in printbuf_extend() 75 p->size = new_size; in printbuf_extend() 80 int printbuf_memappend(struct printbuf *p, const char *buf, int size) in printbuf_memappend() argument 82 if (p->size <= p->bpos + size + 1) { in printbuf_memappend() [all …]
|
| /device/generic/vulkan-cereal/host-common/ |
| D | address_space_host_memory_allocator.cpp | 54 const uint64_t size) { in allocate_impl() argument 60 const uint64_t aligned_size = ((size + alignment - 1) / alignment) * alignment; in allocate_impl() 83 void* host_ptr = allocate_impl(info->phys_addr, info->size); in allocate() 96 const uint64_t size = i->second.second; in unallocate() local 98 if (m_ops->remove_memory_mapping(phys_addr, host_ptr, size)) { in unallocate() 103 … crashhandler_die("Failed remove a memory mapping {phys_addr=%lx, host_ptr=%p, size=%lu}", in unallocate() 104 phys_addr, host_ptr, size); in unallocate() 117 stream->putBe32(m_paddr2ptr.size()); in save() 121 const uint64_t size = kv.second.second; in save() local 125 stream->putBe64(size); in save() [all …]
|
| /device/generic/vulkan-cereal/third-party/angle/src/libANGLE/renderer/gl/ |
| D | SemaphoreGL.cpp | 23 outIDs->resize(bufferBarriers.size()); in GatherNativeBufferIDs() 24 for (GLuint bufferIdx = 0; bufferIdx < bufferBarriers.size(); bufferIdx++) in GatherNativeBufferIDs() 34 outIDs->resize(textureBarriers.size()); in GatherNativeTextureIDs() 35 outLayouts->resize(textureBarriers.size()); in GatherNativeTextureIDs() 36 for (GLuint textureIdx = 0; textureIdx < textureBarriers.size(); textureIdx++) in GatherNativeTextureIDs() 84 gl::BarrierVector<GLuint> bufferIDs(bufferBarriers.size()); in wait() 87 gl::BarrierVector<GLuint> textureIDs(textureBarriers.size()); in wait() 88 gl::BarrierVector<GLenum> textureLayouts(textureBarriers.size()); in wait() 90 ASSERT(textureIDs.size() == textureLayouts.size()); in wait() 92 functions->waitSemaphoreEXT(mSemaphoreID, static_cast<GLuint>(bufferIDs.size()), in wait() [all …]
|
| /device/linaro/dragonboard/qcom/pd-mapper/ |
| D | assoc.c | 56 void assoc_init(struct assoc *assoc, unsigned long size) in assoc_init() argument 58 assert(size > 0); in assoc_init() 60 assoc->size = size; in assoc_init() 62 assoc->keys = calloc(size, sizeof(const char *)); in assoc_init() 63 assoc->values = malloc(size * sizeof(void *)); in assoc_init() 70 hash = assoc_hash(key) % assoc->size; in assoc_get() 75 hash = (hash + 1) % assoc->size; in assoc_get() 87 assert(assoc->fill < assoc->size); in _assoc_set() 90 if (5 * assoc->fill > 4 * assoc->size) { in _assoc_set() 91 assoc_init(&new_set, assoc->size * 5 / 4); in _assoc_set() [all …]
|