Searched refs:index (Results 301 - 325 of 1076) sorted by relevance

<<11121314151617181920>>

/frameworks/wilhelm/src/android/
H A Dandroid_AudioSfDecoder.h66 bool getPcmFormatKeySize(uint32_t index, uint32_t* pKeySize);
67 bool getPcmFormatKeyName(uint32_t index, uint32_t keySize, char* keyName);
68 bool getPcmFormatValueSize(uint32_t index, uint32_t* pValueSize);
69 bool getPcmFormatKeyValue(uint32_t index, uint32_t size, uint32_t* pValue);
/frameworks/av/media/libstagefright/
H A DAMRExtractor.cpp183 sp<MediaSource> AMRExtractor::getTrack(size_t index) { argument
184 if (mInitCheck != OK || index != 0) {
192 sp<MetaData> AMRExtractor::getTrackMetaData(size_t index, uint32_t /* flags */) { argument
193 if (mInitCheck != OK || index != 0) {
261 size_t index = seekFrame < 0 ? 0 : seekFrame / 50; local
262 if (index >= mOffsetTableLength) {
263 index = mOffsetTableLength - 1;
266 mOffset = mOffsetTable[index] + (mIsWide ? 9 : 6);
268 for (size_t i = 0; i< seekFrame - index * 50; i++) {
H A DOMXClient.cpp56 node_id node, OMX_INDEXTYPE index,
60 node_id node, OMX_INDEXTYPE index,
64 node_id node, OMX_INDEXTYPE index,
68 node_id node, OMX_INDEXTYPE index,
131 OMX_INDEXTYPE *index);
258 node_id node, OMX_INDEXTYPE index,
260 return getOMX(node)->getParameter(node, index, params, size);
264 node_id node, OMX_INDEXTYPE index,
266 return getOMX(node)->setParameter(node, index, params, size);
270 node_id node, OMX_INDEXTYPE index,
257 getParameter( node_id node, OMX_INDEXTYPE index, void *params, size_t size) argument
263 setParameter( node_id node, OMX_INDEXTYPE index, const void *params, size_t size) argument
269 getConfig( node_id node, OMX_INDEXTYPE index, void *params, size_t size) argument
275 setConfig( node_id node, OMX_INDEXTYPE index, const void *params, size_t size) argument
379 getExtensionIndex( node_id node, const char *parameter_name, OMX_INDEXTYPE *index) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dc2_9pf.cpp183 index = code index (Word16)
254 Word16 i, index, sharp;
265 index = build_code(subNr, codvec, dn_sign, code, h, y, sign);
276 return index;
323 Word16 index; local
387 index =
421 return(index);
519 * These index have low complexity address computation because *
659 * These index hav
1001 register Word16 index; local
[all...]
H A Ds10_8pf.cpp238 s = L_mult (rr[i3][i3], _1_8); // index incr= step+L_CODE
239 s = L_mac (s, rr[i0][i3], _1_4); // index increment = step
240 s = L_mac (s, rr[i1][i3], _1_4); // index increment = step
253 // index increment = step
256 // index incr= step+L_CODE
259 // index increment = step
262 // index increment = step
267 // index increment = step
270 // index increment = step
273 // index incremen
587 Word16 index[10]; local
[all...]
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextDriver.cpp63 status_t TimedTextDriver::selectTrack_l(size_t index) { argument
64 if (mCurrentTrackIndex == index) {
68 source = mTextSourceVector.valueFor(index);
73 mCurrentTrackIndex = index;
118 status_t TimedTextDriver::selectTrack(size_t index) { argument
126 ret = selectTrack_l(index);
130 ret = selectTrack_l(index);
142 status_t TimedTextDriver::unselectTrack(size_t index) { argument
145 if (mCurrentTrackIndex != index) {
/frameworks/base/core/java/android/util/
H A DLongSparseArray.java48 * <code>keyAt(int)</code> with ascending values of the index will return the
144 * Removes the mapping at the specified index.
146 public void removeAt(int index) { argument
147 if (mValues[index] != DELETED) {
148 mValues[index] = DELETED;
226 * Given an index in the range <code>0...size()-1</code>, returns
227 * the key from the <code>index</code>th key-value mapping that this
235 public long keyAt(int index) { argument
240 return mKeys[index];
244 * Given an index i
255 valueAt(int index) argument
268 setValueAt(int index, E value) argument
[all...]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DDisplaySinkService.java195 final int index = mCodec.dequeueInputBuffer(0);
196 if (index < 0) {
202 final ByteBuffer buffer = mCodecInputBuffers[index];
214 mCodec.queueInputBuffer(index, 0, buffer.limit(), 0, 0);
220 final int index = mCodec.dequeueOutputBuffer(mCodecBufferInfo, 0);
221 if (index >= 0) {
222 mCodec.releaseOutputBuffer(index, true /*render*/);
223 } else if (index != MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED
224 && index != MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DManualActivity.java164 public DisplayModifierSpinner(int index) { argument
166 mIndex = index;
189 int index = 0;
191 mSpinners[index] = new DisplayModifierSpinner(index);
192 mSpinners[index].setAdapter(new ArrayAdapter<String>(this,
194 layout.addView(mSpinners[index]);
195 index++;
197 Log.d(LOG_TAG, "created " + index + " spinners");
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DSparseWeakArray.java112 * Removes the mapping at the specified index.
114 public void removeAt(int index) { argument
115 if (mValues[index] != DELETED) {
116 mValues[index] = DELETED;
191 * Given an index in the range <code>0...size()-1</code>, returns
192 * the key from the <code>index</code>th key-value mapping that this
195 public long keyAt(int index) { argument
200 return mKeys[index];
204 * Given an index in the range <code>0...size()-1</code>, returns
205 * the value from the <code>index</cod
208 valueAt(int index) argument
221 setValueAt(int index, E value) argument
[all...]
/frameworks/native/opengl/libs/EGL/
H A DLoader.cpp232 ssize_t index = ssize_t(strlen(name)) - 3; local
233 if ((index>0 && (index<SIZE-1)) && (!strcmp(name+index, "OES"))) {
234 strncpy(scrap, name, index);
235 scrap[index] = 0;
242 ssize_t index = ssize_t(strlen(name)) - 3; local
243 if (index>0 && strcmp(name+index, "OES")) {
/frameworks/native/services/surfaceflinger/
H A DFrameTracker.cpp127 const size_t index = (offset + i) % NUM_FRAME_RECORDS; local
130 if (mFrameRecords[index].desiredPresentTime == 0) {
134 nsecs_t desiredPresentTimeNano = mFrameRecords[index].desiredPresentTime;
137 nsecs_t actualPresentTimeNano = mFrameRecords[index].actualPresentTime;
140 nsecs_t frameReadyTimeNano = mFrameRecords[index].frameReadyTime;
242 const size_t index = (o+i) % NUM_FRAME_RECORDS; local
244 mFrameRecords[index].desiredPresentTime,
245 mFrameRecords[index].actualPresentTime,
246 mFrameRecords[index].frameReadyTime);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DRetryManager.java276 int index;
278 index = mRetryCount;
280 index = mRetryArray.size() - 1;
284 if ((index >= 0) && (index < mRetryArray.size())) {
285 retVal = mRetryArray.get(index).mDelayTime + nextRandomizationTime(index);
431 * Return next random number for the index
433 private int nextRandomizationTime(int index) { argument
434 int randomTime = mRetryArray.get(index)
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLongSparseArray.java136 * Removes the mapping at the specified index.
138 public void removeAt(int index) { argument
139 if (mValues[index] != DELETED) {
140 mValues[index] = DELETED;
238 * Given an index in the range <code>0...size()-1</code>, returns
239 * the key from the <code>index</code>th key-value mapping that this
242 public long keyAt(int index) { argument
247 return mKeys[index];
251 * Given an index in the range <code>0...size()-1</code>, returns
252 * the value from the <code>index</cod
256 valueAt(int index) argument
269 setValueAt(int index, E value) argument
[all...]
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp529 int index = -1; local
575 index = getCamcorderProfileIndex(cameraId, refQuality);
577 if (index == -1) {
618 int index = getCamcorderProfileIndex(cameraId, profile->mQuality); local
619 if (index != -1) {
622 CHECK(index == refIndex);
983 int index = -1; local
986 index = i;
990 if (index == -1) {
995 if (!strcmp("enc.vid.width.min", name)) return mVideoEncoders[index]
1012 int index = -1; local
1068 int index = -1; local
1111 int index = -1; local
1129 int index = getCamcorderProfileIndex(cameraId, quality); local
1169 ssize_t index = mStartTimeOffsets.indexOfKey(cameraId); local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1443 * @param index The index of the first character to start measuring
1447 public float measureText(char[] text, int index, int count) { argument
1451 if ((index | count) < 0 || index + count > text.length) {
1459 return (float) Math.ceil(native_measureText(text, index, count, mBidiFlags));
1464 float w = native_measureText(text, index, count, mBidiFlags);
1469 private native float native_measureText(char[] text, int index, int count, int bidiFlags); argument
1475 * @param start The index of the first character to start measuring
1476 * @param end 1 beyond the index o
1582 breakText(char[] text, int index, int count, float maxWidth, float[] measuredWidth) argument
1608 native_breakText(long native_object, long native_typeface, char[] text, int index, int count, float maxWidth, int bidiFlags, float[] measuredWidth) argument
1714 getTextWidths(char[] text, int index, int count, float[] widths) argument
1842 getTextRunAdvances(char[] chars, int index, int count, int contextIndex, int contextCount, boolean isRtl, float[] advances, int advancesIndex) argument
2146 getTextPath(char[] text, int index, int count, float x, float y, Path path) argument
2207 getTextBounds(char[] text, int index, int count, Rect bounds) argument
2261 native_getTextWidths(long native_object, long native_typeface, char[] text, int index, int count, int bidiFlags, float[] widths) argument
2270 native_getTextRunAdvances(long native_object, long native_typeface, char[] text, int index, int count, int contextIndex, int contextCount, boolean isRtl, float[] advances, int advancesIndex) argument
2282 native_getTextPath(long native_object, long native_typeface, int bidiFlags, char[] text, int index, int count, float x, float y, long path) argument
2288 nativeGetCharArrayBounds(long nativePaint, long native_typeface, char[] text, int index, int count, int bidiFlags, Rect bounds) argument
[all...]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DWapPushTest.java890 int index = headerStart;
910 if (index > 100 && !appIdAdded) addAppid = true;
920 if (index + add >= len) break;
927 arr[index] = (byte) (0x80 | rd.nextInt(128));
928 } while (arr[index] == (byte) 0xaf);
931 arr[index] = (byte) 0xaf;
933 if (noAppId) arr[index]++;
937 arr[index] = (byte) (add - 1);
942 arr[index + i] = (byte) tmpVal;
945 if (tmpVal2 == 0x2f) arr[index
[all...]
/frameworks/wilhelm/src/itf/
H A DIObject.c338 int MPH, index; local
342 (0 > (index = clazz->mMPH_to_index[MPH]))) {
345 unsigned mask = 1 << index;
348 !(INTERFACE_PREREALIZE & clazz->mInterfaces[index].mInterface)) {
357 switch (thiz->mInterfaceStates[index]) {
360 interface = (char *) thiz + clazz->mInterfaces[index].mOffset;
438 unsigned index; local
439 for (index = 0; index < clazz->mInterfaceCount; ++index,
582 unsigned index = clazz->mInterfaceCount; local
708 int MPH, index; local
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_dpb.c234 i32 picNum, picNumNoWrap, index; local
286 index = FindDpbPic(dpb, picNum, isShortTerm);
287 if (index < 0 || !IS_EXISTING(dpb->buffer[index]))
294 dpb->list[refIdx++] = &dpb->buffer[index];
297 if(dpb->list[j] != &dpb->buffer[index])
326 i32 index, picNum; local
334 index = FindDpbPic(dpb, picNum, HANTRO_TRUE);
335 if (index < 0)
338 SET_UNUSED(dpb->buffer[index]);
366 i32 index; local
406 i32 index, picNum; local
846 h264bsdGetRefPicData(dpbStorage_t *dpb, u32 index) argument
914 i32 index, picNum; local
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DSystemMediaRouteProvider.java264 int index = findSystemRouteRecordByDescriptorId(routeId);
265 if (index >= 0) {
266 SystemRouteRecord record = mSystemRouteRecords.get(index);
351 int index = findSystemRouteRecord(routeObj);
352 if (index >= 0) {
353 mSystemRouteRecords.remove(index);
362 int index = findSystemRouteRecord(routeObj);
363 if (index >= 0) {
364 SystemRouteRecord record = mSystemRouteRecords.get(index);
374 int index
423 onRouteGrouped(Object routeObj, Object groupObj, int index) argument
[all...]
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DUiTest.java79 void addTest(int index, int testId, int user1, int user2, int user3) { argument
80 mTests[index] = new ScriptField_TestScripts_s.Item();
81 mTests[index].testScript = mUiScript;
82 mTests[index].testName = Allocation.createFromString(mRS,
83 mNames[index],
85 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
86 mNames[index],
96 mTests[index].testData = testData.getAllocation();
108 int index = 0;
110 addTest(index
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dq_plsf_5.cpp154 Word16 -- quantization index, Q0
205 static Word16 Vq_subvec( /* o : quantization index, Q0 */
215 Word16 index = 0; /* initialization only needed to keep gcc silent */ local
281 index = i;
289 p_dico = &dico[ index<<2];
295 return index;
318 Word16 -- quantization index, Q0
371 static Word16 Vq_subvec_s( /* o : quantization index Q0 */
380 Word16 index = 0; /* initialization only needed to keep gcc silent */ local
461 index
[all...]
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp90 BlockIterator(MatroskaExtractor *extractor, unsigned long trackNum, unsigned long index);
121 const sp<MatroskaExtractor> &extractor, size_t index);
207 const sp<MatroskaExtractor> &extractor, size_t index)
209 mTrackIndex(index),
213 mExtractor->mTracks.itemAt(index).mTrackNum,
214 index),
216 sp<MetaData> meta = mExtractor->mTracks.itemAt(index).mMeta;
264 MatroskaExtractor *extractor, unsigned long trackNum, unsigned long index)
267 mIndex(index),
392 for (size_t index
206 MatroskaSource( const sp<MatroskaExtractor> &extractor, size_t index) argument
263 BlockIterator( MatroskaExtractor *extractor, unsigned long trackNum, unsigned long index) argument
768 getTrack(size_t index) argument
776 getTrackMetaData( size_t index, uint32_t flags) argument
[all...]
/frameworks/av/media/libstagefright/omx/
H A DOMXNodeInstance.cpp278 OMX_INDEXTYPE index, void *params, size_t /* size */) {
281 OMX_ERRORTYPE err = OMX_GetParameter(mHandle, index, params);
282 ALOGE_IF(err != OMX_ErrorNone, "getParameter(%d) ERROR: %#x", index, err);
287 OMX_INDEXTYPE index, const void *params, size_t /* size */) {
291 mHandle, index, const_cast<void *>(params));
292 ALOGE_IF(err != OMX_ErrorNone, "setParameter(%d) ERROR: %#x", index, err);
297 OMX_INDEXTYPE index, void *params, size_t /* size */) {
300 OMX_ERRORTYPE err = OMX_GetConfig(mHandle, index, params);
305 OMX_INDEXTYPE index, const void *params, size_t /* size */) {
309 mHandle, index, const_cas
277 getParameter( OMX_INDEXTYPE index, void *params, size_t ) argument
286 setParameter( OMX_INDEXTYPE index, const void *params, size_t ) argument
296 getConfig( OMX_INDEXTYPE index, void *params, size_t ) argument
304 setConfig( OMX_INDEXTYPE index, const void *params, size_t ) argument
328 OMX_INDEXTYPE index; local
364 OMX_INDEXTYPE index; local
411 OMX_INDEXTYPE index; local
459 OMX_INDEXTYPE index; local
493 OMX_INDEXTYPE index; local
629 OMX_INDEXTYPE index; local
910 getExtensionIndex( const char *parameterName, OMX_INDEXTYPE *index) argument
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java237 * Return index of bucket that contains or is immediately before the
241 int index = Arrays.binarySearch(bucketStart, 0, bucketCount, time);
242 if (index < 0) {
243 index = (~index) - 1;
245 index -= 1;
247 return MathUtils.constrain(index, 0, bucketCount - 1);
251 * Return index of bucket that contains or is immediately after the
255 int index = Arrays.binarySearch(bucketStart, 0, bucketCount, time);
256 if (index <
400 insertBucket(int index, long start) argument
[all...]

Completed in 898 milliseconds

<<11121314151617181920>>