/frameworks/base/core/java/android/util/ |
D | SparseBooleanArray.java | 71 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 …]
|
D | SparseLongArray.java | 48 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 …]
|
D | ArraySet.java | 82 int mSize; field in ArraySet 87 final int N = mSize; in indexOf() 126 final int N = mSize; in indexOfNull() 282 mSize = 0; in ArraySet() 310 if (mSize != 0) { in clear() 311 freeArrays(mHashes, mArray, mSize); in clear() 314 mSize = 0; in clear() 327 if (mSize > 0) { in ensureCapacity() 328 System.arraycopy(ohashes, 0, mHashes, 0, mSize); in ensureCapacity() 329 System.arraycopy(oarray, 0, mArray, 0, mSize); in ensureCapacity() [all …]
|
D | LongSparseLongArray.java | 55 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 …]
|
D | SparseArray.java | 65 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 …]
|
D | LongArray.java | 38 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 …]
|
D | SparseIntArray.java | 55 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 …]
|
D | LongSparseArray.java | 58 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 …]
|
D | IntArray.java | 35 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 …]
|
D | LongArrayQueue.java | 36 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 …]
|
D | ArrayMap.java | 113 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/ |
D | AutoGrowArray.java | 54 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/ |
D | IntArray.java | 23 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/ |
D | SparseWeakArray.java | 65 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/ |
D | AString.cpp | 38 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() 132 mSize = 0; in clear() 138 for (size_t i = 0; i < mSize; ++i) { in hash() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
D | CircleFramedDrawable.java | 43 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/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/ |
D | FieldArray.java | 49 private int mSize; field in FieldArray 67 mSize = 0; in FieldArray() 97 int n = mSize; in gc() 117 mSize = o; in gc() 132 if (i < mSize && mData[i] == DELETED) { in put() 138 if (mGarbage && mSize >= mFieldNumbers.length) { in put() 145 if (mSize >= mFieldNumbers.length) { in put() 146 int n = idealIntArraySize(mSize + 1); in put() 158 if (mSize - i != 0) { in put() 159 System.arraycopy(mFieldNumbers, i, mFieldNumbers, i + 1, mSize - i); in put() [all …]
|
/frameworks/av/media/libaaudio/src/utility/ |
D | FixedBlockReader.cpp | 27 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()
|
D | FixedBlockWriter.cpp | 29 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/base/core/java/android/text/style/ |
D | AbsoluteSizeSpan.java | 37 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/ |
D | ID3.cpp | 38 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/os/ |
D | SharedMemory.java | 42 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/ |
D | CarUserSwitchingDialog.java | 95 private final int mSize; field in CarUserSwitchingDialog.CircleFramedDrawable 109 mSize = size; in CircleFramedDrawable() 111 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888); in CircleFramedDrawable() 120 final RectF circleRect = new RectF(0f, 0f, mSize, mSize); in CircleFramedDrawable() 143 mSrcRect = new Rect(0, 0, mSize, mSize); in CircleFramedDrawable() 144 mDstRect = new RectF(0, 0, mSize, mSize); in CircleFramedDrawable() 149 final float inside = mScale * mSize; in draw() 150 final float pad = (mSize - inside) / 2f; in draw() 152 mDstRect.set(pad, pad, mSize - pad, mSize - pad); in draw()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | PathOpsActivity.java | 41 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/ |
D | RingBufferIndices.java | 28 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()
|