/aosp14/frameworks/base/core/java/android/content/res/ |
H A D | TypedArray.java | 228 index *= STYLE_NUM_ENTRIES; in getText() 238 if (getValueAt(index, v)) { in getText() 265 index *= STYLE_NUM_ENTRIES; in getString() 275 if (getValueAt(index, v)) { in getString() 304 index *= STYLE_NUM_ENTRIES; in getNonResourceString() 336 index *= STYLE_NUM_ENTRIES; in getNonConfigurationString() 351 if (getValueAt(index, v)) { in getNonConfigurationString() 383 index *= STYLE_NUM_ENTRIES; in getBoolean() 394 if (getValueAt(index, v)) { in getBoolean() 422 index *= STYLE_NUM_ENTRIES; in getInt() [all …]
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | SegmentFinder.java | 132 if (index + 1 < mSegments.length && mSegments[index + 1] == offset) { in findNext() 133 index = index + 1; in findNext() 136 index += 1; in findNext() 140 index = -(index + 1); in findNext() 153 return (index + 1 < mSegments.length) ? mSegments[index + 1] : DONE; in findNext() 170 if (index > 0 && mSegments[index - 1] == offset) { in findPrevious() 171 index = index - 1; in findPrevious() 178 index = -(index + 1) - 1; in findPrevious() 191 return (index > 0) ? mSegments[index - 1] : DONE; in findPrevious() 202 for (int index = 0; index < segments.length; index += 2) { in checkSegmentsValid() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ChildHelper.java | 98 if (index < 0) { in addView() 114 if (index < 0) { in getOffset() 118 int offset = index; in getOffset() 141 if (index < 0) { in removeView() 179 View getChildAt(int index) { in getChildAt() argument 230 if (index < 0) { in attachViewToParent() 298 if (index == -1) { in indexOfChild() 309 return index - mBucket.countOnesBefore(index); in indexOfChild() 374 if (index == -1) { in removeViewIfHidden() 405 void set(int index) { in set() argument [all …]
|
/aosp14/frameworks/base/services/permission/java/com/android/server/permission/access/collection/ |
H A D | IntBooleanMap.kt | 53 action(index, keyAt(index), valueAt(index)) 59 action(index, keyAt(index)) 65 action(index, keyAt(index), valueAt(index)) 71 action(index, valueAt(index)) 77 return if (index >= 0) { 78 valueAt(index) 110 if (index >= 0) { 134 return if (index >= 0) { 136 removeAt(index) 147 removeAt(index) [all …]
|
H A D | IntLongMap.kt | 53 action(index, keyAt(index), valueAt(index)) 59 action(index, keyAt(index)) 65 action(index, keyAt(index), valueAt(index)) 71 action(index, valueAt(index)) 77 return if (index >= 0) { 78 valueAt(index) 110 if (index >= 0) { 134 return if (index >= 0) { 136 removeAt(index) 147 removeAt(index) [all …]
|
H A D | IntMap.kt | 57 action(index, keyAt(index), valueAt(index)) 63 action(index, keyAt(index)) 69 action(index, keyAt(index), valueAt(index)) 75 action(index, valueAt(index)) 87 val index = indexOfKey(key) regex 88 return if (index >= 0) valueAt(index) else defaultValue 111 if (index >= 0) { 132 return if (index >= 0) { 134 removeAt(index) 145 removeAt(index) [all …]
|
H A D | IndexedMap.kt | 57 action(index, keyAt(index), valueAt(index)) 63 action(index, keyAt(index)) 69 action(index, keyAt(index), valueAt(index)) 75 action(index, valueAt(index)) 87 val index = indexOfKey(key) regex 88 return if (index >= 0) valueAt(index) else defaultValue 110 val index = indexOfKey(key) regex 111 if (index >= 0) { 115 removeAt(index) 133 removeAt(index) [all …]
|
H A D | List.kt | 20 forEachIndexed { index, element -> 21 if (!predicate(index, element)) { 29 forEachIndexed { index, element -> 30 if (predicate(index, element)) { 38 for (index in indices) { 39 action(index, this[index]) 44 for (index in lastIndex downTo 0) { 45 action(index, this[index]) 50 forEachIndexed { index, element -> 62 removeAt(index) [all …]
|
H A D | IntSet.kt | 31 fun elementAt(index: Int): Int = array.keyAt(index) 47 fun removeAt(index: Int) { 48 array.removeAt(index) 57 forEachIndexed { index, element -> 66 forEachIndexed { index, element -> 75 for (index in 0 until size) { 76 action(index, elementAt(index)) 82 action(index, elementAt(index)) 98 forEachIndexed { index, element -> 126 removeAt(index) [all …]
|
H A D | IndexedSet.kt | 24 forEachIndexed { index, element -> 33 forEachIndexed { index, element -> 34 if (predicate(index, element)) { 45 inline fun <T> IndexedSet<T>.elementAt(index: Int): T = valueAt(index) 48 for (index in indices) { 49 action(index, elementAt(index)) 54 for (index in lastIndex downTo 0) { 55 action(index, elementAt(index)) 72 forEachIndexed { index, element -> 93 removeAt(index) [all …]
|
H A D | IndexedListSet.kt | 37 fun elementAt(index: Int): T = list[index] 67 fun removeAt(index: Int): T? = list.removeAt(index) 73 forEachIndexed { index, element -> 82 forEachIndexed { index, element -> 91 for (index in indices) { 92 action(index, elementAt(index)) 97 for (index in lastIndex downTo 0) { 98 action(index, elementAt(index)) 115 forEachIndexed { index, element -> 136 removeAt(index) [all …]
|
H A D | IndexedList.kt | 22 forEachIndexed { index, element -> 23 if (!predicate(index, element)) { 31 forEachIndexed { index, element -> 32 if (predicate(index, element)) { 43 for (index in indices) { 44 action(index, this[index]) 49 for (index in lastIndex downTo 0) { 50 action(index, this[index]) 64 forEachIndexed { index, element -> 85 removeAt(index) [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | GrowingArrayUtils.java | 134 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 143 newArray[index] = element; in insert() 144 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert() 155 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 162 newArray[index] = element; in insert() 163 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert() 174 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 181 newArray[index] = element; in insert() 182 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert() 193 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() [all …]
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | ArrayMap.java | 493 return index >= 0 ? (V)mArray[(index<<1)+1] : null; in get() 554 index = (index << 1) + 1; in setValueAt() 580 int index; in put() local 589 index = (index<<1) + 1; in put() 595 index = ~index; in put() 622 System.arraycopy(mHashes, index, mHashes, index + 1, osize - index); in put() 623 System.arraycopy(mArray, index << 1, mArray, (index + 1) << 1, (mSize - index) << 1); in put() 651 if (index > 0 && mHashes[index-1] > hash) { in append() 662 index <<= 1; in append() 797 System.arraycopy(ohashes, index + 1, mHashes, index, nsize - index); in removeAt() [all …]
|
H A D | ArraySet.java | 118 if (index < 0) { in indexOf() 459 int index; in add() local 471 index = ~index; in add() 497 Log.d(TAG, "add: move " + index + "-" + (oSize - index) + " to " + (index + 1)); in add() 499 System.arraycopy(mHashes, index, mHashes, index + 1, oSize - index); in add() 500 System.arraycopy(mArray, index, mArray, index + 1, oSize - index); in add() 526 if (index > 0 && mHashes[index - 1] > hash) { in append() 647 System.arraycopy(ohashes, index + 1, mHashes, index, nSize - index); in removeAt() 648 System.arraycopy(oarray, index + 1, mArray, index, nSize - index); in removeAt() 655 System.arraycopy(mHashes, index + 1, mHashes, index, nSize - index); in removeAt() [all …]
|
H A D | SparseLongArray.java | 132 size = Math.min(size, mSize - index); in removeAtRange() 133 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size)); in removeAtRange() 134 System.arraycopy(mValues, index + size, mValues, index, mSize - (index + size)); in removeAtRange() 141 public void removeAt(int index) { in removeAt() argument 142 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt() 143 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt() 213 public int keyAt(int index) { in keyAt() argument 219 return mKeys[index]; in keyAt() 238 public long valueAt(int index) { in valueAt() argument 244 return mValues[index]; in valueAt() [all …]
|
H A D | XmlPullAttributes.java | 38 public String getAttributeNamespace (int index) { in getAttributeNamespace() argument 39 return mParser.getAttributeNamespace(index); in getAttributeNamespace() 42 public String getAttributeName(int index) { in getAttributeName() argument 43 return mParser.getAttributeName(index); in getAttributeName() 46 public String getAttributeValue(int index) { in getAttributeValue() argument 47 return mParser.getAttributeValue(index); in getAttributeValue() 58 public int getAttributeNameResource(int index) { in getAttributeNameResource() argument 101 public int getAttributeListValue(int index, in getAttributeListValue() argument 109 getAttributeValue(index), defaultValue); in getAttributeBooleanValue() 114 getAttributeValue(index), defaultValue); in getAttributeResourceValue() [all …]
|
/aosp14/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | audio.c | 56 int index, other; in get_empty() local 63 index = empty_index; in get_empty() 72 return index; in get_empty() 81 empty_index = index; in put_empty() 90 int index, other; in get_full() local 97 index = full_index; in get_full() 106 return index; in get_full() 115 full_index = index; in put_full() 167 int index, err; in play_thread() local 172 index = get_full(); in play_thread() [all …]
|
/aosp14/frameworks/base/core/java/android/os/health/ |
H A D | HealthStats.java | 216 if (index < 0) { in getTimer() 220 return new TimerStat(mTimerCounts[index], mTimerTimes[index]); in getTimer() 231 if (index < 0) { in getTimerCount() 246 if (index < 0) { in getTimerTime() 250 return mTimerTimes[index]; in getTimerTime() 270 return mTimerKeys[index]; in getTimerKeyAt() 288 if (index < 0) { in getMeasurement() 330 if (index < 0) { in getStats() 354 return mStatsKeys[index]; in getStatsKeyAt() 372 if (index < 0) { in getTimers() [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiRecordSources.java | 86 data[index++] = (byte) mSourceType; in toByteArray() 88 extraParamToByteArray(data, index); in toByteArray() 166 int toByteArray(byte[] data, int index); in toByteArray() argument 200 index); in toByteArray() 263 index); in toByteArray() 334 data[index + 4] = 0; in toByteArray() 335 data[index + 5] = 0; in toByteArray() 640 data[index] = (byte) mBroadcastType; in extraParamToByteArray() 689 data[index] = (byte) mPlugNumber; in extraParamToByteArray() 743 int index) { in threeFieldsToSixBytes() argument [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/power/ |
H A D | EnergyConsumerStats.java | 144 int index = 0; in writeToParcel() local 209 private String getBucketName(int index) { in getBucketName() argument 210 if (isValidStandardBucket(index)) { in getBucketName() 322 final int index = in.readInt(); in readSummaryFromParcel() local 357 for (int index = 0; index < mAccumulatedChargeMicroCoulomb.length; index++) { in writeSummaryToParcel() 361 out.writeInt(index); in writeSummaryToParcel() 581 for (int index = 0; index < mAccumulatedChargeMicroCoulomb.length; index++) { in containsInterestingData() 604 for (int index = 0; index < numIndices; index++) { in reset() 605 setValueIfSupported(index, 0L); in reset() 641 for (int index = 0; index < mAccumulatedChargeMicroCoulomb.length; index++) { in dump() [all …]
|
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
H A D | RawBatteryStats.java | 122 int index(); in index() method 175 @Field(index=0) 178 @Field(index=1) 181 @Field(index=2) 184 @Field(index=3) 187 @Field(index=4) 190 @Field(index=5) 193 @Field(index=6) 196 @Field(index=7) 199 @Field(index=8) [all …]
|
H A D | CsvParser.java | 83 int index = readPos; in parse() local 85 while (index < amt) { in parse() 86 byte c = buf[index]; in parse() 107 fieldStart = index = index + 1; in parse() 120 index++; in parse() 123 fieldStart = index = index + 1; in parse() 128 buf[escapeIndex] = buf[index]; in parse() 130 index++; in parse() 136 fieldStart = index + 1; in parse() 142 index++; in parse() [all …]
|
/aosp14/frameworks/base/libs/hwui/ |
H A D | ProfileData.cpp | 55 index = ((index - kBucket4msIntervals) >> (index > kBucket4msIntervals)) + kBucket4msIntervals; in frameCountIndexForFrameTime() 56 index = ((index - kBucket2msIntervals) >> (index > kBucket2msIntervals)) + kBucket2msIntervals; in frameCountIndexForFrameTime() 60 index = (index - kBucketMinThreshold) & mask; in frameCountIndexForFrameTime() 61 return index; in frameCountIndexForFrameTime() 66 index = index + kBucketMinThreshold; in frameTimeForFrameCountIndex() 68 index += (index - kBucket2msIntervals); in frameTimeForFrameCountIndex() 73 index += (index - kBucket4msIntervals) + 1; in frameTimeForFrameCountIndex() 75 return index; in frameTimeForFrameCountIndex() 211 return index != 25 ? index + 1 : 4950; in GPUFrameTimeForFrameCountIndex() 216 if (index > 25) { in reportGPUFrame() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/ |
H A D | AppEntitiesHeaderController.java | 127 for (int index = 0; index < MAXIMUM_APPS; index++) { in AppEntitiesHeaderController() 185 mAppEntityInfos[index] = appEntityInfo; in setAppEntity() 196 mAppEntityInfos[index] = null; in removeAppEntity() 206 for (int index = 0; index < MAXIMUM_APPS; index++) { in clearAllAppEntities() 207 removeAppEntity(index); in clearAllAppEntities() 226 for (int index = 0; index < MAXIMUM_APPS; index++) { in apply() 227 bindAppEntityView(index); in apply() 258 private void bindAppEntityView(int index) { in bindAppEntityView() argument 268 mAppTitleViews[index].setVisibility( in bindAppEntityView() 270 mAppTitleViews[index].setText(title); in bindAppEntityView() [all …]
|