Searched refs:count (Results 1 - 25 of 672) 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.cpp68 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) argument
70 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL;
71 return add(tag, count, data);
79 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) argument
81 if (!validate(tag, TYPE_INT32, count)) return -EINVAL;
82 return add(tag, count, data);
85 int Metadata::addFloat(uint32_t tag, int count, const float *data) argument
87 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL;
88 return add(tag, count, data);
91 int Metadata::addInt64(uint32_t tag, int count, cons argument
97 addDouble(uint32_t tag, int count, const double *data) argument
103 addRational(uint32_t tag, int count, const camera_metadata_rational_t *data) argument
110 validate(uint32_t tag, int tag_type, int count) argument
132 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.cpp64 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) { argument
65 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL;
66 return add(tag, count, data);
73 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) { argument
74 if (!validate(tag, TYPE_INT32, count)) return -EINVAL;
75 return add(tag, count, data);
78 int Metadata::addFloat(uint32_t tag, int count, const float *data) { argument
79 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL;
80 return add(tag, count, data);
83 int Metadata::addInt64(uint32_t tag, int count, cons argument
88 addDouble(uint32_t tag, int count, const double *data) argument
93 addRational(uint32_t tag, int count, const camera_metadata_rational_t *data) argument
99 validate(uint32_t tag, int tag_type, int count) argument
120 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/libhardware/modules/camera/3_4/metadata/
H A Denum_converter.cpp35 size_t count = 0; local
38 ++count;
39 if (count == 1) {
49 if (count == 0) {
52 } else if (count > 1) {
H A Ddefault_option_delegate.h43 if (defaults_.count(template_type) > 0) {
47 } else if (defaults_.count(OTHER_TEMPLATES)) {
H A Dmetadata_common.h64 size_t count) {
65 int res = metadata->update(tag, data, count);
177 if (entry.count == 0) {
180 } else if (entry.count != 1) {
185 entry.count);
208 if (entry.count == 0) {
211 } else if (entry.count != N) {
217 entry.count);
257 if (entry.count == 0) {
267 *val = std::vector<T>(data, data + entry.count);
61 UpdateMetadata(android::CameraMetadata* metadata, int32_t tag, const T* data, size_t count) argument
[all...]
/hardware/interfaces/radio/1.0/vts/functional/
H A Dsap_hidl_hal_test.cpp27 count = 0;
36 count++;
47 while (count == 0) {
53 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/msm8909w_3100/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.cpp142 LOC_LOGD("%s]: (%zu)", __FUNCTION__, geofenceBreachNotification.count);
144 for (size_t i = 0; i < geofenceBreachNotification.count; i++) {
189 void GeofenceAPIClient::onAddGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
191 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
193 for (size_t i = 0; i < count; i++) {
209 void GeofenceAPIClient::onRemoveGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
211 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
213 for (size_t i = 0; i < count; i++) {
229 void GeofenceAPIClient::onPauseGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
231 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
249 onResumeGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
[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++) {
188 void GeofenceAPIClient::onAddGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
190 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
192 for (size_t i = 0; i < count; i++) {
208 void GeofenceAPIClient::onRemoveGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
210 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
212 for (size_t i = 0; i < count; i++) {
228 void GeofenceAPIClient::onPauseGeofencesCb(size_t count, LocationError* errors, uint32_t* ids) argument
230 LOC_LOGD("%s]: (%zu)", __FUNCTION__, count);
248 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/msm8909/sdm/libs/utils/
H A Drect.cpp154 for (uint32_t count = 0; count < split_count; count++) {
156 out_rects[count].left = rect_temp.left;
157 out_rects[count].right = std::min(rect_temp.right, aligned_right);
158 out_rects[count].top = rect_temp.top;
159 out_rects[count].bottom = rect_temp.bottom;
161 rect_temp.left = out_rects[count].right;
163 Log(kTagRotator, "SplitLeftRight", out_rects[count]);
184 for (uint32_t count
[all...]
/hardware/qcom/display/msm8909w_3100/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/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...]

Completed in 535 milliseconds

1234567891011>>