Searched refs:idx (Results 1 - 25 of 176) sorted by relevance

12345678

/frameworks/rs/
H A DrsDevice.cpp35 for (size_t idx=0; idx < mContexts.size(); idx++) {
36 if (mContexts[idx] == rsc) {
37 mContexts.removeAt(idx);
H A DrsGrallocConsumer.cpp72 status_t GrallocConsumer::lockNextBuffer(uint32_t idx) { argument
76 if (idx >= mNumAlloc) {
77 ALOGE("Invalid buffer index: %d", idx);
81 if (mAcquiredBuffer[idx].mSlot != BufferQueue::INVALID_BUFFER_SLOT) {
82 err = releaseAcquiredBufferLocked(idx);
141 rsAssert(mAcquiredBuffer[idx].mSlot == BufferQueue::INVALID_BUFFER_SLOT);
143 mAcquiredBuffer[idx].mSlot = slot;
144 mAcquiredBuffer[idx].mBufferPointer = bufferPointer;
145 mAcquiredBuffer[idx].mGraphicBuffer = mSlots[slot].mGraphicBuffer;
147 mAlloc[idx]
237 unlockBuffer(uint32_t idx) argument
242 releaseAcquiredBufferLocked(uint32_t idx) argument
287 releaseIdx(uint32_t idx) argument
[all...]
H A DrsGrallocConsumer.h50 status_t lockNextBuffer(uint32_t idx = 0);
51 status_t unlockBuffer(uint32_t idx = 0);
53 bool releaseIdx(uint32_t idx);
58 status_t releaseAcquiredBufferLocked(uint32_t idx);
/frameworks/base/core/java/android/os/
H A DPooledStringReader.java44 int idx = mIn.readInt();
45 if (idx >= 0) {
46 return mPool[idx];
48 idx = (-idx) - 1;
50 mPool[idx] = str;
/frameworks/av/include/media/
H A DStringArray.h44 void erase(int idx);
65 const char* getEntry(int idx) const {
66 return (unsigned(idx) >= unsigned(mCurrent)) ? NULL : mArray[idx];
73 void setEntry(int idx, const char* str);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dvlc_encode_inline.h25 Int idx, run, level, j; local
28 idx = 0;
53 RLB->level[idx] = -level;
54 RLB->s[idx] = 1;
55 RLB->run[idx] = run;
57 idx++;
61 RLB->level[idx] = level;
62 RLB->s[idx] = 0;
63 RLB->run[idx] = run;
65 idx
116 Int idx, run, level, j; local
230 Int idx, run, level = 0, j; local
[all...]
/frameworks/av/media/libmedia/
H A DStringArray.cpp74 void StringArray::erase(int idx) { argument
75 if (idx < 0 || idx >= mCurrent)
77 delete[] mArray[idx];
78 if (idx < mCurrent-1) {
79 memmove(&mArray[idx], &mArray[idx+1],
80 (mCurrent-1 - idx) * sizeof(char*));
103 void StringArray::setEntry(int idx, const char* str) { argument
104 if (idx <
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dms_stereo.c64 Word32 idx, shift; local
66 idx = sfb + sfboffs;
68 thrL = sfbThresholdLeft[idx];
69 thrR = sfbThresholdRight[idx];
70 nrgL = sfbEnergyLeft[idx];
71 nrgR = sfbEnergyRight[idx];
84 nrgL = sfbEnergyMid[idx];
85 nrgR = sfbEnergySide[idx];
102 msMask[idx] = 1;
105 for (j=sfbOffset[idx];
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DAHandler.cpp32 ssize_t idx = mMessages.indexOfKey(what); local
33 if (idx < 0) {
36 mMessages.editValueAt(idx)++;
/frameworks/base/rs/java/android/renderscript/
H A DProgramFragment.java67 int idx = 0;
70 tmp[idx++] = ProgramParam.INPUT.mID;
71 tmp[idx++] = mInputs[i].getID(mRS);
74 tmp[idx++] = ProgramParam.OUTPUT.mID;
75 tmp[idx++] = mOutputs[i].getID(mRS);
78 tmp[idx++] = ProgramParam.CONSTANT.mID;
79 tmp[idx++] = mConstants[i].getID(mRS);
82 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID;
83 tmp[idx++] = mTextureTypes[i].mID;
H A DProgramVertex.java127 int idx = 0;
130 tmp[idx++] = ProgramParam.INPUT.mID;
131 tmp[idx++] = mInputs[i].getID(mRS);
134 tmp[idx++] = ProgramParam.OUTPUT.mID;
135 tmp[idx++] = mOutputs[i].getID(mRS);
138 tmp[idx++] = ProgramParam.CONSTANT.mID;
139 tmp[idx++] = mConstants[i].getID(mRS);
142 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID;
143 tmp[idx++] = mTextureTypes[i].mID;
H A DProgramFragmentFixedFunction.java54 int idx = 0;
57 tmp[idx++] = ProgramParam.INPUT.mID;
58 tmp[idx++] = mInputs[i].getID(mRS);
61 tmp[idx++] = ProgramParam.OUTPUT.mID;
62 tmp[idx++] = mOutputs[i].getID(mRS);
65 tmp[idx++] = ProgramParam.CONSTANT.mID;
66 tmp[idx++] = mConstants[i].getID(mRS);
69 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID;
70 tmp[idx++] = mTextureTypes[i].mID;
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dol_ltp.cpp96 idx = 16 bit value specifies the frame index
139 Word16 idx, // i : index
151 *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME, idx, dtx);
158 idx, dtx);
163 old_lags, ol_gain_flg, idx, dtx);
168 L_FRAME_BY2, idx, dtx);
210 Word16 idx, /* i : index */
223 *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME, idx, dtx,
231 idx, dtx, pOverflow);
236 old_lags, ol_gain_flg, idx, dt
201 ol_ltp( pitchOLWghtState *st, vadState *vadSt, enum Mode mode, Word16 wsp[], Word16 *T_op, Word16 old_lags[], Word16 ol_gain_flg[], Word16 idx, Flag dtx, Flag *pOverflow ) argument
[all...]
H A Dol_ltp.h113 Word16 idx, /* i : index */
H A Dpitch_ol.h110 Word16 idx, /* i : frame index */
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dframetovalues.cpp43 for(int idx = 0; idx < numPixels; idx++, disp+=4) {
48 *(grayPtr+idx) = static_cast<unsigned char>(gray);
69 for(int idx = 0; idx < numPixels; idx++, pixelDisp += 4, rgbDisp += 3) {
/frameworks/base/core/java/android/content/res/
H A DXmlBlock.java224 int idx = nativeGetAttributeIndex(mParseState, namespace, name);
225 if (idx >= 0) {
227 + namespace + ":" + name + " index = " + idx);
229 "Namespace=" + getAttributeNamespace(idx)
230 + "Name=" + getAttributeName(idx)
231 + ", Value=" + getAttributeValue(idx));
232 return getAttributeValue(idx);
316 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
317 if (idx >= 0) {
318 return getAttributeListValue(idx, option
364 getAttributeListValue(int idx, String[] options, int defaultValue) argument
374 getAttributeBooleanValue(int idx, boolean defaultValue) argument
385 getAttributeResourceValue(int idx, int defaultValue) argument
394 getAttributeIntValue(int idx, int defaultValue) argument
404 getAttributeUnsignedIntValue(int idx, int defaultValue) argument
414 getAttributeFloatValue(int idx, float defaultValue) argument
503 nativeGetAttributeNamespace(long state, int idx) argument
504 nativeGetAttributeName(long state, int idx) argument
505 nativeGetAttributeResource(long state, int idx) argument
506 nativeGetAttributeDataType(long state, int idx) argument
507 nativeGetAttributeData(long state, int idx) argument
508 nativeGetAttributeStringValue(long state, int idx) argument
[all...]
/frameworks/rs/driver/
H A DrsdVertexArray.cpp66 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { argument
67 if (idx == 0) {
71 idx, slot,
72 mAttribs[idx].name.string(),
73 mAttribs[idx].buffer,
74 mAttribs[idx].ptr,
75 mAttribs[idx].size,
76 mAttribs[idx].type,
77 mAttribs[idx].stride,
78 mAttribs[idx]
[all...]
/frameworks/base/tools/aapt/
H A DAaptUtil.h45 ssize_t idx = keyedVector.indexOfKey(key); local
46 if (idx < 0) {
47 idx = keyedVector.add(key, android::Vector<VALUE>());
49 keyedVector.editValueAt(idx).add(value);
55 ssize_t idx = keyedVector.indexOfKey(key); local
56 if (idx < 0) {
57 idx = keyedVector.add(key, android::SortedVector<VALUE>());
59 keyedVector.editValueAt(idx).add(value);
H A DAaptXml.cpp81 ssize_t idx = tree.indexOfAttribute(ns, attr); local
82 if (idx < 0) {
85 return getStringAttributeAtIndex(tree, idx, outError);
89 ssize_t idx = indexOfAttribute(tree, attrRes); local
90 if (idx < 0) {
93 return getStringAttributeAtIndex(tree, idx, outError);
98 ssize_t idx = indexOfAttribute(tree, attrRes); local
99 if (idx < 0) {
103 if (tree.getAttributeValue(idx, &value) != NO_ERROR) {
106 const char16_t* str = tree.getAttributeStringValue(idx,
125 ssize_t idx = tree.indexOfAttribute(ns, attr); local
134 ssize_t idx = indexOfAttribute(tree, attrRes); local
143 ssize_t idx = indexOfAttribute(tree, attrRes); local
165 ssize_t idx = indexOfAttribute(tree, attrRes); local
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DELFReader.cpp87 for (size_t idx = 1; idx < entsize; ++idx) {
88 st_info = symtab[idx].st_info;
89 st_other = symtab[idx].st_other;
92 st_name = symtab[idx].st_name;
93 st_value = symtab[idx].st_value;
94 st_size = symtab[idx].st_size;
95 st_shndx = symtab[idx].st_shndx;
97 st_name = mcld::bswap32(symtab[idx]
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_XmlBlock.cpp186 jlong token, jint idx)
194 return static_cast<jint>(st->getAttributeNamespaceID(idx));
198 jlong token, jint idx)
206 return static_cast<jint>(st->getAttributeNameID(idx));
210 jlong token, jint idx)
218 return static_cast<jint>(st->getAttributeNameResID(idx));
222 jlong token, jint idx)
230 return static_cast<jint>(st->getAttributeDataType(idx));
234 jlong token, jint idx)
242 return static_cast<jint>(st->getAttributeData(idx));
185 android_content_XmlBlock_nativeGetAttributeNamespace(JNIEnv* env, jobject clazz, jlong token, jint idx) argument
197 android_content_XmlBlock_nativeGetAttributeName(JNIEnv* env, jobject clazz, jlong token, jint idx) argument
209 android_content_XmlBlock_nativeGetAttributeResource(JNIEnv* env, jobject clazz, jlong token, jint idx) argument
221 android_content_XmlBlock_nativeGetAttributeDataType(JNIEnv* env, jobject clazz, jlong token, jint idx) argument
233 android_content_XmlBlock_nativeGetAttributeData(JNIEnv* env, jobject clazz, jlong token, jint idx) argument
245 android_content_XmlBlock_nativeGetAttributeStringValue(JNIEnv* env, jobject clazz, jlong token, jint idx) argument
278 jint idx = static_cast<jint>(st->indexOfAttribute(ns16, nsLen, name16, nameLen)); local
297 ssize_t idx = st->indexOfID(); local
310 ssize_t idx = st->indexOfClass(); local
323 ssize_t idx = st->indexOfStyle(); local
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpvdec_api.cpp80 int idx; local
86 for (idx = 0; idx < nLayers; idx++)
88 decCtrl->volbuf[idx] = volbuf[idx];
89 decCtrl->volbuf_size[idx] = volbuf_size[idx];
163 for (idx = 0; idx < nLayer
581 int idx; local
607 int idx; local
827 int idx; local
934 int idx = -1; local
1094 int idx; local
1303 int idx; local
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddec_alg_codebook.cpp195 int32 mask, idx; local
204 idx = index & mask;
213 dec_2p_2N1(idx, (int16)(N - 1), j, pos);
216 tmp = N << 1; /* idx = (index >> (2*N)) & mask; */
217 idx = (index >> tmp) & mask;
219 dec_1p_N1(idx, N, offset, pos + 2);
232 int32 mask, idx; local
239 idx = index & mask;
248 dec_2p_2N1(idx, (int16)(N - 1), j, pos);
253 idx
319 int32 idx; local
[all...]
/frameworks/av/include/ndk/
H A DNdkMediaCodec.h115 uint8_t* AMediaCodec_getInputBuffer(AMediaCodec*, size_t idx, size_t *out_size);
121 uint8_t* AMediaCodec_getOutputBuffer(AMediaCodec*, size_t idx, size_t *out_size);
134 size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags);
140 size_t idx, off_t offset, AMediaCodecCryptoInfo*, uint64_t time, uint32_t flags);
154 media_status_t AMediaCodec_releaseOutputBuffer(AMediaCodec*, size_t idx, bool render);
177 AMediaCodec *mData, size_t idx, int64_t timestampNs);

Completed in 3519 milliseconds

12345678