Home
last modified time | relevance | path

Searched refs:mSize (Results 1 – 25 of 66) 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/Settings/src/com/android/settings/drawable/
DCircleFramedDrawable.java43 private final int mSize; field in CircleFramedDrawable
78 mSize = size; in CircleFramedDrawable()
85 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888); in CircleFramedDrawable()
93 final RectF circleRect = new RectF(0f, 0f, mSize, mSize); in CircleFramedDrawable()
118 mSrcRect = new Rect(0, 0, mSize, mSize); in CircleFramedDrawable()
119 mDstRect = new RectF(0, 0, mSize, mSize); in CircleFramedDrawable()
126 final float inside = mScale * mSize; in draw()
127 final float pad = (mSize - inside) / 2f; in draw()
129 mDstRect.set(pad, pad, mSize - pad, mSize - pad); in draw()
182 return mSize; in getIntrinsicWidth()
[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/Launcher3/WallpaperPicker/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/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.java391 private float mSize; field in ChartDataUsageView.TimeAxis
400 return Objects.hash(mMin, mMax, mSize); in hashCode()
416 if (mSize != size) { in setSize()
417 mSize = size; in setSize()
426 return (mSize * (value - mMin)) / (mMax - mMin); in convertToPoint()
431 return (long) (mMin + ((point * (mMax - mMin)) / mSize)); in convertToValue()
476 private float mSize; field in ChartDataUsageView.DataAxis
482 return Objects.hash(mMin, mMax, mSize); in hashCode()
498 if (mSize != size) { in setSize()
499 mSize = size; in setSize()
[all …]
/packages/apps/Camera2/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/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/Camera/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/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/inputmethods/LatinIME/native/jni/src/utils/
Dbyte_array_view.h32 ReadOnlyByteArrayView() : mPtr(nullptr), mSize(0) {} in ReadOnlyByteArrayView()
35 : mPtr(ptr), mSize(size) {} in ReadOnlyByteArrayView()
38 return mSize; in size()
49 const size_t mSize; variable
57 ReadWriteByteArrayView() : mPtr(nullptr), mSize(0) {} in ReadWriteByteArrayView()
60 : mPtr(ptr), mSize(size) {} in ReadWriteByteArrayView()
63 return mSize; in size()
71 return ReadOnlyByteArrayView(mPtr, mSize); in getReadOnlyView()
75 ASSERT(start + n <= mSize); in subView()
83 const size_t mSize; variable
Dint_array_view.h51 IntArrayView() : mPtr(nullptr), mSize(0) {} in IntArrayView()
54 : mPtr(ptr), mSize(size) {} in IntArrayView()
57 : mPtr(vector.data()), mSize(vector.size()) {} in IntArrayView()
70 ASSERT(index < mSize);
79 return mSize; in size()
91 return mPtr + mSize; in end()
98 const size_t mSize; variable
/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 …]
DPhotoView.java600 private Size mSize = new Size(); field in PhotoView.FullPicture
619 return mSize; in getSize()
625 mPositionController.forceImageSize(0, mSize); in forceSize()
639 mSize.width = getRotated(mRotation, w, h); in updateSize()
640 mSize.height = getRotated(mRotation, h, w); in updateSize()
781 private Size mSize = new Size(); field in PhotoView.ScreenNailPicture
801 return mSize; in getSize()
876 mPositionController.forceImageSize(mIndex, mSize); in forceSize()
889 mSize.width = mScreenNail.getWidth(); in updateSize()
890 mSize.height = mScreenNail.getHeight(); in updateSize()
[all …]
/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/suggest/policyimpl/dictionary/structure/v4/content/
Dterminal_position_lookup_table.cpp25 if (terminalId < 0 || terminalId >= mSize) { in getTerminalPtNodePosition()
39 while (terminalId >= mSize) { in setTerminalPtNodePosition()
42 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(mSize))) { in setTerminalPtNodePosition()
45 mSize++; in setTerminalPtNodePosition()
56 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) { in flushToFile()
58 for (int i = 0; i < mSize; ++i) { in flushToFile()
77 for (int i = 0; i < mSize; ++i) { in runGCTerminalIds()
95 mSize = nextNewTerminalId; in runGCTerminalIds()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/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()
66 if (terminalId >= mSize) { in setProbabilityEntry()
73 AKLOGE("Cannot write dummy entry. pos: %d, mSize: %d", writingPos, mSize); in setProbabilityEntry()
77 mSize++; in setProbabilityEntry()
84 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) { in flushToFile()
86 for (int i = 0; i < mSize; ++i) { in flushToFile()
103 mSize = 0; in runGC()
112 mSize++; in runGC()
/packages/apps/Mms/src/com/android/mms/model/
DMediaModel.java54 protected int mSize; field in MediaModel
89 mSize = data.length; in MediaModel()
190 return mSize; in getMediaSize()
239 mSize = (int) f.getChannel().size(); in initMediaSize()
244 if (isVideo() && mSize > MmsConfig.getMaxMessageSize()) { in initMediaSize()
245 Log.w(TAG, "initMediaSize: Video size: f.getChannel().size(): " + mSize + in initMediaSize()
250 mSize++; in initMediaSize()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/header/
Dheader_policy.h37 mSize(HeaderReadWriteUtils::getHeaderSize(dictBuf)), in HeaderPolicy()
76 attributeMap)), mSize(0), mAttributeMap(*attributeMap), mLocale(locale), in HeaderPolicy()
105 mDictionaryFlags(headerPolicy->mDictionaryFlags), mSize(headerPolicy->mSize), in HeaderPolicy()
125 : mDictFormatVersion(FormatUtils::UNKNOWN_VERSION), mDictionaryFlags(0), mSize(0), in HeaderPolicy()
166 return mSize; in getSize()
281 const int mSize; variable
/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/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java258 private int mSize; field in ScrollController.Axis
343 mTouchScrollMin = Math.max(mScrollMin, mMinEdge + mSize / 2); in updateScrollMin()
364 mTouchScrollMax = Math.min(mScrollMax, mMaxEdge - mSize / 2); in updateScrollMax()
439 return mSize - mPaddingLow - mPaddingHigh - mExpandedSize; in getSizeForExpandableItem()
443 mSize = size; in setSize()
487 return scrollCenter - (mSize - mScrollCenterOffset) + compensate; in getSystemScrollPos()
489 return (int) (scrollCenter - mScrollCenterOffset - mSize in getSystemScrollPos()
492 int clientSize = mSize - mPaddingLow - mPaddingHigh; in getSystemScrollPos()
500 middlePosition = (int) (mSize * mScrollCenterOffsetPercent) - mPaddingLow; in getSystemScrollPos()

123