Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/android/util/
DSparseBooleanArray.java69 mSize = 0; in SparseBooleanArray()
98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
114 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete()
115 System.arraycopy(mValues, i + 1, mValues, i, mSize - (i + 1)); in delete()
116 mSize--; in delete()
122 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
123 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
124 mSize--; in removeAt()
133 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
[all …]
DIntArray.java33 private int mSize; field in IntArray
51 mSize = 0; in IntArray()
58 add(mSize, value); in add()
67 if (index < 0 || index > mSize) { in add()
73 if (mSize - index != 0) { in add()
74 System.arraycopy(mValues, index, mValues, index + 1, mSize - index); in add()
78 mSize++; in add()
96 return ContainerHelpers.binarySearch(mValues, mSize, value); in binarySearch()
103 final int count = values.mSize; in addAll()
106 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
[all …]
DLongArray.java31 private int mSize; field in LongArray
49 mSize = 0; in LongArray()
56 add(mSize, value); in add()
65 if (index < 0 || index > mSize) { in add()
71 if (mSize - index != 0) { in add()
72 System.arraycopy(mValues, index, mValues, index + 1, mSize - index); in add()
76 mSize++; in add()
83 final int count = values.mSize; in addAll()
86 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
87 mSize += count; in addAll()
[all …]
DArraySet.java75 int mSize; field in ArraySet
79 final int N = mSize; in indexOf()
117 final int N = mSize; in indexOfNull()
271 mSize = 0; in ArraySet()
297 if (mSize != 0) { in clear()
298 freeArrays(mHashes, mArray, mSize); in clear()
301 mSize = 0; in clear()
314 if (mSize > 0) { in ensureCapacity()
315 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity()
316 System.arraycopy(oarray, 0, mArray, 0, mSize); in ensureCapacity()
[all …]
DSparseLongArray.java48 private int mSize; field in SparseLongArray
72 mSize = 0; in SparseLongArray()
101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
125 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
126 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
127 mSize--; in removeAt()
136 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
143 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
144 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
[all …]
DLongSparseLongArray.java50 private int mSize; field in LongSparseLongArray
74 mSize = 0; in LongSparseLongArray()
103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
127 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
128 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
129 mSize--; in removeAt()
138 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
145 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
146 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
[all …]
DSparseIntArray.java50 private int mSize; field in SparseIntArray
74 mSize = 0; in SparseIntArray()
103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
127 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
128 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
129 mSize--; in removeAt()
138 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
145 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
146 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
[all …]
DSparseArray.java58 private int mSize; field in SparseArray
82 mSize = 0; in SparseArray()
113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
126 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
141 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in removeReturnOld()
184 final int end = Math.min(mSize, index + size); in removeAtRange()
193 int n = mSize; in gc()
213 mSize = o; in gc()
224 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
231 if (i < mSize && mValues[i] == DELETED) { in put()
[all …]
DLongSparseArray.java58 private int mSize; field in LongSparseArray
82 mSize = 0; in LongSparseArray()
113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
126 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
156 int n = mSize; in gc()
176 mSize = o; in gc()
187 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
194 if (i < mSize && mValues[i] == DELETED) { in put()
200 if (mGarbage && mSize >= mKeys.length) { in put()
204 i = ~ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
[all …]
DArrayMap.java99 int mSize; field in ArrayMap
115 final int N = mSize; in indexOf()
153 final int N = mSize; in indexOfNull()
291 mSize = 0; in ArrayMap()
309 if (mSize > 0) { in clear()
312 final int osize = mSize; in clear()
315 mSize = 0; in clear()
318 if (CONCURRENT_MODIFICATION_EXCEPTIONS && mSize > 0) { in clear()
328 if (mSize > 0) { in erase()
329 final int N = mSize<<1; in erase()
[all …]
/frameworks/support/compat/java/android/support/v4/util/
DArraySet.java80 int mSize; field in ArraySet
84 final int N = mSize; in indexOf()
122 final int N = mSize; in indexOfNull()
260 mSize = 0; in ArraySet()
286 if (mSize != 0) { in clear()
287 freeArrays(mHashes, mArray, mSize); in clear()
290 mSize = 0; in clear()
303 if (mSize > 0) { in ensureCapacity()
304 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity()
305 System.arraycopy(oarray, 0, mArray, 0, mSize); in ensureCapacity()
[all …]
DLongSparseArray.java49 private int mSize; field in LongSparseArray
74 mSize = 0; in LongSparseArray()
105 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
118 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
148 int n = mSize; in gc()
168 mSize = o; in gc()
179 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
186 if (i < mSize && mValues[i] == DELETED) { in put()
192 if (mGarbage && mSize >= mKeys.length) { in put()
196 i = ~ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
[all …]
DSparseArrayCompat.java29 private int mSize; field in SparseArrayCompat
54 mSize = 0; in SparseArrayCompat()
85 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
132 final int end = Math.min(mSize, index + size); in removeAtRange()
141 int n = mSize; in gc()
161 mSize = o; in gc()
172 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
179 if (i < mSize && mValues[i] == DELETED) { in put()
185 if (mGarbage && mSize >= mKeys.length) { in put()
[all …]
DSimpleArrayMap.java72 int mSize; field in SimpleArrayMap
87 final int N = mSize; in indexOf()
125 final int N = mSize; in indexOfNull()
238 mSize = 0; in SimpleArrayMap()
251 mSize = 0; in SimpleArrayMap()
268 if (mSize > 0) { in clear()
271 final int osize = mSize; in clear()
274 mSize = 0; in clear()
277 if (CONCURRENT_MODIFICATION_EXCEPTIONS && mSize > 0) { in clear()
287 final int osize = mSize; in ensureCapacity()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/util/
DIntArray.java23 private int mSize = 0; field in IntArray
26 if (mData.length == mSize) { in add()
27 int temp[] = new int[mSize + mSize]; in add()
28 System.arraycopy(mData, 0, temp, 0, mSize); in add()
31 mData[mSize++] = value; in add()
35 mSize--; in removeLast()
36 return mData[mSize]; in removeLast()
40 return mSize; in size()
45 if (result == null || result.length < mSize) { in toArray()
46 result = new int[mSize]; in toArray()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java65 mSize = 0; in SparseWeakArray()
81 int i = binarySearch(mKeys, 0, mSize, key); in get()
94 int i = binarySearch(mKeys, 0, mSize, key); in delete()
122 int n = mSize; in gc()
143 mSize = o; in gc()
152 int i = binarySearch(mKeys, 0, mSize, key); in put()
159 if (i < mSize && (mValues[i] == DELETED || mValues[i].get() == null)) { in put()
165 if (mSize >= mKeys.length && (mGarbage || hasReclaimedRefs())) { in put()
169 i = ~binarySearch(mKeys, 0, mSize, key); in put()
172 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAString.cpp38 mSize(0), in AString()
44 mSize(0), in AString()
56 mSize(0), in AString()
68 mSize(0), in AString()
75 mSize(0), in AString()
82 mSize(0), in AString()
100 return mSize; in size()
108 return mSize == 0; in empty()
134 mSize = 0; in clear()
140 for (size_t i = 0; i < mSize; ++i) { in hash()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DPositionMap.java31 private int mSize; field in PositionMap
56 mSize = 0; in PositionMap()
87 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
100 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
134 final int end = Math.min(mSize, index + size); in removeAtRange()
151 int n = mSize; in gc()
171 mSize = o; in gc()
182 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
189 if (i < mSize && mValues[i] == DELETED) { in put()
195 if (mGarbage && mSize >= mKeys.length) { in put()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DCircleFramedDrawable.java43 private final int mSize; field in CircleFramedDrawable
60 mSize = size; in CircleFramedDrawable()
62 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888); in CircleFramedDrawable()
70 final RectF circleRect = new RectF(0f, 0f, mSize, mSize); in CircleFramedDrawable()
93 mSrcRect = new Rect(0, 0, mSize, mSize); in CircleFramedDrawable()
94 mDstRect = new RectF(0, 0, mSize, mSize); in CircleFramedDrawable()
99 final float inside = mScale * mSize; in draw()
100 final float pad = (mSize - inside) / 2f; in draw()
102 mDstRect.set(pad, pad, mSize - pad, mSize - pad); in draw()
129 return mSize; in getIntrinsicWidth()
[all …]
/frameworks/base/core/java/android/text/style/
DAbsoluteSizeSpan.java26 private final int mSize; field in AbsoluteSizeSpan
33 mSize = size; in AbsoluteSizeSpan()
42 mSize = size; in AbsoluteSizeSpan()
47 mSize = src.readInt(); in AbsoluteSizeSpan()
70 dest.writeInt(mSize); in writeToParcelInternal()
75 return mSize; in getSize()
85 ds.setTextSize(mSize * ds.density); in updateDrawState()
87 ds.setTextSize(mSize); in updateDrawState()
94 ds.setTextSize(mSize * ds.density); in updateMeasureState()
96 ds.setTextSize(mSize); in updateMeasureState()
/frameworks/base/libs/hwui/utils/
DTestWindowContext.cpp60 explicit TestWindowData(SkISize size) : mSize(size) { in TestWindowData()
64 mCpuConsumer->setDefaultBufferSize(mSize.width(), mSize.height()); in TestWindowData()
67 mSize.width(), mSize.height()); in TestWindowData()
77 (0, 0, mSize.width(), mSize.height()); in TestWindowData()
87 float lightX = mSize.width() / 2.0f; in TestWindowData()
91 mCanvas.reset(new android::uirenderer::RecordingCanvas(mSize.width(), mSize.height())); in TestWindowData()
96 mCanvas->clipRect(0, 0, mSize.width(), mSize.height(), SkClipOp::kReplace_deprecated); in prepareToDraw()
114 SkImageInfo::Make(mSize.width(), mSize.height(), in capturePixels()
118 mSize.width() * mSize.height() * 4); in capturePixels()
174 SkISize mSize; member in android::uirenderer::TestWindowContext::TestWindowData
/frameworks/av/media/libaaudio/src/utility/
DFixedBlockReader.cpp27 mPosition = mSize; in FixedBlockReader()
32 mPosition = mSize; // Indicate no data in storage. in open()
38 int32_t dataAvailable = mSize - mPosition; in readFromStorage()
51 if (mPosition < mSize) { in processVariableBlock()
56 } else if (bytesLeft >= mSize) { in processVariableBlock()
58 result = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize); in processVariableBlock()
59 buffer += mSize; in processVariableBlock()
60 bytesLeft -= mSize; in processVariableBlock()
63 result = mFixedBlockProcessor.onProcessFixedBlock(mStorage, mSize); in processVariableBlock()
/frameworks/av/include/private/media/
DVideoFrame.h33 VideoFrame(): mWidth(0), mHeight(0), mDisplayWidth(0), mDisplayHeight(0), mSize(0), mData(0), in VideoFrame()
41 mSize = copy.mSize; in VideoFrame()
43 if (mSize > 0 && copy.mData != NULL) { in VideoFrame()
44 mData = new uint8_t[mSize]; in VideoFrame()
46 memcpy(mData, copy.mData, mSize); in VideoFrame()
48 mSize = 0; in VideoFrame()
65 uint32_t mSize; // Number of bytes in mData variable
/frameworks/av/media/libstagefright/id3/
DID3.cpp36 mSize(size) { in MemorySource()
44 off64_t available = (offset >= (off64_t)mSize) ? 0ll : mSize - offset; in readAt()
54 size_t mSize; member
62 mSize(0), in ID3()
76 mSize(0), in ID3()
188 mSize = size; in parseV2()
189 mRawSize = mSize + sizeof(header); in parseV2()
191 if (source->readAt(offset + sizeof(header), mData, mSize) != (ssize_t)mSize) { in parseV2()
212 mSize = size; in parseV2()
240 if (mSize < 4) { in parseV2()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DSortedList.java72 private int mSize; field in SortedList
96 mSize = 0; in SortedList()
105 return mSize; in size()
196 mOldDataSize = mSize; in addAllInternal()
201 if (mSize == 0) { in addAllInternal()
203 mSize = newSize; in addAllInternal()
279 final int mergedCapacity = mSize + newDataSize + CAPACITY_GROWTH; in merge()
290 mSize += itemCount; in merge()
309 mSize++; in merge()
392 int index = findIndexOf(item, mData, 0, mSize, INSERTION); in add()
[all …]

12345678