/frameworks/rs/ |
H A D | rsDevice.cpp | 35 for (size_t idx=0; idx < mContexts.size(); idx++) { 36 if (mContexts[idx] == rsc) { 37 mContexts.erase(mContexts.begin() + idx);
|
H A D | rsGrallocConsumer.cpp | 87 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 D | rsGrallocConsumer.h | 44 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 D | PooledStringReader.java | 44 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 D | StringArray.h | 44 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 D | StringArray.h | 44 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 D | vlc_encode_inline.h | 25 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 D | StringArray.cpp | 74 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 D | ms_stereo.c | 64 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]; 100 msMask[idx] = 1; 103 for (j=sfbOffset[idx]; [all...] |
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | small_struct.rs | 55 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 56 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx); 57 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx); 81 for (int idx = 0; idx < ARRAY_LEN; idx [all...] |
H A D | small_struct_2.rs | 55 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 56 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx); 57 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx); 81 for (int idx = 0; idx < ARRAY_LEN; idx [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | AHandler.cpp | 32 ssize_t idx = mMessages.indexOfKey(what); local 33 if (idx < 0) { 36 mMessages.editValueAt(idx)++;
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | ProgramFragment.java | 67 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 D | ProgramVertex.java | 127 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;
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | ol_ltp.cpp | 96 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 D | ol_ltp.h | 113 Word16 idx, /* i : index */
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | frametovalues.cpp | 43 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 D | XmlBlock.java | 226 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/ml/nn/common/operations/ |
H A D | EmbeddingLookup.cpp | 40 int idx = (reinterpret_cast<int*>(lookup_->buffer))[i]; local 41 if (idx >= row_size || idx < 0) { 45 memcpy(output_->buffer + i * row_bytes, value_->buffer + idx * row_bytes,
|
H A D | HashtableLookup.cpp | 50 int idx = -1; local 54 idx = 58 if (idx >= num_rows || idx < 0) { 62 memcpy(output_->buffer + i * row_bytes, value_->buffer + idx * row_bytes,
|
/frameworks/rs/driver/ |
H A D | rsdVertexArray.cpp | 65 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 D | AaptUtil.h | 45 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 D | AaptXml.cpp | 81 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) { 104 if (tree.getAttributeValue(idx, &value) == BAD_TYPE) { 114 const char16_t* str = tree.getAttributeStringValue(idx, 141 ssize_t idx = tree.indexOfAttribute(ns, attr); local 150 ssize_t idx = indexOfAttribute(tree, attrRes); local 159 ssize_t idx = indexOfAttribute(tree, attrRes); local 181 ssize_t idx = indexOfAttribute(tree, attrRes); local [all...] |
/frameworks/compile/mclinker/lib/LD/ |
H A D | ELFReader.cpp | 87 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 D | android_util_XmlBlock.cpp | 186 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...] |