Searched refs:index (Results 76 - 100 of 1205) sorted by relevance

1234567891011>>

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeLayoutParamsMapAttributes.java59 public String getAttributeName(int index) { argument
64 public String getAttributeValue(int index) { argument
74 public int getAttributeNameResource(int index) { argument
115 public int getAttributeListValue(int index, argument
121 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { argument
126 public int getAttributeResourceValue(int index, int defaultValue) { argument
131 public int getAttributeIntValue(int index, int defaultValue) { argument
136 public int getAttributeUnsignedIntValue(int index, int defaultValue) { argument
141 public float getAttributeFloatValue(int index, float defaultValue) { argument
/frameworks/data-binding/library/src/main/java/android/databinding/
H A DObservableArrayMap.java62 int index = indexOfKey(key);
63 if (index >= 0) {
65 removeAt(index);
85 public V removeAt(int index) { argument
86 K key = keyAt(index);
87 V value = super.removeAt(index);
95 public V setValueAt(int index, V value) { argument
96 K key = keyAt(index);
97 V oldValue = super.setValueAt(index, value);
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DTileList.java42 final int index = mTiles.indexOfKey(startPosition);
43 if (index < 0) {
46 mLastAccessedTile = mTiles.valueAt(index);
59 public Tile<T> getAtIndex(int index) { argument
60 return mTiles.valueAt(index);
64 final int index = mTiles.indexOfKey(newTile.mStartPosition);
65 if (index < 0) {
69 Tile<T> oldTile = mTiles.valueAt(index);
70 mTiles.setValueAt(index, newTile);
H A DSortedList.java123 * use {@link #updateItemAt(int, Object)}. You can find the index of the item using
128 * @return The index of the newly added item.
392 int index = findIndexOf(item, mData, 0, mSize, INSERTION);
393 if (index == INVALID_POSITION) {
394 index = 0;
395 } else if (index < mSize) {
396 T existing = mData[index];
400 mData[index] = item;
401 return index;
403 mData[index]
435 removeItemAt(int index) argument
451 removeItemAtIndex(int index, boolean notify) argument
480 updateItemAt(int index, T item) argument
534 recalculatePositionOfItemAt(int index) argument
554 get(int index) argument
642 addToData(int index, T item) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DarmVCM4P2_BlockMatch_Half.c90 OMX_INT outer, inner, count, index; local
110 for (outer = 0, count = 0,index = 0;
112 outer++, index += refWidth - BlockSize)
114 for (inner = 0; inner < BlockSize; inner++, count++, index++)
116 refSAD += armAbs (pTempSrcRefBuf[index] - pSrcCurrBuf[count]);
165 for (outer = 0, count = 0, candSAD = 0,index = 0;
167 outer++, index += refWidth - BlockSize)
169 for (inner = 0; inner < BlockSize; inner++, count++,index++)
172 pTempSrcRefBuf[index]
173 + pTempSrcRefBuf[index
[all...]
/frameworks/base/core/java/android/database/
H A DObservable.java67 int index = mObservers.indexOf(observer);
68 if (index == -1) {
71 mObservers.remove(index);
/frameworks/base/media/java/android/media/
H A DMediaCodecList.java51 * the given {@code index} in the regular list.
57 public static final MediaCodecInfo getCodecInfoAt(int index) { argument
59 if (index < 0 || index > sRegularCodecInfos.length) {
62 return sRegularCodecInfos[index];
81 for (int index = 0; index < count; index++) {
83 MediaCodecInfo info = getNewCodecInfoAt(index);
101 private static MediaCodecInfo getNewCodecInfoAt(int index) { argument
113 getCodecName(int index) argument
115 isEncoder(int index) argument
117 getSupportedTypes(int index) argument
120 getCodecCapabilities(int index, String type) argument
[all...]
/frameworks/base/tools/split-select/
H A DRuleGenerator.cpp35 sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t index) { argument
36 if (allDensities[index] != ResTable_config::DENSITY_ANY) {
51 if (index > 0) {
55 gt->longArgs.add(findMid(allDensities[index - 1], allDensities[index]) - 1);
59 if (index + 1 < allDensities.size() && allDensities[index + 1] != ResTable_config::DENSITY_ANY) {
63 lt->longArgs.add(findMid(allDensities[index], allDensities[index + 1]));
76 sp<Rule> RuleGenerator::generateAbi(const Vector<abi::Variant>& splitAbis, size_t index) { argument
98 generate(const SortedVector<SplitDescription>& group, size_t index) argument
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerCCDecoder.h34 sp<AMessage> getTrackInfo(size_t index) const;
35 status_t selectTrack(size_t index, bool select);
49 bool isTrackValid(size_t index) const;
53 sp<ABuffer> filterCCBuf(const sp<ABuffer> &ccBuf, size_t index);
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
H A Dd_gain_c.h45 Purpose : Decode the fixed codebook gain using the received index.
102 * Purpose : Decode the fixed codebook gain using the received index.
103 * Description : The received index gives the gain correction factor
113 Word16 index, /* i : received quantization index */
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dd2_9pf.h109 Word16 index, /* i : Positions of the 2 pulses. */
H A Ddec_lag6.h107 Word16 index, /* input : received pitch index */
/frameworks/base/core/java/android/webkit/
H A DWebBackForwardList.java35 * Get the index of the current history item. This index can be used to
36 * directly index into the array list.
37 * @return The current index from 0...n or -1 if the list is empty.
42 * Get the history item at the given index. The index range is from 0...n
44 * @param index The index to retrieve.
46 public abstract WebHistoryItem getItemAtIndex(int index); argument
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DUnmodifiableSparseArray.java45 public int keyAt(int index) { argument
46 return mArray.keyAt(index);
49 public E valueAt(int index) { argument
50 return mArray.valueAt(index);
/frameworks/native/libs/binder/
H A DDebug.cpp218 size_t index; local
226 for (index = 0; index < alignment || (alignment == 0 && index < bytesPerLine); index++) {
229 if (index == 0 && word > 0 && alignment > 0) {
234 const unsigned char val = *(pos+startIndex+(index*dir));
243 if (index == 0 && word > 0) {
247 if (index == 0) {
251 const unsigned char val = *(pos+startIndex+(index*di
[all...]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetProgramResourceName.cpp1 /* void glGetProgramResourceName ( GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name ) */
4 (JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index) {
3 android_glGetProgramResourceName(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index) argument
/frameworks/rs/driver/runtime/
H A Drs_element.c17 rsElementGetSubElement(rs_element e, uint32_t index) { argument
19 if (element == NULL || index >= element->mHal.state.fieldsCount) {
23 rs_element returnElem = {element->mHal.state.fields[index]};
28 rsElementGetSubElementNameLength(rs_element e, uint32_t index) { argument
30 if (element == NULL || index >= element->mHal.state.fieldsCount) {
33 return element->mHal.state.fieldNameLengths[index];
37 rsElementGetSubElementName(rs_element e, uint32_t index, char *name, uint32_t nameLength) { argument
39 if (element == NULL || index >= element->mHal.state.fieldsCount ||
44 uint32_t numToCopy = element->mHal.state.fieldNameLengths[index];
51 const char *nameSource = element->mHal.state.fieldNames[index];
59 rsElementGetSubElementArraySize(rs_element e, uint32_t index) argument
68 rsElementGetSubElementOffsetBytes(rs_element e, uint32_t index) argument
[all...]
/frameworks/wilhelm/src/itf/
H A DIEngineCapabilities.c109 SLuint32 index; local
113 index = *pIndex;
114 if (index >= thiz->mMaxIndexLED) {
117 id_descriptor = &LED_id_descriptors[index];
129 for (index = 0; index < thiz->mMaxIndexLED; ++index) {
130 id_descriptor = &LED_id_descriptors[index];
151 SLuint32 index; local
155 index
[all...]
/frameworks/base/core/java/android/util/
H A DLongSparseLongArray.java41 * <code>keyAt(int)</code> with ascending values of the index will return the
124 * Removes the mapping at the given index.
126 public void removeAt(int index) { argument
127 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));
128 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));
160 * Given an index i
169 keyAt(int index) argument
184 valueAt(int index) argument
[all...]
H A DSparseLongArray.java41 * <code>keyAt(int)</code> with ascending values of the index will return the
122 * Removes the mapping at the given index.
124 public void removeAt(int index) { argument
125 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));
126 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));
158 * Given an index i
167 keyAt(int index) argument
182 valueAt(int index) argument
[all...]
/frameworks/av/media/libeffects/testlibs/
H A DAudioCoefInterpolator.cpp44 size_t index = 0; local
51 index += mInDimOffsets[dim] * (mInDims[dim] - 1);
53 index += mInDimOffsets[dim] * intCoord[dim];
56 getCoefRecurse(index, fracCoord, out, 0);
59 void AudioCoefInterpolator::getCoefRecurse(size_t index, argument
63 memcpy(out, mTable + index, mNumOutDims * sizeof(audio_coef_t));
65 getCoefRecurse(index, fracCoord, out, dim + 1);
68 getCoefRecurse(index + mInDimOffsets[dim], fracCoord, tempCoef,
/frameworks/av/media/libstagefright/wifi-display/
H A DVideoFormats.h67 void setNativeResolution(ResolutionType type, size_t index);
68 void getNativeResolution(ResolutionType *type, size_t *index) const;
73 ResolutionType type, size_t index,
77 ResolutionType type, size_t index, bool enabled = true);
79 bool isResolutionEnabled(ResolutionType type, size_t index) const;
82 ResolutionType type, size_t index,
86 ResolutionType type, size_t index,
90 ResolutionType type, size_t index,
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioGain.h28 AudioGain(int index, bool useInChannelMask);
31 void dump(int fd, int spaces, int index) const;
/frameworks/base/services/core/java/com/android/server/wm/
H A DStackTapPointerEventListener.java57 int index = motionEvent.findPointerIndex(mPointerId);
59 || index < 0
60 || Math.abs(motionEvent.getX(index) - mDownX) > mMotionSlop
61 || Math.abs(motionEvent.getY(index) - mDownY) > mMotionSlop) {
68 int index = (action & MotionEvent.ACTION_POINTER_INDEX_MASK)
70 // Extract the index of the pointer that left the touch sensor
71 if (mPointerId == motionEvent.getPointerId(index)) {
72 final int x = (int)motionEvent.getX(index);
73 final int y = (int)motionEvent.getY(index);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dq_gain_c.cpp141 quantization index -- Word16 -- Q0
191 Word16 q_gain_code( /* o : quantization index, Q0 */
205 Word16 index; local
253 index = 0;
270 index = i;
274 temp = index + (index << 1);
292 return index;

Completed in 3494 milliseconds

1234567891011>>