Home
last modified time | relevance | path

Searched refs:mValues (Results 1 – 25 of 89) 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/base/core/java/android/util/
DIntArray.java33 private int[] mValues; field in IntArray
37 mValues = array; in IntArray()
53 mValues = EmptyArray.INT; in IntArray()
55 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray()
81 if (newSize <= mValues.length) { in resize()
82 Arrays.fill(mValues, newSize, mValues.length, 0); in resize()
110 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add()
113 mValues[index] = value; in add()
131 return ContainerHelpers.binarySearch(mValues, mSize, value); in binarySearch()
141 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
[all …]
DLongArrayQueue.java34 private long[] mValues; field in LongArrayQueue
46 mValues = EmptyArray.LONG; in LongArrayQueue()
48 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArrayQueue()
62 if (mSize < mValues.length) { in grow()
67 final int r = mValues.length - mHead; // Number of elements on and to the right of head. in grow()
68 System.arraycopy(mValues, mHead, newArray, 0, r); in grow()
69 System.arraycopy(mValues, 0, newArray, r, mHead); in grow()
70 mValues = newArray; in grow()
96 if (mSize == mValues.length) { in addLast()
99 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 …]
DSparseLongArray.java46 private long[] mValues; field in SparseLongArray
66 mValues = EmptyArray.LONG; in SparseLongArray()
68 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseLongArray()
69 mKeys = new int[mValues.length]; in SparseLongArray()
80 clone.mValues = mValues.clone(); in clone()
105 return mValues[i]; in get()
133 System.arraycopy(mValues, index + size, mValues, index, mSize - (index + size)); in removeAtRange()
142 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
155 mValues[i] = value; in put()
160 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
[all …]
DSparseArray.java65 private Object[] mValues; field in SparseArray
86 mValues = EmptyArray.OBJECT; in SparseArray()
88 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in SparseArray()
89 mKeys = new int[mValues.length]; in SparseArray()
101 clone.mValues = mValues.clone(); in clone()
135 if (i < 0 || mValues[i] == DELETED) { in get()
138 return (E) mValues[i]; in get()
149 if (mValues[i] != DELETED) { in delete()
150 mValues[i] = DELETED; in delete()
164 if (mValues[i] != DELETED) { in removeReturnOld()
[all …]
DSparseDoubleArray.java50 private SparseLongArray mValues; field in SparseDoubleArray
65 mValues = new SparseLongArray(initialCapacity); in SparseDoubleArray()
73 clone.mValues = mValues.clone(); in clone()
93 final int index = mValues.indexOfKey(key); in get()
106 mValues.put(key, Double.doubleToRawLongBits(value)); in put()
124 return mValues.size(); in size()
133 return mValues.indexOfKey(key); in indexOfKey()
144 return mValues.keyAt(index); in keyAt()
155 return Double.longBitsToDouble(mValues.valueAt(index)); in valueAt()
169 mValues.setValueAt(index, Double.doubleToRawLongBits(value)); in setValueAt()
[all …]
DLongSparseArray.java64 private Object[] mValues; field in LongSparseArray
84 mValues = EmptyArray.OBJECT; in LongSparseArray()
87 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in LongSparseArray()
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()
155 if (mValues[i] != DELETED && filter.test(mKeys[i], (E) mValues[i])) { in removeIf()
156 mValues[i] = DELETED; in removeIf()
[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 …]
DLongSparseLongArray.java54 private long[] mValues; field in LongSparseLongArray
75 mValues = EmptyArray.LONG; in LongSparseLongArray()
78 mValues = new long[mKeys.length]; in LongSparseLongArray()
89 clone.mValues = mValues.clone(); in clone()
114 return mValues[i]; in get()
134 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
147 mValues[i] = value; in put()
152 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
211 return mValues[index]; in valueAt()
233 if (mValues[i] == value) in indexOfValue()
[all …]
DSparseIntArray.java52 private int[] mValues; field in SparseIntArray
73 mValues = EmptyArray.INT; in SparseIntArray()
76 mValues = new int[mKeys.length]; in SparseIntArray()
87 clone.mValues = mValues.clone(); in clone()
112 return mValues[i]; in get()
132 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
145 mValues[i] = value; in put()
150 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put()
209 return mValues[index]; in valueAt()
226 mValues[index] = value; in setValueAt()
[all …]
DKeyValueListParser.java33 private final ArrayMap<String, String> mValues = new ArrayMap<>(); field in KeyValueListParser
56 mValues.clear(); in setString()
62 mValues.clear(); in setString()
66 mValues.put(pair.substring(0, sep).trim(), pair.substring(sep + 1).trim()); in setString()
78 String value = mValues.get(key); in getInt()
96 String value = mValues.get(key); in getLong()
114 String value = mValues.get(key); in getFloat()
132 String value = mValues.get(key); in getString()
146 String value = mValues.get(key); in getBoolean()
167 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()
156 mValues[i] = new WeakReference(value); in put()
160 if (i < mSize && (mValues[i] == DELETED || mValues[i].get() == null)) { in put()
[all …]
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DTestState.java35 private final ArrayList<T> mValues = new ArrayList<>(5); field in TestState
39 mValues.clear(); in init()
45 mValues.add(value); in set()
50 return mValues.size() > 0; in hasBeenSet()
68 mInitialValue = mValues.get(mValues.size() - 1); in commitLatest()
69 mValues.clear(); in commitLatest()
85 assertEquals(Arrays.asList(expected), mValues); in assertChanges() local
94 return mValues.get(mValues.size() - 1); in getLatest()
101 return mValues.size(); in getChangeCount()
111 int size = mValues.size(); in getPrevious()
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DReferenceWithHistory.java64 private ArrayDeque<TimestampedValue<V>> mValues; field in ReferenceWithHistory
79 if (mValues == null || mValues.isEmpty()) { in get()
82 TimestampedValue<V> valueHolder = mValues.getFirst(); in get()
92 if (mValues == null) { in set()
93 mValues = new ArrayDeque<>(mMaxHistorySize); in set()
96 if (mValues.size() >= mMaxHistorySize) { in set()
97 mValues.removeLast(); in set()
104 mValues.addFirst(valueHolder); in set()
113 if (mValues == null) { in dump()
116 int i = mSetCount - mValues.size(); in dump()
[all …]
/frameworks/base/core/java/android/companion/virtual/sensor/
DVirtualSensorEvent.java36 private float[] mValues; field in VirtualSensorEvent
40 mValues = values; in VirtualSensorEvent()
46 mValues = new float[valuesLength]; in VirtualSensorEvent()
47 parcel.readFloatArray(mValues); in VirtualSensorEvent()
53 parcel.writeInt(mValues.length); in writeToParcel()
54 parcel.writeFloatArray(mValues); in writeToParcel()
72 return mValues; in getValues()
91 private float[] mValues; field in VirtualSensorEvent.Builder
101 mValues = values; in Builder()
109 if (mValues == null || mValues.length == 0) { in build()
[all …]
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/
DIntMap.java27 private ArrayList<T> mValues; field in IntMap
33 mValues = new ArrayList<T>(DEFAULT_CAPACITY); in IntMap()
35 mValues.add(null); in IntMap()
41 mValues.clear(); in clear()
58 return mValues.get(index); in get()
74 oldValue = mValues.get(index); in insert()
77 mValues.set(index, value); in insert()
98 ArrayList<T> oldValues = mValues; in resize()
103 mValues = new ArrayList<T>(oldKeys.length * 2); in resize()
105 mValues.add(null); in resize()
/frameworks/base/core/java/android/animation/
DObjectAnimator.java111 if (mValues != null) { in setPropertyName()
112 PropertyValuesHolder valuesHolder = mValues[0]; in setPropertyName()
133 if (mValues != null) { in setProperty()
134 PropertyValuesHolder valuesHolder = mValues[0]; in setProperty()
171 } else if (mValues != null && mValues.length > 0) { in getPropertyName()
172 for (int i = 0; i < mValues.length; ++i) { in getPropertyName()
178 propertyName += mValues[i].getPropertyName(); in getPropertyName()
756 if (mValues == null || mValues.length == 0) { in setIntValues()
771 if (mValues == null || mValues.length == 0) { in setFloatValues()
786 if (mValues == null || mValues.length == 0) { in setObjectValues()
[all …]
DValueAnimator.java263 PropertyValuesHolder[] mValues; field in ValueAnimator
535 if (mValues == null || mValues.length == 0) { in setIntValues()
538 PropertyValuesHolder valuesHolder = mValues[0]; in setIntValues()
563 if (mValues == null || mValues.length == 0) { in setFloatValues()
566 PropertyValuesHolder valuesHolder = mValues[0]; in setFloatValues()
600 if (mValues == null || mValues.length == 0) { in setObjectValues()
603 PropertyValuesHolder valuesHolder = mValues[0]; in setObjectValues()
620 mValues = values; in setValues()
639 return mValues; in getValues()
655 if (mValues != null) { 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.java134 private List<KeyframeSet> mValues = new ArrayList<>(); field in TouchAnimator.Builder
155 mValues.add(keyframeSet); in add()
210 mValues.toArray(new KeyframeSet[mValues.size()]), in build()
242 private final float[] mValues; field in TouchAnimator.FloatKeyframeSet
248 mValues = values; in FloatKeyframeSet()
253 float firstFloat = mValues[index - 1]; in interpolate()
254 float secondFloat = mValues[index]; in interpolate()
260 private final int[] mValues; field in TouchAnimator.IntKeyframeSet
266 mValues = values; in IntKeyframeSet()
271 int firstFloat = mValues[index - 1]; in interpolate()
[all …]

1234