Home
last modified time | relevance | path

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

123456

/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_exif.c59 exif_tag_type_t type, uint32_t count, void *data) in addExifEntry() argument
71 p_info_data[numOfEntries].tag_entry.count = count; in addExifEntry()
75 if (count > 1) { in addExifEntry()
76 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
81 memcpy(values, data, count); in addExifEntry()
91 str = (char *)malloc(count + 1); in addExifEntry()
96 memset(str, 0, count + 1); in addExifEntry()
97 memcpy(str, data, count); in addExifEntry()
103 if (count > 1) { in addExifEntry()
104 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_exif.c62 exif_tag_type_t type, uint32_t count, void *data) in addExifEntry() argument
74 p_info_data[numOfEntries].tag_entry.count = count; in addExifEntry()
78 if (count > 1) { in addExifEntry()
79 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
84 memcpy(values, data, count); in addExifEntry()
94 str = (char *)malloc(count + 1); in addExifEntry()
99 memset(str, 0, count + 1); in addExifEntry()
100 memcpy(str, data, count); in addExifEntry()
106 if (count > 1) { in addExifEntry()
107 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_exif.c62 exif_tag_type_t type, uint32_t count, void *data) in addExifEntry() argument
74 p_info_data[numOfEntries].tag_entry.count = count; in addExifEntry()
78 if (count > 1) { in addExifEntry()
79 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
84 memcpy(values, data, count); in addExifEntry()
94 str = (char *)malloc(count + 1); in addExifEntry()
99 memset(str, 0, count + 1); in addExifEntry()
100 memcpy(str, data, count); in addExifEntry()
106 if (count > 1) { in addExifEntry()
107 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry()
[all …]
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/
DglUtils.h58 void glUtilsPackStrings(char *ptr, char **strings, GLint *length, GLsizei count);
59 int glUtilsCalcShaderSourceLen(char **strings, GLint *length, GLsizei count);
66 template <class T> void minmax(T *indices, int count, int *min, int *max) { in minmax() argument
70 for (int i = 0; i < count; i++) { in minmax()
77 template <class T> void shiftIndices(T *indices, int count, int offset) { in shiftIndices() argument
79 for (int i = 0; i < count; i++) { in shiftIndices()
86 template <class T> void shiftIndices(T *src, T *dst, int count, int offset) in shiftIndices() argument
88 for (int i = 0; i < count; i++) { in shiftIndices()
/device/asus/fugu/dumpstate/
Ddumpstate.c56 int count = 0; in fugu_dump_base64() local
68 count += 4; in fugu_dump_base64()
69 if (count > 72) { in fugu_dump_base64()
71 count = 0; in fugu_dump_base64()
86 count = left; in fugu_dump_base64()
87 while (count < 3) { in fugu_dump_base64()
88 buffer[count++] = 0; in fugu_dump_base64()
/device/generic/goldfish/libqemu/
Dtest_guest_1.c62 int count; in main() local
66 for (count = 0; count < maxCount; count++) { in main()
68 int len = snprintf(buff, sizeof(buff), "Hello World %d\n", count); in main()
69 printf("%4d: Sending %d bytes\n", count, len); in main()
84 printf("%4d: Received %d bytes\n", count, ret); in main()
Dtest_guest_2.c60 int nn, count; in main() local
162 for (count = 0; count < maxCount; count++) { in main()
167 fprintf(stderr,"%d: Sending %d bytes failed: %s\n", count, bufferSize, strerror(errno)); in main()
226 if (count > 0 && (count % 200) == 0) { in main()
227 printf("... %d\n", count); in main()
/device/lge/hammerhead/libsensors/
Dsensors.cpp114 int pollEvents(sensors_event_t* data, int count);
273 int sensors_poll_context_t::pollEvents(sensors_event_t *data, int count) in pollEvents() argument
280 for (int i = 0; count && i < numSensorDrivers; i++) { in pollEvents()
287 nb = ((MPLSensor*) sensor)->readEvents(data, count); in pollEvents()
289 count -= nb; in pollEvents()
296 nb = ((MPLSensor*) sensor)->readEvents(data, count); in pollEvents()
298 count -= nb; in pollEvents()
303 nb = ((MPLSensor*) sensor)->readDmpOrientEvents(data, count); in pollEvents()
306 count -= nb; in pollEvents()
312 nb = ((MPLSensor*) sensor)->readDmpSignificantMotionEvents(data, count); in pollEvents()
[all …]
DProximitySensor.cpp98 int ProximitySensor::readEvents(sensors_event_t* data, int count) in readEvents() argument
100 if (count < 1) in readEvents()
117 while (count && mInputReader.readEvent(&event)) { in readEvents()
130 count--; in readEvents()
/device/samsung/manta/libsensors/
Dsensors.cpp112 int pollEvents(sensors_event_t* data, int count);
252 int sensors_poll_context_t::pollEvents(sensors_event_t* data, int count) in pollEvents() argument
259 for (int i=0 ; count && i<numSensorDrivers ; i++) { in pollEvents()
266 ((MPLSensor*) sensor)->readCompassEvents(NULL, count); in pollEvents()
267 nb = ((MPLSensor*) mSensors[mpl])->executeOnData(data, count); in pollEvents()
271 sensor->readEvents(NULL, count); in pollEvents()
272 nb = ((MPLSensor*) mSensors[mpl])->executeOnData(data, count); in pollEvents()
277 nb = ((MPLSensor*) mSensors[mpl])->readDmpOrientEvents(data, count); in pollEvents()
286 nb = sensor->readEvents(data, count); in pollEvents()
288 if (nb < count) { in pollEvents()
[all …]
/device/moto/shamu/camera/QCamera2/HAL/
DQCameraMem.h58 virtual int allocate(int count, int size, uint32_t is_secure) = 0;
60 virtual int allocateMore(int count, int size) = 0;
88 int alloc(int count, int size, int heap_id, uint32_t is_secure);
141 virtual int allocate(int count, int size, uint32_t is_secure);
142 virtual int allocateMore(int count, int size);
164 virtual int allocate(int count, int size, uint32_t is_secure);
165 virtual int allocateMore(int count, int size);
185 virtual int allocate(int count, int size, uint32_t is_secure);
186 virtual int allocateMore(int count, int size);
207 virtual int allocate(int count, int size, uint32_t is_secure);
[all …]
DQCameraMem.cpp241 int QCameraMemory::alloc(int count, int size, int heap_id, uint32_t secure_mode) in alloc() argument
249 int new_bufCnt = mBufferCount + count; in alloc()
649 int QCameraHeapMemory::allocate(int count, int size, uint32_t isSecure) in allocate() argument
655 rc = alloc(count, size, heap_mask, SECURE); in allocate()
660 rc = alloc(count, size, heap_mask, NON_SECURE); in allocate()
664 for (int i = 0; i < count; i ++) { in allocate()
682 mBufferCount = count; in allocate()
700 int QCameraHeapMemory::allocateMore(int count, int size) in allocateMore() argument
703 int rc = alloc(count, size, heap_mask, NON_SECURE); in allocateMore()
707 for (int i = mBufferCount; i < count + mBufferCount; i ++) { in allocateMore()
[all …]
/device/generic/goldfish/opengl/system/GLESv2_enc/
DGL2Encoder.h59 void sendVertexAttributes(GLint first, GLsizei count);
86 static void s_glDrawArrays(void *self, GLenum mode, GLint first, GLsizei count);
89 …static void s_glDrawElements(void *self, GLenum mode, GLsizei count, GLenum type, const void *indi…
120 …static void s_glShaderSource(void *self, GLuint shader, GLsizei count, const GLchar * const *strin…
153 GLsizei* count, GLuint* shaders);
193 static void s_glUniform1fv(void *self , GLint location, GLsizei count, const GLfloat* v);
195 static void s_glUniform1iv(void *self , GLint location, GLsizei count, const GLint* v);
197 static void s_glUniform2fv(void *self , GLint location, GLsizei count, const GLfloat* v);
199 static void s_glUniform2iv(void *self , GLint location, GLsizei count, const GLint* v);
201 static void s_glUniform3fv(void *self , GLint location, GLsizei count, const GLfloat* v);
[all …]
DGL2Encoder.cpp422 void GL2Encoder::sendVertexAttributes(GLint first, GLsizei count) in sendVertexAttributes() argument
442 unsigned int datalen = state->elementSize * count; in sendVertexAttributes()
461 void GL2Encoder::s_glDrawArrays(void *self, GLenum mode, GLint first, GLsizei count) in s_glDrawArrays() argument
464 ctx->sendVertexAttributes(first, count); in s_glDrawArrays()
465 ctx->m_glDrawArrays_enc(ctx, mode, 0, count); in s_glDrawArrays()
469 void GL2Encoder::s_glDrawElements(void *self, GLenum mode, GLsizei count, GLenum type, const void *… in s_glDrawElements() argument
474 SET_ERROR_IF(count<0, GL_INVALID_VALUE); in s_glDrawElements()
499 ctx->sendVertexAttributes(0, count); in s_glDrawElements()
501 ctx->glDrawElementsOffset(ctx, mode, count, type, (uintptr_t)indices); in s_glDrawElements()
516 GLUtils::minmax<unsigned char>((unsigned char *)indices, count, &minIndex, &maxIndex); in s_glDrawElements()
[all …]
Dgl2_entry.cpp49 void glDrawArrays(GLenum mode, GLint first, GLsizei count);
50 void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
65 void glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
107 …void glShaderSource(GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length…
121 void glUniform1fv(GLint location, GLsizei count, const GLfloat* v);
123 void glUniform1iv(GLint location, GLsizei count, const GLint* v);
125 void glUniform2fv(GLint location, GLsizei count, const GLfloat* v);
127 void glUniform2iv(GLint location, GLsizei count, const GLint* v);
129 void glUniform3fv(GLint location, GLsizei count, const GLfloat* v);
131 void glUniform3iv(GLint location, GLsizei count, const GLint* v);
[all …]
/device/asus/fugu/power/
Dpower.c66 ssize_t count; in sysfs_read() local
75 if ((count = read(fd, s, (num_bytes - 1))) < 0) { in sysfs_read()
79 if ((count >= 1) && (s[count-1] == '\n')) { in sysfs_read()
80 s[count-1] = '\0'; in sysfs_read()
82 s[count] = '\0'; in sysfs_read()
89 return count; in sysfs_read()
/device/asus/flo/camera/QCamera2/HAL3/
DQCamera3PostProc.cpp1201 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1218 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1227 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1236 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1253 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1262 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1293 uint32_t count, in addEntry() argument
1304 m_Entries[m_nNumEntries].tag_entry.count = count; in addEntry()
1309 if (count > 1) { in addEntry()
1310 uint8_t *values = (uint8_t *)malloc(count); in addEntry()
[all …]
/device/lge/hammerhead/camera/QCamera2/HAL3/
DQCamera3PostProc.cpp1226 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1243 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1252 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1261 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1278 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1287 if (m_Entries[i].tag_entry.count > 1 && in ~QCamera3Exif()
1318 uint32_t count, in addEntry() argument
1329 m_Entries[m_nNumEntries].tag_entry.count = count; in addEntry()
1334 if (count > 1) { in addEntry()
1335 uint8_t *values = (uint8_t *)malloc(count); in addEntry()
[all …]
/device/asus/flo/camera/QCamera2/HAL/
DQCameraMem.cpp242 int QCameraMemory::alloc(int count, int size, int heap_id) in alloc() argument
245 if (count > MM_CAMERA_MAX_NUM_FRAMES) { in alloc()
246 ALOGE("Buffer count %d out of bound. Max is %d", count, MM_CAMERA_MAX_NUM_FRAMES); in alloc()
254 for (int i = 0; i < count; i ++) { in alloc()
440 int QCameraHeapMemory::allocate(int count, int size) in allocate() argument
443 int rc = alloc(count, size, heap_id_mask); in allocate()
447 for (int i = 0; i < count; i ++) { in allocate()
463 mBufferCount = count; in allocate()
616 int QCameraStreamMemory::allocate(int count, int size) in allocate() argument
619 int rc = alloc(count, size, heap_id_mask); in allocate()
[all …]
DQCameraMem.h55 virtual int allocate(int count, int size) = 0;
77 int alloc(int count, int size, int heap_id);
95 virtual int allocate(int count, int size);
114 virtual int allocate(int count, int size);
134 virtual int allocate(int count, int size);
155 virtual int allocate(int count, int size);
DQCameraPostProc.cpp1468 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1485 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1494 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1503 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1520 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1529 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1557 uint32_t count, in addEntry() argument
1568 m_Entries[m_nNumEntries].tag_entry.count = count; in addEntry()
1573 if (count > 1) { in addEntry()
1574 uint8_t *values = (uint8_t *)malloc(count); in addEntry()
[all …]
/device/lge/hammerhead/camera/QCamera2/HAL/
DQCameraMem.cpp242 int QCameraMemory::alloc(int count, int size, int heap_id) in alloc() argument
245 if (count > MM_CAMERA_MAX_NUM_FRAMES) { in alloc()
246 ALOGE("Buffer count %d out of bound. Max is %d", count, MM_CAMERA_MAX_NUM_FRAMES); in alloc()
254 for (int i = 0; i < count; i ++) { in alloc()
440 int QCameraHeapMemory::allocate(int count, int size) in allocate() argument
443 int rc = alloc(count, size, heap_mask); in allocate()
447 for (int i = 0; i < count; i ++) { in allocate()
463 mBufferCount = count; in allocate()
616 int QCameraStreamMemory::allocate(int count, int size) in allocate() argument
619 int rc = alloc(count, size, heap_mask); in allocate()
[all …]
DQCameraMem.h55 virtual int allocate(int count, int size) = 0;
77 int alloc(int count, int size, int heap_id);
95 virtual int allocate(int count, int size);
114 virtual int allocate(int count, int size);
134 virtual int allocate(int count, int size);
155 virtual int allocate(int count, int size);
DQCameraPostProc.cpp1468 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1485 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1494 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1503 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1520 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1529 if (m_Entries[i].tag_entry.count > 1 && in ~QCameraExif()
1557 uint32_t count, in addEntry() argument
1568 m_Entries[m_nNumEntries].tag_entry.count = count; in addEntry()
1573 if (count > 1) { in addEntry()
1574 uint8_t *values = (uint8_t *)malloc(count); in addEntry()
[all …]
/device/generic/goldfish/qemu-props/
Dqemu-props.c48 int qemud_fd, count = 0; in main() local
107 count += 1; in main()
114 DD("exiting (%d properties set).", count); in main()

123456