Home
last modified time | relevance | path

Searched refs:rec (Results 1 – 17 of 17) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawSensor.h159 ReportTranslateRecord* rec, ValueType* value) { in getReportFieldValue() argument
162 if (rec->minValue < 0) { in getReportFieldValue()
163 v = (message[rec->byteOffset + rec->byteSize - 1] & 0x80) ? -1 : 0; in getReportFieldValue()
166 for (int i = static_cast<int>(rec->byteSize) - 1; i >= 0; --i) { in getReportFieldValue()
167 v = (v << 8) | message[rec->byteOffset + i]; // HID is little endian in getReportFieldValue()
169 if (v > rec->maxValue || v < rec->minValue) { in getReportFieldValue()
173 switch (rec->type) { in getReportFieldValue()
175 *value = rec->a * (v + rec->b); in getReportFieldValue()
178 *value = v + rec->b; in getReportFieldValue()
DHidRawSensor.cpp1202 for (const auto &rec : mTranslateTable) { in getSensorEventData() local
1204 if (rec.minValue < 0) { in getSensorEventData()
1205 v = (message[rec.byteOffset + rec.byteSize - 1] & 0x80) ? -1 : 0; in getSensorEventData()
1207 for (int i = static_cast<int>(rec.byteSize) - 1; i >= 0; --i) { in getSensorEventData()
1208 v = (v << 8) | message[rec.byteOffset + i]; // HID is little endian in getSensorEventData()
1211 switch (rec.type) { in getSensorEventData()
1213 if (v > rec.maxValue || v < rec.minValue) { in getSensorEventData()
1216 event->data[rec.index] = rec.a * (v + rec.b); in getSensorEventData()
1219 if (v > rec.maxValue || v < rec.minValue) { in getSensorEventData()
1222 event->u64.data[rec.index] = v + rec.b; in getSensorEventData()
[all …]
/hardware/interfaces/automotive/evs/1.0/default/
DEvsCamera.cpp91 for (auto&& rec : mBuffers) { in forceShutdown()
92 if (rec.inUse) { in forceShutdown()
95 alloc.free(rec.handle); in forceShutdown()
96 rec.handle = nullptr; in forceShutdown()
197 for (auto&& rec : mBuffers) { in doneWithFrame()
198 if (rec.handle == nullptr) { in doneWithFrame()
199 rec.handle = mBuffers[buffer.bufferId].handle; in doneWithFrame()
327 for (auto&& rec : mBuffers) { in increaseAvailableFrames_Locked()
328 if (rec.handle == nullptr) { in increaseAvailableFrames_Locked()
330 rec.handle = memHandle; in increaseAvailableFrames_Locked()
[all …]
/hardware/interfaces/automotive/evs/1.1/default/
DEvsCamera.cpp84 for (auto&& rec : mBuffers) { in forceShutdown()
85 if (rec.inUse) { in forceShutdown()
88 alloc.free(rec.handle); in forceShutdown()
89 rec.handle = nullptr; in forceShutdown()
401 for (auto&& rec : mBuffers) { in importExternalBuffers()
402 if (rec.handle == nullptr) { in importExternalBuffers()
404 rec.handle = memHandle; in importExternalBuffers()
405 rec.inUse = false; in importExternalBuffers()
487 for (auto&& rec : mBuffers) { in increaseAvailableFrames_Locked()
488 if (rec.handle == nullptr) { in increaseAvailableFrames_Locked()
[all …]
DEvsEnumerator.cpp50 CameraRecord rec(v.data()); in EvsEnumerator() local
53 rec.desc.metadata.setToExternal(reinterpret_cast<uint8_t*>(pInfo->characteristics), in EvsEnumerator()
56 sCameraList.push_back(std::move(rec)); in EvsEnumerator()
/hardware/interfaces/radio/aidl/compat/libradiocompat/sim/
DRadioIndication-sim.cpp60 const hidl_vec<V1_6::PhonebookRecordInfo>& rec) { in simPhonebookRecordsReceived() argument
62 simCb()->simPhonebookRecordsReceived(toAidl(type), aidl::PbReceivedStatus(status), toAidl(rec)); in simPhonebookRecordsReceived()
/hardware/interfaces/automotive/evs/aidl/impl/default/src/
DEvsEnumerator.cpp98 CameraRecord rec(id.data()); in enumerateCameras() local
103 rec.desc.metadata.insert(rec.desc.metadata.end(), ptr, ptr + len); in enumerateCameras()
105 sCameraList.insert_or_assign(id, std::move(rec)); in enumerateCameras()
/hardware/ril/libril/
Dril_service.cpp7515 if (infoRec->rec.display.alpha_len > CDMA_ALPHA_INFO_BUFFER_LENGTH) { in cdmaInfoRecInd()
7517 "expected not more than %d", (int) infoRec->rec.display.alpha_len, in cdmaInfoRecInd()
7521 string8 = (char*) malloc((infoRec->rec.display.alpha_len + 1) * sizeof(char)); in cdmaInfoRecInd()
7527 memcpy(string8, infoRec->rec.display.alpha_buf, infoRec->rec.display.alpha_len); in cdmaInfoRecInd()
7528 string8[(int)infoRec->rec.display.alpha_len] = '\0'; in cdmaInfoRecInd()
7540 if (infoRec->rec.number.len > CDMA_NUMBER_INFO_BUFFER_LENGTH) { in cdmaInfoRecInd()
7542 "expected not more than %d", (int) infoRec->rec.number.len, in cdmaInfoRecInd()
7546 string8 = (char*) malloc((infoRec->rec.number.len + 1) * sizeof(char)); in cdmaInfoRecInd()
7552 memcpy(string8, infoRec->rec.number.buf, infoRec->rec.number.len); in cdmaInfoRecInd()
7553 string8[(int)infoRec->rec.number.len] = '\0'; in cdmaInfoRecInd()
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/
Dintroduction.adoc181 https://www.itu.int/rec/T-REC-H.264-202108-I/ .
186 https://www.itu.int/rec/T-REC-H.265-202108-I/ .
Dvideo_encode_h264_extensions.adoc12 This specification is available at https://www.itu.int/rec/T-REC-H.264.
Dvideo_encode_h265_extensions.adoc12 This specification is available at https://www.itu.int/rec/T-REC-H.265.
/hardware/google/gfxstream/guest/OpenglCodecCommon/
DGLClientState.cpp1033 TextureRec* rec = getTextureRecPtr(tex_name); in isTextureWithStorage() local
1034 if (!rec) return false; in isTextureWithStorage()
1035 return rec->hasStorage; in isTextureWithStorage()
1415 const TextureRec* rec = (const TextureRec*)prec; in compareTexId() local
1416 return (GLint)(*id) - (GLint)rec->id; in compareTexId()
/hardware/ril/reference-ril/
Dril.h1735 } rec; member
/hardware/ril/include/telephony/
Dril.h1735 } rec; member
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/proposals/
DVK_KHR_video_decode_h265.adoc175 …ers, please refer to the corresponding sections of the https://www.itu.int/rec/T-REC-H.265-202108-…
DVK_KHR_video_decode_h264.adoc209 …ers, please refer to the corresponding sections of the https://www.itu.int/rec/T-REC-H.264-202108-…
/hardware/interfaces/radio/1.0/
Dtypes.hal1952 * Note: the Extended Display info rec contains multiple records of the