/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | inv_sysfs_utils.c | 35 int count; in inv_sysfs_write() local 42 count = fprintf(fp, "%ld", data); in inv_sysfs_write() 44 return count; in inv_sysfs_write() 57 int count; in inv_sysfs_read() local 64 count = fread(data, 1, num_bytes, fp); in inv_sysfs_read() 66 return count; in inv_sysfs_read() 79 int count; in inv_read_buffer() local 81 count = read(fd, str, sizeof(str)); in inv_read_buffer() 82 if (!count) in inv_read_buffer() 83 return count; in inv_read_buffer() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | inv_sysfs_utils.c | 29 int count; in inv_sysfs_write() local 36 count = fprintf(fp, "%ld", data); in inv_sysfs_write() 38 return count; in inv_sysfs_write() 51 int count; in inv_sysfs_read() local 58 count = fread(data, 1, num_bytes, fp); in inv_sysfs_read() 60 return count; in inv_sysfs_read() 73 int count; in inv_read_buffer() local 75 count = read(fd, str, sizeof(str)); in inv_read_buffer() 76 if (!count) in inv_read_buffer() 77 return count; in inv_read_buffer() [all …]
|
/hardware/libhardware/modules/usbcamera/ |
D | Metadata.cpp | 64 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) { in addUInt8() argument 65 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL; in addUInt8() 66 return add(tag, count, data); in addUInt8() 73 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) { in addInt32() argument 74 if (!validate(tag, TYPE_INT32, count)) return -EINVAL; in addInt32() 75 return add(tag, count, data); in addInt32() 78 int Metadata::addFloat(uint32_t tag, int count, const float *data) { in addFloat() argument 79 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL; in addFloat() 80 return add(tag, count, data); in addFloat() 83 int Metadata::addInt64(uint32_t tag, int count, const int64_t *data) { in addInt64() argument [all …]
|
D | Metadata.h | 34 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, 53 bool validate(uint32_t tag, int tag_type, int count); 55 int add(uint32_t tag, int count, const void *tag_data);
|
/hardware/interfaces/tests/msgq/1.0/default/ |
D | TestMsgQ.cpp | 67 Return<bool> TestMsgQ::requestWriteFmqSync(int32_t count) { in requestWriteFmqSync() argument 68 std::vector<int32_t> data(count); in requestWriteFmqSync() 69 for (int i = 0; i < count; i++) { in requestWriteFmqSync() 72 bool result = mFmqSynchronized->write(&data[0], count); in requestWriteFmqSync() 76 Return<bool> TestMsgQ::requestReadFmqSync(int32_t count) { in requestReadFmqSync() argument 77 std::vector<int32_t> data(count); in requestReadFmqSync() 78 bool result = mFmqSynchronized->read(&data[0], count) in requestReadFmqSync() 79 && verifyData(&data[0], count); in requestReadFmqSync() 83 Return<bool> TestMsgQ::requestWriteFmqUnsync(int32_t count) { in requestWriteFmqUnsync() argument 84 std::vector<int32_t> data(count); in requestWriteFmqUnsync() [all …]
|
D | TestMsgQ.h | 61 Return<bool> requestWriteFmqSync(int32_t count) override; 62 Return<bool> requestReadFmqSync(int32_t count) override; 63 Return<bool> requestWriteFmqUnsync(int32_t count) override; 64 Return<bool> requestReadFmqUnsync(int32_t count) override; 65 Return<void> requestBlockingRead(int32_t count) override; 66 Return<void> requestBlockingReadDefaultEventFlagBits(int32_t count) override; 67 Return<void> requestBlockingReadRepeat(int32_t count, int32_t numIter) override; 77 bool verifyData(int32_t* data, int count) { in verifyData() 78 for (int i = 0; i < count; i++) { in verifyData()
|
/hardware/libhardware/modules/camera/3_0/ |
D | Metadata.cpp | 68 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) in addUInt8() argument 70 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL; in addUInt8() 71 return add(tag, count, data); in addUInt8() 79 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) in addInt32() argument 81 if (!validate(tag, TYPE_INT32, count)) return -EINVAL; in addInt32() 82 return add(tag, count, data); in addInt32() 85 int Metadata::addFloat(uint32_t tag, int count, const float *data) in addFloat() argument 87 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL; in addFloat() 88 return add(tag, count, data); in addFloat() 91 int Metadata::addInt64(uint32_t tag, int count, const int64_t *data) in addInt64() argument [all …]
|
D | Metadata.h | 34 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, 53 bool validate(uint32_t tag, int tag_type, int count); 55 int add(uint32_t tag, int count, const void *tag_data);
|
/hardware/google/graphics/common/libhwjpeg/ |
D | IFDWriter.h | 91 void WriteTagTypeCount(uint16_t tag, uint16_t type, uint32_t count) { in WriteTagTypeCount() argument 100 p = reinterpret_cast<char *>(&count); in WriteTagTypeCount() 127 void WriteByte(uint16_t tag, uint32_t count, const uint8_t value[]) { in WriteByte() argument 130 WriteTagTypeCount(tag, EXIF_TYPE_BYTE, count); in WriteByte() 132 if (count > IFD_VALOFF_SIZE) { in WriteByte() 134 for (uint32_t i = 0; i < count; i++) { in WriteByte() 138 for (uint32_t i = 0; i < count; i++) *m_pIFDBase++ = static_cast<char>(value[i]); in WriteByte() 139 m_pIFDBase += IFD_VALOFF_SIZE - count; in WriteByte() 143 void WriteShort(uint16_t tag, uint32_t count, const uint16_t value[]) { in WriteShort() argument 146 WriteTagTypeCount(tag, EXIF_TYPE_SHORT, count); in WriteShort() [all …]
|
/hardware/qcom/sm7150/gps/geofence/ |
D | location_geofence.cpp | 41 static uint32_t* addGeofences(LocationAPI* client, size_t count, GeofenceOption*, GeofenceInfo*); 42 static void removeGeofences(LocationAPI* client, size_t count, uint32_t* ids); 43 static void modifyGeofences(LocationAPI* client, size_t count, uint32_t* ids, 45 static void pauseGeofences(LocationAPI* client, size_t count, uint32_t* ids); 46 static void resumeGeofences(LocationAPI* client, size_t count, uint32_t* ids); 107 static uint32_t* addGeofences(LocationAPI* client, size_t count, in addGeofences() argument 111 return gGeofenceAdapter->addGeofencesCommand(client, count, options, info); in addGeofences() 117 static void removeGeofences(LocationAPI* client, size_t count, uint32_t* ids) in removeGeofences() argument 120 return gGeofenceAdapter->removeGeofencesCommand(client, count, ids); in removeGeofences() 124 static void modifyGeofences(LocationAPI* client, size_t count, uint32_t* ids, in modifyGeofences() argument [all …]
|
D | GeofenceAdapter.cpp | 179 GeofenceAdapter::reportResponse(LocationAPI* client, size_t count, LocationError* errs, in reportResponse() argument 186 for (size_t i=0; i < count; ++i) { in reportResponse() 200 it->second.collectiveResponseCb(count, errs, ids); in reportResponse() 207 GeofenceAdapter::addGeofencesCommand(LocationAPI* client, size_t count, GeofenceOption* options, in addGeofencesCommand() argument 210 LOC_LOGD("%s]: client %p count %zu", __func__, client, count); in addGeofencesCommand() 223 size_t count, in addGeofencesCommand() 231 mCount(count), in addGeofencesCommand() 278 if (0 == count) { in addGeofencesCommand() 281 uint32_t* ids = new uint32_t[count]; in addGeofencesCommand() 287 for (size_t i=0; i < count; ++i) { in addGeofencesCommand() [all …]
|
/hardware/qcom/sm8150p/gps/geofence/ |
D | location_geofence.cpp | 41 static uint32_t* addGeofences(LocationAPI* client, size_t count, GeofenceOption*, GeofenceInfo*); 42 static void removeGeofences(LocationAPI* client, size_t count, uint32_t* ids); 43 static void modifyGeofences(LocationAPI* client, size_t count, uint32_t* ids, 45 static void pauseGeofences(LocationAPI* client, size_t count, uint32_t* ids); 46 static void resumeGeofences(LocationAPI* client, size_t count, uint32_t* ids); 107 static uint32_t* addGeofences(LocationAPI* client, size_t count, in addGeofences() argument 111 return gGeofenceAdapter->addGeofencesCommand(client, count, options, info); in addGeofences() 117 static void removeGeofences(LocationAPI* client, size_t count, uint32_t* ids) in removeGeofences() argument 120 return gGeofenceAdapter->removeGeofencesCommand(client, count, ids); in removeGeofences() 124 static void modifyGeofences(LocationAPI* client, size_t count, uint32_t* ids, in modifyGeofences() argument [all …]
|
D | GeofenceAdapter.cpp | 179 GeofenceAdapter::reportResponse(LocationAPI* client, size_t count, LocationError* errs, in reportResponse() argument 186 for (size_t i=0; i < count; ++i) { in reportResponse() 200 it->second.collectiveResponseCb(count, errs, ids); in reportResponse() 207 GeofenceAdapter::addGeofencesCommand(LocationAPI* client, size_t count, GeofenceOption* options, in addGeofencesCommand() argument 210 LOC_LOGD("%s]: client %p count %zu", __func__, client, count); in addGeofencesCommand() 223 size_t count, in addGeofencesCommand() 231 mCount(count), in addGeofencesCommand() 278 if (0 == count) { in addGeofencesCommand() 281 uint32_t* ids = new uint32_t[count]; in addGeofencesCommand() 287 for (size_t i=0; i < count; ++i) { in addGeofencesCommand() [all …]
|
/hardware/qcom/sm7250/gps/geofence/ |
D | location_geofence.cpp | 41 static uint32_t* addGeofences(LocationAPI* client, size_t count, GeofenceOption*, GeofenceInfo*); 42 static void removeGeofences(LocationAPI* client, size_t count, uint32_t* ids); 43 static void modifyGeofences(LocationAPI* client, size_t count, uint32_t* ids, 45 static void pauseGeofences(LocationAPI* client, size_t count, uint32_t* ids); 46 static void resumeGeofences(LocationAPI* client, size_t count, uint32_t* ids); 107 static uint32_t* addGeofences(LocationAPI* client, size_t count, in addGeofences() argument 111 return gGeofenceAdapter->addGeofencesCommand(client, count, options, info); in addGeofences() 117 static void removeGeofences(LocationAPI* client, size_t count, uint32_t* ids) in removeGeofences() argument 120 return gGeofenceAdapter->removeGeofencesCommand(client, count, ids); in removeGeofences() 124 static void modifyGeofences(LocationAPI* client, size_t count, uint32_t* ids, in modifyGeofences() argument [all …]
|
D | GeofenceAdapter.cpp | 179 GeofenceAdapter::reportResponse(LocationAPI* client, size_t count, LocationError* errs, in reportResponse() argument 186 for (size_t i=0; i < count; ++i) { in reportResponse() 200 it->second.collectiveResponseCb(count, errs, ids); in reportResponse() 207 GeofenceAdapter::addGeofencesCommand(LocationAPI* client, size_t count, GeofenceOption* options, in addGeofencesCommand() argument 210 LOC_LOGD("%s]: client %p count %zu", __func__, client, count); in addGeofencesCommand() 223 size_t count, in addGeofencesCommand() 231 mCount(count), in addGeofencesCommand() 278 if (0 == count) { in addGeofencesCommand() 281 uint32_t* ids = new uint32_t[count]; in addGeofencesCommand() 287 for (size_t i=0; i < count; ++i) { in addGeofencesCommand() [all …]
|
/hardware/qcom/sm8150/gps/geofence/ |
D | location_geofence.cpp | 41 static uint32_t* addGeofences(LocationAPI* client, size_t count, GeofenceOption*, GeofenceInfo*); 42 static void removeGeofences(LocationAPI* client, size_t count, uint32_t* ids); 43 static void modifyGeofences(LocationAPI* client, size_t count, uint32_t* ids, 45 static void pauseGeofences(LocationAPI* client, size_t count, uint32_t* ids); 46 static void resumeGeofences(LocationAPI* client, size_t count, uint32_t* ids); 107 static uint32_t* addGeofences(LocationAPI* client, size_t count, in addGeofences() argument 111 return gGeofenceAdapter->addGeofencesCommand(client, count, options, info); in addGeofences() 117 static void removeGeofences(LocationAPI* client, size_t count, uint32_t* ids) in removeGeofences() argument 120 return gGeofenceAdapter->removeGeofencesCommand(client, count, ids); in removeGeofences() 124 static void modifyGeofences(LocationAPI* client, size_t count, uint32_t* ids, in modifyGeofences() argument [all …]
|
D | GeofenceAdapter.cpp | 179 GeofenceAdapter::reportResponse(LocationAPI* client, size_t count, LocationError* errs, in reportResponse() argument 186 for (size_t i=0; i < count; ++i) { in reportResponse() 200 it->second.collectiveResponseCb(count, errs, ids); in reportResponse() 207 GeofenceAdapter::addGeofencesCommand(LocationAPI* client, size_t count, GeofenceOption* options, in addGeofencesCommand() argument 210 LOC_LOGD("%s]: client %p count %zu", __func__, client, count); in addGeofencesCommand() 223 size_t count, in addGeofencesCommand() 231 mCount(count), in addGeofencesCommand() 278 if (0 == count) { in addGeofencesCommand() 281 uint32_t* ids = new uint32_t[count]; in addGeofencesCommand() 287 for (size_t i=0; i < count; ++i) { in addGeofencesCommand() [all …]
|
/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/ |
D | FileNodeTest.cc | 31 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count(); 126 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 132 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 145 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 151 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 157 EXPECT_NEAR(std::chrono::milliseconds(300).count(), expire_time.count(), in TEST() 175 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 181 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 187 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 207 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() [all …]
|
D | PropertyNodeTest.cc | 32 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count(); 133 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 139 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 145 EXPECT_NEAR(std::chrono::milliseconds(300).count(), expire_time.count(), in TEST() 163 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 169 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 175 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 193 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST() 199 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() 205 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST() [all …]
|
D | RequestGroupTest.cc | 29 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count(); 49 EXPECT_NEAR((duration - sleep_time).count(), expire_time.count(), in TEST() 64 EXPECT_NEAR(expect.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST() 66 EXPECT_LE(365 * 24 * 60 * 60 * 1000, expire_time.count()); in TEST() 95 EXPECT_NEAR(duration.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST() 103 EXPECT_NEAR(duration.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST() 111 EXPECT_NEAR(duration.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST() 125 EXPECT_NEAR(std::min(duration_interact, duration_launch).count(), in TEST() 126 expire_time.count(), kTIMING_TOLERANCE_MS); in TEST() 158 EXPECT_NEAR(duration_launch.count(), expire_time.count(), in TEST()
|
/hardware/interfaces/graphics/composer/2.1/utils/vts/ |
D | TestCommandReader.cpp | 59 for (uint16_t count = 0; count < length / 3; ++count) { in parseSingleCommand() local 70 for (uint16_t count = 0; count < (length - 1) / 3; ++count) { in parseSingleCommand() local 83 for (uint16_t count = 0; count < length / 3; ++count) { in parseSingleCommand() local
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_exif.c | 66 exif_tag_type_t type, uint32_t count, void *data) in addExifEntry() argument 78 p_info_data[numOfEntries].tag_entry.count = count; in addExifEntry() 82 if (count > 1) { in addExifEntry() 83 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry() 88 memcpy(values, data, count); in addExifEntry() 98 str = (char *)malloc(count + 1); in addExifEntry() 103 memset(str, 0, count + 1); in addExifEntry() 104 memcpy(str, data, count); in addExifEntry() 110 if (count > 1) { in addExifEntry() 111 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry() [all …]
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | enum_converter.cpp | 38 size_t count = 0; in MetadataToV4L2() local 41 ++count; in MetadataToV4L2() 42 if (count == 1) { in MetadataToV4L2() 52 if (count == 0) { in MetadataToV4L2() 55 } else if (count > 1) { in MetadataToV4L2()
|
/hardware/qcom/sm8150p/gps/location/ |
D | ILocationAPI.h | 111 virtual void getBatchedLocations(uint32_t id, size_t count) = 0; 126 virtual uint32_t* addGeofences(size_t count, GeofenceOption*, GeofenceInfo*) = 0; 133 virtual void removeGeofences(size_t count, uint32_t* ids) = 0; 141 virtual void modifyGeofences(size_t count, uint32_t* ids, GeofenceOption* options) = 0; 149 virtual void pauseGeofences(size_t count, uint32_t* ids) = 0; 156 virtual void resumeGeofences(size_t count, uint32_t* ids) = 0;
|
/hardware/invensense/6515/libsensors_iio/ |
D | sensors_mpl.cpp | 116 int pollEvents(sensors_event_t* data, int count); 218 int sensors_poll_context_t::pollEvents(sensors_event_t *data, int count) in pollEvents() argument 252 LOGI_IF(0, "poll nb=%d, count=%d, pt=%d ts=%lld", nb, count, polltime, getTimestamp()); in pollEvents() 253 if (nb == 0 && count > 0) { in pollEvents() 257 data, count, ID_SC, 0); in pollEvents() 260 nb, count, nbEvents, data->timestamp); in pollEvents() 262 count -= nb; in pollEvents() 268 for (int i = 0; count && i < numSensorDrivers; i++) { in pollEvents() 279 readDmpOrientEvents(data, count); in pollEvents() 282 count -= nb; in pollEvents() [all …]
|