Home
last modified time | relevance | path

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

1234

/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntArray.java31 /* package private */ int mSize; field in IntArray
35 mSize = size; in IntArray()
54 mSize = 0; in IntArray()
68 add(mSize, value); in add()
79 int rightSegment = mSize - index; in add()
80 mSize++; in add()
81 checkBounds(mSize, index); in add()
95 final int count = values.mSize; in addAll()
98 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
99 mSize += count; in addAll()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DSparseLongArray.java31 private int mSize; field in SparseLongArray
48 mSize = 0; in SparseLongArray()
77 int i = binarySearch(mKeys, 0, mSize, key); in get()
90 int i = binarySearch(mKeys, 0, mSize, key); in delete()
101 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
102 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
103 mSize--; in removeAt()
112 int i = binarySearch(mKeys, 0, mSize, key); in put()
119 if (mSize >= mKeys.length) { in put()
120 growKeyAndValueArrays(mSize + 1); in put()
[all …]
/packages/apps/EmergencyInfo/src/com/android/emergency/
DCircleFramedDrawable.java40 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/inputmethods/LatinIME/native/jni/src/utils/
Dint_array_view.h53 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 …]
Dbyte_array_view.h32 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/Gallery2/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 …]
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
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 …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java90 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/apps/LegacyCamera/src/com/android/camera/
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 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/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java38 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/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dterminal_position_lookup_table.cpp24 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()
76 for (int i = 0; i < mSize; ++i) { in runGCTerminalIds()
94 mSize = nextNewTerminalId; in runGCTerminalIds()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumDataLoader.java68 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 …]
DAlbumSetDataLoader.java67 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 …]
DPhotoDataAdapter.java148 private int mSize = 0; field in PhotoDataAdapter
222 if (index < 0 || index >= mSize) return null; in getItemInternal()
288 mSize - 1 - mCurrentIndex); in fireDataChange()
386 if (index < 0 || index >= mSize || !mIsActive) return null; in getItem()
448 if (index < 0 || index >= mSize || !mIsActive) return null; in getScreenNail()
558 return mSize == 0; in isEmpty()
631 0, Math.max(0, mSize - IMAGE_CACHE_SIZE)); in updateSlidingWindow()
632 int end = Math.min(mSize, start + IMAGE_CACHE_SIZE); in updateSlidingWindow()
641 0, Math.max(0, mSize - DATA_CACHE_SIZE)); in updateSlidingWindow()
642 end = Math.min(mSize, start + DATA_CACHE_SIZE); in updateSlidingWindow()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DLruPool.java109 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/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dterminal_position_lookup_table.cpp34 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()
87 for (int i = 0; i < mSize; ++i) { in runGCTerminalIds()
105 mSize = nextNewTerminalId; in runGCTerminalIds()
Dprobability_dict_content.cpp36 if (terminalId < 0 || terminalId >= mSize) { in getProbabilityEntry()
67 if (terminalId >= mSize) { in setProbabilityEntry()
74 AKLOGE("Cannot write dummy entry. pos: %d, mSize: %d", writingPos, mSize); in setProbabilityEntry()
79 mSize = terminalId + 1; in setProbabilityEntry()
85 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) { in flushToFile()
87 for (int i = 0; i < mSize; ++i) { in flushToFile()
/packages/apps/Contacts/src/com/android/contacts/list/
DPinnedHeaderListView.java99 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/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSlidingWindow.java66 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 …]
DAlbumSetSlidingWindow.java49 private int mSize; field in AlbumSetSlidingWindow
99 mSize = source.size(); in AlbumSetSlidingWindow()
129 return mSize; in size()
168 if (!(start <= end && end - start <= mData.length && end <= mSize)) { in setActiveWindow()
170 start, end, mData.length, mSize); in setActiveWindow()
177 0, Math.max(0, mSize - data.length)); in setActiveWindow()
178 int contentEnd = Math.min(contentStart + data.length, mSize); in setActiveWindow()
354 if (mIsActive && mSize != size) { in onSizeChanged()
355 mSize = size; in onSizeChanged()
356 if (mListener != null) mListener.onSizeChanged(mSize); in onSizeChanged()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DPictureSizeCalculator.java54 private final Size mSize; field in PictureSizeCalculator.Configuration
58 mSize = size; in Configuration()
74 return mSize; in getNativeOutputSize()
80 .add("native size", mSize) in toString()
97 } else if (!mSize.equals(that.mSize)) { in equals()
106 return Objects.hashCode(mSize, mPostCrop); in hashCode()
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetPreview.java49 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/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java328 private long mSize; field in DatabaseMessages.MmsMessage
369 mSize = cursor.getLong(INDEX_MESSAGE_SIZE); in load()
420 return mSize; in getSize()
436 sizeOfParts += part.mSize; in processParts()
438 if (mSize <= 0) { in processParts()
439 mSize = mSubject != null ? mSubject.getBytes().length : 0L; in processParts()
440 mSize += sizeOfParts; in processParts()
494 mSize = in.readLong(); in MmsMessage()
542 out.writeLong(mSize); in writeToParcel()
584 public long mSize; field in DatabaseMessages.MmsPart
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_policy.h38 mSize(HeaderReadWriteUtils::getHeaderSize(dictBuf)), in HeaderPolicy()
65 attributeMap)), mSize(0), mAttributeMap(*attributeMap), mLocale(locale), in HeaderPolicy()
86 mDictionaryFlags(headerPolicy->mDictionaryFlags), mSize(headerPolicy->mSize), in HeaderPolicy()
102 : mDictFormatVersion(FormatUtils::UNKNOWN_VERSION), mDictionaryFlags(0), mSize(0), in HeaderPolicy()
146 return mSize; in getSize()
244 const int mSize; variable
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DDiagnosticEventBuilder.java41 private final int mSize; field in DiagnosticEventBuilder.DefaultedArray
45 mSize = size; in DefaultedArray()
50 if (index < 0 || index >= mSize) in checkIndex()
52 String.format("Index: %d, Size: %d", index, mSize)); in checkIndex()
68 return mSize; in size()
82 return (mIndex >= 0) && (mIndex < mSize); in iterator()

1234