Searched refs:index (Results 101 - 125 of 1308) sorted by relevance

1234567891011>>

/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...]
H A DSparseBooleanArray.java42 * <code>keyAt(int)</code> with ascending values of the index will return the
121 public void removeAt(int index) { argument
122 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));
123 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));
155 * Given an index in the range <code>0...size()-1</code>, returns
156 * the key from the <code>index</cod
164 keyAt(int index) argument
179 valueAt(int index) argument
184 setValueAt(int index, boolean value) argument
189 setKeyAt(int index, int key) argument
[all...]
H A DSparseIntArray.java43 * <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
192 setValueAt(int index, int value) 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/support/v7/recyclerview/src/android/support/v7/util/
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/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;
H A Dcbsearch.cpp88 Purpose : Inovative codebook search (find index and gain)
200 Word16 index; local
221 &index,
224 *(*anap)++ = index; /* sign index */
236 &index,
239 *(*anap)++ = index; /* sign index */
251 &index,
254 *(*anap)++ = index; /* sig
[all...]
/frameworks/av/media/libstagefright/omx/
H A DOMXMaster.cpp99 OMX_U32 index = 0; local
104 name, sizeof(name), index++)) == OMX_ErrorNone) {
155 ssize_t index = mPluginByComponentName.indexOfKey(String8(name)); local
157 if (index < 0) {
161 OMXPluginBase *plugin = mPluginByComponentName.valueAt(index);
178 ssize_t index = mPluginByInstance.indexOfKey(component); local
180 if (index < 0) {
184 OMXPluginBase *plugin = mPluginByInstance.valueAt(index);
185 mPluginByInstance.removeItemsAt(index);
193 OMX_U32 index) {
190 enumerateComponents( OMX_STRING name, size_t size, OMX_U32 index) argument
217 ssize_t index = mPluginByComponentName.indexOfKey(String8(name)); local
[all...]
/frameworks/base/core/java/android/webkit/
H A DDateSorter.java87 * @return an index from 0 to (DAY_COUNT - 1) that identifies which
99 * @param index date bin index as returned by getIndex()
102 public String getLabel(int index) { argument
103 if (index < 0 || index >= DAY_COUNT) return "";
104 return mLabels[index];
109 * @param index date bin index as returned by getIndex()
110 * @return date boundary at given index
112 getBoundary(int index) argument
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmUtils.java152 int index = 0;
154 while (index < constraintData.length) {
156 int keyLength = readByte(constraintData, index);
157 index++;
160 int valueLength = readByte(constraintData, index);
161 index++;
164 String strKey = readMultipleBytes(constraintData, keyLength, index);
165 index += keyLength;
168 String strValue = readMultipleBytes(constraintData, valueLength, index);
172 index
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaProfiles.cpp55 android_media_MediaProfiles_native_get_file_format(JNIEnv *env, jobject /* thiz */, jint index) argument
57 ALOGV("native_get_file_format: %d", index);
60 if (index < 0 || index >= nSize) {
64 return static_cast<jint>(formats[index]);
76 jint index)
78 ALOGV("native_get_video_encoder_cap: %d", index);
81 if (index < 0 || index >= nSize) {
86 video_encoder encoder = encoders[index];
75 android_media_MediaProfiles_native_get_video_encoder_cap(JNIEnv *env, jobject , jint index) argument
127 android_media_MediaProfiles_native_get_audio_encoder_cap(JNIEnv *env, jobject , jint index) argument
247 android_media_MediaProfiles_native_get_video_decoder_type(JNIEnv *env, jobject , jint index) argument
269 android_media_MediaProfiles_native_get_audio_decoder_type(JNIEnv *env, jobject , jint index) argument
293 android_media_MediaProfiles_native_get_image_encoding_quality_level(JNIEnv *env, jobject , jint cameraId, jint index) argument
[all...]
/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java236 private boolean isStartBoundary(int index) { argument
237 return isLetterOrDigit(index)
238 && (index == 0 || !isLetterOrDigit(index - 1));
241 private boolean isEndBoundary(int index) { argument
242 return (index > 0 && isLetterOrDigit(index - 1))
243 && (index == mText.length() || !isLetterOrDigit(index));
246 private boolean isLetterOrDigit(int index) { argument
318 isStartBoundary(int index) argument
323 isEndBoundary(int index) argument
[all...]
/frameworks/av/media/libmedia/
H A DIMediaCodecList.cpp54 virtual sp<MediaCodecInfo> getCodecInfo(size_t index) const
58 data.writeInt32(index);
130 size_t index = static_cast<size_t>(data.readInt32()); local
131 const sp<MediaCodecInfo> info = getCodecInfo(index);
166 ssize_t index = findCodecByType(type, isEncoder, startIndex); local
167 if (index > INT32_MAX || index < 0) {
168 index = NAME_NOT_FOUND;
170 reply->writeInt32(index);
183 ssize_t index local
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dd_plsf_3.cpp174 Word16 index; local
192 index =
200 index,
299 index = *indice++;
301 /* temp = 3*index; */
302 temp = index + (index << 1);
315 index = *indice++;
319 index <<= 1;
322 /* temp = 3*index */
[all...]
H A Ddec_lag6.cpp63 index -- Word16 -- received pitch index
89 the received adaptive codebook index.
96 decoder receives 61, 62, or 63 as the relative pitch index, it means
186 Word16 index, /* input : received pitch index */
203 if (index < 463)
205 /* T0 = (index+5)/6 + 17 */
206 i = index + 5;
226 /* *T0_frac = index
185 Dec_lag6( Word16 index, Word16 pit_min, Word16 pit_max, Word16 i_subfr, Word16 *T0, Word16 *T0_frac, Flag *pOverflow ) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DInterpolator.java64 * Assign the keyFrame (specified by index) a time value and an array of key
68 * @param index The index of the key frame to assign
73 public void setKeyFrame(int index, int msec, float[] values) { argument
74 setKeyFrame(index, msec, values, null);
78 * Assign the keyFrame (specified by index) a time value and an array of key
81 * @param index The index of the key frame to assign
87 public void setKeyFrame(int index, int msec, float[] values, float[] blend) { argument
88 if (index <
160 nativeSetKeyFrame(long native_instance, int index, int msec, float[] values, float[] blend) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DScript.java256 for (int index = 0; index < ains.length; ++index) {
257 in_ids[index] = ains[index].getID(mRS);
307 for (int index = 0; index < ains.length; ++index) {
308 in_ids[index] = ains[index]
379 setVar(int index, float v) argument
382 getVarF(int index) argument
390 setVar(int index, double v) argument
393 getVarD(int index) argument
401 setVar(int index, int v) argument
404 getVarI(int index) argument
413 setVar(int index, long v) argument
416 getVarJ(int index) argument
425 setVar(int index, boolean v) argument
428 getVarB(int index) argument
436 setVar(int index, BaseObj o) argument
446 setVar(int index, FieldPacker v) argument
454 setVar(int index, FieldPacker v, Element e, int[] dims) argument
462 getVarV(int index, FieldPacker v) argument
[all...]
/frameworks/base/libs/hwui/
H A DJankTracker.cpp88 uint32_t index = static_cast<uint32_t>(ns2ms(frameTime)); local
89 // If index > kBucketMinThreshold mask will be 0xFFFFFFFF as a result
91 uint32_t mask = -(index > kBucketMinThreshold);
92 // If index > threshold, this will essentially perform:
93 // amountAboveThreshold = index - threshold;
94 // index = threshold + (amountAboveThreshold / 2)
95 // However if index is <= this will do nothing. It will underflow, do
97 index = ((index - kBucket4msIntervals) >> (index > kBucket4msInterval
109 frameTimeForFrameCountIndex(uint32_t index) argument
[all...]
H A DFrameInfo.h90 inline int64_t& set(FrameInfoIndex index) { argument
91 return mBuffer[static_cast<int>(index)];
125 inline int64_t operator[](FrameInfoIndex index) const {
126 return get(index);
129 inline int64_t operator[](int index) const {
130 if (index < 0 || index >= static_cast<int>(FrameInfoIndex::NumIndexes)) return 0;
131 return mFrameInfo[index];
156 inline int64_t& set(FrameInfoIndex index) { argument
157 return mFrameInfo[static_cast<int>(index)];
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dengine.c41 SLuint32 index; local
42 for (index = 0; index < numSupportedInterfaces + 1; ++index) {
45 result = slQuerySupportedEngineInterfaces(index, &interfaceID);
46 if (index < numSupportedInterfaces) {
48 printf("interface[%u] ", index);
50 engine_ids[index] = interfaceID;
51 engine_req[index] = SL_BOOLEAN_TRUE;
55 result = slQuerySupportedEngineInterfaces(index, NUL
[all...]
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp101 ssize_t index = findSession(sessionId); local
102 if (index == kNotFound) {
106 mSessions.removeAt(index);
124 ssize_t index = findSession(sessionId); local
125 if (index == kNotFound) {
156 index = mByteArrayProperties.indexOfKey(String8("mock-request"));
157 if (index < 0) {
161 request = mByteArrayProperties.valueAt(index);
164 index = mStringProperties.indexOfKey(String8("mock-defaultUrl"));
165 if (index <
191 ssize_t index = findSession(sessionId); local
221 ssize_t index = findKeySet(keySetId); local
238 ssize_t index = findSession(sessionId); local
259 ssize_t index = findSession(sessionId); local
282 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-request")); local
324 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop")); local
344 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop1")); local
388 ssize_t index = mStringProperties.indexOfKey(name); local
401 ssize_t index = mByteArrayProperties.indexOfKey(name); local
423 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); local
443 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); local
454 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); local
519 ssize_t index = findSession(sessionId); local
539 ssize_t index = findSession(sessionId); local
564 ssize_t index = findSession(sessionId); local
603 ssize_t index = findSession(sessionId); local
640 ssize_t index = findSession(sessionId); local
677 ssize_t index = findSession(sessionId); local
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DKernelUidCpuTimeReader.java92 int index = mLastUserTimeUs.indexOfKey(uid);
93 if (index >= 0) {
94 userTimeDeltaUs -= mLastUserTimeUs.valueAt(index);
95 systemTimeDeltaUs -= mLastSystemTimeUs.valueAt(index);
96 powerDeltaMaUs -= mLastPowerMaUs.valueAt(index);
106 TimeUtils.formatDuration(mLastUserTimeUs.valueAt(index) / 1000, sb);
108 TimeUtils.formatDuration(mLastSystemTimeUs.valueAt(index) / 1000, sb);
109 sb.append(" p=").append(mLastPowerMaUs.valueAt(index) / 1000);
151 int index = mLastUserTimeUs.indexOfKey(uid);
152 if (index >
[all...]

Completed in 538 milliseconds

1234567891011>>