Home
last modified time | relevance | path

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

12345678910>>...67

/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/support/v7/appcompat/src/android/support/v7/internal/widget/
DTintTypedArray.java58 public Drawable getDrawable(int index) { in getDrawable() argument
59 if (mWrapped.hasValue(index)) { in getDrawable()
60 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawable()
65 return mWrapped.getDrawable(index); in getDrawable()
84 public CharSequence getText(int index) { in getText() argument
85 return mWrapped.getText(index); in getText()
88 public String getString(int index) { in getString() argument
89 return mWrapped.getString(index); in getString()
92 public String getNonResourceString(int index) { in getNonResourceString() argument
93 return mWrapped.getNonResourceString(index); in getNonResourceString()
[all …]
/frameworks/base/core/java/android/content/res/
DTypedArray.java133 public CharSequence getText(int index) { in getText() argument
138 index *= AssetManager.STYLE_NUM_ENTRIES; in getText()
140 final int type = data[index+AssetManager.STYLE_TYPE]; in getText()
144 return loadStringValueAt(index); in getText()
148 if (getValueAt(index, v)) { in getText()
165 public String getString(int index) { in getString() argument
170 index *= AssetManager.STYLE_NUM_ENTRIES; in getString()
172 final int type = data[index+AssetManager.STYLE_TYPE]; in getString()
176 return loadStringValueAt(index).toString(); in getString()
180 if (getValueAt(index, v)) { in getString()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DChildHelper.java72 void addView(View child, int index, boolean hidden) { in addView() argument
74 if (index < 0) { in addView()
77 offset = getOffset(index); in addView()
85 Log.d(TAG, "addViewAt " + index + ",h:" + hidden + ", " + this); in addView()
89 private int getOffset(int index) { in getOffset() argument
90 if (index < 0) { in getOffset()
94 int offset = index; in getOffset()
97 final int diff = index - (offset - removedBefore); in getOffset()
116 int index = mCallback.indexOfChild(view); in removeView() local
117 if (index < 0) { in removeView()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java110 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument
114 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
115 array[index] = element; in insert()
122 System.arraycopy(array, 0, newArray, 0, index); in insert()
123 newArray[index] = element; in insert()
124 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
131 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument
135 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
136 array[index] = element; in insert()
141 System.arraycopy(array, 0, newArray, 0, index); in insert()
[all …]
/frameworks/support/v4/java/android/support/v4/util/
DSimpleArrayMap.java69 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local
72 if (index < 0) { in indexOf()
73 return index; in indexOf()
77 if (key.equals(mArray[index<<1])) { in indexOf()
78 return index; in indexOf()
83 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
88 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
107 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local
110 if (index < 0) { in indexOfNull()
111 return index; in indexOfNull()
[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/base/core/java/android/util/
DArrayMap.java96 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local
99 if (index < 0) { in indexOf()
100 return index; in indexOf()
104 if (key.equals(mArray[index<<1])) { in indexOf()
105 return index; in indexOf()
110 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
115 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
134 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local
137 if (index < 0) { in indexOfNull()
138 return index; in indexOfNull()
[all …]
DArraySet.java87 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local
90 if (index < 0) { in indexOf()
91 return index; in indexOf()
95 if (key.equals(mArray[index])) { in indexOf()
96 return index; in indexOf()
101 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
106 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
125 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local
128 if (index < 0) { in indexOfNull()
129 return index; in indexOfNull()
[all …]
DLongArray.java64 public void add(int index, long value) { in add() argument
65 if (index < 0 || index > mSize) { in add()
71 if (mSize - index != 0) { in add()
72 System.arraycopy(mValues, index, mValues, index + 1, mSize - index); in add()
75 mValues[index] = value; in add()
128 public long get(int index) { in get() argument
129 if (index >= mSize) { in get()
130 throw new ArrayIndexOutOfBoundsException(mSize, index); in get()
132 return mValues[index]; in get()
152 public void remove(int index) { in remove() argument
[all …]
DXmlPullAttributes.java37 public String getAttributeName(int index) { in getAttributeName() argument
38 return mParser.getAttributeName(index); in getAttributeName()
41 public String getAttributeValue(int index) { in getAttributeValue() argument
42 return mParser.getAttributeValue(index); in getAttributeValue()
53 public int getAttributeNameResource(int index) { in getAttributeNameResource() argument
96 public int getAttributeListValue(int index, in getAttributeListValue() argument
99 getAttributeValue(index), options, defaultValue); in getAttributeListValue()
102 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { in getAttributeBooleanValue() argument
104 getAttributeValue(index), defaultValue); in getAttributeBooleanValue()
107 public int getAttributeResourceValue(int index, int defaultValue) { in getAttributeResourceValue() argument
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java76 public void bridgeSetValue(int index, String name, boolean isFramework, ResourceValue value) { in bridgeSetValue() argument
77 mResourceData[index] = value; in bridgeSetValue()
78 mNames[index] = name; in bridgeSetValue()
79 mIsFramework[index] = isFramework; in bridgeSetValue()
110 int index = 1; in sealArray() local
113 mIndices[index++] = i; in sealArray()
143 public CharSequence getText(int index) { in getText() argument
145 return getString(index); in getText()
157 public String getString(int index) { in getString() argument
158 if (!hasValue(index)) { in getString()
[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/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/base/core/java/android/hardware/hdmi/
DHdmiRecordSources.java68 abstract int extraParamToByteArray(byte[] data, int index); in extraParamToByteArray() argument
74 final int toByteArray(boolean includeType, byte[] data, int index) { in toByteArray() argument
84 data[index++] = (byte) mSourceType; in toByteArray()
86 extraParamToByteArray(data, index); in toByteArray()
113 int extraParamToByteArray(byte[] data, int index) { in extraParamToByteArray() argument
164 int toByteArray(byte[] data, int index); in toByteArray() argument
196 public int toByteArray(byte[] data, int index) { in toByteArray() argument
198 index); in toByteArray()
225 public int toByteArray(byte[] data, int index) { in toByteArray() argument
226 return threeFieldsToSixBytes(mTransportStreamId, mProgramNumber, 0, data, index); in toByteArray()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java128 Integer index = new Integer(i); in UiccController() local
129 mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController()
131 mCis[i].registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController()
132 mCis[i].registerForNotAvailable(this, EVENT_RADIO_UNAVAILABLE, index); in UiccController()
245 Integer index = getCiIndex(msg); in handleMessage() local
247 if (index < 0 || index >= mCis.length) { in handleMessage()
248 Rlog.e(LOG_TAG, "Invalid index : " + index + " received with event " + msg.what); in handleMessage()
255 mCis[index].getIccCardStatus(obtainMessage(EVENT_GET_ICC_STATUS_DONE, index)); in handleMessage()
260 onGetIccCardStatusDone(ar, index); in handleMessage()
264 if (mUiccCards[index] != null) { in handleMessage()
[all …]
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp100 ssize_t index = findSession(sessionId); in closeSession() local
101 if (index == kNotFound) { in closeSession()
105 mSessions.removeAt(index); in closeSession()
122 ssize_t index = findSession(sessionId); in getKeyRequest() local
123 if (index == kNotFound) { in getKeyRequest()
153 index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getKeyRequest()
154 if (index < 0) { in getKeyRequest()
158 request = mByteArrayProperties.valueAt(index); in getKeyRequest()
161 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getKeyRequest()
162 if (index < 0) { in getKeyRequest()
[all …]
/frameworks/base/media/java/android/media/
DMediaCodec.java376 int index = msg.arg2; in handleCallback() local
378 validateInputByteBuffer(mCachedInputBuffers, index); in handleCallback()
380 mCallback.onInputBufferAvailable(mCodec, index); in handleCallback()
386 int index = msg.arg2; in handleCallback() local
389 validateOutputByteBuffer(mCachedOutputBuffers, index, info); in handleCallback()
392 mCodec, index, info); in handleCallback()
823 int index,
827 invalidateByteBuffer(mCachedInputBuffers, index);
828 mDequeuedInputBuffers.remove(index);
832 index, offset, size, presentationTimeUs, flags);
[all …]
/frameworks/base/include/androidfw/
DByteBucketArray.h50 inline const T& get(size_t index) const { in get() argument
51 return (*this)[index]; in get()
54 const T& operator[](size_t index) const {
55 if (index >= size()) {
59 uint8_t bucketIndex = static_cast<uint8_t>(index) >> 4;
64 return bucket[0x0f & static_cast<uint8_t>(index)];
67 T& editItemAt(size_t index) { in editItemAt() argument
68 ALOG_ASSERT(index < size(), "ByteBucketArray.getOrCreate(index=%u) with size=%u", in editItemAt()
69 (uint32_t) index, (uint32_t) size()); in editItemAt()
71 uint8_t bucketIndex = static_cast<uint8_t>(index) >> 4; in editItemAt()
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicLUT.java60 private void validate(int index, int value) { in validate() argument
61 if (index < 0 || index > 255) { in validate()
75 public void setRed(int index, int value) { in setRed() argument
76 validate(index, value); in setRed()
77 mCache[index] = (byte)value; in setRed()
87 public void setGreen(int index, int value) { in setGreen() argument
88 validate(index, value); in setGreen()
89 mCache[index+256] = (byte)value; in setGreen()
99 public void setBlue(int index, int value) { in setBlue() argument
100 validate(index, value); in setBlue()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dq_gain_p.cpp189 Word16 index; in q_gain_pitch() local
196 index = 0; in q_gain_pitch()
208 index = i; in q_gain_pitch()
222 if (index == 0) in q_gain_pitch()
224 ii = index; in q_gain_pitch()
228 if (index == (NB_QUA_PITCH - 1) || in q_gain_pitch()
229 (qua_gain_pitch[index+1] > gp_limit)) in q_gain_pitch()
231 ii = index - 2; in q_gain_pitch()
235 ii = index - 1; in q_gain_pitch()
248 *gain = qua_gain_pitch[index]; in q_gain_pitch()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptIntrinsicLUT.java68 private void validate(int index, int value) { in validate() argument
69 if (index < 0 || index > 255) { in validate()
83 public void setRed(int index, int value) { in setRed() argument
84 validate(index, value); in setRed()
85 mCache[index] = (byte)value; in setRed()
95 public void setGreen(int index, int value) { in setGreen() argument
96 validate(index, value); in setGreen()
97 mCache[index+256] = (byte)value; in setGreen()
107 public void setBlue(int index, int value) { in setBlue() argument
108 validate(index, value); in setBlue()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimDataDownloadHandler.java129 int index = 0; in handleDataDownload() local
132 envelope[index++] = (byte) BER_SMS_PP_DOWNLOAD_TAG; in handleDataDownload()
134 envelope[index++] = (byte) 0x81; // length 128-255 encoded as 0x81 + length in handleDataDownload()
136 envelope[index++] = (byte) bodyLength; in handleDataDownload()
139 envelope[index++] = (byte) (0x80 | ComprehensionTlvTag.DEVICE_IDENTITIES.value()); in handleDataDownload()
140 envelope[index++] = (byte) 2; in handleDataDownload()
141 envelope[index++] = (byte) DEV_ID_NETWORK; in handleDataDownload()
142 envelope[index++] = (byte) DEV_ID_UICC; in handleDataDownload()
146 envelope[index++] = (byte) ComprehensionTlvTag.ADDRESS.value(); in handleDataDownload()
147 envelope[index++] = (byte) scAddressLength; in handleDataDownload()
[all …]
/frameworks/base/tools/aapt/
DAaptConfig.cpp38 ssize_t index = 0; in parse() local
41 const char* part = parts[index].string(); in parse()
48 index++; in parse()
49 if (index == N) { in parse()
52 part = parts[index].string(); in parse()
56 index++; in parse()
57 if (index == N) { in parse()
60 part = parts[index].string(); in parse()
65 localeIndex = locale.initFromDirName(parts, index); in parse()
68 } else if (localeIndex > index) { in parse()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteProgram.java129 public void bindNull(int index) { in bindNull() argument
130 bind(index, null); in bindNull()
140 public void bindLong(int index, long value) { in bindLong() argument
141 bind(index, value); in bindLong()
151 public void bindDouble(int index, double value) { in bindDouble() argument
152 bind(index, value); in bindDouble()
162 public void bindString(int index, String value) { in bindString() argument
164 throw new IllegalArgumentException("the bind value at index " + index + " is null"); in bindString()
166 bind(index, value); in bindString()
176 public void bindBlob(int index, byte[] value) { in bindBlob() argument
[all …]

12345678910>>...67