Searched refs:mSize (Results 1 - 25 of 70) sorted by relevance

123

/packages/apps/LegacyCamera/src/com/android/camera/
H A DIntArray.java23 private int mSize = 0; field in class:IntArray
26 if (mData.length == mSize) {
27 int temp[] = new int[mSize + mSize];
28 System.arraycopy(mData, 0, temp, 0, mSize);
31 mData[mSize++] = value;
35 return mSize;
39 if (result == null || result.length < mSize) {
40 result = new int[mSize];
42 System.arraycopy(mData, 0, result, 0, mSize);
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DIntArray.java23 private int mSize = 0; field in class:IntArray
26 if (mData.length == mSize) {
27 int temp[] = new int[mSize + mSize];
28 System.arraycopy(mData, 0, temp, 0, mSize);
31 mData[mSize++] = value;
35 mSize--;
36 return mData[mSize];
40 return mSize;
45 if (result == null || result.length < mSize) {
[all...]
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DIntArray.java23 private int mSize = 0; field in class:IntArray
26 if (mData.length == mSize) {
27 int temp[] = new int[mSize + mSize];
28 System.arraycopy(mData, 0, temp, 0, mSize);
31 mData[mSize++] = value;
35 mSize--;
36 return mData[mSize];
40 return mSize;
45 if (result == null || result.length < mSize) {
[all...]
/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dbyte_array_view.h32 ReadOnlyByteArrayView() : mPtr(nullptr), mSize(0) {}
35 : mPtr(ptr), mSize(size) {}
38 return mSize;
46 if (mSize <= n) {
49 return ReadOnlyByteArrayView(mPtr + n, mSize - n);
56 const size_t mSize; member in class:latinime::ReadOnlyByteArrayView
64 ReadWriteByteArrayView() : mPtr(nullptr), mSize(0) {}
67 : mPtr(ptr), mSize(size) {}
70 return mSize;
78 return ReadOnlyByteArrayView(mPtr, mSize);
92 size_t mSize; member in class:latinime::ReadWriteByteArrayView
[all...]
H A Dint_array_view.h53 IntArrayView() : mPtr(nullptr), mSize(0) {}
56 : mPtr(ptr), mSize(size) {}
59 : mPtr(vector.data()), mSize(vector.size()) {}
72 ASSERT(index < mSize);
81 return mSize;
93 return mPtr + mSize;
102 return IntArrayView(mPtr, std::min(maxSize, mSize));
106 if (mSize <= n) {
109 return IntArrayView(mPtr + n, mSize - n);
114 ASSERT(mSize
[all...]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
H A DFakeImageResource.java21 private final int mSize; field in class:FakeImageResource
26 mSize = size;
48 return mSize;
H A DFakeImageRequest.java25 private final int mSize; field in class:FakeImageRequest
29 mSize = size;
43 return new FakeImageResource(mSize, mKey);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
H A Dterminal_position_lookup_table.h44 mSize(getBuffer()->getTailPosition()
47 TerminalPositionLookupTable() : mSize(0) {}
54 return mSize;
68 int mSize; member in class:latinime::backward::v402::TerminalPositionLookupTable
H A Dterminal_position_lookup_table.cpp34 if (terminalId < 0 || terminalId >= mSize) {
48 while (terminalId >= mSize) {
51 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(mSize))) {
54 mSize++;
65 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) {
67 for (int i = 0; i < mSize; ++i) {
87 for (int i = 0; i < mSize; ++i) {
105 mSize = nextNewTerminalId;
H A Dprobability_dict_content.h45 mSize(getBuffer()->getTailPosition() / getEntrySize()) {}
48 : mHasHistoricalInfo(hasHistoricalInfo), mSize(0) {}
69 int mSize; member in class:latinime::backward::v402::ProbabilityDictContent
H A Dprobability_dict_content.cpp36 if (terminalId < 0 || terminalId >= mSize) {
67 if (terminalId >= mSize) {
74 AKLOGE("Cannot write dummy entry. pos: %d, mSize: %d", writingPos, mSize);
79 mSize = terminalId + 1;
85 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) {
87 for (int i = 0; i < mSize; ++i) {
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
H A Dterminal_position_lookup_table.h36 mSize(getBuffer()->getTailPosition()
39 TerminalPositionLookupTable() : mSize(0) {}
46 return mSize;
60 int mSize; member in class:latinime::TerminalPositionLookupTable
H A Dterminal_position_lookup_table.cpp24 if (terminalId < 0 || terminalId >= mSize) {
38 while (terminalId >= mSize) {
41 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(mSize))) {
44 mSize++;
55 if (getEntryPos(mSize) < getBuffer()->getTailPosition()) {
57 for (int i = 0; i < mSize; ++i) {
76 for (int i = 0; i < mSize; ++i) {
94 mSize = nextNewTerminalId;
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DSparseLongArray.java31 private int mSize; field in class:SparseLongArray
48 mSize = 0;
77 int i = binarySearch(mKeys, 0, mSize, key);
90 int i = binarySearch(mKeys, 0, mSize, key);
101 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));
102 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));
103 mSize--;
112 int i = binarySearch(mKeys, 0, mSize, key);
119 if (mSize >= mKeys.length) {
120 growKeyAndValueArrays(mSize
[all...]
/packages/apps/EmergencyInfo/src/com/android/emergency/
H A DCircleFramedDrawable.java40 private final int mSize; field in class:CircleFramedDrawable
57 mSize = size;
59 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888);
67 final RectF circleRect = new RectF(0f, 0f, mSize, mSize);
90 mSrcRect = new Rect(0, 0, mSize, mSize);
91 mDstRect = new RectF(0, 0, mSize, mSize);
[all...]
/packages/apps/Camera2/src/com/android/camera/processing/memory/
H A DLruPool.java109 private int mSize; field in class:LruPool
154 mSize -= checkedSizeOf(key, value);
186 mSize += checkedSizeOf(key, value);
212 return mSize;
227 while (mSize > trimToSize && !mLruKeyList.isEmpty()) {
240 mSize = mSize - checkedSizeOf(key, value);
244 if (mSize < 0 || (mLruKeyList.isEmpty() && mSize != 0)) {
/packages/apps/Settings/src/com/android/settings/widget/
H A DInvertedChartAxis.java27 private float mSize; field in class:InvertedChartAxis
40 mSize = size;
46 return mSize - mWrapped.convertToPoint(value);
51 return mWrapped.convertToValue(mSize - point);
63 points[i] = mSize - points[i];
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DNestedDeletionPreference.java33 private TextView mSize; field in class:NestedDeletionPreference
45 mSize.setActivated(isChecked());
54 mSize = (TextView) holder.findViewById(R.id.deletion_type_size);
55 mSize.setActivated(checkboxWidget.isChecked());
56 mSize.setText(getItemSize());
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
H A DTinyPlanetPreview.java49 private int mSize = 0; field in class:TinyPlanetPreview
74 if (mSize > 0) {
75 mPreviewSizeListener.onSizeChanged(mSize);
111 int mSize = Math.min(width, height);
114 if (mSize > 0 && mPreviewSizeListener != null) {
115 mPreviewSizeListener.onSizeChanged(mSize);
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DCompositeListAdapter.java38 private int mSize = 0; field in class:CompositeListAdapter
71 if (mSize >= mAdapters.length) {
72 int newCapacity = mSize + 2;
74 System.arraycopy(mAdapters, 0, newAdapters, 0, mSize);
78 System.arraycopy(mCounts, 0, newCounts, 0, mSize);
82 System.arraycopy(mViewTypeCounts, 0, newViewTypeCounts, 0, mSize);
91 mAdapters[mSize] = adapter;
92 mCounts[mSize] = count;
95 mViewTypeCounts[mSize] = viewTypeCount;
97 mSize
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DCompositeAdapter.java90 private int mSize = 0; field in class:CompositeAdapter
106 if (mSize >= mPartitions.length) {
107 final int newCapacity = mSize + 2;
109 System.arraycopy(mPartitions, 0, newAdapters, 0, mSize);
112 mPartitions[mSize++] = partition;
122 mSize - index - 1);
123 mSize--;
130 for (int i = 0; i < mSize; i++) {
146 for (int i = 0; i < mSize; i++) {
161 return mSize
[all...]
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
H A DPictureSizeCalculator.java54 private final Size mSize; field in class:PictureSizeCalculator.Configuration
58 mSize = size;
74 return mSize;
80 .add("native size", mSize)
97 } else if (!mSize.equals(that.mSize)) {
106 return Objects.hashCode(mSize, mPostCrop);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DAlbumDataLoader.java68 private int mSize = 0; field in class:AlbumDataLoader
137 return mSize;
189 && end - start <= mData.length && end <= mSize);
199 0, Math.max(0, mSize - length));
200 int contentEnd = Math.min(contentStart + length, mSize);
260 info.size = mSize;
286 if (mSize != info.size) {
287 mSize = info.size;
288 if (mDataListener != null) mDataListener.onSizeChanged(mSize);
289 if (mContentEnd > mSize) mContentEn
[all...]
H A DAlbumSetDataLoader.java67 private int mSize; field in class:AlbumSetDataLoader
148 return mSize;
201 && end - start <= mCoverItem.length && end <= mSize);
211 0, Math.max(0, mSize - length));
212 int contentEnd = Math.min(contentStart + length, mSize);
269 info.size = mSize;
288 if (mSize != info.size) {
289 mSize = info.size;
290 if (mDataListener != null) mDataListener.onSizeChanged(mSize);
291 if (mContentEnd > mSize) mContentEn
[all...]
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
H A DSecondaryUserController.java54 private long mSize; field in class:SecondaryUserController
100 mSize = SIZE_NOT_SET;
112 if (mSize != SIZE_NOT_SET) {
113 mStoragePreference.setStorageSize(mSize, mTotalSizeBytes);
145 mSize = size;
147 mStoragePreference.setStorageSize(mSize, mTotalSizeBytes);

Completed in 3083 milliseconds

123