/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/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...] |
/frameworks/base/cmds/statsd/src/anomaly/ |
H A D | indexed_priority_queue.h | 78 void sift_up(size_t idx); 79 void sift_down(size_t idx); 97 size_t idx = size(); // index of last element since 1-indexed local 98 indices.insert({a, idx}); 99 sift_up(idx); // get the pq back in order 106 size_t idx = indices[a]; 107 if (idx >= pq.size()) { 110 if (idx == size()) { // if a is the last element, i.e. at index idx == size() == (pq.size()-1) 115 // move last element (guaranteed not to be at idx) t 134 const size_t idx = 1; local 171 sift_up(size_t idx) argument 183 sift_down(size_t idx) argument [all...] |
/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 | 228 int idx = nativeGetAttributeIndex(mParseState, namespace, name); 229 if (idx >= 0) { 231 + namespace + ":" + name + " index = " + idx); 233 "Namespace=" + getAttributeNamespace(idx) 234 + "Name=" + getAttributeName(idx) 235 + ", Value=" + getAttributeValue(idx)); 236 return getAttributeValue(idx); 320 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute); 321 if (idx >= 0) { 322 return getAttributeListValue(idx, option 368 getAttributeListValue(int idx, String[] options, int defaultValue) argument 378 getAttributeBooleanValue(int idx, boolean defaultValue) argument 389 getAttributeResourceValue(int idx, int defaultValue) argument 398 getAttributeIntValue(int idx, int defaultValue) argument 408 getAttributeUnsignedIntValue(int idx, int defaultValue) argument 418 getAttributeFloatValue(int idx, float defaultValue) argument 518 nativeGetAttributeNamespace(long state, int idx) argument 520 nativeGetAttributeName(long state, int idx) argument 522 nativeGetAttributeResource(long state, int idx) argument 524 nativeGetAttributeDataType(long state, int idx) argument 526 nativeGetAttributeData(long state, int idx) argument 528 nativeGetAttributeStringValue(long state, int idx) argument [all...] |
/frameworks/ml/nn/common/operations/ |
H A D | StridedSlice.cpp | 43 for (int32_t idx = numInputDims - 1; idx >= 0; --idx) { 44 int32_t dim = static_cast<int32_t>(getSizeOfDimension(inputShape, idx)); 45 int32_t stride = stridesData[idx]; 50 int32_t begin = beginMask & (1 << idx) 52 : ClampedIndex(beginData[idx], dim, positiveStride); 53 int32_t end = endMask & (1 << idx) 55 : ClampedIndex(endData[idx], dim, positiveStride);
|
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/base/services/core/java/com/android/server/wm/utils/ |
H A D | RotationCache.java | 53 final int idx = mCache.indexOfKey(rotation); 54 if (idx >= 0) { 55 return mCache.valueAt(idx);
|
/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...] |