/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | IntArray.java | 33 /* package private */ int mSize; field in IntArray 37 mSize = size; in IntArray() 56 mSize = 0; in IntArray() 70 add(mSize, value); in add() 81 int rightSegment = mSize - index; in add() 82 mSize++; in add() 83 checkBounds(mSize, index); in add() 97 final int count = values.mSize; in addAll() 100 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll() 101 mSize += count; in addAll() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | LongArray.java | 30 private int mSize; field in LongArray 34 mSize = Preconditions.checkArgumentInRange(size, 0, array.length, "size"); in LongArray() 53 mSize = 0; in LongArray() 80 ensureCapacity(newSize - mSize); in resize() 82 mSize = newSize; in resize() 89 add(mSize, value); in add() 100 int rightSegment = mSize - index; in add() 101 mSize++; in add() 102 checkBounds(mSize, index); in add() 116 final int count = values.mSize; in addAll() [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | LongArray.java | 37 private int mSize; field in LongArray 41 mSize = Preconditions.checkArgumentInRange(size, 0, array.length, "size"); in LongArray() 60 mSize = 0; in LongArray() 87 ensureCapacity(newSize - mSize); in resize() 89 mSize = newSize; in resize() 96 add(mSize, value); in add() 107 int rightSegment = mSize - index; in add() 108 mSize++; in add() 109 ArrayUtils.checkBounds(mSize, index); in add() 123 final int count = values.mSize; in addAll() [all …]
|
D | IntArray.java | 33 private int mSize; field in IntArray 37 mSize = Preconditions.checkArgumentInRange(size, 0, array.length, "size"); in IntArray() 56 mSize = 0; in IntArray() 83 ensureCapacity(newSize - mSize); in resize() 85 mSize = newSize; in resize() 92 add(mSize, value); in add() 103 int rightSegment = mSize - index; in add() 104 mSize++; in add() 105 ArrayUtils.checkBounds(mSize, index); in add() 137 final int count = values.mSize; in addAll() [all …]
|
/packages/apps/Gallery2/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 …]
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
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 …]
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | int_array_view.h | 53 IntArrayView() : mPtr(nullptr), mSize(0) {} in IntArrayView() 56 : mPtr(ptr), mSize(size) {} in IntArrayView() 59 : mPtr(vector.data()), mSize(vector.size()) {} in IntArrayView() 72 ASSERT(index < mSize); 81 return mSize; in size() 93 return mPtr + mSize; in end() 102 return IntArrayView(mPtr, std::min(maxSize, mSize)); in limit() 106 if (mSize <= n) { in skip() 109 return IntArrayView(mPtr + n, mSize - n); in skip() 114 ASSERT(mSize + offset <= N); in copyToArray() [all …]
|
D | byte_array_view.h | 32 ReadOnlyByteArrayView() : mPtr(nullptr), mSize(0) {} in ReadOnlyByteArrayView() 35 : mPtr(ptr), mSize(size) {} in ReadOnlyByteArrayView() 38 return mSize; in size() 46 if (mSize <= n) { in skip() 49 return ReadOnlyByteArrayView(mPtr + n, mSize - n); in skip() 56 const size_t mSize; variable 64 ReadWriteByteArrayView() : mPtr(nullptr), mSize(0) {} in ReadWriteByteArrayView() 67 : mPtr(ptr), mSize(size) {} in ReadWriteByteArrayView() 70 return mSize; in size() 78 return ReadOnlyByteArrayView(mPtr, mSize); in getReadOnlyView() [all …]
|
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
D | CircleFramedDrawable.java | 40 private final int mSize; field in CircleFramedDrawable 57 mSize = size; in CircleFramedDrawable() 59 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888); in CircleFramedDrawable() 67 final RectF circleRect = new RectF(0f, 0f, mSize, mSize); in CircleFramedDrawable() 90 mSrcRect = new Rect(0, 0, mSize, mSize); in CircleFramedDrawable() 91 mDstRect = new RectF(0, 0, mSize, mSize); in CircleFramedDrawable() 96 final float inside = mScale * mSize; in draw() 97 final float pad = (mSize - inside) / 2f; in draw() 99 mDstRect.set(pad, pad, mSize - pad, mSize - pad); in draw() 126 return mSize; in getIntrinsicWidth() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
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 return mSize; in size() 39 if (result == null || result.length < mSize) { in toArray() 40 result = new int[mSize]; in toArray() 42 System.arraycopy(mData, 0, result, 0, mSize); in toArray()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CompositeAdapter.java | 90 private int mSize = 0; field in CompositeAdapter 106 if (mSize >= mPartitions.length) { in addPartition() 107 final int newCapacity = mSize + 2; in addPartition() 109 System.arraycopy(mPartitions, 0, newAdapters, 0, mSize); in addPartition() 112 mPartitions[mSize++] = partition; in addPartition() 122 mSize - index - 1); in removePartition() 123 mSize--; in removePartition() 130 for (int i = 0; i < mSize; i++) { in clearPartitions() 146 for (int i = 0; i < mSize; i++) { in getPartitionAtPosition() 161 return mSize - 1; in getPartitionAtPosition() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | terminal_position_lookup_table.cpp | 24 if (terminalId < 0 || terminalId >= mSize) { in getTerminalPtNodePosition() 38 while (terminalId >= mSize) { in setTerminalPtNodePosition() 41 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(mSize))) { in setTerminalPtNodePosition() 44 mSize++; in setTerminalPtNodePosition() 55 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) { in flushToFile() 57 for (int i = 0; i < mSize; ++i) { in flushToFile() 75 for (int i = 0; i < mSize; ++i) { in runGCTerminalIds() 92 mSize = nextNewTerminalId; in runGCTerminalIds()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | terminal_position_lookup_table.cpp | 34 if (terminalId < 0 || terminalId >= mSize) { in getTerminalPtNodePosition() 48 while (terminalId >= mSize) { in setTerminalPtNodePosition() 51 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(mSize))) { in setTerminalPtNodePosition() 54 mSize++; in setTerminalPtNodePosition() 65 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) { in flushToFile() 67 for (int i = 0; i < mSize; ++i) { in flushToFile() 86 for (int i = 0; i < mSize; ++i) { in runGCTerminalIds() 103 mSize = nextNewTerminalId; in runGCTerminalIds()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | CompositeListAdapter.java | 38 private int mSize = 0; field in CompositeListAdapter 71 if (mSize >= mAdapters.length) { in addAdapter() 72 int newCapacity = mSize + 2; in addAdapter() 74 System.arraycopy(mAdapters, 0, newAdapters, 0, mSize); in addAdapter() 78 System.arraycopy(mCounts, 0, newCounts, 0, mSize); in addAdapter() 82 System.arraycopy(mViewTypeCounts, 0, newViewTypeCounts, 0, mSize); in addAdapter() 91 mAdapters[mSize] = adapter; in addAdapter() 92 mCounts[mSize] = count; in addAdapter() 95 mViewTypeCounts[mSize] = viewTypeCount; in addAdapter() 97 mSize++; in addAdapter() [all …]
|
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
D | LruPool.java | 109 private int mSize; field in LruPool 154 mSize -= checkedSizeOf(key, value); in acquire() 186 mSize += checkedSizeOf(key, value); in add() 212 return mSize; in getSize() 227 while (mSize > trimToSize && !mLruKeyList.isEmpty()) { in unsafeTrimToSize() 240 mSize = mSize - checkedSizeOf(key, value); in unsafeTrimToSize() 244 if (mSize < 0 || (mLruKeyList.isEmpty() && mSize != 0)) { in unsafeTrimToSize()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumDataLoader.java | 68 private int mSize = 0; field in AlbumDataLoader 137 return mSize; in size() 189 && end - start <= mData.length && end <= mSize); in setActiveWindow() 199 0, Math.max(0, mSize - length)); in setActiveWindow() 200 int contentEnd = Math.min(contentStart + length, mSize); in setActiveWindow() 260 info.size = mSize; in call() 286 if (mSize != info.size) { in call() 287 mSize = info.size; in call() 288 if (mDataListener != null) mDataListener.onSizeChanged(mSize); in call() 289 if (mContentEnd > mSize) mContentEnd = mSize; in call() [all …]
|
D | AlbumSetDataLoader.java | 67 private int mSize; field in AlbumSetDataLoader 148 return mSize; in size() 201 && end - start <= mCoverItem.length && end <= mSize); in setActiveWindow() 211 0, Math.max(0, mSize - length)); in setActiveWindow() 212 int contentEnd = Math.min(contentStart + length, mSize); in setActiveWindow() 269 info.size = mSize; in call() 288 if (mSize != info.size) { in call() 289 mSize = info.size; in call() 290 if (mDataListener != null) mDataListener.onSizeChanged(mSize); in call() 291 if (mContentEnd > mSize) mContentEnd = mSize; in call() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AlbumSlidingWindow.java | 66 private int mSize; field in AlbumSlidingWindow 96 mSize = source.size(); in AlbumSlidingWindow() 165 if (!(start <= end && end - start <= mData.length && end <= mSize)) { in setActiveWindow() 166 Utils.fail("%s, %s, %s, %s", start, end, mData.length, mSize); in setActiveWindow() 174 0, Math.max(0, mSize - data.length)); in setActiveWindow() 175 int contentEnd = Math.min(contentStart + data.length, mSize); in setActiveWindow() 328 if (mSize != size) { in onSizeChanged() 329 mSize = size; in onSizeChanged() 330 if (mListener != null) mListener.onSizeChanged(mSize); in onSizeChanged() 331 if (mContentEnd > mSize) mContentEnd = mSize; in onSizeChanged() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | PinnedHeaderListView.java | 99 private int mSize; field in PinnedHeaderListView 163 if (count != mSize) { in onScroll() 164 mSize = count; in onScroll() 166 mHeaders = new PinnedHeader[mSize]; in onScroll() 167 } else if (mHeaders.length < mSize) { in onScroll() 169 mHeaders = new PinnedHeader[mSize]; in onScroll() 174 for (int i = 0; i < mSize; i++) { in onScroll() 193 return mSize > 0 ? 0 : super.getTopFadingEdgeStrength(); in getTopFadingEdgeStrength() 215 for (int i = 0; i < mSize; i++) { in onItemSelected() 391 for (int i = mSize; --i >= 0;) { in getTotalTopPinnedHeaderHeight() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipImageFormat.java | 107 private final int mSize; field in BipImageFormat 122 mSize = size; in BipImageFormat() 132 mSize = parseInt(size); in BipImageFormat() 163 return mSize; in getSize() 199 if (mSize > -1) { in toString() 200 sb.append(" size=\"" + mSize + "\""); in toString() 211 if (mSize > -1) { in toString() 212 sb.append(" size=\"" + mSize + "\""); in toString()
|
D | BipAttachmentFormat.java | 58 private final int mSize; field in BipAttachmentFormat 82 mSize = parseInt(size); in BipAttachmentFormat() 106 mSize = size; in BipAttachmentFormat() 134 return mSize; in getSize() 166 if (mSize > -1) sb.append(" size=\"" + mSize + "\""); in toString()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
D | PictureSizeCalculator.java | 55 private final Size mSize; field in PictureSizeCalculator.Configuration 59 mSize = size; in Configuration() 75 return mSize; in getNativeOutputSize() 81 .add("native size", mSize) in toString() 98 } else if (!mSize.equals(that.mSize)) { in equals() 107 return Objects.hashCode(mSize, mPostCrop); in hashCode()
|
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
D | TinyPlanetPreview.java | 49 private int mSize = 0; field in TinyPlanetPreview 74 if (mSize > 0) { in setPreviewSizeChangeListener() 75 mPreviewSizeListener.onSizeChanged(mSize); in setPreviewSizeChangeListener() 111 int mSize = Math.min(width, height); in onLayout() local 114 if (mSize > 0 && mPreviewSizeListener != null) { in onLayout() 115 mPreviewSizeListener.onSizeChanged(mSize); in onLayout()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | InvertedChartAxis.java | 27 private float mSize; field in InvertedChartAxis 40 mSize = size; in setSize() 46 return mSize - mWrapped.convertToPoint(value); in convertToPoint() 51 return mWrapped.convertToValue(mSize - point); in convertToValue() 63 points[i] = mSize - points[i]; in getTickPoints()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | NestedDeletionPreference.java | 33 private TextView mSize; field in NestedDeletionPreference 45 mSize.setActivated(isChecked()); in onClick() 54 mSize = (TextView) holder.findViewById(R.id.deletion_type_size); in onBindViewHolder() 55 mSize.setActivated(checkboxWidget.isChecked()); in onBindViewHolder() 56 mSize.setText(getItemSize()); in onBindViewHolder()
|