Home
last modified time | relevance | path

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

123

/external/angle/src/common/
Dvector_utils.h51 const Type *data() const { return mData; } in data()
52 Type *data() { return mData; } in data()
60 Type &operator[](size_t i) { return mData[i]; }
61 const Type &operator[](size_t i) const { return mData[i]; }
110 Type mData[Dimension]; variable
124 Type &x() { return this->mData[0]; } in x()
125 Type &y() { return this->mData[1]; } in y()
127 const Type &x() const { return this->mData[0]; } in x()
128 const Type &y() const { return this->mData[1]; } in y()
145 Type &x() { return this->mData[0]; } in x()
[all …]
DMemoryBuffer.cpp20 free(mData); in ~MemoryBuffer()
21 mData = nullptr; in ~MemoryBuffer()
28 free(mData); in resize()
29 mData = nullptr; in resize()
46 if (mData) in resize()
49 std::copy(mData, mData + std::min(mSize, size), newMemory); in resize()
50 free(mData); in resize()
53 mData = newMemory; in resize()
63 std::fill(mData, mData + mSize, datum); in fill()
75 std::swap(mData, other.mData); in operator =()
DFastVector.h94 pointer mData = mFixedStorage.data();
114 return mData == mFixedStorage.data(); in uses_fixed_storage()
187 delete[] mData; in ~FastVector()
195 return mData[pos]; in at()
203 return mData[pos]; in at()
211 return mData[pos];
220 return mData[pos];
227 return mData; in data()
233 return mData; in data()
239 return mData; in begin()
[all …]
DMemoryBuffer.h34 const uint8_t *data() const { return mData; } in data()
37 ASSERT(mData); in data()
38 return mData; in data()
44 return mData[pos];
49 return mData[pos];
56 uint8_t *mData = nullptr; variable
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DFieldArray.java48 private FieldData[] mData; field in FieldArray
66 mData = new FieldData[initialCapacity]; in FieldArray()
77 if (i < 0 || mData[i] == DELETED) { in get()
80 return mData[i]; in get()
90 if (i >= 0 && mData[i] != DELETED) { in remove()
91 mData[i] = DELETED; in remove()
100 FieldData[] values = mData; in gc()
128 mData[i] = data; in put()
132 if (i < mSize && mData[i] == DELETED) { in put()
134 mData[i] = data; in put()
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DIdmapEntries.java9 if (mData == null) { in hasEntries()
13 return (Util.dtohs(mData[0]) > 0); in hasEntries()
25 if (mData == null) { in targetTypeId()
28 return (byte) Util.dtohs(mData[0]); in targetTypeId()
32 if (mData == null) { in overlayTypeId()
35 return (byte) Util.dtohs(mData[1]); in overlayTypeId()
39 short entryCount = Util.dtohs(mData[2]); in lookup()
40 short offset = Util.dtohs(mData[3]); in lookup()
69 private short[] mData; field in IdmapEntries
/external/angle/src/compiler/translator/
DImmutableStringBuilder.cpp19 ASSERT(mData != nullptr); in operator <<()
21 memcpy(mData + mPos, str.data(), str.length()); in operator <<()
28 ASSERT(mData != nullptr); in operator <<()
31 memcpy(mData + mPos, str, len); in operator <<()
38 ASSERT(mData != nullptr); in operator <<()
40 mData[mPos++] = c; in operator <<()
46 int numChars = snprintf(mData + mPos, mMaxLength - mPos, "%d", u); in appendDecimal()
54 mData[mPos] = '\0'; in operator ImmutableString()
55 ImmutableString str(static_cast<const char *>(mData), mPos); in operator ImmutableString()
58 mData = nullptr; in operator ImmutableString()
DCommon.h122 constexpr TSpan(T *ptr, size_type size) : mData(ptr), mSize(size) {} in TSpan()
124 constexpr TSpan(const TSpan &that) : mData(that.mData), mSize(that.mSize) {} in TSpan()
127 mData = that.mData;
135 TSpan(const TVector<S> &vec) : mData(vec.data()), mSize(vec.size()) in TSpan()
140 mData = vec.data();
152 if (mData == that.mData)
159 if (mData[index] != that.mData[index])
169 constexpr T *data() const { return mData; } in data()
173 constexpr T &operator[](size_type index) const { return mData[index]; }
174 constexpr T &front() const { return mData[0]; } in front()
[all …]
DImmutableString.h46 explicit constexpr ImmutableString(const char *data) : mData(data), mLength(constStrlen(data)) in ImmutableString()
49 constexpr ImmutableString(const char *data, size_t length) : mData(data), mLength(length) {} in ImmutableString()
52 : mData(AllocatePoolCharArray(str.c_str(), str.size())), mLength(str.size()) in ImmutableString()
59 constexpr const char *data() const { return mData ? mData : ""; } in data()
134 const char *mData;
DImmutableStringBuilder.h22 : mPos(0u), mMaxLength(maxLength), mData(AllocateEmptyPoolCharArray(maxLength)) in ImmutableStringBuilder()
39 ASSERT(mData != nullptr); in appendHex()
52 mData[mPos++] = digitChar; in appendHex()
72 char *mData; variable
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DResourceManager11.h191 T *get() const { return mData->object; } in get()
192 T *const *getPointer() const { return &mData->object; } in getPointer()
194 void setDebugName(const char *name) { d3d11::SetDebugName(mData->object, name); } in setDebugName()
199 mData->object = object; in set()
202 bool valid() const { return (mData->object != nullptr); } in valid()
207 mData.reset(new DataT()); in reset()
212 return ResourceSerial(reinterpret_cast<uintptr_t>(mData->object)); in getSerial()
218 Resource11Base() : mData(new DataT()) {} in Resource11Base()
220 Resource11Base(Resource11Base &&movedObj) : mData(new DataT()) in Resource11Base()
222 std::swap(mData, movedObj.mData); in Resource11Base()
[all …]
Drenderer11_utils.h385 bool is2D() const { return mData->resourceType == ResourceType::Texture2D; } in is2D()
386 bool is3D() const { return mData->resourceType == ResourceType::Texture3D; } in is3D()
387 ResourceType getTextureType() const { return mData->resourceType; } in getTextureType()
396 std::swap(mData->manager, texture.mData->manager); in init()
399 ID3D11Resource *temp = mData->object; in init()
400 mData->object = texture.mData->object; in init()
401 texture.mData->object = static_cast<ResourceT *>(temp); in init()
413 mData->object = object; in set()
414 mData->manager = nullptr; in set()
/external/angle/src/libANGLE/renderer/null/
DBufferNULL.cpp29 bool memoryReleaseResult = mAllocationTracker->updateMemoryAllocation(mData.size(), 0); in ~BufferNULL()
40 mAllocationTracker->updateMemoryAllocation(mData.size(), size)); in setData()
42 mData.resize(size, 0); in setData()
45 memcpy(mData.data(), data, size); in setData()
58 memcpy(mData.data() + offset, data, size); in setSubData()
72 memcpy(mData.data() + destOffset, sourceNULL->mData.data() + sourceOffset, size); in copySubData()
79 *mapPtr = mData.data(); in map()
89 *mapPtr = mData.data() + offset; in mapRange()
106 *outRange = gl::ComputeIndexRange(type, mData.data() + offset, count, primitiveRestartEnabled); in getIndexRange()
112 return mData.data(); in getDataPtr()
[all …]
/external/angle/src/tests/gl_tests/
DWebGLReadOutsideFramebufferTest.cpp20 PixelRect(int width, int height) : mWidth(width), mHeight(height), mData(width * height) {} in PixelRect()
31 mData[x + y * mWidth] = angle::GLColor(x + (y << 8) + (tag << 16)); in fill()
42 GL_UNSIGNED_BYTE, mData.data()); in toTexture2D()
44 GL_UNSIGNED_BYTE, mData.data()); in toTexture2D()
46 GL_UNSIGNED_BYTE, mData.data()); in toTexture2D()
48 GL_UNSIGNED_BYTE, mData.data()); in toTexture2D()
50 GL_UNSIGNED_BYTE, mData.data()); in toTexture2D()
52 GL_UNSIGNED_BYTE, mData.data()); in toTexture2D()
58 mData.data()); in toTexture2D()
75 GL_UNSIGNED_BYTE, mData.data()); in toTexture3D()
[all …]
/external/angle/src/libANGLE/
DBinaryStream.h30 mData = static_cast<const uint8_t *>(data); in BinaryInputStream()
109 v->assign(reinterpret_cast<const char *>(mData) + mOffset, length); in readString()
138 const uint8_t *data() { return mData; } in data()
143 const uint8_t *mData; variable
168 memcpy(v, mData + mOffset, checkedLength.ValueOrDie()); in read()
235 size_t length() const { return mData.size(); } in length()
237 const void *data() const { return mData.size() ? &mData[0] : nullptr; } in data()
240 std::vector<char> mData;
247 mData.insert(mData.end(), asBytes, asBytes + num * sizeof(T)); in write()
/external/libese/libapdu/include/apdu/
Dapdu.h78 ResponseApdu(const T& data) : mData(data) {} in ResponseApdu()
82 std::distance(std::begin(mData), std::end(mData))) >= STATUS_SIZE; in ok()
85 uint8_t sw1() const { return *(std::end(mData) - 2); } in sw1()
86 uint8_t sw2() const { return *(std::end(mData) - 1); } in sw2()
106 auto dataBegin() const { return std::begin(mData); } in dataBegin()
107 auto dataEnd() const { return std::end(mData) - STATUS_SIZE; } in dataEnd()
112 const T& mData;
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothLeAdvertiseFacade.java165 AdvertiseData mData = new AdvertiseData.Builder().build(); in bleStartBleAdvertising() local
168 mData = mAdvertiseDataList.get(dataIndex); in bleStartBleAdvertising()
183 mSettings, mData, mAdvertiseCallbackList.get(callbackIndex)); in bleStartBleAdvertising()
212 AdvertiseData mData = new AdvertiseData.Builder().build(); in bleStartBleAdvertisingWithScanResponse() local
217 mData = mAdvertiseDataList.get(dataIndex); in bleStartBleAdvertisingWithScanResponse()
238 .startAdvertising(mSettings, mData, mScanResponse, in bleStartBleAdvertisingWithScanResponse()
317 AdvertiseData mData = mAdvertiseDataList.get(index); in bleGetAdvertiseDataIncludeTxPowerLevel() local
318 return mData.getIncludeTxPowerLevel(); in bleGetAdvertiseDataIncludeTxPowerLevel()
340 AdvertiseData mData = mAdvertiseDataList.get(index); in bleGetAdvertiseDataManufacturerSpecificData() local
341 if (mData.getManufacturerSpecificData() != null) { in bleGetAdvertiseDataManufacturerSpecificData()
[all …]
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DHistogramView.java42 private int[] mData; // data for buffer period field in HistogramView
94 if (mData == null || mData.length == 0) { in fillCanvas()
98 int arrayLength = mData.length; in fillCanvas()
150 mDisplayData[0] = mData[0]; in fillCanvas()
155 mDisplayData[i] += mData[j]; in fillCanvas()
160 mDisplayData[range - 1] = mData[oldRange - 1]; in fillCanvas()
163 mDisplayData[range - 1] += mData[i]; in fillCanvas()
167 mDisplayData = mData; in fillCanvas()
338 if (mData == null || data.length != mData.length) { in setBufferPeriodArray()
339 mData = new int[data.length]; in setBufferPeriodArray()
[all …]
/external/parameter-framework/upstream/remote-processor/
DMessage.cpp66 auto destFirst = begin(mData) + _uiIndex; in writeData()
77 auto first = begin(mData) + _uiIndex; in readData()
174 if (!asio::write(asioSocket, asio::buffer(mData), ec)) { in serialize()
229 if (!asio::read(asioSocket, asio::buffer(mData), ec)) { in serialize()
258 return accumulate(begin(mData), end(mData), static_cast<uint8_t>(_ucMsgId)); in computeChecksum()
265 mData.clear(); in allocateData()
268 mData.resize(size); in allocateData()
/external/angle/src/tests/perf_tests/
DIndexDataManagerTest.cpp81 MockBufferD3D(rx::BufferFactoryD3D *factory) : BufferD3D(mockState, factory), mData() {} in MockBufferD3D()
90 mData.resize(size); in setData()
93 memcpy(&mData[0], data, size); in setData()
112 size_t getSize() const override { return mData.size(); } in getSize()
116 *outData = &mData[0]; in getData()
122 std::vector<uint8_t> mData; member in __anon316494f70111::MockBufferD3D
/external/sl4a/Common/src/com/googlecode/android_scripting/event/
DEvent.java24 private Object mData; field in Event
43 mData = data; in setData()
47 return mData; in getData()
/external/angle/src/libANGLE/renderer/d3d/
DShaderD3D.cpp118 mData.getShaderType() == gl::ShaderType::Vertex) in ShaderD3D()
145 return mDebugInfo + std::string("\n// ") + gl::GetShaderTypeString(mData.getShaderType()) + in getDebugInfo()
264 const std::string &source = mData.getSource(); in compile()
283 const std::string &translatedSource = mData.getTranslatedSource(); in compile()
315 for (const sh::InterfaceBlock &interfaceBlock : mData.getUniformBlocks()) in compile()
331 for (const sh::InterfaceBlock &interfaceBlock : mData.getShaderStorageBlocks()) in compile()
345 std::string("// ") + gl::GetShaderTypeString(mData.getShaderType()) + " SHADER BEGIN\n"; in compile()
346 mDebugInfo += "\n// GLSL BEGIN\n\n" + mData.getSource() + "\n\n// GLSL END\n\n\n"; in compile()
/external/angle/src/libANGLE/renderer/vulkan/
DShaderVk.cpp33 if (isWebGL && mData.getShaderType() != gl::ShaderType::Compute) in compile()
67 return compileImpl(context, compilerInstance, mData.getSource(), compileOptions | options); in compile()
72 return mData.getTranslatedSource(); in getDebugInfo()
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DValidationTestUtil.java24 private final ByteBuffer mData; field in ValidationTestUtil.Data
29 return mData; in getData()
41 this.mData = data; in Data()
/external/angle/src/libANGLE/renderer/
DShaderImpl.h51 ShaderImpl(const gl::ShaderState &data) : mData(data) {} in ShaderImpl()
62 const gl::ShaderState &getData() const { return mData; } in getData()
70 const gl::ShaderState &mData; variable

123