Searched refs:count (Results 1 - 25 of 486) sorted by relevance

1234567891011>>

/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
H A Dinv_sysfs_utils.c35 int count; local
42 count = fprintf(fp, "%ld", data);
44 return count;
57 int count; local
64 count = fread(data, 1, num_bytes, fp);
66 return count;
79 int count; local
81 count = read(fd, str, sizeof(str));
82 if (!count)
83 return count;
106 int count; local
132 int count; local
152 int count; local
172 int count; local
192 int count; local
212 int count; local
232 int count; local
253 int count; local
274 int count = 0; local
[all...]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
H A Dinv_sysfs_utils.c29 int count; local
36 count = fprintf(fp, "%ld", data);
38 return count;
51 int count; local
58 count = fread(data, 1, num_bytes, fp);
60 return count;
73 int count; local
75 count = read(fd, str, sizeof(str));
76 if (!count)
77 return count;
100 int count; local
126 int count; local
146 int count; local
166 int count; local
186 int count; local
206 int count; local
226 int count; local
247 int count; local
268 int count = 0; local
[all...]
/hardware/interfaces/tests/msgq/1.0/
H A DITestMsgQ.hal55 * @param count Number to messages to write.
59 requestWriteFmqSync(int32_t count) generates(bool ret);
65 * @param count Number to messages to read.
69 requestReadFmqSync(int32_t count) generates(bool ret);
75 * @param count Number to messages to write.
79 requestWriteFmqUnsync(int32_t count) generates(bool ret);
85 * @param count Number to messages to read.
89 requestReadFmqUnsync(int32_t count) generates(bool ret);
94 * @param count Number of messages to read.
97 oneway requestBlockingRead(int32_t count);
[all...]
H A DIBenchmarkMsgQ.hal42 * @param count Number to messages to write.
46 requestWrite(int32_t count) generates (bool ret);
50 * @param count Number to messages to read.
53 requestRead(int32_t count) generates (bool ret);
/hardware/libhardware/modules/camera/3_0/
H A DMetadata.h34 int addUInt8(uint32_t tag, int count, const uint8_t *data);
36 int addInt32(uint32_t tag, int count, const int32_t *data);
37 int addFloat(uint32_t tag, int count, const float *data);
38 int addInt64(uint32_t tag, int count, const int64_t *data);
39 int addDouble(uint32_t tag, int count, const double *data);
40 int addRational(uint32_t tag, int count,
52 // Validate the tag, type and count for a metadata entry
53 bool validate(uint32_t tag, int tag_type, int count);
55 int add(uint32_t tag, int count, const void *tag_data);
H A DMetadata.cpp66 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) argument
68 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL;
69 return add(tag, count, data);
77 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) argument
79 if (!validate(tag, TYPE_INT32, count)) return -EINVAL;
80 return add(tag, count, data);
83 int Metadata::addFloat(uint32_t tag, int count, const float *data) argument
85 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL;
86 return add(tag, count, data);
89 int Metadata::addInt64(uint32_t tag, int count, cons argument
95 addDouble(uint32_t tag, int count, const double *data) argument
101 addRational(uint32_t tag, int count, const camera_metadata_rational_t *data) argument
108 validate(uint32_t tag, int tag_type, int count) argument
130 add(uint32_t tag, int count, const void *tag_data) argument
[all...]
/hardware/libhardware/modules/usbcamera/
H A DMetadata.h34 int addUInt8(uint32_t tag, int count, const uint8_t *data);
36 int addInt32(uint32_t tag, int count, const int32_t *data);
37 int addFloat(uint32_t tag, int count, const float *data);
38 int addInt64(uint32_t tag, int count, const int64_t *data);
39 int addDouble(uint32_t tag, int count, const double *data);
40 int addRational(uint32_t tag, int count,
52 // Validate the tag, type and count for a metadata entry
53 bool validate(uint32_t tag, int tag_type, int count);
55 int add(uint32_t tag, int count, const void *tag_data);
H A DMetadata.cpp61 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) { argument
62 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL;
63 return add(tag, count, data);
70 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) { argument
71 if (!validate(tag, TYPE_INT32, count)) return -EINVAL;
72 return add(tag, count, data);
75 int Metadata::addFloat(uint32_t tag, int count, const float *data) { argument
76 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL;
77 return add(tag, count, data);
80 int Metadata::addInt64(uint32_t tag, int count, cons argument
85 addDouble(uint32_t tag, int count, const double *data) argument
90 addRational(uint32_t tag, int count, const camera_metadata_rational_t *data) argument
96 validate(uint32_t tag, int tag_type, int count) argument
117 add(uint32_t tag, int count, const void *tag_data) argument
[all...]
/hardware/interfaces/tests/msgq/1.0/default/
H A DTestMsgQ.cpp61 Return<bool> TestMsgQ::requestWriteFmqSync(int32_t count) { argument
62 std::vector<uint16_t> data(count);
63 for (int i = 0; i < count; i++) {
66 bool result = mFmqSynchronized->write(&data[0], count);
70 Return<bool> TestMsgQ::requestReadFmqSync(int32_t count) { argument
71 std::vector<uint16_t> data(count);
72 bool result = mFmqSynchronized->read(&data[0], count)
73 && verifyData(&data[0], count);
77 Return<bool> TestMsgQ::requestWriteFmqUnsync(int32_t count) { argument
78 std::vector<uint16_t> data(count);
86 requestReadFmqUnsync(int32_t count) argument
93 requestBlockingRead(int32_t count) argument
108 requestBlockingReadDefaultEventFlagBits(int32_t count) argument
121 requestBlockingReadRepeat(int32_t count, int32_t numIter) argument
[all...]
H A DTestMsgQ.h60 Return<bool> requestWriteFmqSync(int32_t count) override;
61 Return<bool> requestReadFmqSync(int32_t count) override;
62 Return<bool> requestWriteFmqUnsync(int32_t count) override;
63 Return<bool> requestReadFmqUnsync(int32_t count) override;
64 Return<void> requestBlockingRead(int32_t count) override;
65 Return<void> requestBlockingReadDefaultEventFlagBits(int32_t count) override;
66 Return<void> requestBlockingReadRepeat(int32_t count, int32_t numIter) override;
76 bool verifyData(uint16_t* data, int count) { argument
77 for (int i = 0; i < count; i++) {
H A DBenchmarkMsgQ.cpp62 Return<bool> BenchmarkMsgQ::requestWrite(int32_t count) { argument
63 uint8_t* data = new (std::nothrow) uint8_t[count];
64 for (int i = 0; i < count; i++) {
67 bool result = mFmqOutbox->write(data, count);
72 Return<bool> BenchmarkMsgQ::requestRead(int32_t count) { argument
73 uint8_t* data = new (std::nothrow) uint8_t[count];
74 bool result = mFmqInbox->read(data, count);
105 serverSendTime).count());
124 std::chrono::high_resolution_clock::now().time_since_epoch().count();
/hardware/intel/common/libwsbm/src/
H A Dwsbm_atomic.h13 int32_t count; member in struct:_WsbmAtomic
17 #define wsbmAtomicSet(_v, _i) (((_v)->count) = (_i))
18 #define wsbmAtomicRead(_v) ((_v)->count)
24 __asm__ __volatile__("lock; incl %0; sete %1":"+m"(v->count), "=qm"(c)
35 __asm__ __volatile__("lock; addl %2,%0; sets %1":"+m"(v->count), "=qm"(c)
46 __asm__ __volatile__("lock; decl %0; sete %1":"+m"(v->count), "=qm"(c)
55 __asm__ __volatile__("lock; incl %0":"+m"(v->count));
61 __asm__ __volatile__("lock; decl %0":"+m"(v->count));
70 :"r"(new), "m"(v->count), "0"(old)
/hardware/interfaces/radio/1.0/vts/functional/
H A Dsap_hidl_hal_test.cpp26 count = 0;
35 count++;
44 while (count == 0) {
50 count--;
H A Dradio_hidl_hal_test.cpp27 count = 0;
44 count++;
53 while (count == 0) {
59 count--;
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/
H A Dh264parse_bsd.c36 uint32_t temp = 0, match = 0, noOfBits = 0, count = 0; local
84 count=1;
85 while(((temp & 0x80) != 0x80) && (count <= noOfBits))
87 count++;
90 //At this point we get the bit position of 1 in current byte(count).
93 leadingZeroBits += count;
109 viddec_pm_get_bits(parent, &temp, count);
121 //count = (uint8_t)((leadingZeroBits + bits_offset)& 0x7);
122 count = ((count
[all...]
/hardware/qcom/gps/msm8998/android/location_api/
H A DGeofenceAPIClient.h62 void onAddGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) final;
63 void onRemoveGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) final;
64 void onPauseGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) final;
65 void onResumeGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) final;
H A DGeofenceAPIClient.cpp141 LOC_LOGD("%s]: (%zu)", __FUNCTION__, geofenceBreachNotification.count);
143 for (size_t i = 0; i < geofenceBreachNotification.count; i++) {
180 void GeofenceAPIClient::onAddGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
182 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
184 for (size_t i = 0; i < count; i++) {
196 void GeofenceAPIClient::onRemoveGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
198 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
200 for (size_t i = 0; i < count; i++) {
212 void GeofenceAPIClient::onPauseGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
214 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
228 onResumeGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
[all...]
/hardware/intel/common/utils/ituxd/jni/
H A DthermalJNI.cpp51 ssize_t count = read(fd, buf, size); local
52 if (count > 0) {
53 while (count > 0 && buf[count-1] == '\n')
54 count--;
55 buf[count] = '\0';
61 return count;
91 int count = 0; local
94 snprintf(full_path, SIZE, "%s%d/type", base_path, count);
102 if (!strcmp(name, buf)) return count;
116 int count = 0; local
[all...]
/hardware/qcom/display/msm8996/sdm/libs/utils/
H A Drect.cpp149 for (uint32_t count = 0; count < split_count; count++) {
151 out_rects[count].left = rect_temp.left;
152 out_rects[count].right = std::min(rect_temp.right, aligned_right);
153 out_rects[count].top = rect_temp.top;
154 out_rects[count].bottom = rect_temp.bottom;
156 rect_temp.left = out_rects[count].right;
158 Log(kTagRotator, "SplitLeftRight", out_rects[count]);
179 for (uint32_t count
[all...]
/hardware/qcom/display/msm8998/sdm/libs/utils/
H A Drect.cpp149 for (uint32_t count = 0; count < split_count; count++) {
151 out_rects[count].left = rect_temp.left;
152 out_rects[count].right = std::min(rect_temp.right, aligned_right);
153 out_rects[count].top = rect_temp.top;
154 out_rects[count].bottom = rect_temp.bottom;
156 rect_temp.left = out_rects[count].right;
158 Log(kTagRotator, "SplitLeftRight", out_rects[count]);
179 for (uint32_t count
[all...]
/hardware/qcom/gps/msm8998/location/
H A Dlocation_interface.h71 void (*getBatchedLocations)(LocationAPI* client, uint32_t id, size_t count);
82 uint32_t* (*addGeofences)(LocationAPI* client, size_t count, GeofenceOption*, GeofenceInfo*);
83 void (*removeGeofences)(LocationAPI* client, size_t count, uint32_t* ids);
84 void (*modifyGeofences)(LocationAPI* client, size_t count, uint32_t* ids,
86 void (*pauseGeofences)(LocationAPI* client, size_t count, uint32_t* ids);
87 void (*resumeGeofences)(LocationAPI* client, size_t count, uint32_t* ids);
/hardware/invensense/6515/libsensors_iio/
H A Dsensors_mpl.cpp116 int pollEvents(sensors_event_t* data, int count);
218 int sensors_poll_context_t::pollEvents(sensors_event_t *data, int count) argument
252 LOGI_IF(0, "poll nb=%d, count=%d, pt=%d ts=%lld", nb, count, polltime, getTimestamp());
253 if (nb == 0 && count > 0) {
257 data, count, ID_SC, 0);
259 "nb=%d, count=%d, nbEvents=%d, data->timestamp=%lld, ",
260 nb, count, nbEvents, data->timestamp);
262 count -= nb;
268 for (int i = 0; count
414 poll__poll(struct sensors_poll_device_t *dev, sensors_event_t* data, int count) argument
[all...]
/hardware/interfaces/graphics/allocator/2.0/
H A DIAllocator.hal37 * @param count is the number of buffers to allocate.
53 allocate(BufferDescriptor descriptor, uint32_t count)
/hardware/libhardware/modules/sensors/
H A DSensorEventQueue.h55 // This increases size() by count.
57 void markAsWritten(int count);
/hardware/qcom/display/msm8226/liboverlay/pipes/
H A DoverlayGenPipe.cpp112 bool GenericPipe::validateAndSet(GenericPipe* pipeArray[], const int& count, argument
114 Ctrl* ctrlArray[count];
117 for(int i = 0; i < count; i++) {
121 return Ctrl::validateAndSet(ctrlArray, count, fbFd);

Completed in 2734 milliseconds

1234567891011>>