Home
last modified time | relevance | path

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

12345678910>>...76

/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.java222 public CharSequence getText(@StyleableRes int index) { in getText() argument
227 index *= STYLE_NUM_ENTRIES; in getText()
229 final int type = data[index + STYLE_TYPE]; in getText()
233 return loadStringValueAt(index); in getText()
237 if (getValueAt(index, v)) { in getText()
259 public String getString(@StyleableRes int index) { in getString() argument
264 index *= STYLE_NUM_ENTRIES; in getString()
266 final int type = data[index + STYLE_TYPE]; in getString()
270 return loadStringValueAt(index).toString(); in getString()
274 if (getValueAt(index, v)) { in getString()
[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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DBooleanArrayList.java125 public Boolean get(int index) { in get() argument
126 return getBoolean(index); in get()
130 public boolean getBoolean(int index) { in getBoolean() argument
131 ensureIndexInRange(index); in getBoolean()
132 return array[index]; in getBoolean()
141 public Boolean set(int index, Boolean element) { in set() argument
142 return setBoolean(index, element); in set()
146 public boolean setBoolean(int index, boolean element) { in setBoolean() argument
148 ensureIndexInRange(index); in setBoolean()
149 boolean previousValue = array[index]; in setBoolean()
[all …]
DIntArrayList.java125 public Integer get(int index) { in get() argument
126 return getInt(index); in get()
130 public int getInt(int index) { in getInt() argument
131 ensureIndexInRange(index); in getInt()
132 return array[index]; in getInt()
141 public Integer set(int index, Integer element) { in set() argument
142 return setInt(index, element); in set()
146 public int setInt(int index, int element) { in setInt() argument
148 ensureIndexInRange(index); in setInt()
149 int previousValue = array[index]; in setInt()
[all …]
DFloatArrayList.java125 public Float get(int index) { in get() argument
126 return getFloat(index); in get()
130 public float getFloat(int index) { in getFloat() argument
131 ensureIndexInRange(index); in getFloat()
132 return array[index]; in getFloat()
141 public Float set(int index, Float element) { in set() argument
142 return setFloat(index, element); in set()
146 public float setFloat(int index, float element) { in setFloat() argument
148 ensureIndexInRange(index); in setFloat()
149 float previousValue = array[index]; in setFloat()
[all …]
DDoubleArrayList.java126 public Double get(int index) { in get() argument
127 return getDouble(index); in get()
131 public double getDouble(int index) { in getDouble() argument
132 ensureIndexInRange(index); in getDouble()
133 return array[index]; in getDouble()
142 public Double set(int index, Double element) { in set() argument
143 return setDouble(index, element); in set()
147 public double setDouble(int index, double element) { in setDouble() argument
149 ensureIndexInRange(index); in setDouble()
150 double previousValue = array[index]; in setDouble()
[all …]
DLongArrayList.java125 public Long get(int index) { in get() argument
126 return getLong(index); in get()
130 public long getLong(int index) { in getLong() argument
131 ensureIndexInRange(index); in getLong()
132 return array[index]; in getLong()
141 public Long set(int index, Long element) { in set() argument
142 return setLong(index, element); in set()
146 public long setLong(int index, long element) { in setLong() argument
148 ensureIndexInRange(index); in setLong()
149 long previousValue = array[index]; in setLong()
[all …]
DLazyStringArrayList.java114 public String get(int index) { in get() argument
115 Object o = list.get(index); in get()
122 list.set(index, s); in get()
129 list.set(index, s); in get()
141 public String set(int index, String s) { in set() argument
143 Object o = list.set(index, s); in set()
148 public void add(int index, String element) { in add() argument
150 list.add(index, element); in add()
154 private void add(int index, ByteString element) { in add() argument
156 list.add(index, element); in add()
[all …]
DUtf8.java164 public static boolean isValidUtf8(byte[] bytes, int index, int limit) { in isValidUtf8() argument
165 return processor.isValidUtf8(bytes, index, limit); in isValidUtf8()
186 public static int partialIsValidUtf8(int state, byte[] bytes, int index, int limit) { in partialIsValidUtf8() argument
187 return processor.partialIsValidUtf8(state, bytes, index, limit); in partialIsValidUtf8()
208 private static int incompleteStateFor(byte[] bytes, int index, int limit) { in incompleteStateFor() argument
209 int byte1 = bytes[index - 1]; in incompleteStateFor()
210 switch (limit - index) { in incompleteStateFor()
212 case 1: return incompleteStateFor(byte1, bytes[index]); in incompleteStateFor()
213 case 2: return incompleteStateFor(byte1, bytes[index], bytes[index + 1]); in incompleteStateFor()
219 final ByteBuffer buffer, final int byte1, final int index, final int remaining) { in incompleteStateFor() argument
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java105 public void bridgeSetValue(int index, String name, ResourceNamespace namespace, int resourceId, in bridgeSetValue() argument
107 mResourceId[index] = resourceId; in bridgeSetValue()
108 mResourceData[index] = value; in bridgeSetValue()
109 mNames[index] = name; in bridgeSetValue()
110 mNamespaces[index] = namespace; in bridgeSetValue()
154 int index = 1; in sealArray() local
157 mIndices[index++] = i; in sealArray()
194 public CharSequence getText(int index) { in getText() argument
196 return getString(index); in getText()
208 public String getString(int index) { in getString() argument
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java129 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument
133 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
134 array[index] = element; in insert()
141 System.arraycopy(array, 0, newArray, 0, index); in insert()
142 newArray[index] = element; in insert()
143 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
150 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument
154 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
155 array[index] = element; in insert()
160 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/base/cmds/statsd/src/condition/
DConditionWizard.cpp27 ConditionState ConditionWizard::query(const int index, const ConditionKey& parameters, in query() argument
34 mAllConditions[index]->isConditionMet( in query()
37 return cache[index]; in query()
41 const int index, const vector<Matcher>& dimensionFields, in getMetConditionDimension() argument
44 return mAllConditions[index]->getMetConditionDimension(mAllConditions, dimensionFields, in getMetConditionDimension()
50 const int index) const { in getChangedToTrueDimensions()
51 return mAllConditions[index]->getChangedToTrueDimensions(mAllConditions); in getChangedToTrueDimensions()
55 const int index) const { in getChangedToFalseDimensions()
56 return mAllConditions[index]->getChangedToFalseDimensions(mAllConditions); in getChangedToFalseDimensions()
59 bool ConditionWizard::IsChangedDimensionTrackable(const int index) { in IsChangedDimensionTrackable() argument
[all …]
/frameworks/base/core/java/android/util/
DArrayMap.java137 int index = binarySearchHashes(mHashes, N, hash); in indexOf() local
140 if (index < 0) { in indexOf()
141 return index; in indexOf()
145 if (key.equals(mArray[index<<1])) { in indexOf()
146 return index; in indexOf()
151 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
156 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
176 int index = binarySearchHashes(mHashes, N, 0); in indexOfNull() local
179 if (index < 0) { in indexOfNull()
180 return index; in indexOfNull()
[all …]
DArraySet.java94 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local
97 if (index < 0) { in indexOf()
98 return index; in indexOf()
102 if (key.equals(mArray[index])) { 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()
133 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local
136 if (index < 0) { in indexOfNull()
137 return index; in indexOfNull()
[all …]
DSparseLongArray.java131 public void removeAtRange(int index, int size) { in removeAtRange() argument
132 size = Math.min(size, mSize - index); in removeAtRange()
133 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size)); in removeAtRange()
134 System.arraycopy(mValues, index + size, mValues, index, mSize - (index + size)); in removeAtRange()
141 public void removeAt(int index) { in removeAt() argument
142 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
143 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt()
189 public int keyAt(int index) { in keyAt() argument
190 if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { in keyAt()
193 throw new ArrayIndexOutOfBoundsException(index); in keyAt()
[all …]
/frameworks/ml/nn/common/
DIndexedShapeWrapper.cpp32 bool IndexedShapeWrapper::nextIndexInplace(std::vector<uint32_t>* index, bool* lastIndex) const { in nextIndexInplace() argument
33 NN_CHECK(isValid(*index)); in nextIndexInplace()
36 for (int i = 0; i < index->size(); ++i) { in nextIndexInplace()
37 if (index->at(i) < shape->dimensions[i] - 1) { in nextIndexInplace()
46 for (int i = index->size() - 1; i >= 0; --i) { in nextIndexInplace()
47 ++index->at(i); in nextIndexInplace()
48 if (index->at(i) == shape->dimensions[i]) { in nextIndexInplace()
49 index->at(i) = 0; in nextIndexInplace()
57 bool IndexedShapeWrapper::indexToFlatIndex(const std::vector<uint32_t>& index, in indexToFlatIndex() argument
59 NN_CHECK(isValid(index)); in indexToFlatIndex()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAnswerToReset.java97 int index = startIndex + 1; in parseHistoricalBytes() local
98 while (index < startIndex + length && index > 0) { in parseHistoricalBytes()
99 index = parseLtvNode(index, nodes, originalData, startIndex + length - 1); in parseHistoricalBytes()
101 if (index < 0) { in parseHistoricalBytes()
116 int index, ArrayMap<Integer, byte[]> nodes, byte[] data, int lastByteIndex) { in parseLtvNode() argument
117 if (index > lastByteIndex) { in parseLtvNode()
120 int tag = (data[index] & TAG_MASK) >> 4; in parseLtvNode()
121 int length = data[index++] & LENGTH_MASK; in parseLtvNode()
122 if (index + length > lastByteIndex + 1 || length == 0) { in parseLtvNode()
126 System.arraycopy(data, index, value, 0, length); in parseLtvNode()
[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/os/health/
DHealthStats.java215 final int index = getIndex(mTimerKeys, key); in getTimer() local
216 if (index < 0) { in getTimer()
220 return new TimerStat(mTimerCounts[index], mTimerTimes[index]); in getTimer()
230 final int index = getIndex(mTimerKeys, key); in getTimerCount() local
231 if (index < 0) { in getTimerCount()
235 return mTimerCounts[index]; in getTimerCount()
245 final int index = getIndex(mTimerKeys, key); in getTimerTime() local
246 if (index < 0) { in getTimerTime()
250 return mTimerTimes[index]; in getTimerTime()
269 public int getTimerKeyAt(int index) { in getTimerKeyAt() argument
[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/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/base/libs/hwui/
DProfileData.cpp44 uint32_t index = static_cast<uint32_t>(ns2ms(frameTime)); in frameCountIndexForFrameTime() local
47 uint32_t mask = -(index > kBucketMinThreshold); in frameCountIndexForFrameTime()
53 index = ((index - kBucket4msIntervals) >> (index > kBucket4msIntervals)) + kBucket4msIntervals; in frameCountIndexForFrameTime()
54 index = ((index - kBucket2msIntervals) >> (index > kBucket2msIntervals)) + kBucket2msIntervals; in frameCountIndexForFrameTime()
58 index = (index - kBucketMinThreshold) & mask; in frameCountIndexForFrameTime()
59 return index; in frameCountIndexForFrameTime()
63 uint32_t ProfileData::frameTimeForFrameCountIndex(uint32_t index) { in frameTimeForFrameCountIndex() argument
64 index = index + kBucketMinThreshold; in frameTimeForFrameCountIndex()
65 if (index > kBucket2msIntervals) { in frameTimeForFrameCountIndex()
66 index += (index - kBucket2msIntervals); in frameTimeForFrameCountIndex()
[all …]

12345678910>>...76