Home
last modified time | relevance | path

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

12345678910>>...74

/frameworks/av/media/codecs/amrwb/enc/src/
Dq_pulse.c37 Word32 index; in quant_1p_N1() local
43 index = L_deposit_l((Word16) (pos & mask)); in quant_1p_N1()
46 index = vo_L_add(index, L_deposit_l(1 << N)); /* index += 1 << N; */ in quant_1p_N1()
48 return (index); in quant_1p_N1()
58 Word32 index; in quant_2p_2N1() local
69 index = L_deposit_l(add1((((Word16) (pos1 & mask)) << N), ((Word16) (pos2 & mask)))); in quant_2p_2N1()
73 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1()
78 index = vo_L_add(index, (1L << tmp)); /* index += 1 << (2*N); */ in quant_2p_2N1()
86 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1()
90 index = vo_L_add(index, (1L << tmp)); in quant_2p_2N1()
[all …]
/frameworks/base/core/java/android/content/res/
DTypedArray.java223 public CharSequence getText(@StyleableRes int index) { in getText() argument
228 index *= STYLE_NUM_ENTRIES; in getText()
230 final int type = data[index + STYLE_TYPE]; in getText()
234 return loadStringValueAt(index); in getText()
238 if (getValueAt(index, v)) { in getText()
260 public String getString(@StyleableRes int index) { in getString() argument
265 index *= STYLE_NUM_ENTRIES; in getString()
267 final int type = data[index + STYLE_TYPE]; in getString()
271 return loadStringValueAt(index).toString(); in getString()
275 if (getValueAt(index, v)) { in getString()
[all …]
/frameworks/proto_logging/stats/stats_log_api_gen/
Dmain.cpp86 int index = 1; in run() local
87 while (index < argc) { in run()
88 if (0 == strcmp("--help", argv[index])) { in run()
91 } else if (0 == strcmp("--cpp", argv[index])) { in run()
92 index++; in run()
93 if (index >= argc) { in run()
97 cppFilename = argv[index]; in run()
98 } else if (0 == strcmp("--header", argv[index])) { in run()
99 index++; in run()
100 if (index >= argc) { in run()
[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/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java130 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument
134 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
135 array[index] = element; in insert()
142 System.arraycopy(array, 0, newArray, 0, index); in insert()
143 newArray[index] = element; in insert()
144 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert()
151 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument
155 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert()
156 array[index] = element; in insert()
161 System.arraycopy(array, 0, newArray, 0, index); in insert()
[all …]
/frameworks/av/media/codecs/amrwb/dec/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/
DTypedXmlPullParser.java53 final int index = getAttributeIndex(namespace, name); in getAttributeIndexOrThrow() local
54 if (index == -1) { in getAttributeIndexOrThrow()
57 return index; in getAttributeIndexOrThrow()
65 @NonNull byte[] getAttributeBytesHex(int index) throws XmlPullParserException; in getAttributeBytesHex() argument
71 @NonNull byte[] getAttributeBytesBase64(int index) throws XmlPullParserException; in getAttributeBytesBase64() argument
77 int getAttributeInt(int index) throws XmlPullParserException; in getAttributeInt() argument
83 int getAttributeIntHex(int index) throws XmlPullParserException; in getAttributeIntHex() argument
89 long getAttributeLong(int index) throws XmlPullParserException; in getAttributeLong() argument
95 long getAttributeLongHex(int index) throws XmlPullParserException; in getAttributeLongHex() argument
101 float getAttributeFloat(int index) throws XmlPullParserException; in getAttributeFloat() argument
[all …]
DArrayMap.java148 int index = binarySearchHashes(mHashes, N, hash); in indexOf() local
151 if (index < 0) { in indexOf()
152 return index; in indexOf()
156 if (key.equals(mArray[index<<1])) { in indexOf()
157 return index; in indexOf()
162 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
167 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
187 int index = binarySearchHashes(mHashes, N, 0); in indexOfNull() local
190 if (index < 0) { in indexOfNull()
191 return index; in indexOfNull()
[all …]
DArraySet.java114 int index = binarySearch(mHashes, hash); in indexOf() local
117 if (index < 0) { in indexOf()
118 return index; in indexOf()
122 if (key.equals(mArray[index])) { in indexOf()
123 return index; in indexOf()
128 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf()
133 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf()
153 int index = binarySearch(mHashes, 0); in indexOfNull() local
156 if (index < 0) { in indexOfNull()
157 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()
213 public int keyAt(int index) { in keyAt() argument
214 if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { in keyAt()
217 throw new ArrayIndexOutOfBoundsException(index); in keyAt()
[all …]
DXmlPullAttributes.java38 public String getAttributeNamespace (int index) { in getAttributeNamespace() argument
39 return mParser.getAttributeNamespace(index); in getAttributeNamespace()
42 public String getAttributeName(int index) { in getAttributeName() argument
43 return mParser.getAttributeName(index); in getAttributeName()
46 public String getAttributeValue(int index) { in getAttributeValue() argument
47 return mParser.getAttributeValue(index); in getAttributeValue()
58 public int getAttributeNameResource(int index) { in getAttributeNameResource() argument
101 public int getAttributeListValue(int index, in getAttributeListValue() argument
104 getAttributeValue(index), options, defaultValue); in getAttributeListValue()
107 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { in getAttributeBooleanValue() argument
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java109 public void bridgeSetValue(int index, String name, ResourceNamespace namespace, int resourceId, in bridgeSetValue() argument
111 mResourceId[index] = resourceId; in bridgeSetValue()
112 mResourceData[index] = value; in bridgeSetValue()
113 mNames[index] = name; in bridgeSetValue()
114 mNamespaces[index] = namespace; in bridgeSetValue()
158 int index = 1; in sealArray() local
161 mIndices[index++] = i; in sealArray()
198 public CharSequence getText(int index) { in getText() argument
199 if (!hasValue(index)) { in getText()
205 Integer v = resolveEnumAttribute(index); in getText()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAnswerToReset.java99 int index = startIndex + 1; in parseHistoricalBytes() local
100 while (index < startIndex + length && index > 0) { in parseHistoricalBytes()
101 index = parseLtvNode(index, nodes, originalData, startIndex + length - 1); in parseHistoricalBytes()
103 if (index < 0) { in parseHistoricalBytes()
118 int index, ArrayMap<Integer, byte[]> nodes, byte[] data, int lastByteIndex) { in parseLtvNode() argument
119 if (index > lastByteIndex) { in parseLtvNode()
122 int tag = (data[index] & TAG_MASK) >> 4; in parseLtvNode()
123 int length = data[index++] & LENGTH_MASK; in parseLtvNode()
124 if (index + length > lastByteIndex + 1 || length == 0) { in parseLtvNode()
128 System.arraycopy(data, index, value, 0, length); in parseLtvNode()
[all …]
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/pager/
DSnappingFlingBehavior.kt93 index = in performFling()
99 (itemInfo.index + 1).coerceAtMost( in performFling()
103 initialVelocity < -itemInfo.size -> itemInfo.index in performFling()
106 itemInfo.offset < -itemInfo.size / 2 -> itemInfo.index + 1 in performFling()
107 else -> itemInfo.index in performFling()
118 val index = in performDecayFling() constant
120 initialVelocity > 0 -> startItem.index + 1 in performDecayFling()
121 else -> startItem.index in performDecayFling()
123 val forward = index > (currentItemInfo?.index ?: return initialVelocity) in performDecayFling()
126 animationTarget = index in performDecayFling()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/
DPackageImpl.java225 public PackageImpl removePermission(int index) { in removePermission() argument
226 this.permissions.remove(index); in removePermission()
231 public PackageImpl addUsesOptionalLibrary(int index, String libraryName) { in addUsesOptionalLibrary() argument
232 this.usesOptionalLibraries = CollectionUtils.add(usesOptionalLibraries, index, in addUsesOptionalLibrary()
238 public PackageImpl addUsesLibrary(int index, String libraryName) { in addUsesLibrary() argument
239 this.usesLibraries = CollectionUtils.add(usesLibraries, index, in addUsesLibrary()
317 for (int index = 0; index < permissionsSize; index++) { in setPackageName()
318 ComponentMutateUtils.setPackageName(permissions.get(index), this.packageName); in setPackageName()
322 for (int index = 0; index < permissionGroupsSize; index++) { in setPackageName()
323 ComponentMutateUtils.setPackageName(permissionGroups.get(index), this.packageName); in setPackageName()
[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/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/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/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/core/java/com/android/internal/power/
DMeasuredEnergyStats.java143 int index = 0; in writeToParcel() local
146 supportedMultiStateBuckets[index++] = bucket; in writeToParcel()
183 public boolean isSupportedBucket(int index) { in isSupportedBucket() argument
184 return mSupportedStandardBuckets[index]; in isSupportedBucket()
195 public boolean isSupportedMultiStateBucket(int index) { in isSupportedMultiStateBucket() argument
196 return mSupportedMultiStateBuckets[index]; in isSupportedMultiStateBucket()
208 private String getBucketName(int index) { in getBucketName() argument
209 if (isValidStandardBucket(index)) { in getBucketName()
210 return DebugUtils.valueToString(MeasuredEnergyStats.class, "POWER_BUCKET_", index); in getBucketName()
212 final int customBucket = indexToCustomBucket(index); in getBucketName()
[all …]
/frameworks/base/libs/hwui/
DProfileData.cpp46 uint32_t index = static_cast<uint32_t>(ns2ms(frameTime)); in frameCountIndexForFrameTime() local
49 uint32_t mask = -(index > kBucketMinThreshold); in frameCountIndexForFrameTime()
55 index = ((index - kBucket4msIntervals) >> (index > kBucket4msIntervals)) + kBucket4msIntervals; in frameCountIndexForFrameTime()
56 index = ((index - kBucket2msIntervals) >> (index > kBucket2msIntervals)) + kBucket2msIntervals; in frameCountIndexForFrameTime()
60 index = (index - kBucketMinThreshold) & mask; in frameCountIndexForFrameTime()
61 return index; in frameCountIndexForFrameTime()
65 uint32_t ProfileData::frameTimeForFrameCountIndex(uint32_t index) { in frameTimeForFrameCountIndex() argument
66 index = index + kBucketMinThreshold; in frameTimeForFrameCountIndex()
67 if (index > kBucket2msIntervals) { in frameTimeForFrameCountIndex()
68 index += (index - kBucket2msIntervals); in frameTimeForFrameCountIndex()
[all …]
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DRawBatteryStats.java122 int index(); in index() method
158 @Field(index=-4)
161 @Field(index=-3)
164 @Field(index=-2)
167 @Field(index=-1)
175 @Field(index=0)
178 @Field(index=1)
181 @Field(index=2)
184 @Field(index=3)
187 @Field(index=4)
[all …]
DCsvParser.java83 int index = readPos; in parse() local
85 while (index < amt) { in parse()
86 byte c = buf[index]; in parse()
96 fields.add(new String(buf, fieldStart, index-fieldStart)); in parse()
107 fieldStart = index = index + 1; in parse()
114 buf[escapeIndex] = buf[index]; in parse()
120 index++; in parse()
123 fieldStart = index = index + 1; in parse()
128 buf[escapeIndex] = buf[index]; in parse()
130 index++; in parse()
[all …]
/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/
DAppEntitiesHeaderController.java127 for (int index = 0; index < MAXIMUM_APPS; index++) { in AppEntitiesHeaderController()
128 final View appView = mAppEntityViews[index]; in AppEntitiesHeaderController()
129 mAppIconViews[index] = (ImageView) appView.findViewById(R.id.app_icon); in AppEntitiesHeaderController()
130 mAppTitleViews[index] = (TextView) appView.findViewById(R.id.app_title); in AppEntitiesHeaderController()
131 mAppSummaryViews[index] = (TextView) appView.findViewById(R.id.app_summary); in AppEntitiesHeaderController()
183 public AppEntitiesHeaderController setAppEntity(int index, in setAppEntity() argument
185 mAppEntityInfos[index] = appEntityInfo; in setAppEntity()
195 public AppEntitiesHeaderController removeAppEntity(int index) { in removeAppEntity() argument
196 mAppEntityInfos[index] = null; in removeAppEntity()
206 for (int index = 0; index < MAXIMUM_APPS; index++) { in clearAllAppEntities()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DByteBucketArray.h47 inline const T& get(size_t index) const { return (*this)[index]; } in get() argument
49 const T& operator[](size_t index) const {
50 if (index >= size()) {
54 uint8_t bucket_index = static_cast<uint8_t>(index) >> 4;
59 return bucket[0x0f & static_cast<uint8_t>(index)];
62 T& editItemAt(size_t index) { in editItemAt() argument
63 CHECK(index < size()) << "ByteBucketArray.editItemAt(index=" << index in editItemAt()
66 uint8_t bucket_index = static_cast<uint8_t>(index) >> 4; in editItemAt()
71 return bucket[0x0f & static_cast<uint8_t>(index)]; in editItemAt()
74 bool set(size_t index, const T& value) { in set() argument
[all …]

12345678910>>...74