Home
last modified time | relevance | path

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

123

/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/
DInMemorySharedPreferences.java22 private final Map<String, Object> mData; field in InMemorySharedPreferences
25 mData = new HashMap<String, Object>(); in InMemorySharedPreferences()
29 mData = data; in InMemorySharedPreferences()
34 synchronized (mData) { in getAll()
35 return Collections.unmodifiableMap(mData); in getAll()
41 synchronized (mData) { in getString()
42 if (mData.containsKey(key)) { in getString()
43 return (String) mData.get(key); in getString()
52 synchronized (mData) { in getStringSet()
53 if (mData.containsKey(key)) { in getStringSet()
[all …]
/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 if (mData) in ~MemoryBuffer()
22 free(mData); in ~MemoryBuffer()
23 mData = nullptr; in ~MemoryBuffer()
31 if (mData) in resize()
33 free(mData); in resize()
34 mData = nullptr; in resize()
52 if (mData) in resize()
55 std::copy(mData, mData + std::min(mSize, size), newMemory); in resize()
56 free(mData); in resize()
59 mData = newMemory; in resize()
[all …]
DFastVector.h101 pointer mData = mFixedStorage.data();
121 return mData == mFixedStorage.data(); in uses_fixed_storage()
200 delete[] mData; in ~FastVector()
208 return mData[pos]; in at()
216 return mData[pos]; in at()
224 return mData[pos];
232 return mData[pos];
239 return mData; in data()
245 return mData; in data()
251 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/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DCircularCaptureBuffer.java26 private float[] mData; field in CircularCaptureBuffer
31 mData = new float[maxSamples]; in CircularCaptureBuffer()
39 if (numSamples > mData.length) { in write()
42 if ((mCursor + numSamples) > mData.length) { in write()
44 int numWrite1 = mData.length - mCursor; in write()
45 System.arraycopy(buffer, offset, mData, mCursor, numWrite1); in write()
48 System.arraycopy(buffer, offset, mData, 0, numWrite2); in write()
51 System.arraycopy(buffer, offset, mData, mCursor, numSamples); in write()
53 if (mCursor == mData.length) { in write()
58 if (mNumValidSamples > mData.length) { in write()
[all …]
DWaveformView.java38 private float[] mData; field in WaveformView
81 float [] localData = mData; in onDraw()
137 if (mData == null || count > mData.length) { in setSampleData()
138 mData = new float[count]; in setSampleData()
140 System.arraycopy(samples, offset, mData, 0, count); in setSampleData()
146 mData = null; in clearSampleData()
/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.h123 constexpr TSpan(T *ptr, size_type size) : mData(ptr), mSize(size) {} in TSpan()
125 constexpr TSpan(const TSpan &that) : mData(that.mData), mSize(that.mSize) {} in TSpan()
128 mData = that.mData;
136 TSpan(const TVector<S> &vec) : mData(vec.data()), mSize(vec.size()) in TSpan()
141 mData = vec.data();
153 if (mData == that.mData)
160 if (mData[index] != that.mData[index])
170 constexpr T *data() const { return mData; } in data()
174 constexpr T &operator[](size_type index) const { return mData[index]; }
175 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/null/
DBufferNULL.cpp29 bool memoryReleaseResult = mAllocationTracker->updateMemoryAllocation(mData.size(), 0); in ~BufferNULL()
42 mAllocationTracker->updateMemoryAllocation(mData.size(), size)); in setDataWithUsageFlags()
44 mData.resize(size, 0); in setDataWithUsageFlags()
47 memcpy(mData.data(), data, size); in setDataWithUsageFlags()
59 mAllocationTracker->updateMemoryAllocation(mData.size(), size)); in setData()
61 mData.resize(size, 0); in setData()
64 memcpy(mData.data(), data, size); in setData()
77 memcpy(mData.data() + offset, data, size); in setSubData()
91 memcpy(mData.data() + destOffset, sourceNULL->mData.data() + sourceOffset, size); in copySubData()
98 *mapPtr = mData.data(); in map()
[all …]
/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.h383 bool is2D() const { return mData->resourceType == ResourceType::Texture2D; } in is2D()
384 bool is3D() const { return mData->resourceType == ResourceType::Texture3D; } in is3D()
385 ResourceType getTextureType() const { return mData->resourceType; } in getTextureType()
394 std::swap(mData->manager, texture.mData->manager); in init()
397 ID3D11Resource *temp = mData->object; in init()
398 mData->object = texture.mData->object; in init()
399 texture.mData->object = static_cast<ResourceT *>(temp); in init()
411 mData->object = object; in set()
412 mData->manager = nullptr; in set()
/external/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
DInfiniteRecording.h31 mData = std::make_unique<T[]>(mMaxSamples); in InfiniteRecording()
43 std::copy(&mData[offset], &mData[offset + firstReadSize], buffer); in readFrom()
46 std::copy(&mData[0], &mData[numToRead - firstReadSize], &buffer[firstReadSize]); in readFrom()
54 mData[offset] = sample; in write()
63 std::unique_ptr<T[]> mData;
/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/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/angle/src/libANGLE/
DBinaryStream.h38 mData = static_cast<const uint8_t *>(data); in BinaryInputStream()
120 v->assign(reinterpret_cast<const char *>(mData) + mOffset, length); in readString()
156 const uint8_t *data() { return mData; } in data()
161 const uint8_t *mData; variable
186 memcpy(v, mData + mOffset, checkedLength.ValueOrDie()); in read()
262 size_t length() const { return mData.size(); } in length()
264 const void *data() const { return mData.size() ? &mData[0] : nullptr; } in data()
266 const std::vector<uint8_t> &getData() const { return mData; } in getData()
274 mData.insert(mData.end(), asBytes, asBytes + num * sizeof(T)); in write()
277 std::vector<uint8_t> mData; variable
/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/oboe/apps/OboeTester/app/src/main/cpp/
DMultiChannelRecording.h36 mData = new float[channelCount * maxFrames]; in MultiChannelRecording()
40 delete[] mData; in ~MultiChannelRecording()
87 mData[sampleIndex++] = *buffer++ * (1.0f / 32768); in write()
113 memcpy(&mData[sampleIndex], in write()
143 &mData[sampleIndex], in read()
154 float *mData = nullptr;
/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/oboe/apps/OboeTester/app/src/main/cpp/unused/
Dunused.h124 mData[i] = mLowPassFilter.filter(mData[i]);
136 const float x = mData[i];
138 mData[i] = y;

123