Home
last modified time | relevance | path

Searched refs:mData (Results 1 – 25 of 25) sorted by relevance

/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h138 : mData({AF_INET, IPV4_ADDR_BITS, 0U, 0U, {.v4 = ipv4}}) {} in IPAddress()
140 : mData({AF_INET6, IPV6_ADDR_BITS, 0U, 0U, {.v6 = ipv6}}) {} in IPAddress()
142 : mData({AF_INET6, in IPAddress()
149 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress()
155 constexpr sa_family_t family() const noexcept { return mData.family; } in family()
156 constexpr uint32_t scope_id() const noexcept { return mData.scope_id; } in scope_id()
164 friend bool operator==(const IPAddress& a, const IPAddress& b) { return (a.mData == b.mData); }
165 friend bool operator!=(const IPAddress& a, const IPAddress& b) { return (a.mData != b.mData); }
166 friend bool operator<(const IPAddress& a, const IPAddress& b) { return (a.mData < b.mData); }
167 friend bool operator>(const IPAddress& a, const IPAddress& b) { return (b.mData < a.mData); }
[all …]
DMemBlock.h36 : mData((len > 0U) ? new uint8_t[len]{} : nullptr), in MemBlock()
53 Slice get() const noexcept { return Slice(mData.get(), mLen); } in get()
60 std::unique_ptr<uint8_t[]> mData;
/system/chre/util/include/chre/util/
Dpriority_queue_impl.h40 return mData.size(); in size()
45 return mData.capacity(); in capacity()
50 return mData.empty(); in empty()
56 bool success = mData.push_back(element); in push()
58 push_heap(mData, mCompare); in push()
66 bool success = mData.emplace_back(args...); in emplace()
68 push_heap(mData, mCompare); in emplace()
76 return mData[index];
82 return mData[index];
87 return mData[0]; in top()
[all …]
Ddynamic_vector_impl.h49 mData = other.mData;
53 other.mData = nullptr;
69 return static_cast<ElementType *>(mData); in data()
74 return static_cast<const ElementType *>(mData); in data()
195 mData = newData; in doReserve()
Ddynamic_vector_base.h83 void *mData = nullptr; variable
Dpriority_queue.h176 DynamicVector<ElementType> mData;
Dfixed_size_vector.h203 mData[kCapacity];
Dfixed_size_vector_impl.h60 return reinterpret_cast<ElementType *>(mData); in data()
65 return reinterpret_cast<const ElementType *>(mData); in data()
Darray_queue.h251 mData[kCapacity];
Darray_queue_impl.h236 return reinterpret_cast<ElementType *>(mData); in data()
241 return reinterpret_cast<const ElementType *>(mData); in data()
/system/netd/libnetdutils/
DInternetAddresses.cpp36 switch (mData.family) { in toString()
40 const in_addr v4 = mData.ip.v4; in toString()
45 const in6_addr v6 = mData.ip.v6; in toString()
53 if (mData.family == AF_INET6 && mData.scope_id > 0) { in toString()
54 return StringPrintf("%s%%%u", repr, mData.scope_id); in toString()
95 if (length >= mData.cidrlen) return; in IPPrefix()
97 switch (mData.family) { in IPPrefix()
102 mData.ip.v4.s_addr &= htonl(mask); in IPPrefix()
103 mData.cidrlen = static_cast<uint8_t>(length); in IPPrefix()
110 mData.ip.v6.s6_addr[which] &= mask; in IPPrefix()
[all …]
/system/chre/util/
Ddynamic_vector_base.cc27 : mData(other.mData), mSize(other.mSize), mCapacity(other.mCapacity) { in DynamicVectorBase()
28 other.mData = nullptr; in DynamicVectorBase()
38 memcpy(newData, mData, mSize * elementSize); in doReserve()
39 memoryFree(mData); in doReserve()
40 mData = newData; in doReserve()
69 memmove(static_cast<uint8_t *>(mData) + (index * elementSize), in doErase()
70 static_cast<uint8_t *>(mData) + ((index + 1) * elementSize), in doErase()
77 memcpy(static_cast<uint8_t *>(mData) + (mSize * elementSize), element, in doPushBack()
/system/chre/apps/test/chqts/src/general_test/
Dsend_event_test.cc139 for (uint32_t i = 0; i < arrayLength(mData); i++) { in setUp()
140 mData[i] = i; in setUp()
144 if (!chreSendEvent(kEventType0, &mData[0], completeCallback0, id)) { in setUp()
149 if (!chreSendEvent(kEventType0, &mData[1], completeCallback1, id)) { in setUp()
154 if (!chreSendEvent(kEventType1, &mData[2], completeCallback0, id)) { in setUp()
159 if (!chreSendEvent(kEventType1, &mData[3], completeCallback1, id)) { in setUp()
164 if (!chreSendEvent(kEventType0, &mData[4], nullptr, id)) { in setUp()
169 if (!chreSendEvent(kEventType1, &mData[5], nullptr, id)) { in setUp()
201 expectedData = &mData[mNextNum]; in handleEvent()
Dsend_event_test.h44 uint32_t mData[6]; variable
/system/libhidl/transport/memory/1.0/default/
DAshmemMemory.cpp29 mData(data) in AshmemMemory()
35 munmap(mData, mMemory.size()); in ~AshmemMemory()
65 return mData; in getPointer()
DAshmemMemory.h60 void* mData; member
/system/libhwbinder/
DParcel.cpp274 return mData; in data()
438 memcpy(mData+mDataPos, data, len); in writeUnpadded()
481 uint8_t* const data = mData+mDataPos; in writeInplace()
631 *reinterpret_cast<T*>(mData+mDataPos) = val; in writeObject()
633 const binder_object_header* hdr = reinterpret_cast<binder_object_header*>(mData+mDataPos); in writeObject()
703 (mData + mObjects[child_buffer_handle]); in validateBufferChild()
719 (mData + mObjects[parent_buffer_handle]); in validateBufferParent()
781 reinterpret_cast<binder_buffer_object*>(mData+dataPos); in updateCache()
902 memcpy(outData, mData+mDataPos, len); in read()
920 const void* data = mData+mDataPos; in readInplace()
[all …]
/system/media/audio_utils/spdif/
DBitFieldParser.cpp29 : mData(data) in BitFieldParser()
44 uint8_t byte = mData[byteCursor]; in readBits()
DBitFieldParser.h50 uint8_t *mData;
/system/core/libutils/include/utils/
DString16.h208 constexpr StaticString16(const char16_t (&s)[N]) : String16(mData), mData(makeStaticData(s)) {} in StaticString16()
211 : String16(mData), mData(other.mData) {} in StaticString16()
220 const StaticData<N> mData;
/system/chre/platform/slpi/
Dsystem_timer.cc62 mData = data; in set()
96 systemTimer->mCallback(systemTimer->mData); in systemTimerNotifyCallback()
/system/chre/platform/linux/
Dsystem_timer.cc41 sysTimer->mCallback(sysTimer->mData); in systemTimerNotifyCallback()
87 mData = data; in set()
/system/media/audio_utils/include/audio_utils/
DStatistics.h439 mData.push_front(value);
444 return mData.size();
450 mData.clear();
457 for (size_t i = 0; i < mData.size(); ++i) {
467 for (size_t i = 0; i < mData.size(); ++i) {
477 for (size_t i = 0; i < mData.size(); ++i) {
478 wsum += alpha_i * mData[i];
531 std::deque<T> mData; // store all the data for exact summation, mData[0] most recent.
538 for (size_t i = 0; i < mData.size(); ++i) {
539 const D diff = mData[i] - mean;
/system/chre/platform/include/chre/platform/
Dsystem_timer.h105 void *mData; variable
/system/libhwbinder/include/hwbinder/
DParcel.h291 uint8_t* mData; variable