Searched refs:index (Results 51 - 75 of 1308) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/util/
H A DAttributeSet.java69 * @param index Index of the desired attribute, 0...count-1.
74 public String getAttributeName(int index); argument
79 * @param index Index of the desired attribute, 0...count-1.
84 public String getAttributeValue(int index); argument
118 * @param index Index of the desired attribute, 0...count-1.
122 public int getAttributeNameResource(int index); argument
125 * Return the index of the value of 'attribute' in the list 'options'.
207 * Return the index of the value of attribute at 'index' in the list
210 * @param index Inde
217 getAttributeListValue(int index, String[] options, int defaultValue) argument
227 getAttributeBooleanValue(int index, boolean defaultValue) argument
243 getAttributeResourceValue(int index, int defaultValue) argument
253 getAttributeIntValue(int index, int defaultValue) argument
265 getAttributeUnsignedIntValue(int index, int defaultValue) argument
275 getAttributeFloatValue(int index, float defaultValue) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DShortButtons.java37 public Button getButtonAt(int index) { argument
38 if (index < 3) {
39 return getContentChildAt(index);
42 return (Button) ll.getChildAt(index - 3);
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DUnmodifiableSparseIntArray.java45 public int keyAt(int index) { argument
46 return mArray.keyAt(index);
49 public int valueAt(int index) { argument
50 return mArray.valueAt(index);
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DMemoryAccessTask.java42 for (int index = 0; index < BUFFER_SIZE; index += BUFFER_STEP) {
43 result += ++memory[index];
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetActiveAttrib.java1 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
5 int index,
17 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
22 int index,
30 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
34 int index,
41 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
45 int index,
3 glGetActiveAttrib( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset ) argument
20 glGetActiveAttrib( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
32 glGetActiveAttrib( int program, int index, int[] size, int sizeOffset, int[] type, int typeOffset ) argument
43 glGetActiveAttrib( int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type ) argument
H A DglGetActiveUniform.java1 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
5 int index,
17 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
22 int index,
29 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
33 int index,
40 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
44 int index,
3 glGetActiveUniform( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset ) argument
20 glGetActiveUniform( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
31 glGetActiveUniform( int program, int index, int[] size, int sizeOffset, int[] type, int typeOffset ) argument
42 glGetActiveUniform( int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type ) argument
H A DglGetTransformFeedbackVarying.java1 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
5 int index,
17 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
24 int index,
32 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
36 int index,
44 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
48 int index,
55 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
59 int index,
3 glGetTransformFeedbackVarying( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset ) argument
22 glGetTransformFeedbackVarying( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
34 glGetTransformFeedbackVarying( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, java.nio.ByteBuffer name ) argument
46 glGetTransformFeedbackVarying( int program, int index, int[] size, int sizeOffset, int[] type, int typeOffset ) argument
57 glGetTransformFeedbackVarying( int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type ) argument
[all...]
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
H A DGridTest.java47 public int createItem(int index, boolean append, Object[] item) { argument
48 return mItems[index];
52 public void addItem(Object item, int index, int length, int rowIndex, int edge) { argument
57 mEdges[index] = edge;
61 public void removeItem(int index) { argument
65 public int getEdge(int index) { argument
66 return mEdges[index];
70 public int getSize(int index) { argument
71 return mItems[index];
/frameworks/base/core/java/android/content/res/
H A DTypedArray.java111 * Returns an index in the array that has data.
113 * @param at The index you would like to returned, ranging from 0 to
116 * @return The index at the given offset, which can be used with
142 * Retrieves the styled string value for the attribute at <var>index</var>.
147 * @param index Index of attribute to retrieve.
154 public CharSequence getText(@StyleableRes int index) { argument
159 index *= AssetManager.STYLE_NUM_ENTRIES;
161 final int type = data[index+AssetManager.STYLE_TYPE];
165 return loadStringValueAt(index);
169 if (getValueAt(index,
191 getString(@tyleableRes int index) argument
230 getNonResourceString(@tyleableRes int index) argument
261 getNonConfigurationString(@tyleableRes int index, @Config int allowedChangingConfigs) argument
308 getBoolean(@tyleableRes int index, boolean defValue) argument
347 getInt(@tyleableRes int index, int defValue) argument
384 getFloat(@tyleableRes int index, float defValue) argument
433 getColor(@tyleableRes int index, @ColorInt int defValue) argument
485 getComplexColor(@tyleableRes int index) argument
520 getColorStateList(@tyleableRes int index) argument
551 getInteger(@tyleableRes int index, int defValue) argument
599 getDimension(@tyleableRes int index, float defValue) argument
648 getDimensionPixelOffset(@tyleableRes int index, int defValue) argument
698 getDimensionPixelSize(@tyleableRes int index, int defValue) argument
742 getLayoutDimension(@tyleableRes int index, String name) argument
783 getLayoutDimension(@tyleableRes int index, int defValue) argument
820 getFraction(@tyleableRes int index, int base, int pbase, float defValue) argument
862 getResourceId(@tyleableRes int index, int defValue) argument
890 getThemeAttributeId(@tyleableRes int index, int defValue) argument
917 getDrawable(@tyleableRes int index) argument
948 getTextArray(@tyleableRes int index) argument
970 getValue(@tyleableRes int index, TypedValue outValue) argument
986 getType(@tyleableRes int index) argument
1006 hasValue(@tyleableRes int index) argument
1027 hasValueOrEmpty(@tyleableRes int index) argument
1051 peekValue(@tyleableRes int index) argument
1190 getValueAt(int index, TypedValue outValue) argument
1207 loadStringValueAt(int index) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dchvr_filter.cpp35 int index, counter; local
87 /* brwidth is used as an index when counting blocks */
102 /* Set the index to the current block of the second row counting in blocks */
103 index = brwidth + bc;
109 QP = QP_store[index];
114 if (((pp_mod[index]&0x02) != 0) && ((pp_mod[index-pp_w]&0x02) != 0))
118 pp_mod[index-pp_w] |= 0x10; /* 4/26/00 reuse pp_mod for HorzHflag*/
121 for (index = BLKSIZE; index >
[all...]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DViewDataBinding.java282 * @param localFieldId The index into mLocalFieldObservers that this Object resides in.
558 * @param includes The include layout information, indexed by their container's index.
600 protected static <T> T getFromArray(T[] arr, int index) { argument
601 if (arr == null || index < 0 || index >= arr.length) {
604 return arr[index];
608 protected static <T> void setTo(T[] arr, int index, T value) { argument
609 if (arr == null || index < 0 || index >= arr.length) {
612 arr[index]
616 getFromArray(boolean[] arr, int index) argument
624 setTo(boolean[] arr, int index, boolean value) argument
632 getFromArray(byte[] arr, int index) argument
640 setTo(byte[] arr, int index, byte value) argument
648 getFromArray(short[] arr, int index) argument
656 setTo(short[] arr, int index, short value) argument
664 getFromArray(char[] arr, int index) argument
672 setTo(char[] arr, int index, char value) argument
680 getFromArray(int[] arr, int index) argument
688 setTo(int[] arr, int index, int value) argument
696 getFromArray(long[] arr, int index) argument
704 setTo(long[] arr, int index, long value) argument
712 getFromArray(float[] arr, int index) argument
720 setTo(float[] arr, int index, float value) argument
728 getFromArray(double[] arr, int index) argument
736 setTo(double[] arr, int index, double value) argument
744 getFromList(List<T> list, int index) argument
752 setTo(List<T> list, int index, T value) argument
760 getFromList(SparseArray<T> list, int index) argument
768 setTo(SparseArray<T> list, int index, T value) argument
777 getFromList(LongSparseArray<T> list, int index) argument
786 setTo(LongSparseArray<T> list, int index, T value) argument
794 getFromList(android.support.v4.util.LongSparseArray<T> list, int index) argument
802 setTo(android.support.v4.util.LongSparseArray<T> list, int index, T value) argument
811 getFromList(SparseBooleanArray list, int index) argument
819 setTo(SparseBooleanArray list, int index, boolean value) argument
827 getFromList(SparseIntArray list, int index) argument
835 setTo(SparseIntArray list, int index, int value) argument
844 getFromList(SparseLongArray list, int index) argument
853 setTo(SparseLongArray list, int index, long value) argument
1268 setIncludes(int index, String[] layouts, int[] indexes, int[] layoutIds) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccController.java122 Integer index = new Integer(i);
123 mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, index);
126 mCis[i].registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, index);
128 mCis[i].registerForOn(this, EVENT_ICC_STATUS_CHANGED, index);
130 mCis[i].registerForNotAvailable(this, EVENT_RADIO_UNAVAILABLE, index);
131 mCis[i].registerForIccRefresh(this, EVENT_SIM_REFRESH, index);
205 Integer index = getCiIndex(msg);
207 if (index < 0 || index >= mCis.length) {
208 Rlog.e(LOG_TAG, "Invalid index
275 onGetIccCardStatusDone(AsyncResult ar, Integer index) argument
302 onSimRefresh(AsyncResult ar, Integer index) argument
341 isValidCardIndex(int index) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DCursorObjectAdapter.java137 public Object get(int index) { argument
141 if (!mCursor.moveToPosition(index)) {
144 Object item = mItemCache.get(index);
149 mItemCache.put(index, item);
175 protected final void invalidateCache(int index) { argument
176 mItemCache.remove(index);
180 * Removes {@code count} items starting at {@code index}.
182 protected final void invalidateCache(int index, int count) { argument
183 for (int limit = count + index; index < limi
[all...]
H A DSingleRow.java33 public final Location getLocation(int index) { argument
77 for (int index = getStartIndexForPrepend(); index >= 0; index--) {
78 int size = mProvider.createItem(index, false, mTmpItem);
82 mLastVisibleIndex = mFirstVisibleIndex = index;
85 edge = mProvider.getEdge(index + 1) + mMargin + size;
87 edge = mProvider.getEdge(index + 1) - mMargin - size;
89 mFirstVisibleIndex = index;
91 mProvider.addItem(mTmpItem[0], index, siz
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DGenerationRegistry.java56 final int index = getKeyIndexLocked(key, mKeyToIndexMap, backingStore);
57 if (index >= 0) {
58 final int generation = backingStore.get(index) + 1;
59 backingStore.set(index, generation);
74 final int index = getKeyIndexLocked(key, mKeyToIndexMap, backingStore);
75 if (index >= 0) {
78 bundle.putInt(Settings.CALL_METHOD_GENERATION_INDEX_KEY, index);
80 backingStore.get(index));
82 Slog.i(LOG_TAG, "Exported index:" + index
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSoundTriggerSession.cpp35 ssize_t index = indexOfKey(session); local
36 if (index < 0) {
/frameworks/base/core/java/android/os/health/
H A DHealthStats.java213 final int index = getIndex(mTimerKeys, key);
214 if (index < 0) {
218 return new TimerStat(mTimerCounts[index], mTimerTimes[index]);
228 final int index = getIndex(mTimerKeys, key);
229 if (index < 0) {
233 return mTimerCounts[index];
243 final int index = getIndex(mTimerKeys, key);
244 if (index < 0) {
248 return mTimerTimes[index];
267 getTimerKeyAt(int index) argument
309 getMeasurementKeyAt(int index) argument
351 getStatsKeyAt(int index) argument
393 getTimersKeyAt(int index) argument
436 getMeasurementsKeyAt(int index) argument
[all...]
/frameworks/base/core/java/android/view/
H A DFrameStats.java85 * Get the time a frame at a given index was presented.
87 * @param index The frame index.
91 public final long getFramePresentedTimeNano(int index) { argument
95 return mFramesPresentedTimeNano[index];
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddec_acelp_4p_in_64.cpp47 int16 index[], (i) : index (20): 5+5+5+5 = 20 bits.
48 (i) : index (36): 9+9+9+9 = 36 bits.
49 (i) : index (44): 13+9+13+9 = 44 bits.
50 (i) : index (52): 13+13+13+13 = 52 bits.
51 (i) : index (64): 2+2+2+2+14+14+14+14 = 64 bits.
52 (i) : index (72): 10+2+10+2+10+14+10+14 = 72 bits.
53 (i) : index (88): 11+11+11+11+11+11+11+11 = 88 bits.
149 int16 index[], /* (i) : index (2
148 dec_acelp_4p_in_64( int16 index[], int16 nbbits, int16 code[] ) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dd2_9pf.cpp119 index -- Word16 -- Positions of the 2 pulses.
178 Word16 index, /* i : Positions of the 2 pulses. */
192 j = (Word16)(index & 64);
196 i = index & 7;
210 index >>= 3;
212 i = index & 7;
175 decode_2i40_9bits( Word16 subNr, Word16 sign, Word16 index, Word16 cod[], Flag *pOverflow ) argument
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Denc_lag6.cpp106 Word16 -- Return index of encoding
128 index = (T-17)*6 + frac - 3;
131 index = (T - 95) + 463; where T=[95..143]
142 index = (T-(t_min-1))*6 + frac - 3;
146 or 63 as the relative pitch index, it means that a transmission
186 Word16 Enc_lag6( /* o : Return index of encoding */
194 Word16 index; local
203 /* index = T0*6 - 105 + T0_frac */
206 index = add(i, T0_frac, pOverflow);
210 index
[all...]
/frameworks/base/core/java/android/app/usage/
H A DTimeSparseArray.java36 * Finds the index of the first element whose timestamp is greater or equal to
40 * @return The index of the matched element, or -1 if no such match exists.
44 // the closest index is returned.
73 * Finds the index of the first element whose timestamp is less than or equal to
77 * @return The index of the matched element, or -1 if no such match exists.
80 final int index = closestIndexOnOrAfter(time);
81 if (index < 0) {
86 if (keyAt(index) == time) {
87 return index;
89 return index
[all...]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DLineVerifier.java28 private int index; field in class:LineVerifier
43 if (index >= mLineVerifierElemList.size()) {
44 TestCase.fail("Insufficient number of LineVerifier (" + index + ")");
47 final LineVerifierElem lineVerifier = mLineVerifierElemList.get(index);
50 index++;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarIconList.java56 public void setIcon(int index, StatusBarIcon icon) { argument
57 mIcons.set(index, icon);
60 public void removeIcon(int index) { argument
61 mIcons.set(index, null);
64 public String getSlot(int index) { argument
65 return mSlots.get(index);
68 public StatusBarIcon getIcon(int index) { argument
69 return mIcons.get(index);
72 public int getViewIndex(int index) { argument
74 for (int i = 0; i < index;
[all...]
/frameworks/wilhelm/src/itf/
H A DILEDArray.c55 static SLresult ILEDArray_SetColor(SLLEDArrayItf self, SLuint8 index, const SLHSL *pColor) argument
61 if (!(index < MAX_LED_COUNT) || NULL == pColor)
73 thiz->mColors[index] = color;
82 static SLresult ILEDArray_GetColor(SLLEDArrayItf self, SLuint8 index, SLHSL *pColor) argument
86 if (!(index < MAX_LED_COUNT) || NULL == pColor) {
92 SLHSL color = thiz->mColors[index];
115 SLuint8 index; local
116 for (index = 0; index < MAX_LED_COUNT; ++index,
[all...]

Completed in 2081 milliseconds

1234567891011>>