/frameworks/base/core/java/android/text/ |
D | AutoGrowArray.java | 53 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 …]
|
D | PackedObjectVector.java | 32 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 …]
|
D | PackedIntVector.java | 39 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/ |
D | Matrix_Delegate.java | 54 private float mValues[] = new float[MATRIX_SIZE]; field in Matrix_Delegate 87 System.arraycopy(matrix.mValues, 0, mValues, 0, MATRIX_SIZE); in set() 95 System.arraycopy(values, 0, mValues, 0, MATRIX_SIZE); in set() 102 reset(mValues); in reset() 111 if (mValues[k] != ((i==j) ? 1 : 0)) { in isIdentity() 170 return getAffineTransform(mValues); in getAffineTransform() 174 return (mValues[6] != 0 || mValues[7] != 0 || mValues[8] != 1); in hasPerspective() 191 oldDelegate.mValues, 0, in nCreate() 192 newDelegate.mValues, 0, in nCreate() 237 reset(d.mValues); in nReset() [all …]
|
/frameworks/base/core/java/android/util/ |
D | IntArray.java | 34 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 …]
|
D | LongArrayQueue.java | 35 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 …]
|
D | LongArray.java | 38 private long[] mValues; field in LongArray 42 mValues = array; in LongArray() 59 mValues = EmptyArray.LONG; in LongArray() 61 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray() 87 if (newSize <= mValues.length) { in resize() 88 Arrays.fill(mValues, newSize, mValues.length, 0); in resize() 117 System.arraycopy(mValues, index, mValues, index + 1, rightSegment); in add() 120 mValues[index] = value; in add() 130 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll() 140 if (minCapacity >= mValues.length) { in ensureCapacity() [all …]
|
D | LongSparseArray.java | 65 private Object[] mValues; field in LongSparseArray 85 mValues = EmptyArray.OBJECT; in LongSparseArray() 88 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in LongSparseArray() 100 clone.mValues = mValues.clone(); in clone() 123 if (i < 0 || mValues[i] == DELETED) { in get() 126 return (E) mValues[i]; in get() 137 if (mValues[i] != DELETED) { in delete() 138 mValues[i] = DELETED; in delete() 156 if (mValues[i] != DELETED && filter.test(mKeys[i], (E) mValues[i])) { in removeIf() 157 mValues[i] = DELETED; in removeIf() [all …]
|
D | SparseBooleanArray.java | 67 mValues = EmptyArray.BOOLEAN; in SparseBooleanArray() 70 mValues = new boolean[mKeys.length]; in SparseBooleanArray() 81 clone.mValues = mValues.clone(); in clone() 106 return mValues[i]; in get() 118 System.arraycopy(mValues, i + 1, mValues, i, mSize - (i + 1)); in delete() 130 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt() 143 mValues[i] = value; in put() 148 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put() 207 return mValues[index]; in valueAt() 224 mValues[index] = value; in setValueAt() [all …]
|
D | SparseArray.java | 66 private Object[] mValues; field in SparseArray 87 mValues = EmptyArray.OBJECT; in SparseArray() 89 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in SparseArray() 90 mKeys = new int[mValues.length]; in SparseArray() 102 clone.mValues = mValues.clone(); in clone() 136 if (i < 0 || mValues[i] == DELETED) { in get() 139 return (E) mValues[i]; in get() 150 if (mValues[i] != DELETED) { in delete() 151 mValues[i] = DELETED; in delete() 165 if (mValues[i] != DELETED) { in removeReturnOld() [all …]
|
D | SparseLongArray.java | 47 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 …]
|
D | LongSparseLongArray.java | 55 private long[] mValues; field in LongSparseLongArray 76 mValues = EmptyArray.LONG; in LongSparseLongArray() 79 mValues = new long[mKeys.length]; in LongSparseLongArray() 90 clone.mValues = mValues.clone(); in clone() 115 return mValues[i]; in get() 135 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt() 148 mValues[i] = value; in put() 153 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); in put() 212 return mValues[index]; in valueAt() 234 if (mValues[i] == value) in indexOfValue() [all …]
|
D | SparseIntArray.java | 53 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 …]
|
D | SparseDoubleArray.java | 49 private SparseLongArray mValues; field in SparseDoubleArray 64 mValues = new SparseLongArray(initialCapacity); in SparseDoubleArray() 72 clone.mValues = mValues.clone(); in clone() 84 final int index = mValues.indexOfKey(key); in get() 97 mValues.put(key, Double.doubleToRawLongBits(value)); in put() 115 return mValues.size(); in size() 126 return mValues.keyAt(index); in keyAt() 137 return Double.longBitsToDouble(mValues.valueAt(index)); in valueAt()
|
D | KeyValueListParser.java | 32 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/ |
D | SparseWeakArray.java | 64 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/servicestests/src/com/android/server/timezonedetector/ |
D | TestState.java | 34 private final ArrayList<T> mValues = new ArrayList<>(5); field in TestState 38 mValues.clear(); in init() 44 mValues.add(value); in set() 49 return mValues.size() > 0; in hasBeenSet() 67 mInitialValue = mValues.get(mValues.size() - 1); in commitLatest() 68 mValues.clear(); in commitLatest() 88 return mValues.get(mValues.size() - 1); in getLatest() 95 return mValues.size(); in getChangeCount() 105 int size = mValues.size(); in getPrevious() 107 return mValues.get(size - 1 - age); in getPrevious()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | ReferenceWithHistory.java | 63 private ArrayDeque<TimestampedValue<V>> mValues; field in ReferenceWithHistory 78 if (mValues == null || mValues.isEmpty()) { in get() 81 TimestampedValue<V> valueHolder = mValues.getFirst(); in get() 91 if (mValues == null) { in set() 92 mValues = new ArrayDeque<>(mMaxHistorySize); in set() 95 if (mValues.size() >= mMaxHistorySize) { in set() 96 mValues.removeLast(); in set() 103 mValues.addFirst(valueHolder); in set() 112 if (mValues == null) { in dump() 116 for (TimestampedValue<V> valueHolder : mValues) { in dump() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | WrappedSysUiStatsEvent.java | 33 private ArrayList<Object> mValues; field in WrappedSysUiStatsEvent.WrappedBuilder 41 mValues = new ArrayList<>(); in WrappedBuilder() 43 mValues.add(0); // proto fields are 1-based in WrappedBuilder() 88 return index < mValues.size() ? mValues.get(index) : null; in getValue() 93 return (Boolean) mValues.get(index); in getBoolean() 98 return (Integer) mValues.get(index); in getInt() 103 return (String) mValues.get(index); in getString() 107 mLastIndex = mValues.size(); in addValue() 108 mValues.add(value); in addValue()
|
/frameworks/base/core/java/android/animation/ |
D | ObjectAnimator.java | 117 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 …]
|
D | ValueAnimator.java | 259 PropertyValuesHolder[] mValues; field in ValueAnimator 458 if (mValues == null || mValues.length == 0) { in setIntValues() 461 PropertyValuesHolder valuesHolder = mValues[0]; in setIntValues() 486 if (mValues == null || mValues.length == 0) { in setFloatValues() 489 PropertyValuesHolder valuesHolder = mValues[0]; in setFloatValues() 523 if (mValues == null || mValues.length == 0) { in setObjectValues() 526 PropertyValuesHolder valuesHolder = mValues[0]; in setObjectValues() 543 mValues = values; in setValues() 562 return mValues; in getValues() 578 int numValues = mValues.length; in initAnimation() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 41 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/ |
D | RollingBuffer.java | 32 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/ |
D | MotionSensor.java | 39 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/ |
D | TouchAnimator.java | 125 private List<KeyframeSet> mValues = new ArrayList<>(); field in TouchAnimator.Builder 144 mValues.add(keyframeSet); in add() 198 mValues.toArray(new KeyframeSet[mValues.size()]), in build() 230 private final float[] mValues; field in TouchAnimator.FloatKeyframeSet 236 mValues = values; in FloatKeyframeSet() 241 float firstFloat = mValues[index - 1]; in interpolate() 242 float secondFloat = mValues[index]; in interpolate() 248 private final int[] mValues; field in TouchAnimator.IntKeyframeSet 254 mValues = values; in IntKeyframeSet() 259 int firstFloat = mValues[index - 1]; in interpolate() [all …]
|