Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 227) sorted by relevance

12345678910

/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DglUtils.h69 void glUtilsPackStrings(char *ptr, char **strings, GLint *length, GLsizei count);
70 int glUtilsCalcShaderSourceLen(char **strings, GLint *length, GLsizei count);
82 template <class T> void minmax(const T *indices, int count, int *min, int *max) { in minmax() argument
86 for (int i = 0; i < count; i++) { in minmax()
94 (const T *indices, int count, int *min, int *max, in minmaxExcept() argument
97 if (!shouldExclude) return minmax(indices, count, min, max); in minmaxExcept()
102 for (int i = 0; i < count; i++) { in minmaxExcept()
111 template <class T> void shiftIndices(T *indices, int count, int offset) { in shiftIndices() argument
113 for (int i = 0; i < count; i++) { in shiftIndices()
120 template <class T> void shiftIndices(const T *src, T *dst, int count, int offset) in shiftIndices() argument
[all …]
DIndexRangeCache.h49 size_t count,
55 size_t count,
66 count(0), in IndexRangeKey()
74 count(_count), in IndexRangeKey()
78 size_t end = offset + count * glSizeof(type);
79 size_t end_other = rhs.offset + rhs.count * glSizeof(rhs.type);
91 size_t count; member
DIndexRangeCache.cpp24 size_t count, in addRange() argument
31 mIndexRangeCache[IndexRangeKey(type, offset, count, primitiveRestartEnabled)] = r; in addRange()
36 size_t count, in findRange() argument
42 IndexRangeKey(type, offset, count, primitiveRestartEnabled)); in findRange()
66 it->first.count * glSizeof(it->first.type); in invalidateRange()
/device/google/cuttlefish/guest/hals/hwcomposer/common/
Dstats_keeper.cpp111 Nanoseconds(last_composition_stats_.set_start.SinceEpoch()).count(); in RecordPrepareStart()
151 front.set_calls_time().count() / front.num_hwcomposited_layers()); in RecordSetEnd()
182 last_set_call_total_time_.count() / in RecordSetEnd()
203 Seconds(period_length_).count(), in SynchronizedDump()
205 .count()); in SynchronizedDump()
227 Microseconds(MultisetMax(prepare_call_times_)).count(), in SynchronizedDump()
228 Microseconds(prepare_call_total_time_).count() / num_prepare_calls_, in SynchronizedDump()
229 Microseconds(MultisetMin(prepare_call_times_)).count(), in SynchronizedDump()
230 Microseconds(prepare_call_total_time_).count()); in SynchronizedDump()
234 Microseconds(MultisetMax(set_call_times_)).count(), in SynchronizedDump()
[all …]
/device/google/cuttlefish/common/libs/time/
Dmonotonic_time_test.cpp31 EXPECT_EQ((td1+td2).count(), (1)*1000000000 + 110); in TEST_F()
37 EXPECT_EQ((td1+td2).count(), (110L)*1000000000L + 11000L); in TEST_F()
44 EXPECT_EQ((td1+td2).count(), ((110L)*1000000000L + 11000L)/scale); in TEST_F()
51 EXPECT_EQ((td1+td2).count(), ((90L)*1000000000L + 11000L)/scale); in TEST_F()
58 EXPECT_EQ((td1+td2).count(), ((90L)*1000000000L + 11000L)/std::min(scale1, scale2)); in TEST_F()
65 EXPECT_EQ((td1+td2).count(), (1005L)/std::min(scale1, scale2)); in TEST_F()
72 EXPECT_EQ((td2-td1).count(), ((90L)*1000000000L + 9000L)/scale); in TEST_F()
79 EXPECT_EQ((td1-td2).count(), ((-91L)*1000000000L + 1000000000L - 9000L)/scale); in TEST_F()
86 …EXPECT_EQ((td1-td2).count(), ((-111L)*1000000000L + 1000000000L - 9000L)/std::min(scale1, scale2)); in TEST_F()
93 EXPECT_EQ((td1-td2).count(), (985L)/std::min(scale1, scale2)); in TEST_F()
/device/generic/opengl-transport/host/libs/virglrenderer/OpenGLESDispatch/
Dgles31_only.entries18 GLuint glCreateShaderProgramv(GLenum type, GLsizei count, const GLchar *const*strings);
36 void glProgramUniform1iv(GLuint program, GLint location, GLsizei count, const GLint *value);
37 void glProgramUniform2iv(GLuint program, GLint location, GLsizei count, const GLint *value);
38 void glProgramUniform3iv(GLuint program, GLint location, GLsizei count, const GLint *value);
39 void glProgramUniform4iv(GLuint program, GLint location, GLsizei count, const GLint *value);
40 void glProgramUniform1uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);
41 void glProgramUniform2uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);
42 void glProgramUniform3uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);
43 void glProgramUniform4uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);
44 void glProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat *value);
[all …]
Dgles3_only.entries9 void glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const v…
25 void glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
26 void glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
27 void glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
28 void glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
29 void glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
30 void glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
45 void glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar *const*varyings, GLenu…
60 void glUniform1uiv(GLint location, GLsizei count, const GLuint *value);
61 void glUniform2uiv(GLint location, GLsizei count, const GLuint *value);
[all …]
/device/generic/goldfish-opengl/system/vulkan_enc/
DVulkanHandleMapping.h29 virtual void mapHandles_##type(type* handles, size_t count = 1) = 0; \
30 …virtual void mapHandles_##type##_u64(const type* handles, uint64_t* handle_u64s, size_t count = 1)…
31 …virtual void mapHandles_u64_##type(const uint64_t* handle_u64s, type* handles, size_t count = 1) =…
41 void mapHandles_##type(type* handles, size_t count) override; \
42 … void mapHandles_##type##_u64(const type* handles, uint64_t* handle_u64s, size_t count) override; \
43 void mapHandles_u64_##type(const uint64_t* handle_u64s, type* handles, size_t count) override; \
DVulkanHandleMapping.cpp23 …andleMapping::mapHandles_##type##_u64(const type* handles, uint64_t* handle_u64s, size_t count) { \
24 for (size_t i = 0; i < count; ++i) { handle_u64s[i] = (uint64_t)(uintptr_t)handles[i]; } \
26 …tHandleMapping::mapHandles_u64_##type(const uint64_t* handle_u64s, type* handles, size_t count) { \
27 for (size_t i = 0; i < count; ++i) { handles[i] = (type)(uintptr_t)handle_u64s[i]; } \
/device/generic/opengl-transport/host/libs/virglrenderer/GLESv3_dec/
Dgles3.attrib99 dir count out
100 var_flag count nullAllowed
101 len count (sizeof(GLsizei))
210 len v (count * sizeof(GLfloat))
213 len v (count * sizeof(GLint))
216 len v (count * 2 * sizeof(GLfloat))
219 len v (count * 2 * sizeof(GLint))
222 len v (count * 3 * sizeof(GLfloat))
225 len v (3 * count * sizeof(GLint))
228 len v (4 * count * sizeof(GLfloat))
[all …]
/device/generic/goldfish-opengl/system/GLESv2_enc/
Dgl2_entry.cpp48 void glDrawArrays(GLenum mode, GLint first, GLsizei count);
49 void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
64 void glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
106 …void glShaderSource(GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length…
120 void glUniform1fv(GLint location, GLsizei count, const GLfloat* v);
122 void glUniform1iv(GLint location, GLsizei count, const GLint* v);
124 void glUniform2fv(GLint location, GLsizei count, const GLfloat* v);
126 void glUniform2iv(GLint location, GLsizei count, const GLint* v);
128 void glUniform3fv(GLint location, GLsizei count, const GLfloat* v);
130 void glUniform3iv(GLint location, GLsizei count, const GLint* v);
[all …]
DGL2Encoder.h149 GLenum type, GLsizei count,
152 GLenum type, GLsizei count,
155 GLenum type, size_t count, size_t offset,
158 …void sendVertexAttributes(GLint first, GLsizei count, bool hasClientArrays, GLsizei primcount = 0);
210 static void s_glDrawArrays(void *self, GLenum mode, GLint first, GLsizei count);
213 …static void s_glDrawElements(void *self, GLenum mode, GLsizei count, GLenum type, const void *indi…
216 static void s_glDrawArraysNullAEMU(void *self, GLenum mode, GLint first, GLsizei count);
219 …static void s_glDrawElementsNullAEMU(void *self, GLenum mode, GLsizei count, GLenum type, const vo…
257 …static void s_glShaderSource(void *self, GLuint shader, GLsizei count, const GLchar * const *strin…
290 GLsizei* count, GLuint* shaders);
[all …]
DGL2Encoder.cpp1087 GLsizei count, in calcIndexRange() argument
1094 (unsigned char *)indices, count, in calcIndexRange()
1101 (unsigned short *)indices, count, in calcIndexRange()
1108 (unsigned int *)indices, count, in calcIndexRange()
1119 GLsizei count, in recenterIndices() argument
1125 m_fixedBuffer.resize(glSizeof(type) * count); in recenterIndices()
1133 count, -minIndex, in recenterIndices()
1142 count, -minIndex, in recenterIndices()
1151 count, -minIndex, in recenterIndices()
1166 size_t count, in getBufferIndexRange() argument
[all …]
/device/google/cuttlefish/tools/
Dnetwork-setup.sh71 count=1
73 echo "${count}) $net"
74 let count+=1
77 count=1
79 if [ ${count} -eq ${num_default} ]; then
83 let count+=1
112 count=1
114 echo "${count}) $net"
115 let count+=1
118 count=1
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/files/
DStreamSerializing.cpp39 void saveStringArray(Stream* stream, const char* const* strings, uint32_t count) { in saveStringArray() argument
40 stream->putBe32(count); in saveStringArray()
41 for (uint32_t i = 0; i < count; ++i) { in saveStringArray()
47 uint32_t count = stream->getBe32(); in loadStringArray() local
49 for (uint32_t i = 0; i < count; ++i) { in loadStringArray()
/device/generic/goldfish-opengl/android-emu/android/base/
DPool.h57 T* allocArray(size_t count) { in allocArray() argument
58 size_t bytes = sizeof(T) * count; in allocArray()
71 char** strDupArray(const char* const* arrayToCopy, size_t count) { in strDupArray() argument
72 char** res = allocArray<char*>(count); in strDupArray()
74 for (size_t i = 0; i < count; i++) { in strDupArray()
DAndroidSubAllocator.h66 T* allocArray(size_t count) { in allocArray() argument
67 size_t bytes = sizeof(T) * count; in allocArray()
80 char** strDupArray(const char* const* arrayToCopy, size_t count) { in strDupArray() argument
81 char** res = allocArray<char*>(count); in strDupArray()
83 for (size_t i = 0; i < count; i++) { in strDupArray()
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/gdbstub/
Dgdbstub.c269 int count; in getpacket() local
280 count = 0; in getpacket()
283 while (count < BUFMAX - 1) { in getpacket()
290 buffer[count] = ch; in getpacket()
291 count = count + 1; in getpacket()
293 buffer[count] = 0; in getpacket()
325 int count; in putpacket() local
332 count = 0; in putpacket()
334 while ((ch = buffer[count]) != 0) { in putpacket()
337 count += 1; in putpacket()
[all …]
/device/google/cuttlefish/host/frontend/adb_connector/
Dadb_connection_maintainer.cpp72 std::string RecvAll(cuttlefish::SharedFD sock, const size_t count) { in RecvAll() argument
74 std::unique_ptr<char[]> data(new char[count]); in RecvAll()
75 while (total_read < count) { in RecvAll()
76 auto just_read = sock->Read(data.get() + total_read, count - total_read); in RecvAll()
83 return {data.get(), count}; in RecvAll()
141 auto count = sock->Read(just_read.data(), just_read.size()); in RecvUptimeResult() local
142 if (count < 0) { in RecvUptimeResult()
146 just_read.resize(count); in RecvUptimeResult()
/device/linaro/hikey/wpan/uim/
Duim.c91 int count = 0; in read_hci_event() local
117 count++; in read_hci_event()
120 while (count < 3) { in read_hci_event()
121 rd = read(fd, buf + count, 3 - count); in read_hci_event()
124 count += rd; in read_hci_event()
133 while ((count - 3) < remain) { in read_hci_event()
134 rd = read(fd, buf + count, remain - (count - 3)); in read_hci_event()
137 count += rd; in read_hci_event()
140 return count; in read_hci_event()
/device/linaro/dragonboard/qcom/qrtr/src/
Dmap.c53 map->count = 0; in map_clear()
60 map->count = 0; in map_create()
69 if (map->count == map->size) in map_hash()
77 ++map->count; in map_hash()
134 map->count = 0; in map_rehash()
195 --map->count; in map_remove()
202 return map ? map->count : 0; in map_length()
/device/generic/goldfish-opengl/system/include/GLES2/
Dgl2ext.h122 …SAGECONTROLKHRPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids…
125 typedef GLuint (GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC) (GLuint count, GLsizei bufSize, GLenum…
134 …ugMessageControlKHR (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids…
137 GL_APICALL GLuint GL_APIENTRY glGetDebugMessageLogKHR (GLuint count, GLsizei bufSize, GLenum *sourc…
545 …RYP PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount…
546 typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum…
549 GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE (GLenum mode, GLint first, GLsizei count, GL…
550 GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE (GLenum mode, GLsizei count, GLenum type, …
866 …NTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount…
867 typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum t…
[all …]
/device/generic/goldfish-opengl/system/include/GLES3/
Dgl31.h417 GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
418 GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *in…
433 GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count,…
474 GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryform…
475 GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*strin…
489 GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
491 GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
493 GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
495 GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
497 GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
[all …]
/device/google/fuchsia/bioniccompat/src/
Dsendfile.cc29 ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count) { in sendfile() argument
38 while(count > 0) { in sendfile()
48 count -= bytes; in sendfile()
/device/generic/goldfish/network/wifi_forwarder/
Dframe.cpp86 mTxRates[i].count = 0; in FrameInfo()
90 mTxRates[i].count = 0; in FrameInfo()
119 if (rates[i].count < mInitialTxRates[i].count) { in incrementAttempts()
120 ++rates[i].count; in incrementAttempts()
133 if (rates[i].count < mInitialTxRates[i].count) { in hasRemainingAttempts()

12345678910