Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/java/android/util/
DSparseBooleanArray.java71 mSize = 0; in SparseBooleanArray()
100 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
116 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete()
117 System.arraycopy(mValues, i + 1, mValues, i, mSize - (i + 1)); in delete()
118 mSize--; in delete()
128 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
129 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
130 mSize--; in removeAt()
139 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
[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()
132 size = Math.min(size, mSize - index); in removeAtRange()
133 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size)); in removeAtRange()
134 System.arraycopy(mValues, index + size, mValues, index, mSize - (index + size)); in removeAtRange()
135 mSize -= size; in removeAtRange()
142 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
143 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
[all …]
DSparseIntArray.java55 private int mSize; field in SparseIntArray
79 mSize = 0; in SparseIntArray()
108 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
121 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
132 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
133 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
134 mSize--; in removeAt()
143 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
150 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
151 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
[all …]
DLongArray.java38 private int mSize; field in LongArray
42 mSize = Preconditions.checkArgumentInRange(size, 0, array.length, "size"); in LongArray()
62 mSize = 0; in LongArray()
89 ensureCapacity(newSize - mSize); in resize()
91 mSize = newSize; in resize()
98 add(mSize, value); in add()
110 int rightSegment = mSize - index; in add()
111 mSize++; in add()
112 ArrayUtils.checkBounds(mSize, index); in add()
126 final int count = values.mSize; in addAll()
[all …]
DIntArray.java35 private int mSize; field in IntArray
39 mSize = Preconditions.checkArgumentInRange(size, 0, array.length, "size"); in IntArray()
58 mSize = 0; in IntArray()
85 ensureCapacity(newSize - mSize); in resize()
87 mSize = newSize; in resize()
94 add(mSize, value); in add()
105 int rightSegment = mSize - index; in add()
106 mSize++; in add()
107 ArrayUtils.checkBounds(mSize, index); in add()
132 return ContainerHelpers.binarySearch(mValues, mSize, value); in binarySearch()
[all …]
DSparseArray.java65 private int mSize; field in SparseArray
89 mSize = 0; in SparseArray()
131 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
144 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
159 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in removeReturnOld()
188 if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { in removeAt()
209 final int end = Math.min(mSize, index + size); in removeAtRange()
218 int n = mSize; in gc()
238 mSize = o; in gc()
249 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
[all …]
DLongArrayQueue.java36 private int mSize; field in LongArrayQueue
51 mSize = 0; in LongArrayQueue()
63 if (mSize < mValues.length) { in grow()
66 final int newSize = GrowingArrayUtils.growSize(mSize); in grow()
73 mTail = mSize; in grow()
80 return mSize; in size()
87 mSize = 0; in clear()
97 if (mSize == mValues.length) { in addLast()
102 mSize++; in addLast()
112 if (mSize == 0) { in removeFirst()
[all …]
DLongSparseLongArray.java57 private int mSize; field in LongSparseLongArray
81 mSize = 0; in LongSparseLongArray()
110 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
123 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
134 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
135 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
136 mSize--; in removeAt()
145 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
152 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
153 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
[all …]
DArraySet.java92 int mSize; field in ArraySet
97 return ContainerHelpers.binarySearch(hashes, mSize, hash); in binarySearch()
106 final int N = mSize; in indexOf()
145 final int N = mSize; in indexOfNull()
309 mSize = 0; in ArraySet()
349 if (mSize != 0) { in clear()
352 final int osize = mSize; in clear()
355 mSize = 0; in clear()
358 if (mSize != 0) { in clear()
368 final int oSize = mSize; in ensureCapacity()
[all …]
DLongSparseArray.java66 private int mSize; field in LongSparseArray
90 mSize = 0; in LongSparseArray()
121 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
134 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
155 for (int i = 0; i < mSize; ++i) { in removeIf()
172 if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { in removeAt()
186 int n = mSize; in gc()
206 mSize = o; in gc()
217 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
224 if (i < mSize && mValues[i] == DELETED) { in put()
[all …]
DArrayMap.java121 int mSize; field in ArrayMap
138 final int N = mSize; in indexOf()
177 final int N = mSize; in indexOfNull()
347 mSize = 0; in ArrayMap()
365 if (mSize > 0) { in clear()
368 final int osize = mSize; in clear()
371 mSize = 0; in clear()
374 if (CONCURRENT_MODIFICATION_EXCEPTIONS && mSize > 0) { in clear()
384 if (mSize > 0) { in erase()
385 final int N = mSize<<1; in erase()
[all …]
/frameworks/base/core/java/android/text/
DAutoGrowArray.java54 private @IntRange(from = 0) int mSize; field in AutoGrowArray.ByteArray
72 mSize = 0; in ByteArray()
81 ensureCapacity(newSize - mSize); in resize()
83 mSize = newSize; in resize()
91 mValues[mSize++] = value; in append()
98 final int requestedSize = mSize + count; in ensureCapacity()
100 final int newCapacity = computeNewCapacity(mSize, requestedSize); in ensureCapacity()
102 System.arraycopy(mValues, 0, newValues, 0, mSize); in ensureCapacity()
111 mSize = 0; in clear()
143 return mSize; in size()
[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/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.cpp41 mSize(0), in AString()
47 mSize(0), in AString()
59 mSize(0), in AString()
71 mSize(0), in AString()
78 mSize(0), in AString()
85 mSize(0), in AString()
103 return mSize; in size()
111 return mSize == 0; in empty()
135 mSize = 0; in clear()
141 for (size_t i = 0; i < mSize; ++i) { in hash()
[all …]
DABitReader.cpp25 mSize(size), in ABitReader()
35 if (mSize == 0) { in fillReservoir()
42 for (i = 0; mSize > 0 && i < 4; ++i) { in fillReservoir()
46 --mSize; in fillReservoir()
120 ++mSize; in putBits()
128 return mSize * 8 + mNumBitsLeft; in numBitsLeft()
149 size_t size = mSize; in atLeastNumBitsLeft()
173 if (mSize == 0) { in fillReservoir()
180 while (mSize > 0 && i < 4) { in fillReservoir()
196 --mSize; in fillReservoir()
/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()
133 return mSize; in getIntrinsicWidth()
[all …]
/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.get(), mSize); in processVariableBlock()
DFixedBlockWriter.cpp29 int32_t roomAvailable = mSize - mPosition; in writeToStorage()
48 if (mPosition == mSize) { in processVariableBlock()
49 result = mFixedBlockProcessor.onProcessFixedBlock(mStorage.get(), mSize); in processVariableBlock()
55 while(bytesLeft > mSize && result == 0) { in processVariableBlock()
56 result = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize); in processVariableBlock()
57 buffer += mSize; in processVariableBlock()
58 bytesLeft -= mSize; in processVariableBlock()
/frameworks/base/core/java/android/text/style/
DAbsoluteSizeSpan.java37 private final int mSize; field in AbsoluteSizeSpan
52 mSize = size; in AbsoluteSizeSpan()
60 mSize = src.readInt(); in AbsoluteSizeSpan()
88 dest.writeInt(mSize); in writeToParcelInternal()
100 return mSize; in getSize()
119 ds.setTextSize(mSize * ds.density); in updateDrawState()
121 ds.setTextSize(mSize); in updateDrawState()
128 ds.setTextSize(mSize * ds.density); in updateMeasureState()
130 ds.setTextSize(mSize); in updateMeasureState()
/frameworks/av/media/libstagefright/id3/
DID3.cpp38 mSize(size) { in MemorySource()
46 off64_t available = (offset >= (off64_t)mSize) ? 0LL : mSize - offset; in readAt()
56 size_t mSize; member
98 mSize(0), in ID3()
113 mSize(0), in ID3()
226 mSize = size; in parseV2()
227 mRawSize = mSize + sizeof(header); in parseV2()
229 if (source->readAt(offset + sizeof(header), mData, mSize) != (ssize_t)mSize) { in parseV2()
248 if (mSize < 4) { in parseV2()
265 if (extendedHeaderSize > mSize) { in parseV2()
[all …]
/frameworks/base/core/java/android/os/
DSharedMemory.java43 private final int mSize; field in SharedMemory
59 mSize = nGetSize(mFileDescriptor); in SharedMemory()
60 if (mSize <= 0) { in SharedMemory()
64 mMemoryRegistration = new MemoryRegistration(mSize); in SharedMemory()
171 return mSize; in getSize()
185 return map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, 0, mSize); in mapReadWrite()
199 return map(OsConstants.PROT_READ, 0, mSize); in mapReadOnly()
225 if (offset + length > mSize) { in map()
331 private int mSize; field in SharedMemory.Unmapper
336 mSize = size; in Unmapper()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathOpsActivity.java41 private float mSize; field in PathOpsActivity.PathsView
60 mSize = w / (ops.length * 2.0f); in onSizeChanged()
63 p1.addRect(0.0f, 0.0f, mSize, mSize, Path.Direction.CW); in onSizeChanged()
66 p2.addCircle(mSize, mSize, mSize / 2.0f, Path.Direction.CW); in onSizeChanged()
80 canvas.translate(mSize * 0.2f, getHeight() / 2.0f); in onDraw()
83 canvas.translate(mSize * 1.8f, 0.0f); in onDraw()
/frameworks/base/core/java/com/android/internal/util/
DRingBufferIndices.java28 private int mSize; field in RingBufferIndices
43 if (mSize < mCapacity) { in add()
44 final int pos = mSize; in add()
45 mSize++; in add()
61 mSize = 0; in clear()
68 return mSize; in size()
/frameworks/base/core/java/android/nfc/tech/
DMifareClassic.java123 private int mSize; field in MifareClassic
156 mSize = SIZE_1K; in MifareClassic()
160 mSize = SIZE_MINI; in MifareClassic()
164 mSize = SIZE_2K; in MifareClassic()
169 mSize = SIZE_4K; in MifareClassic()
174 mSize = SIZE_4K; in MifareClassic()
178 mSize = SIZE_1K; in MifareClassic()
183 mSize = SIZE_4K; in MifareClassic()
188 mSize = SIZE_1K; in MifareClassic()
194 mSize = SIZE_4K; in MifareClassic()
[all …]

123456789