Home
last modified time | relevance | path

Searched refs:mSize (Results 1 – 14 of 14) sorted by relevance

/device/generic/goldfish-opengl/android-emu/android/base/
DStringView.h69 constexpr StringView() : mString(""), mSize(0U) {} in StringView()
72 mString(other.data()), mSize(other.size()) {} in StringView()
86 mString(buf), mSize(size - 1) {} in StringView()
93 mString(buf), mSize(strlen(buf)) {} in StringView()
108 mString(string ? string : ""), mSize(string ? strlen(string) : 0) {} in StringView()
111 mString(str.c_str()), mSize(str.size()) {} in StringView()
114 : mString(str ? str : ""), mSize(len) {} in StringView()
117 : mString(begin ? begin : ""), mSize(begin ? end - begin : 0) {} in StringView()
120 mString(""), mSize(0) {} in StringView()
122 std::string str() const { return std::string(mString, mString + mSize); } in str()
[all …]
DAlignedBuf.h41 AlignedBuf(const AlignedBuf& other) : AlignedBuf(other.mSize) { in AlignedBuf()
43 std::copy(other.mBuffer, other.mBuffer + other.mSize, mBuffer); in AlignedBuf()
59 mSize = other.mSize;
62 other.mSize = 0;
84 size_t size() const { return mSize; } in size()
93 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize));
101 size_t keepSize = std::min(newSize, mSize); in resizeImpl()
112 mSize = newSize; in resizeImpl()
142 size_t mSize = 0; variable
/device/google/contexthub/util/common/
Dring.cpp26 : mSize(size), in RingBuffer()
27 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), in RingBuffer()
41 size_t numAvailableToWrite = mSize - numAvailableToRead; in write()
47 size_t writePos = (mWritePos % mSize); in write()
48 size_t copy = mSize - writePos; in write()
86 size_t readPos = (mReadPos % mSize); in read()
87 size_t copy = mSize - readPos; in read()
105 : mData((sensors_event_t *)buf), mSize(size/sizeof(sensors_event_t)), in LockfreeBuffer()
111 memset(mData, 0, mSize*sizeof(sensors_event_t)); in ~LockfreeBuffer()
115 if (!mSize) { in write()
[all …]
Dring.h39 size_t mSize; member
54 size_t mSize; member
/device/generic/goldfish/wifi/ipv6proxy/
Dmessage.h21 size_t size() const { return mSize; } in size()
26 void setSize(size_t size) { mSize = size; } in setSize()
30 size_t mSize; variable
/device/generic/goldfish/dhcp/common/
Dmessage.h61 const uint8_t* end() const { return data() + mSize; } in end()
64 size_t size() const { return mSize; } in size()
65 void setSize(size_t size) { mSize = size; } in setSize()
127 size_t mSize; variable
Dmessage.cpp43 mSize = 0; in Message()
49 mSize = size; in Message()
52 mSize = 0; in Message()
312 mSize = optionsEnd - reinterpret_cast<uint8_t*>(&dhcpData); in updateSize()
/device/generic/opengl-transport/host/libs/virglrenderer/
DProtocolUtils.h153 mOrigBuff(ptr), mSize(size) {
175 memcpy(mOrigBuff, mPtr, mSize);
186 size_t mSize;
/device/google/contexthub/sensorhal/
Ddirectchannel.cpp54 mSize = mem->size; in AshmemDirectChannel()
62 mBuffer = std::unique_ptr<LockfreeBuffer>(new LockfreeBuffer(mBase, mSize)); in AshmemDirectChannel()
71 ::munmap(mBase, mSize); in ~AshmemDirectChannel()
303 mSize = mem->size; in GrallocDirectChannel()
304 mBuffer = std::make_unique<LockfreeBuffer>(mBase, mSize); in GrallocDirectChannel()
Ddirectchannel.h32 DirectChannelBase() : mError(NO_INIT), mSize(0), mBase(nullptr) { } in DirectChannelBase()
44 size_t mSize; variable
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiVfrCompile/
DVfrFormPkg.cpp673 UINT8 mSize; member
817 mObjBinLen = (ObjBinLen == 0) ? gOpcodeSizesScopeTable[OpCode].mSize : ObjBinLen; in CIfrObj()
851 mHeader->Length = (Length == 0) ? gOpcodeSizesScopeTable[OpCode].mSize : Length; in CIfrOpHeader()
DVfrUtilityLib.cpp559 UINT32 mSize; member
817 New->mTotalSize = gInternalTypesTable[Index].mSize; in InternalTypesListInit()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/
DVfrFormPkg.cpp2237 UINT8 mSize; member
2390 mObjBinLen = (ObjBinLen == 0) ? gOpcodeSizesScopeTable[OpCode].mSize : ObjBinLen; in CIfrObj()
2426 mHeader->Length = (Length == 0) ? gOpcodeSizesScopeTable[OpCode].mSize : Length; in CIfrOpHeader()
DVfrUtilityLib.cpp482 UINT32 mSize; member
780 New->mTotalSize = gInternalTypesTable[Index].mSize; in InternalTypesListInit()