Home
last modified time | relevance | path

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

12345678910>>...94

/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/widget/
DTintTypedArray.java63 public Drawable getDrawable(int index) { in getDrawable() argument
64 if (mWrapped.hasValue(index)) { in getDrawable()
65 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawable()
70 return mWrapped.getDrawable(index); in getDrawable()
73 public Drawable getDrawableIfKnown(int index) { in getDrawableIfKnown() argument
74 if (mWrapped.hasValue(index)) { in getDrawableIfKnown()
75 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawableIfKnown()
99 public CharSequence getText(int index) { in getText() argument
100 return mWrapped.getText(index); in getText()
103 public String getString(int index) { in getString() argument
[all …]
/frameworks/base/core/java/android/content/res/
DTypedArray.java154 public CharSequence getText(@StyleableRes int index) { in getText() argument
159 index *= AssetManager.STYLE_NUM_ENTRIES; in getText()
161 final int type = data[index+AssetManager.STYLE_TYPE]; in getText()
165 return loadStringValueAt(index); in getText()
169 if (getValueAt(index, v)) { in getText()
191 public String getString(@StyleableRes int index) { in getString() argument
196 index *= AssetManager.STYLE_NUM_ENTRIES; in getString()
198 final int type = data[index+AssetManager.STYLE_TYPE]; in getString()
202 return loadStringValueAt(index).toString(); in getString()
206 if (getValueAt(index, v)) { in getString()
[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/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/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java99 public void bridgeSetValue(int index, String name, boolean isFramework, ResourceValue value) { in bridgeSetValue() argument
100 mResourceData[index] = value; in bridgeSetValue()
101 mNames[index] = name; in bridgeSetValue()
102 mIsFramework[index] = isFramework; in bridgeSetValue()
146 int index = 1; in sealArray() local
149 mIndices[index++] = i; in sealArray()
186 public CharSequence getText(int index) { in getText() argument
188 return getString(index); in getText()
200 public String getString(int index) { in getString() argument
201 if (!hasValue(index)) { in getString()
[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/base/core/java/android/util/
DArrayMap.java97 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local
100 if (index < 0) { in indexOf()
101 return index; in indexOf()
105 if (key.equals(mArray[index<<1])) { in indexOf()
106 return index; in indexOf()
111 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
116 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
135 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local
138 if (index < 0) { in indexOfNull()
139 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 …]
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 …]
DIntArray.java66 public void add(int index, int value) { in add() argument
67 if (index < 0 || index > mSize) { in add()
73 if (mSize - index != 0) { in add()
74 System.arraycopy(mValues, index, mValues, index + 1, mSize - index); in add()
77 mValues[index] = value; in add()
143 public int get(int index) { in get() argument
144 if (index >= mSize) { in get()
145 throw new ArrayIndexOutOfBoundsException(mSize, index); in get()
147 return mValues[index]; in get()
167 public void remove(int index) { in remove() argument
[all …]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DViewDataBinding.java600 protected static <T> T getFromArray(T[] arr, int index) { in getFromArray() argument
601 if (arr == null || index < 0 || index >= arr.length) { in getFromArray()
604 return arr[index]; in getFromArray()
608 protected static <T> void setTo(T[] arr, int index, T value) { in setTo() argument
609 if (arr == null || index < 0 || index >= arr.length) { in setTo()
612 arr[index] = value; in setTo()
616 protected static boolean getFromArray(boolean[] arr, int index) { in getFromArray() argument
617 if (arr == null || index < 0 || index >= arr.length) { in getFromArray()
620 return arr[index]; in getFromArray()
624 protected static void setTo(boolean[] arr, int index, boolean value) { in setTo() argument
[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/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/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/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp101 ssize_t index = findSession(sessionId); in closeSession() local
102 if (index == kNotFound) { in closeSession()
106 mSessions.removeAt(index); in closeSession()
124 ssize_t index = findSession(sessionId); in getKeyRequest() local
125 if (index == kNotFound) { in getKeyRequest()
156 index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getKeyRequest()
157 if (index < 0) { in getKeyRequest()
161 request = mByteArrayProperties.valueAt(index); in getKeyRequest()
164 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getKeyRequest()
165 if (index < 0) { in getKeyRequest()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java122 Integer index = new Integer(i); in UiccController() local
123 mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController()
126 mCis[i].registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController()
128 mCis[i].registerForOn(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController()
130 mCis[i].registerForNotAvailable(this, EVENT_RADIO_UNAVAILABLE, index); in UiccController()
131 mCis[i].registerForIccRefresh(this, EVENT_SIM_REFRESH, index); in UiccController()
205 Integer index = getCiIndex(msg); in handleMessage() local
207 if (index < 0 || index >= mCis.length) { in handleMessage()
208 Rlog.e(LOG_TAG, "Invalid index : " + index + " received with event " + msg.what); in handleMessage()
216 mCis[index].getIccCardStatus(obtainMessage(EVENT_GET_ICC_STATUS_DONE, index)); in handleMessage()
[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/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/base/core/java/android/hardware/hdmi/
DHdmiRecordSources.java70 /* package */ abstract int extraParamToByteArray(byte[] data, int index); in extraParamToByteArray() argument
76 /* package */ final int toByteArray(boolean includeType, byte[] data, int index) { in toByteArray() argument
86 data[index++] = (byte) mSourceType; in toByteArray()
88 extraParamToByteArray(data, index); in toByteArray()
115 int extraParamToByteArray(byte[] data, int index) { in extraParamToByteArray() argument
166 int toByteArray(byte[] data, int index); in toByteArray() argument
198 public int toByteArray(byte[] data, int index) { in toByteArray() argument
200 index); in toByteArray()
227 public int toByteArray(byte[] data, int index) { in toByteArray() argument
228 return threeFieldsToSixBytes(mTransportStreamId, mProgramNumber, 0, data, index); in toByteArray()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSingleRow.java33 public final Location getLocation(int index) { in getLocation() argument
77 for (int index = getStartIndexForPrepend(); index >= 0; index--) { in prependVisibleItems()
78 int size = mProvider.createItem(index, false, mTmpItem); in prependVisibleItems()
82 mLastVisibleIndex = mFirstVisibleIndex = index; in prependVisibleItems()
85 edge = mProvider.getEdge(index + 1) + mMargin + size; in prependVisibleItems()
87 edge = mProvider.getEdge(index + 1) - mMargin - size; in prependVisibleItems()
89 mFirstVisibleIndex = index; in prependVisibleItems()
91 mProvider.addItem(mTmpItem[0], index, size, 0, edge); in prependVisibleItems()
110 for (int index = getStartIndexForAppend(); index < mProvider.getCount(); index++) { in appendVisibleItems()
111 int size = mProvider.createItem(index, true, mTmpItem); in appendVisibleItems()
[all …]
/frameworks/base/tools/aapt/
DAaptConfig.cpp39 ssize_t index = 0; in parse() local
42 const char* part = parts[index].string(); in parse()
49 index++; in parse()
50 if (index == N) { in parse()
53 part = parts[index].string(); in parse()
57 index++; in parse()
58 if (index == N) { in parse()
61 part = parts[index].string(); in parse()
66 localeIndex = locale.initFromDirName(parts, index); in parse()
69 } else if (localeIndex > index) { in parse()
[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/split-select/
DRuleGenerator.cpp35 sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t index) { in generateDensity() argument
36 if (allDensities[index] != ResTable_config::DENSITY_ANY) { in generateDensity()
51 if (index > 0) { in generateDensity()
55 gt->longArgs.add(findMid(allDensities[index - 1], allDensities[index]) - 1); in generateDensity()
59 … if (index + 1 < allDensities.size() && allDensities[index + 1] != ResTable_config::DENSITY_ANY) { in generateDensity()
63 lt->longArgs.add(findMid(allDensities[index], allDensities[index + 1])); in generateDensity()
76 sp<Rule> RuleGenerator::generateAbi(const Vector<abi::Variant>& splitAbis, size_t index) { in generateAbi() argument
77 const abi::Variant thisAbi = splitAbis[index]; in generateAbi()
84 if (index + 1 < splitAbis.size()) { in generateAbi()
85 end = std::find(start, familyVariants.end(), splitAbis[index + 1]); in generateAbi()
[all …]

12345678910>>...94