Home
last modified time | relevance | path

Searched refs:mValues (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/core/java/android/text/
DAutoGrowArray.java53 private @NonNull byte[] mValues; field in AutoGrowArray.ByteArray
68 mValues = EmptyArray.BYTE; in ByteArray()
70 mValues = ArrayUtils.newUnpaddedByteArray(initialCapacity); in ByteArray()
80 if (newSize > mValues.length) { in resize()
91 mValues[mSize++] = value; in append()
99 if (requestedSize >= mValues.length) { in ensureCapacity()
102 System.arraycopy(mValues, 0, newValues, 0, mSize); in ensureCapacity()
103 mValues = newValues; in ensureCapacity()
120 if (mValues.length > MAX_CAPACITY_TO_BE_KEPT) { in clearWithReleasingLargeArray()
121 mValues = EmptyArray.BYTE; in clearWithReleasingLargeArray()
[all …]
DPackedObjectVector.java32 private Object[] mValues; field in PackedObjectVector
38 mValues = EmptyArray.OBJECT; in PackedObjectVector()
51 Object value = mValues[row * mColumns + column]; in getValue()
62 mValues[row * mColumns + column] = value; in setValue()
119 System.arraycopy(mValues, 0, newvalues, 0, mColumns * mRowGapStart); in growBuffer()
120 …System.arraycopy(mValues, (mRows - after) * mColumns, newvalues, (newsize - after) * mColumns, aft… in growBuffer()
124 mValues = newvalues; in growBuffer()
143 Object val = mValues[i * mColumns + j]; in moveRowGapTo()
145 mValues[destrow * mColumns + j] = val; in moveRowGapTo()
159 Object val = mValues[i * mColumns + j]; in moveRowGapTo()
[all …]
DPackedIntVector.java39 private int[] mValues; field in PackedIntVector
55 mValues = null; in PackedIntVector()
82 int value = mValues[row * columns + column]; in getValue()
116 mValues[row * mColumns + column] = value; in setValue()
137 mValues[row * mColumns + column] = value; in setValueInternal()
269 if (mValues != null) { in growBuffer()
270 System.arraycopy(mValues, 0, newvalues, 0, columns * rowgapstart); in growBuffer()
271 System.arraycopy(mValues, (mRows - after) * columns, in growBuffer()
288 mValues = newvalues; in growBuffer()
297 final int[] values = mValues; in moveValueGapTo()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DMatrix_Delegate.java55 private float mValues[] = new float[MATRIX_SIZE]; field in Matrix_Delegate
88 System.arraycopy(matrix.mValues, 0, mValues, 0, MATRIX_SIZE); in set()
96 System.arraycopy(values, 0, mValues, 0, MATRIX_SIZE); in set()
103 reset(mValues); in reset()
112 if (mValues[k] != ((i==j) ? 1 : 0)) { in isIdentity()
171 return getAffineTransform(mValues); in getAffineTransform()
175 return (mValues[6] != 0 || mValues[7] != 0 || mValues[8] != 1); in hasPerspective()
192 oldDelegate.mValues, 0, in nCreate()
193 newDelegate.mValues, 0, in nCreate()
238 reset(d.mValues); in nReset()
[all …]
/frameworks/base/core/java/android/util/
DIntArray.java34 private int[] mValues; field in IntArray
38 mValues = array; in IntArray()
54 mValues = EmptyArray.INT; in IntArray()
56 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray()
82 if (newSize <= mValues.length) { in resize()
83 Arrays.fill(mValues, newSize, mValues.length, 0); in resize()
111 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
114 mValues[index] = value; in add()
132 return ContainerHelpers.binarySearch(mValues, mSize, value); in binarySearch()
142 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
[all …]
DLongArrayQueue.java35 private long[] mValues; field in LongArrayQueue
47 mValues = EmptyArray.LONG; in LongArrayQueue()
49 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArrayQueue()
63 if (mSize < mValues.length) { in grow()
68 final int r = mValues.length - mHead; // Number of elements on and to the right of head. in grow()
69 System.arraycopy(mValues, mHead, newArray, 0, r); in grow()
70 System.arraycopy(mValues, 0, newArray, r, mHead); in grow()
71 mValues = newArray; in grow()
97 if (mSize == mValues.length) { in addLast()
100 mValues[mTail] = value; in addLast()
[all …]
DLongArray.java37 private long[] mValues; field in LongArray
41 mValues = array; in LongArray()
58 mValues = EmptyArray.LONG; in LongArray()
60 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray()
86 if (newSize <= mValues.length) { in resize()
87 Arrays.fill(mValues, newSize, mValues.length, 0); in resize()
116 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
119 mValues[index] = value; in add()
129 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
139 if (minCapacity >= mValues.length) { in ensureCapacity()
[all …]
DSparseArray.java63 private Object[] mValues; field in SparseArray
84 mValues = EmptyArray.OBJECT; in SparseArray()
86 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in SparseArray()
87 mKeys = new int[mValues.length]; in SparseArray()
99 clone.mValues = mValues.clone(); in clone()
122 if (i < 0 || mValues[i] == DELETED) { in get()
125 return (E) mValues[i]; in get()
136 if (mValues[i] != DELETED) { in delete()
137 mValues[i] = DELETED; in delete()
151 if (mValues[i] != DELETED) { in removeReturnOld()
[all …]
DLongSparseArray.java57 private Object[] mValues; field in LongSparseArray
77 mValues = EmptyArray.OBJECT; in LongSparseArray()
80 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in LongSparseArray()
92 clone.mValues = mValues.clone(); in clone()
115 if (i < 0 || mValues[i] == DELETED) { in get()
118 return (E) mValues[i]; in get()
129 if (mValues[i] != DELETED) { in delete()
130 mValues[i] = DELETED; in delete()
157 if (mValues[index] != DELETED) { in removeAt()
158 mValues[index] = DELETED; in removeAt()
[all …]
DSparseBooleanArray.java66 mValues = EmptyArray.BOOLEAN; in SparseBooleanArray()
69 mValues = new boolean[mKeys.length]; in SparseBooleanArray()
80 clone.mValues = mValues.clone(); in clone()
105 return mValues[i]; in get()
117 System.arraycopy(mValues, i + 1, mValues, i, mSize - (i + 1)); in delete()
129 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
142 mValues[i] = value; in put()
147 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
206 return mValues[index]; in valueAt()
223 mValues[index] = value; in setValueAt()
[all …]
DSparseLongArray.java47 private long[] mValues; field in SparseLongArray
67 mValues = EmptyArray.LONG; in SparseLongArray()
69 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseLongArray()
70 mKeys = new int[mValues.length]; in SparseLongArray()
81 clone.mValues = mValues.clone(); in clone()
106 return mValues[i]; in get()
134 System.arraycopy(mValues, index + size, mValues, index, mSize - (index + size)); in removeAtRange()
143 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
156 mValues[i] = value; in put()
161 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
[all …]
DLongSparseLongArray.java53 private long[] mValues; field in LongSparseLongArray
74 mValues = EmptyArray.LONG; in LongSparseLongArray()
77 mValues = new long[mKeys.length]; in LongSparseLongArray()
88 clone.mValues = mValues.clone(); in clone()
113 return mValues[i]; in get()
133 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
146 mValues[i] = value; in put()
151 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
210 return mValues[index]; in valueAt()
232 if (mValues[i] == value) in indexOfValue()
[all …]
DSparseIntArray.java53 private int[] mValues; field in SparseIntArray
74 mValues = EmptyArray.INT; in SparseIntArray()
77 mValues = new int[mKeys.length]; in SparseIntArray()
88 clone.mValues = mValues.clone(); in clone()
113 return mValues[i]; in get()
133 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
146 mValues[i] = value; in put()
151 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
210 return mValues[index]; in valueAt()
227 mValues[index] = value; in setValueAt()
[all …]
DKeyValueListParser.java32 private final ArrayMap<String, String> mValues = new ArrayMap<>(); field in KeyValueListParser
55 mValues.clear(); in setString()
61 mValues.clear(); in setString()
65 mValues.put(pair.substring(0, sep).trim(), pair.substring(sep + 1).trim()); in setString()
77 String value = mValues.get(key); in getInt()
95 String value = mValues.get(key); in getLong()
113 String value = mValues.get(key); in getFloat()
131 String value = mValues.get(key); in getString()
145 String value = mValues.get(key); in getBoolean()
166 String value = mValues.get(key); in getIntArray()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java64 mValues = new WeakReference[mKeys.length]; in SparseWeakArray()
83 if (i < 0 || mValues[i] == DELETED || mValues[i].get() == null) { in get()
86 return (E) mValues[i].get(); in get()
97 if (mValues[i] != DELETED) { in delete()
98 mValues[i] = DELETED; in delete()
115 if (mValues[index] != DELETED) { in removeAt()
116 mValues[index] = DELETED; in removeAt()
125 WeakReference<?>[] values = mValues; in gc()
155 mValues[i] = new WeakReference(value); in put()
159 if (i < mSize && (mValues[i] == DELETED || mValues[i].get() == null)) { in put()
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DReferenceWithHistory.java57 private LinkedList<V> mValues; field in ReferenceWithHistory
72 return (mValues == null || mValues.isEmpty()) ? null : mValues.getFirst(); in get()
78 if (mValues == null) { in set()
79 mValues = new LinkedList<>(); in set()
84 mValues.addFirst(newValue); in set()
85 if (mValues.size() > mMaxHistorySize) { in set()
86 mValues.removeLast(); in set()
95 if (mValues == null) { in dump()
99 for (V value : mValues) { in dump()
111 return mValues == null ? 0 : mValues.size(); in getHistoryCount()
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp55 mValues = event.mValues; in LogEvent()
70 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.uids[i]))); in LogEvent()
72 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.tags[i]))); in LogEvent()
73 mValues.back().mField.decorateLastPos(2); in LogEvent()
75 mValues.back().mField.decorateLastPos(1); in LogEvent()
82 mValues.push_back( in LogEvent()
86 mValues.push_back( in LogEvent()
90 mValues.push_back(FieldValue( in LogEvent()
94 mValues.push_back(FieldValue( in LogEvent()
98 mValues.push_back( in LogEvent()
[all …]
/frameworks/base/core/java/android/os/
DStatsLogEventWrapper.java42 List<Object> mValues = new ArrayList<>(); field in StatsLogEventWrapper
88 mValues.add(val); in writeInt()
96 mValues.add(val); in writeLong()
105 mValues.add(val == null ? "" : val); in writeString()
113 mValues.add(val); in writeFloat()
121 mValues.add(val); in writeStorage()
129 mValues.add(val ? 1 : 0); in writeBoolean()
174 out.writeInt((int) mValues.get(i)); in writeToParcel()
177 out.writeLong((long) mValues.get(i)); in writeToParcel()
180 out.writeFloat((float) mValues.get(i)); in writeToParcel()
[all …]
/frameworks/base/core/java/android/content/
DContentProviderOperation.java56 private final ContentValues mValues; field in ContentProviderOperation
72 mValues = builder.mValues; in ContentProviderOperation()
85 mValues = source.readInt() != 0 ? ContentValues.CREATOR.createFromParcel(source) : null; in ContentProviderOperation()
109 mValues = cpo.mValues; in ContentProviderOperation()
122 if (mValues != null) { in writeToParcel()
124 mValues.writeToParcel(dest, 0); in writeToParcel()
394 return mValues; in resolveValueBackReferences()
397 if (mValues == null) { in resolveValueBackReferences()
400 values = new ContentValues(mValues); in resolveValueBackReferences()
451 ", mValues: " + mValues + in toString()
[all …]
/frameworks/base/core/java/android/animation/
DObjectAnimator.java117 if (mValues != null) { in setPropertyName()
118 PropertyValuesHolder valuesHolder = mValues[0]; in setPropertyName()
139 if (mValues != null) { in setProperty()
140 PropertyValuesHolder valuesHolder = mValues[0]; in setProperty()
177 } else if (mValues != null && mValues.length > 0) { in getPropertyName()
178 for (int i = 0; i < mValues.length; ++i) { in getPropertyName()
184 propertyName += mValues[i].getPropertyName(); in getPropertyName()
762 if (mValues == null || mValues.length == 0) { in setIntValues()
777 if (mValues == null || mValues.length == 0) { in setFloatValues()
792 if (mValues == null || mValues.length == 0) { in setObjectValues()
[all …]
DValueAnimator.java258 PropertyValuesHolder[] mValues; field in ValueAnimator
452 if (mValues == null || mValues.length == 0) { in setIntValues()
455 PropertyValuesHolder valuesHolder = mValues[0]; in setIntValues()
480 if (mValues == null || mValues.length == 0) { in setFloatValues()
483 PropertyValuesHolder valuesHolder = mValues[0]; in setFloatValues()
517 if (mValues == null || mValues.length == 0) { in setObjectValues()
520 PropertyValuesHolder valuesHolder = mValues[0]; in setObjectValues()
537 mValues = values; in setValues()
556 return mValues; in getValues()
572 int numValues = mValues.length; in initAnimation()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java41 private float[] mValues = new float[3]; field in MotionSensorWTime
80 synchronized(mValues) { in onSensorChanged()
81 mValues[0] = event.values[0]; in onSensorChanged()
82 mValues[1] = event.values[1]; in onSensorChanged()
83 mValues[2] = event.values[2]; in onSensorChanged()
91 synchronized(mValues) { in onProcess()
93 mTemp[0][mCounter] = mValues[0]; in onProcess()
94 mTemp[1][mCounter] = mValues[1]; in onProcess()
95 mTemp[2][mCounter] = mValues[2]; in onProcess()
/frameworks/base/services/core/java/com/android/server/display/utils/
DRollingBuffer.java32 private float[] mValues; field in RollingBuffer
37 mValues = new float[INITIAL_SIZE]; in RollingBuffer()
54 mValues[mEnd] = value; in add()
98 return mValues[offsetOf(index)]; in getValue()
143 sb.append(mValues[index] + " @ " + mTimes[index]); in toString()
166 System.arraycopy(mValues, mStart, values, 0, mCount - mStart); in expandBuffer()
167 System.arraycopy(mValues, 0, values, mCount - mStart, mStart); in expandBuffer()
172 mValues = values; in expandBuffer()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java39 private float[] mValues = new float[3]; field in MotionSensor
74 synchronized(mValues) { in onSensorChanged()
75 mValues[0] = event.values[0]; in onSensorChanged()
76 mValues[1] = event.values[1]; in onSensorChanged()
77 mValues[2] = event.values[2]; in onSensorChanged()
85 synchronized(mValues) { in onProcess()
86 outFrame.setValues(mValues); in onProcess()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTouchAnimator.java124 private List<KeyframeSet> mValues = new ArrayList<>(); field in TouchAnimator.Builder
143 mValues.add(keyframeSet); in add()
197 mValues.toArray(new KeyframeSet[mValues.size()]), in build()
229 private final float[] mValues; field in TouchAnimator.FloatKeyframeSet
235 mValues = values; in FloatKeyframeSet()
240 float firstFloat = mValues[index - 1]; in interpolate()
241 float secondFloat = mValues[index]; in interpolate()
247 private final int[] mValues; field in TouchAnimator.IntKeyframeSet
253 mValues = values; in IntKeyframeSet()
258 int firstFloat = mValues[index - 1]; in interpolate()
[all …]

1234