Home
last modified time | relevance | path

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

123

/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/Launcher3/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/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/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/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/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/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()
Dterminal_position_lookup_table.h36 mSize(getBuffer()->getTailPosition() in TerminalPositionLookupTable()
39 TerminalPositionLookupTable() : mSize(0) {} in TerminalPositionLookupTable()
46 return mSize; in getNextTerminalId()
60 int mSize; variable
/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java43 private int mSize = 0; field in CompositeListAdapter
76 if (mSize >= mAdapters.length) { in addAdapter()
77 int newCapacity = mSize + 2; in addAdapter()
79 System.arraycopy(mAdapters, 0, newAdapters, 0, mSize); in addAdapter()
83 System.arraycopy(mCounts, 0, newCounts, 0, mSize); in addAdapter()
87 System.arraycopy(mViewTypeCounts, 0, newViewTypeCounts, 0, mSize); in addAdapter()
96 mAdapters[mSize] = adapter; in addAdapter()
97 mCounts[mSize] = count; in addAdapter()
100 mViewTypeCounts[mSize] = viewTypeCount; in addAdapter()
102 mSize++; in addAdapter()
[all …]
/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()
Dterminal_position_lookup_table.h44 mSize(getBuffer()->getTailPosition() in TerminalPositionLookupTable()
47 TerminalPositionLookupTable() : mSize(0) {} in TerminalPositionLookupTable()
54 return mSize; in getNextTerminalId()
68 int mSize; variable
/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/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/ContactsCommon/src/com/android/contacts/common/list/
DPinnedHeaderListView.java98 private int mSize; field in PinnedHeaderListView
162 if (count != mSize) { in onScroll()
163 mSize = count; in onScroll()
165 mHeaders = new PinnedHeader[mSize]; in onScroll()
166 } else if (mHeaders.length < mSize) { in onScroll()
168 mHeaders = new PinnedHeader[mSize]; in onScroll()
173 for (int i = 0; i < mSize; i++) { in onScroll()
192 return mSize > 0 ? 0 : super.getTopFadingEdgeStrength(); in getTopFadingEdgeStrength()
214 for (int i = 0; i < mSize; i++) { in onItemSelected()
387 for (int i = mSize; --i >= 0;) { in getTotalTopPinnedHeaderHeight()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DChartDataUsageView.java394 private float mSize; field in ChartDataUsageView.TimeAxis
403 return Objects.hash(mMin, mMax, mSize); in hashCode()
419 if (mSize != size) { in setSize()
420 mSize = size; in setSize()
429 return (mSize * (value - mMin)) / (mMax - mMin); in convertToPoint()
434 return (long) (mMin + ((point * (mMax - mMin)) / mSize)); in convertToValue()
479 private float mSize; field in ChartDataUsageView.DataAxis
485 return Objects.hash(mMin, mMax, mSize); in hashCode()
501 if (mSize != size) { in setSize()
502 mSize = size; in setSize()
[all …]
DInvertedChartAxis.java27 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/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/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

123