Home
last modified time | relevance | path

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

12345678910>>...68

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dq_pulse.c36 Word32 index; in quant_1p_N1() local
42 index = L_deposit_l((Word16) (pos & mask)); in quant_1p_N1()
45 index = vo_L_add(index, L_deposit_l(1 << N)); /* index += 1 << N; */ in quant_1p_N1()
47 return (index); in quant_1p_N1()
57 Word32 index; in quant_2p_2N1() local
68 index = L_deposit_l(add1((((Word16) (pos1 & mask)) << N), ((Word16) (pos2 & mask)))); in quant_2p_2N1()
72 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1()
77 index = vo_L_add(index, (1L << tmp)); /* index += 1 << (2*N); */ in quant_2p_2N1()
85 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1()
89 index = vo_L_add(index, (1L << tmp)); in quant_2p_2N1()
[all …]
/frameworks/base/core/java/android/content/res/
DTypedArray.java164 public CharSequence getText(@StyleableRes int index) { in getText() argument
169 index *= AssetManager.STYLE_NUM_ENTRIES; in getText()
171 final int type = data[index+AssetManager.STYLE_TYPE]; in getText()
175 return loadStringValueAt(index); in getText()
179 if (getValueAt(index, v)) { in getText()
201 public String getString(@StyleableRes int index) { in getString() argument
206 index *= AssetManager.STYLE_NUM_ENTRIES; in getString()
208 final int type = data[index+AssetManager.STYLE_TYPE]; in getString()
212 return loadStringValueAt(index).toString(); in getString()
216 if (getValueAt(index, v)) { in getString()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DTintTypedArray.java73 public Drawable getDrawable(int index) { in getDrawable() argument
74 if (mWrapped.hasValue(index)) { in getDrawable()
75 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawable()
80 return mWrapped.getDrawable(index); in getDrawable()
83 public Drawable getDrawableIfKnown(int index) { in getDrawableIfKnown() argument
84 if (mWrapped.hasValue(index)) { in getDrawableIfKnown()
85 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawableIfKnown()
111 public Typeface getFont(@StyleableRes int index, int style, @NonNull TextView targetView) { in getFont() argument
112 final int resourceId = mWrapped.getResourceId(index, 0); in getFont()
138 public CharSequence getText(int index) { in getText() argument
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/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/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/support/v7/appcompat/src/android/support/v7/content/res/
DGrowingArrayUtils.java109 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument
113 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
114 array[index] = element; in insert()
120 System.arraycopy(array, 0, newArray, 0, index); in insert()
121 newArray[index] = element; in insert()
122 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
129 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument
133 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
134 array[index] = element; in insert()
139 System.arraycopy(array, 0, newArray, 0, index); in insert()
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java104 public void bridgeSetValue(int index, String name, boolean isFramework, int resourceId, in bridgeSetValue() argument
106 mResourceId[index] = resourceId; in bridgeSetValue()
107 mResourceData[index] = value; in bridgeSetValue()
108 mNames[index] = name; in bridgeSetValue()
109 mIsFramework[index] = isFramework; in bridgeSetValue()
153 int index = 1; in sealArray() local
156 mIndices[index++] = i; in sealArray()
193 public CharSequence getText(int index) { in getText() argument
195 return getString(index); in getText()
207 public String getString(int index) { in getString() argument
[all …]
/frameworks/base/core/java/android/util/
DArrayMap.java122 int index = binarySearchHashes(mHashes, N, hash); in indexOf() local
125 if (index < 0) { in indexOf()
126 return index; in indexOf()
130 if (key.equals(mArray[index<<1])) { in indexOf()
131 return index; in indexOf()
136 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
141 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
160 int index = binarySearchHashes(mHashes, N, 0); in indexOfNull() local
163 if (index < 0) { in indexOfNull()
164 return index; in indexOfNull()
[all …]
DArraySet.java86 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local
89 if (index < 0) { in indexOf()
90 return index; in indexOf()
94 if (key.equals(mArray[index])) { in indexOf()
95 return index; in indexOf()
100 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
105 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
124 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local
127 if (index < 0) { in indexOfNull()
128 return index; in indexOfNull()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java125 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument
129 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
130 array[index] = element; in insert()
137 System.arraycopy(array, 0, newArray, 0, index); in insert()
138 newArray[index] = element; in insert()
139 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
146 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument
150 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
151 array[index] = element; in insert()
156 System.arraycopy(array, 0, newArray, 0, index); in insert()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/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/support/compat/java/android/support/v4/util/
DSimpleArrayMap.java94 int index = binarySearchHashes(mHashes, N, hash); in indexOf() local
97 if (index < 0) { in indexOf()
98 return index; in indexOf()
102 if (key.equals(mArray[index<<1])) { in indexOf()
103 return index; in indexOf()
108 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
113 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
132 int index = binarySearchHashes(mHashes, N, 0); in indexOfNull() local
135 if (index < 0) { in indexOfNull()
136 return index; in indexOfNull()
[all …]
DArraySet.java91 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local
94 if (index < 0) { in indexOf()
95 return index; in indexOf()
99 if (key.equals(mArray[index])) { in indexOf()
100 return index; in indexOf()
105 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
110 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
129 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local
132 if (index < 0) { in indexOfNull()
133 return index; in indexOfNull()
[all …]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DViewDataBinding.java670 protected static <T> T getFromArray(T[] arr, int index) { in getFromArray() argument
671 if (arr == null || index < 0 || index >= arr.length) { in getFromArray()
674 return arr[index]; in getFromArray()
678 protected static <T> void setTo(T[] arr, int index, T value) { in setTo() argument
679 if (arr == null || index < 0 || index >= arr.length) { in setTo()
682 arr[index] = value; in setTo()
686 protected static boolean getFromArray(boolean[] arr, int index) { in getFromArray() argument
687 if (arr == null || index < 0 || index >= arr.length) { in getFromArray()
690 return arr[index]; in getFromArray()
694 protected static void setTo(boolean[] arr, int index, boolean value) { in setTo() argument
[all …]
/frameworks/support/tv-provider/src/android/support/media/tv/
DChannel.java400 int index; in fromCursor() local
401 if ((index = cursor.getColumnIndex(Channels._ID)) >= 0 && !cursor.isNull(index)) { in fromCursor()
402 builder.setId(cursor.getLong(index)); in fromCursor()
404 if ((index = cursor.getColumnIndex(Channels.COLUMN_DESCRIPTION)) >= 0 in fromCursor()
405 && !cursor.isNull(index)) { in fromCursor()
406 builder.setDescription(cursor.getString(index)); in fromCursor()
408 if ((index = cursor.getColumnIndex(Channels.COLUMN_DISPLAY_NAME)) >= 0 in fromCursor()
409 && !cursor.isNull(index)) { in fromCursor()
410 builder.setDisplayName(cursor.getString(index)); in fromCursor()
412 if ((index = cursor.getColumnIndex(Channels.COLUMN_DISPLAY_NUMBER)) >= 0 in fromCursor()
[all …]
DBasePreviewProgram.java368 int index; in setFieldsFromCursor() local
370 if ((index = in setFieldsFromCursor()
372 && !cursor.isNull(index)) { in setFieldsFromCursor()
373 builder.setInternalProviderId(cursor.getString(index)); in setFieldsFromCursor()
375 if ((index = in setFieldsFromCursor()
377 && !cursor.isNull(index)) { in setFieldsFromCursor()
378 builder.setPreviewVideoUri(Uri.parse(cursor.getString(index))); in setFieldsFromCursor()
380 if ((index = cursor.getColumnIndex( in setFieldsFromCursor()
382 && !cursor.isNull(index)) { in setFieldsFromCursor()
383 builder.setLastPlaybackPositionMillis(cursor.getInt(index)); in setFieldsFromCursor()
[all …]
DBaseProgram.java317 int index; in setFieldsFromCursor() local
318 if ((index = cursor.getColumnIndex(BaseTvColumns._ID)) >= 0 && !cursor.isNull(index)) { in setFieldsFromCursor()
319 builder.setId(cursor.getLong(index)); in setFieldsFromCursor()
321 if ((index = cursor.getColumnIndex(BaseTvColumns.COLUMN_PACKAGE_NAME)) >= 0 in setFieldsFromCursor()
322 && !cursor.isNull(index)) { in setFieldsFromCursor()
323 builder.setPackageName(cursor.getString(index)); in setFieldsFromCursor()
325 if ((index = cursor.getColumnIndex(ProgramColumns.COLUMN_TITLE)) >= 0 in setFieldsFromCursor()
326 && !cursor.isNull(index)) { in setFieldsFromCursor()
327 builder.setTitle(cursor.getString(index)); in setFieldsFromCursor()
329 if ((index = cursor.getColumnIndex(ProgramColumns.COLUMN_EPISODE_TITLE)) >= 0 in setFieldsFromCursor()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DSortedList.java392 int index = findIndexOf(item, mData, 0, mSize, INSERTION); in add() local
393 if (index == INVALID_POSITION) { in add()
394 index = 0; in add()
395 } else if (index < mSize) { in add()
396 T existing = mData[index]; in add()
400 mData[index] = item; in add()
401 return index; in add()
403 mData[index] = item; in add()
404 mCallback.onChanged(index, 1); in add()
405 return index; in add()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java123 Integer index = new Integer(i); in UiccController() local
124 mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController()
131 mCis[i].registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController()
133 mCis[i].registerForOn(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController()
135 mCis[i].registerForNotAvailable(this, EVENT_RADIO_UNAVAILABLE, index); in UiccController()
136 mCis[i].registerForIccRefresh(this, EVENT_SIM_REFRESH, index); in UiccController()
212 Integer index = getCiIndex(msg); in handleMessage() local
214 if (index < 0 || index >= mCis.length) { in handleMessage()
215 Rlog.e(LOG_TAG, "Invalid index : " + index + " received with event " + msg.what); in handleMessage()
223 mCis[index].getIccCardStatus(obtainMessage(EVENT_GET_ICC_STATUS_DONE, index)); in handleMessage()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dchvr_filter.cpp35 int index, counter; in CombinedHorzVertRingFilter() local
103 index = brwidth + bc; in CombinedHorzVertRingFilter()
109 QP = QP_store[index]; in CombinedHorzVertRingFilter()
114 if (((pp_mod[index]&0x02) != 0) && ((pp_mod[index-pp_w]&0x02) != 0)) in CombinedHorzVertRingFilter()
118 pp_mod[index-pp_w] |= 0x10; /* 4/26/00 reuse pp_mod for HorzHflag*/ in CombinedHorzVertRingFilter()
121 for (index = BLKSIZE; index > 0; index--) in CombinedHorzVertRingFilter()
174 pp_mod[index-pp_w] &= 0xef; /* reset 1110,1111 */ in CombinedHorzVertRingFilter()
176 for (index = BLKSIZE; index > 0; index--) in CombinedHorzVertRingFilter()
262 index = brwidth + bc; in CombinedHorzVertRingFilter()
268 QP = QP_store[index]; in CombinedHorzVertRingFilter()
[all …]
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp102 ssize_t index = findSession(sessionId); in closeSession() local
103 if (index == kNotFound) { in closeSession()
107 mSessions.removeAt(index); in closeSession()
125 ssize_t index = findSession(sessionId); in getKeyRequest() local
126 if (index == kNotFound) { in getKeyRequest()
157 index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getKeyRequest()
158 if (index < 0) { in getKeyRequest()
162 request = mByteArrayProperties.valueAt(index); in getKeyRequest()
165 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getKeyRequest()
166 if (index < 0) { in getKeyRequest()
[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 …]
/frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/
DRoomSQLiteQuery.java161 for (int index = 1; index <= mArgCount; index++) { in bindTo()
162 switch (mBindingTypes[index]) { in bindTo()
164 program.bindNull(index); in bindTo()
167 program.bindLong(index, mLongBindings[index]); in bindTo()
170 program.bindDouble(index, mDoubleBindings[index]); in bindTo()
173 program.bindString(index, mStringBindings[index]); in bindTo()
176 program.bindBlob(index, mBlobBindings[index]); in bindTo()
183 public void bindNull(int index) { in bindNull() argument
184 mBindingTypes[index] = NULL; in bindNull()
188 public void bindLong(int index, long value) { in bindLong() argument
[all …]
/frameworks/base/core/java/android/os/health/
DHealthStats.java213 final int index = getIndex(mTimerKeys, key); in getTimer() local
214 if (index < 0) { in getTimer()
218 return new TimerStat(mTimerCounts[index], mTimerTimes[index]); in getTimer()
228 final int index = getIndex(mTimerKeys, key); in getTimerCount() local
229 if (index < 0) { in getTimerCount()
233 return mTimerCounts[index]; in getTimerCount()
243 final int index = getIndex(mTimerKeys, key); in getTimerTime() local
244 if (index < 0) { in getTimerTime()
248 return mTimerTimes[index]; in getTimerTime()
267 public int getTimerKeyAt(int index) { in getTimerKeyAt() argument
[all …]
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBrowseAnimationFragment.java98 int index = adapter.indexOf(item); in createRandomItem() local
99 if (index >= 0) { in createRandomItem()
100 if (index > 0) in createRandomItem()
101 index--; in createRandomItem()
102 adapter.removeItems(index, 1); in createRandomItem()
113 int index = adapter.indexOf(item); in createRandomItem() field in BrowseAnimationFragment
114 if (index >= 0) { in createRandomItem()
115 if (index < adapter.size() - 1) in createRandomItem()
116 index++; in createRandomItem()
117 adapter.removeItems(index, 1); in createRandomItem() argument
[all …]

12345678910>>...68