Searched refs:idx (Results 1 - 25 of 196) 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.erase(mContexts.begin() + idx);
H A DrsGrallocConsumer.cpp87 media_status_t GrallocConsumer::lockNextBuffer(uint32_t idx) { argument
90 if (idx >= mNumAlloc) {
91 ALOGE("Invalid buffer index: %d", idx);
95 if (mAcquiredBuffer[idx].mImg != nullptr) {
96 ret = unlockBuffer(idx);
102 ret = AImageReader_acquireNextImage(mImgReader, &(mAcquiredBuffer[idx].mImg));
103 if (ret != AMEDIA_OK || mAcquiredBuffer[idx].mImg == nullptr) {
105 __FUNCTION__, mImgReader, ret, mAcquiredBuffer[idx].mImg);
109 AImage *img = mAcquiredBuffer[idx].mImg;
156 mAcquiredBuffer[idx]
231 unlockBuffer(uint32_t idx) argument
258 releaseIdx(uint32_t idx) argument
[all...]
H A DrsGrallocConsumer.h44 media_status_t lockNextBuffer(uint32_t idx = 0);
45 media_status_t unlockBuffer(uint32_t idx = 0);
47 bool releaseIdx(uint32_t idx);
54 media_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/libmedia/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.java226 int idx = nativeGetAttributeIndex(mParseState, namespace, name);
227 if (idx >= 0) {
229 + namespace + ":" + name + " index = " + idx);
231 "Namespace=" + getAttributeNamespace(idx)
232 + "Name=" + getAttributeName(idx)
233 + ", Value=" + getAttributeValue(idx));
234 return getAttributeValue(idx);
318 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute);
319 if (idx >= 0) {
320 return getAttributeListValue(idx, option
366 getAttributeListValue(int idx, String[] options, int defaultValue) argument
376 getAttributeBooleanValue(int idx, boolean defaultValue) argument
387 getAttributeResourceValue(int idx, int defaultValue) argument
396 getAttributeIntValue(int idx, int defaultValue) argument
406 getAttributeUnsignedIntValue(int idx, int defaultValue) argument
416 getAttributeFloatValue(int idx, float defaultValue) argument
516 nativeGetAttributeNamespace(long state, int idx) argument
518 nativeGetAttributeName(long state, int idx) argument
520 nativeGetAttributeResource(long state, int idx) argument
522 nativeGetAttributeDataType(long state, int idx) argument
524 nativeGetAttributeData(long state, int idx) argument
526 nativeGetAttributeStringValue(long state, int idx) argument
[all...]
/frameworks/rs/driver/
H A DrsdVertexArray.cpp65 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { argument
66 if (idx == 0) {
70 idx, slot,
71 mAttribs[idx].name.c_str(),
72 mAttribs[idx].buffer,
73 mAttribs[idx].ptr,
74 mAttribs[idx].size,
75 mAttribs[idx].type,
76 mAttribs[idx].stride,
77 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/base/tools/aapt2/java/
H A DAnnotationProcessor.cpp35 std::string::size_type idx = comment.find(sSystemApi); local
36 if (idx != std::string::npos) {
38 comment.erase(comment.begin() + idx,
39 comment.begin() + idx + sSystemApi.size());
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpvdec_api.cpp82 int idx; local
88 for (idx = 0; idx < nLayers; idx++)
90 decCtrl->volbuf[idx] = volbuf[idx];
91 decCtrl->volbuf_size[idx] = volbuf_size[idx];
165 for (idx = 0; idx < nLayer
583 int idx; local
609 int idx; local
829 int idx; local
936 int idx = -1; local
1096 int idx; local
1305 int idx; local
[all...]

Completed in 441 milliseconds

12345678