Lines Matching refs:index
35 * An array-like container that knows to return a default value for any unwritten-to index.
49 private int checkIndex(int index) {
50 if (index < 0 || index >= mSize)
52 String.format("Index: %d, Size: %d", index, mSize));
53 return index;
56 DefaultedArray<T> set(int index, T element) {
57 checkIndex(index);
58 mElements.put(index, element);
62 T get(int index) {
63 checkIndex(index);
64 return mElements.get(index, mDefaultValue);
87 int index = mIndex++;
88 return get(index);
128 public DiagnosticEventBuilder addIntSensor(int index, int value) {
129 mIntValues.set(index, value);
130 mBitmask.set(index);
134 public DiagnosticEventBuilder addFloatSensor(int index, float value) {
135 mFloatValues.set(index, value);
136 mBitmask.set(mNumIntSensors + index);