Home
last modified time | relevance | path

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

12345678

/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 …]
DArraySet.java83 int mSize; field in ArraySet
88 final int N = mSize; in indexOf()
127 final int N = mSize; in indexOfNull()
283 mSize = 0; in ArraySet()
323 if (mSize != 0) { in clear()
324 freeArrays(mHashes, mArray, mSize); in clear()
327 mSize = 0; in clear()
340 if (mSize > 0) { in ensureCapacity()
341 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity()
342 System.arraycopy(oarray, 0, mArray, 0, mSize); in ensureCapacity()
[all …]
DLongSparseLongArray.java55 private int mSize; field in LongSparseLongArray
79 mSize = 0; in LongSparseLongArray()
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 …]
DSparseArray.java65 private int mSize; field in SparseArray
89 mSize = 0; in SparseArray()
120 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
133 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
148 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in removeReturnOld()
177 if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { in removeAt()
198 final int end = Math.min(mSize, index + size); in removeAtRange()
207 int n = mSize; in gc()
227 mSize = o; in gc()
238 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 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()
152 if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { in removeAt()
166 int n = mSize; in gc()
186 mSize = o; in gc()
197 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
204 if (i < mSize && mValues[i] == DELETED) { in put()
210 if (mGarbage && mSize >= mKeys.length) { in put()
[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 …]
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 …]
DArrayMap.java113 int mSize; field in ArrayMap
130 final int N = mSize; in indexOf()
169 final int N = mSize; in indexOfNull()
309 mSize = 0; in ArrayMap()
327 if (mSize > 0) { in clear()
330 final int osize = mSize; in clear()
333 mSize = 0; in clear()
336 if (CONCURRENT_MODIFICATION_EXCEPTIONS && mSize > 0) { in clear()
346 if (mSize > 0) { in erase()
347 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()
129 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, mSize); in processVariableBlock()
DFixedBlockWriter.cpp29 int32_t roomAvailable = mSize - mPosition; in writeToStorage()
48 if (mPosition == mSize) { in processVariableBlock()
49 result = mFixedBlockProcessor.onProcessFixedBlock(mStorage, 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/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()
127 mSize(0), in ID3()
240 mSize = size; in parseV2()
241 mRawSize = mSize + sizeof(header); in parseV2()
243 if (source->readAt(offset + sizeof(header), mData, mSize) != (ssize_t)mSize) { in parseV2()
264 mSize = size; in parseV2()
[all …]
/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/base/core/java/android/os/
DSharedMemory.java42 private final int mSize; field in SharedMemory
58 mSize = nGetSize(mFileDescriptor); in SharedMemory()
59 if (mSize <= 0) { in SharedMemory()
63 mMemoryRegistration = new MemoryRegistration(mSize); in SharedMemory()
170 return mSize; in getSize()
184 return map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, 0, mSize); in mapReadWrite()
198 return map(OsConstants.PROT_READ, 0, mSize); in mapReadOnly()
224 if (offset + length > mSize) { in map()
316 private int mSize; field in SharedMemory.Unmapper
321 mSize = size; in Unmapper()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DCarUserSwitchingDialog.java105 private final int mSize; field in CarUserSwitchingDialog.CircleFramedDrawable
119 mSize = size; in CircleFramedDrawable()
121 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888); in CircleFramedDrawable()
130 final RectF circleRect = new RectF(0f, 0f, mSize, mSize); in CircleFramedDrawable()
153 mSrcRect = new Rect(0, 0, mSize, mSize); in CircleFramedDrawable()
154 mDstRect = new RectF(0, 0, mSize, mSize); in CircleFramedDrawable()
159 final float inside = mScale * mSize; in draw()
160 final float pad = (mSize - inside) / 2f; in draw()
162 mDstRect.set(pad, pad, mSize - pad, mSize - pad); in draw()
/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()

12345678