Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 2242) sorted by relevance

12345678910>>...90

/frameworks/av/media/module/codecs/amrwb/enc/src/
Dq_pulse.c37 Word32 index; in quant_1p_N1() local
43 index = L_deposit_l((Word16) (pos & mask)); in quant_1p_N1()
46 index = vo_L_add(index, L_deposit_l(1 << N)); /* index += 1 << N; */ in quant_1p_N1()
48 return (index); in quant_1p_N1()
58 Word32 index; in quant_2p_2N1() local
69 index = L_deposit_l(add1((((Word16) (pos1 & mask)) << N), ((Word16) (pos2 & mask)))); in quant_2p_2N1()
73 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1()
78 index = vo_L_add(index, (1L << tmp)); /* index += 1 << (2*N); */ in quant_2p_2N1()
86 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1()
90 index = vo_L_add(index, (1L << tmp)); in quant_2p_2N1()
[all …]
/frameworks/base/core/java/android/text/
DSegmentFinder.java127 int index = Arrays.binarySearch(mSegments, offset); in findNext() local
128 if (index >= 0) { in findNext()
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()
142 if (index >= mSegments.length) return DONE; in findNext()
151 boolean indexIsStart = index % 2 == 0; in findNext()
153 return (index + 1 < mSegments.length) ? mSegments[index + 1] : DONE; in findNext()
155 return mSegments[index]; in findNext()
[all …]
/frameworks/base/core/java/android/content/res/
DTypedArray.java223 public CharSequence getText(@StyleableRes int index) { in getText() argument
228 index *= STYLE_NUM_ENTRIES; in getText()
230 final int type = data[index + STYLE_TYPE]; in getText()
234 return loadStringValueAt(index); in getText()
238 if (getValueAt(index, v)) { in getText()
260 public String getString(@StyleableRes int index) { in getString() argument
265 index *= STYLE_NUM_ENTRIES; in getString()
267 final int type = data[index + STYLE_TYPE]; in getString()
271 return loadStringValueAt(index).toString(); in getString()
275 if (getValueAt(index, v)) { in getString()
[all …]
DElement.java437 private int getResStrMaxLen(@StyleableRes int index) { in getResStrMaxLen() argument
440 return getActionResStrMaxLen(index); in getResStrMaxLen()
442 return getActivityResStrMaxLen(index); in getResStrMaxLen()
444 return getActivityAliasResStrMaxLen(index); in getResStrMaxLen()
446 return getApplicationResStrMaxLen(index); in getResStrMaxLen()
448 return getDataResStrMaxLen(index); in getResStrMaxLen()
450 return getCategoryResStrMaxLen(index); in getResStrMaxLen()
452 return getGrantUriPermissionResStrMaxLen(index); in getResStrMaxLen()
454 return getInstrumentationResStrMaxLen(index); in getResStrMaxLen()
456 return getManifestResStrMaxLen(index); in getResStrMaxLen()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DChildHelper.java96 void addView(View child, int index, boolean hidden) { in addView() argument
98 if (index < 0) { in addView()
101 offset = getOffset(index); in addView()
109 Log.d(TAG, "addViewAt " + index + ",h:" + hidden + ", " + this); in addView()
113 private int getOffset(int index) { in getOffset() argument
114 if (index < 0) { in getOffset()
118 int offset = index; in getOffset()
121 final int diff = index - (offset - removedBefore); in getOffset()
140 int index = mCallback.indexOfChild(view); in removeView() local
141 if (index < 0) { in removeView()
[all …]
/frameworks/proto_logging/stats/stats_log_api_gen/
Dmain.cpp94 int index = 1; in run() local
95 while (index < argc) { in run()
96 if (0 == strcmp("--help", argv[index])) { in run()
99 } else if (0 == strcmp("--cpp", argv[index])) { in run()
100 index++; in run()
101 if (index >= argc) { in run()
105 cppFilename = argv[index]; in run()
106 } else if (0 == strcmp("--header", argv[index])) { in run()
107 index++; in run()
108 if (index >= argc) { in run()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java131 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument
135 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
136 array[index] = element; in insert()
143 System.arraycopy(array, 0, newArray, 0, index); in insert()
144 newArray[index] = element; in insert()
145 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
152 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument
156 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
157 array[index] = element; in insert()
162 System.arraycopy(array, 0, newArray, 0, index); in insert()
[all …]
/frameworks/base/services/permission/java/com/android/server/permission/access/collection/
DSparseLongArrayExtensions.kt22 forEachIndexed { index, key, value -> in <lambda>() method
23 if (!predicate(index, key, value)) { in <lambda>()
31 forEachIndexed { index, key, value -> in anyIndexed() method
32 if (predicate(index, key, value)) { in anyIndexed()
40 for (index in 0 until size) { in forEachIndexed() method
41 action(index, keyAt(index), valueAt(index)) in forEachIndexed()
46 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
47 action(index, keyAt(index), valueAt(index)) in forEachReversedIndexed()
52 val index = indexOfKey(key) in getOrPut() constant
53 return if (index >= 0) { in getOrPut()
[all …]
DSparseIntArrayExtensions.kt22 forEachIndexed { index, key, value -> in <lambda>() method
23 if (!predicate(index, key, value)) { in <lambda>()
31 forEachIndexed { index, key, value -> in anyIndexed() method
32 if (predicate(index, key, value)) { in anyIndexed()
40 for (index in 0 until size) { in forEachIndexed() method
41 action(index, keyAt(index), valueAt(index)) in forEachIndexed()
46 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
47 action(index, keyAt(index), valueAt(index)) in forEachReversedIndexed()
52 val index = indexOfKey(key) in getOrPut() constant
53 return if (index >= 0) { in getOrPut()
[all …]
DSparseBooleanArrayExtensions.kt22 forEachIndexed { index, key, value -> in <lambda>() method
23 if (!predicate(index, key, value)) { in <lambda>()
31 forEachIndexed { index, key, value -> in anyIndexed() method
32 if (predicate(index, key, value)) { in anyIndexed()
40 for (index in 0 until size) { in forEachIndexed() method
41 action(index, keyAt(index), valueAt(index)) in forEachIndexed()
46 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
47 action(index, keyAt(index), valueAt(index)) in forEachReversedIndexed()
52 val index = indexOfKey(key) in getOrPut() constant
53 return if (index >= 0) { in getOrPut()
[all …]
DLongSparseArrayExtensions.kt22 forEachIndexed { index, key, value -> in <lambda>() method
23 if (!predicate(index, key, value)) { in <lambda>()
31 forEachIndexed { index, key, value -> in anyIndexed() method
32 if (predicate(index, key, value)) { in anyIndexed()
40 for (index in 0 until size) { in forEachIndexed() method
41 action(index, keyAt(index), valueAt(index)) in forEachIndexed()
46 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
47 action(index, keyAt(index), valueAt(index)) in forEachReversedIndexed()
52 val index = indexOfKey(key) in getOrPut() constant
53 return if (index >= 0) { in getOrPut()
[all …]
DSparseArrayExtensions.kt22 forEachIndexed { index, key, value -> in <lambda>() method
23 if (!predicate(index, key, value)) { in <lambda>()
31 forEachIndexed { index, key, value -> in anyIndexed() method
32 if (predicate(index, key, value)) { in anyIndexed()
40 for (index in 0 until size) { in forEachIndexed() method
41 action(index, keyAt(index), valueAt(index)) in forEachIndexed()
46 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
47 action(index, keyAt(index), valueAt(index)) in forEachReversedIndexed()
52 val index = indexOfKey(key) in getOrPut() constant
53 return if (index >= 0) { in getOrPut()
[all …]
DListExtensions.kt20 forEachIndexed { index, element -> in <lambda>() method
21 if (!predicate(index, element)) { in <lambda>()
29 forEachIndexed { index, element -> in anyIndexed() method
30 if (predicate(index, element)) { in anyIndexed()
38 for (index in indices) { in forEachIndexed() method
39 action(index, this[index]) in forEachIndexed()
44 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
45 action(index, this[index]) in forEachReversedIndexed()
50 forEachIndexed { index, element -> in noneIndexed() method
51 if (predicate(index, element)) { in noneIndexed()
[all …]
DArraySetExtensions.kt24 forEachIndexed { index, value -> in <lambda>() method
25 if (!predicate(index, value)) { in <lambda>()
33 forEachIndexed { index, value -> in anyIndexed() method
34 if (predicate(index, value)) { in anyIndexed()
42 for (index in 0 until size) { in forEachIndexed() method
43 action(index, valueAt(index)) in forEachIndexed()
48 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
49 action(index, valueAt(index)) in forEachReversedIndexed()
62 forEachIndexed { index, value -> in noneIndexed() method
63 if (predicate(index, value)) { in noneIndexed()
[all …]
/frameworks/av/media/module/codecs/amrwb/dec/src/
Ddec_alg_codebook.cpp118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_1p_N1() argument
127 pos1 = ((index & mask) + offset); in dec_1p_N1()
129 i = ((index >> N) & 1L); /* i = ((index >> N) & 1); */ in dec_1p_N1()
145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_2p_2N1() argument
155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset))); in dec_2p_2N1()
157 i = (index >> tmp) & 1L; /* i = (index >> (2*N)) & 1; */ in dec_2p_2N1()
158 pos2 = add_int16((int16)(index & mask), offset); /* pos2 = ((index & mask) + offset); */ in dec_2p_2N1()
192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_3p_3N1() argument
204 idx = index & mask; in dec_3p_3N1()
209 if (((index >> tmp) & 1L) != 0L) in dec_3p_3N1()
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java109 public void bridgeSetValue(int index, String name, ResourceNamespace namespace, int resourceId, in bridgeSetValue() argument
111 mResourceId[index] = resourceId; in bridgeSetValue()
112 mResourceData[index] = value; in bridgeSetValue()
113 mNames[index] = name; in bridgeSetValue()
114 mNamespaces[index] = namespace; in bridgeSetValue()
158 int index = 1; in sealArray() local
161 mIndices[index++] = i; in sealArray()
198 public CharSequence getText(int index) { in getText() argument
199 if (!hasValue(index)) { in getText()
205 Integer v = resolveEnumAttribute(index); in getText()
[all …]
/frameworks/libs/modules-utils/java/com/android/modules/utils/
DTypedXmlPullParser.java51 final int index = getAttributeIndex(namespace, name); in getAttributeIndexOrThrow() local
52 if (index == -1) { in getAttributeIndexOrThrow()
55 return index; in getAttributeIndexOrThrow()
63 @NonNull byte[] getAttributeBytesHex(int index) throws XmlPullParserException; in getAttributeBytesHex() argument
69 @NonNull byte[] getAttributeBytesBase64(int index) throws XmlPullParserException; in getAttributeBytesBase64() argument
75 int getAttributeInt(int index) throws XmlPullParserException; in getAttributeInt() argument
81 int getAttributeIntHex(int index) throws XmlPullParserException; in getAttributeIntHex() argument
87 long getAttributeLong(int index) throws XmlPullParserException; in getAttributeLong() argument
93 long getAttributeLongHex(int index) throws XmlPullParserException; in getAttributeLongHex() argument
99 float getAttributeFloat(int index) throws XmlPullParserException; in getAttributeFloat() argument
[all …]
/frameworks/base/core/java/android/util/
DArrayMap.java148 int index = binarySearchHashes(mHashes, N, hash); in indexOf() local
151 if (index < 0) { in indexOf()
152 return index; in indexOf()
156 if (key.equals(mArray[index<<1])) { in indexOf()
157 return index; in indexOf()
162 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
167 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
187 int index = binarySearchHashes(mHashes, N, 0); in indexOfNull() local
190 if (index < 0) { in indexOfNull()
191 return index; in indexOfNull()
[all …]
DArraySet.java114 int index = binarySearch(mHashes, hash); in indexOf() local
117 if (index < 0) { in indexOf()
118 return index; in indexOf()
122 if (key.equals(mArray[index])) { in indexOf()
123 return index; in indexOf()
128 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
133 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
153 int index = binarySearch(mHashes, 0); in indexOfNull() local
156 if (index < 0) { in indexOfNull()
157 return index; in indexOfNull()
[all …]
DSparseLongArray.java130 public void removeAtRange(int index, int size) { in removeAtRange() argument
131 size = Math.min(size, mSize - index); in removeAtRange()
132 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size)); in removeAtRange()
133 System.arraycopy(mValues, index + size, mValues, index, mSize - (index + size)); in removeAtRange()
140 public void removeAt(int index) { in removeAt() argument
141 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
142 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
212 public int keyAt(int index) { in keyAt() argument
213 if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { in keyAt()
216 throw new ArrayIndexOutOfBoundsException(index); in keyAt()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAnswerToReset.java99 int index = startIndex + 1; in parseHistoricalBytes() local
100 while (index < startIndex + length && index > 0) { in parseHistoricalBytes()
101 index = parseLtvNode(index, nodes, originalData, startIndex + length - 1); in parseHistoricalBytes()
103 if (index < 0) { in parseHistoricalBytes()
118 int index, ArrayMap<Integer, byte[]> nodes, byte[] data, int lastByteIndex) { in parseLtvNode() argument
119 if (index > lastByteIndex) { in parseLtvNode()
122 int tag = (data[index] & TAG_MASK) >> 4; in parseLtvNode()
123 int length = data[index++] & LENGTH_MASK; in parseLtvNode()
124 if (index + length > lastByteIndex + 1 || length == 0) { in parseLtvNode()
128 System.arraycopy(data, index, value, 0, length); in parseLtvNode()
[all …]
/frameworks/base/services/permission/java/com/android/server/permission/access/immutable/
DIntMapExtensions.kt20 forEachIndexed { index, key, value -> in <lambda>() method
21 if (!predicate(index, key, value)) { in <lambda>()
29 forEachIndexed { index, key, value -> in anyIndexed() method
30 if (predicate(index, key, value)) { in anyIndexed()
38 forEachIndexed { index, key, value -> in firstNotNullOfOrNullIndexed() method
39 transform(index, key, value)?.let { in firstNotNullOfOrNullIndexed()
47 for (index in 0 until size) { in forEachIndexed() method
48 action(index, keyAt(index), valueAt(index)) in forEachIndexed()
53 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
54 action(index, keyAt(index), valueAt(index)) in forEachReversedIndexed()
[all …]
DIntMap.kt34 fun keyAt(index: Int): Int = array.keyAt(index) in isEmpty()
36 fun valueAt(index: Int): T = array.valueAt(index) in isEmpty()
55 fun putAt(index: Int, value: T): T = array.setValueAtReturnOld(index, value) in isEmpty()
57 fun removeAt(index: Int): T = array.removeAtReturnOld(index).also { array.gc() } in isEmpty()
61 val index = indexOfKey(key) in putReturnOld() constant
62 return if (index >= 0) { in putReturnOld()
63 val oldValue = valueAt(index) in putReturnOld()
64 setValueAt(index, value) in putReturnOld()
75 val index = indexOfKey(key) in removeReturnOld() constant
76 return if (index >= 0) { in removeReturnOld()
[all …]
DIndexedMapExtensions.kt20 forEachIndexed { index, key, value -> in <lambda>() method
21 if (!predicate(index, key, value)) { in <lambda>()
29 forEachIndexed { index, key, value -> in anyIndexed() method
30 if (predicate(index, key, value)) { in anyIndexed()
38 forEachIndexed { index, key, value -> in firstNotNullOfOrNullIndexed() method
39 transform(index, key, value)?.let { in firstNotNullOfOrNullIndexed()
47 for (index in 0 until size) { in forEachIndexed() method
48 action(index, keyAt(index), valueAt(index)) in forEachIndexed()
53 for (index in lastIndex downTo 0) { in forEachReversedIndexed() method
54 action(index, keyAt(index), valueAt(index)) in forEachReversedIndexed()
[all …]
/frameworks/base/libs/usb/tests/accessorytest/
Daudio.c56 int index, other; in get_empty() local
63 index = empty_index; in get_empty()
64 other = (index == 0 ? 1 : 0); in get_empty()
65 buffer_states[index] = BUFFER_BUSY; in get_empty()
72 return index; in get_empty()
75 static void put_empty(int index) in put_empty() argument
79 buffer_states[index] = BUFFER_EMPTY; in put_empty()
81 empty_index = index; in put_empty()
90 int index, other; in get_full() local
97 index = full_index; in get_full()
[all …]

12345678910>>...90