/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 192 static struct SensorData mData; variable 225 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback() 236 for (i = 0; i < ARRAY_SIZE(mData.transfers); i++) { in allocXfer() 237 if (!mData.transfers[i].inUse) { in allocXfer() 238 mData.transfers[i].inUse = true; in allocXfer() 239 mData.transfers[i].state = state; in allocXfer() 240 return &mData.transfers[i]; in allocXfer() 266 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback() 271 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); in proxTimerCallback() 325 if (mData.alsTimerHandle) { in sensorPowerAls() [all …]
|
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/ |
D | isl29034.c | 150 static struct SensorData mData; variable 177 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback() 188 for (i = 0; i < ARRAY_SIZE(mData.transfers); i++) { in allocXfer() 189 if (!mData.transfers[i].inUse) { in allocXfer() 190 mData.transfers[i].inUse = true; in allocXfer() 191 mData.transfers[i].state = state; in allocXfer() 192 return &mData.transfers[i]; in allocXfer() 218 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback() 233 if (mData.alsTimerHandle) { in sensorPowerAls() 234 timTimerCancel(mData.alsTimerHandle); in sensorPowerAls() [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/files/ |
D | MemStream.cpp | 23 mData.reserve(reserveSize); in MemStream() 26 MemStream::MemStream(Buffer&& data) : mData(std::move(data)) {} in MemStream() 30 memcpy(buffer, mData.data() + mReadPos, sizeToRead); in read() 36 mData.insert(mData.end(), (const char*)buffer, (const char*)buffer + size); in write() 41 return (int)mData.size(); in writtenSize() 49 return mData.size() - mReadPos; in readSize() 53 saveBuffer(stream, mData); in save() 57 loadBuffer(stream, &mData); in load()
|
D | MemStream.h | 45 const Buffer& buffer() const { return mData; } in buffer() 50 Buffer mData; variable
|
/device/google/contexthub/util/common/ |
D | ring.cpp | 27 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), in RingBuffer() 33 free(mData); in ~RingBuffer() 34 mData = NULL; in ~RingBuffer() 54 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write() 57 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write() 93 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read() 96 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read() 105 : mData((sensors_event_t *)buf), mSize(size/sizeof(sensors_event_t)), in LockfreeBuffer() 107 memset(mData, 0, size); in LockfreeBuffer() 111 memset(mData, 0, mSize*sizeof(sensors_event_t)); in ~LockfreeBuffer() [all …]
|
D | ring.h | 40 sensors_event_t *mData; member 53 sensors_event_t *mData;
|
/device/generic/goldfish/wifi/wifi_hal/ |
D | netlinkmessage.cpp | 38 : mData(getSpaceForMessageType(type), 0) { in NetlinkMessage() 40 auto header = reinterpret_cast<nlmsghdr*>(mData.data()); in NetlinkMessage() 41 header->nlmsg_len = mData.size(); in NetlinkMessage() 49 : mData(data, data + size) { in NetlinkMessage() 66 auto header = reinterpret_cast<const nlmsghdr*>(mData.data()); in type() 71 auto header = reinterpret_cast<const nlmsghdr*>(mData.data()); in sequence() 78 const uint8_t* end = mData.data() + mData.size(); in findAttribute() 83 const uint8_t* attribute = mData.data() + attrOffset; in findAttribute()
|
D | netlinkmessage.h | 41 return reinterpret_cast<nlmsghdr*>(mData.data()); in header() 44 return reinterpret_cast<const nlmsghdr*>(mData.data()); in header() 56 const uint8_t* data() const { return mData.data(); } in data() 57 size_t size() const { return mData.size(); } in size() 67 std::vector<uint8_t> mData; variable
|
/device/generic/goldfish/wifi/ipv6proxy/ |
D | message.h | 22 size_t capacity() const { return sizeof(mData); } in capacity() 23 const char* data() const { return mData; } in data() 24 char* data() { return mData; } in data() 29 char mData[8192];
|
/device/google/contexthub/firmware/os/algos/ |
D | fusion.c | 96 initVec3(&fusion->mData[0], 0.0f, 0.0f, 0.0f); in initFusion() 97 initVec3(&fusion->mData[1], 0.0f, 0.0f, 0.0f); in initFusion() 98 initVec3(&fusion->mData[2], 0.0f, 0.0f, 0.0f); in initFusion() 151 vec3Add(&fusion->mData[0], &unityD); in fusion_init_complete() 165 vec3Add(&fusion->mData[1], &unityD); in fusion_init_complete() 179 vec3Add(&fusion->mData[2], &scaledD); in fusion_init_complete() 192 vec3ScalarMul(&fusion->mData[0], 1.0f / fusion->mCount[0]); in fusion_init_complete() 195 vec3ScalarMul(&fusion->mData[1], 1.0f / fusion->mCount[1]); in fusion_init_complete() 200 struct Vec3 up = fusion->mData[0]; in fusion_init_complete() 204 vec3Cross(&east, &fusion->mData[1], &up); in fusion_init_complete()
|
/device/generic/goldfish-opengl/android-emu/android/base/containers/ |
D | SmallVector.h | 290 offsetof(SmallFixedVector, mData) && in SmallFixedVector() 334 this->mBegin = mData.array; in SmallFixedVector() 389 void init_inplace() { this->init(mData.array, mData.array, kSmallSize); } in init_inplace() 399 } mData; variable
|
/device/google/contexthub/firmware/os/inc/algos/ |
D | fusion.h | 51 struct Vec3 mData[3]; member
|
/device/generic/goldfish-opengl/system/hwc2/ |
D | EmuHWC2.h | 171 mData(sizeof(ComposeDevice) + layerCnt * sizeof(ComposeLayer)) 173 mComposeDevice = reinterpret_cast<ComposeDevice*>(mData.data()); 182 std::vector<uint8_t> mData;
|
/device/google/contexthub/contexthubhal/ |
D | system_comms.cpp | 341 mData.clear(); in setup() 342 mData = std::vector<uint8_t>(msgData, msgData + mLen); in setup() 373 mData.clear(); in setup() 374 mData = std::vector<uint8_t>(msgData, msgData + mLen); in setup() 557 buf.writeRaw(&mData[mPos], chunkSize); in handleTransfer() 676 mData.clear(); in handleFinish()
|
D | system_comms.h | 258 std::vector<uint8_t> mData; variable
|