/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | vlc_encode_inline.h | 25 Int idx, run, level, j; in zero_run_search() local 28 idx = 0; in zero_run_search() 53 RLB->level[idx] = -level; in zero_run_search() 54 RLB->s[idx] = 1; in zero_run_search() 55 RLB->run[idx] = run; in zero_run_search() 57 idx++; in zero_run_search() 61 RLB->level[idx] = level; in zero_run_search() 62 RLB->s[idx] = 0; in zero_run_search() 63 RLB->run[idx] = run; in zero_run_search() 65 idx++; in zero_run_search() [all …]
|
/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 90 media_status_t GrallocConsumer::lockNextBuffer(uint32_t idx) { in lockNextBuffer() argument 93 if (idx >= mNumAlloc) { in lockNextBuffer() 94 ALOGE("Invalid buffer index: %d", idx); in lockNextBuffer() 98 if (mAcquiredBuffer[idx].mImg != nullptr) { in lockNextBuffer() 99 ret = unlockBuffer(idx); in lockNextBuffer() 105 ret = AImageReader_acquireNextImage(mImgReader, &(mAcquiredBuffer[idx].mImg)); in lockNextBuffer() 106 if (ret != AMEDIA_OK || mAcquiredBuffer[idx].mImg == nullptr) { in lockNextBuffer() 108 __FUNCTION__, mImgReader, ret, mAcquiredBuffer[idx].mImg); in lockNextBuffer() 112 AImage *img = mAcquiredBuffer[idx].mImg; in lockNextBuffer() 159 mAcquiredBuffer[idx].mBufferPointer = data; in lockNextBuffer() [all …]
|
/frameworks/base/cmds/statsd/src/anomaly/ |
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 in push() local 98 indices.insert({a, idx}); in push() 99 sift_up(idx); // get the pq back in order in push() 106 size_t idx = indices[a]; in remove() local 107 if (idx >= pq.size()) { in remove() 110 if (idx == size()) { // if a is the last element, i.e. at index idx == size() == (pq.size()-1) in remove() 117 pq[idx] = last_a; in remove() 119 indices[last_a] = idx; in remove() [all …]
|
/frameworks/av/media/libmedia/ |
D | StringArray.cpp | 74 void StringArray::erase(int idx) { in erase() argument 75 if (idx < 0 || idx >= mCurrent) in erase() 77 delete[] mArray[idx]; in erase() 78 if (idx < mCurrent-1) { in erase() 79 memmove(&mArray[idx], &mArray[idx+1], in erase() 80 (mCurrent-1 - idx) * sizeof(char*)); in erase() 103 void StringArray::setEntry(int idx, const char* str) { in setEntry() argument 104 if (idx < 0 || idx >= mCurrent) in setEntry() 106 delete[] mArray[idx]; in setEntry() 108 mArray[idx] = new char[len+1]; in setEntry() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | XmlBlock.java | 243 int idx = nativeGetAttributeIndex(mParseState, namespace, name); in getAttributeValue() local 244 if (idx >= 0) { in getAttributeValue() 246 + namespace + ":" + name + " index = " + idx); in getAttributeValue() 248 "Namespace=" + getAttributeNamespace(idx) in getAttributeValue() 249 + "Name=" + getAttributeName(idx) in getAttributeValue() 250 + ", Value=" + getAttributeValue(idx)); in getAttributeValue() 251 return getAttributeValue(idx); in getAttributeValue() 335 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute); in getAttributeListValue() local 336 if (idx >= 0) { in getAttributeListValue() 337 return getAttributeListValue(idx, options, defaultValue); in getAttributeListValue() [all …]
|
/frameworks/av/media/libstagefright/tests/writer/ |
D | WriterTest.cpp | 134 for (int32_t idx = 0; idx < kMaxTrackCount; idx++) { in ~WriterTest() local 135 mBufferInfo[idx].clear(); in ~WriterTest() 136 if (mCurrentTrack[idx]) { in ~WriterTest() 137 mCurrentTrack[idx]->stop(); in ~WriterTest() 138 mCurrentTrack[idx].clear(); in ~WriterTest() 139 mCurrentTrack[idx] = nullptr; in ~WriterTest() 141 if (mInputStream[idx].is_open()) mInputStream[idx].close(); in ~WriterTest() 161 void getInputBufferInfo(string inputFileName, string inputInfo, int32_t idx = 0); 165 int32_t addWriterSource(bool isAudio, configFormat params, int32_t idx = 0); 199 void WriterTest::getInputBufferInfo(string inputFileName, string inputInfo, int32_t idx) { in getInputBufferInfo() argument [all …]
|
/frameworks/base/tools/aapt/ |
D | AaptXml.cpp | 81 ssize_t idx = tree.indexOfAttribute(ns, attr); in getAttribute() local 82 if (idx < 0) { in getAttribute() 85 return getStringAttributeAtIndex(tree, idx, outError); in getAttribute() 89 ssize_t idx = indexOfAttribute(tree, attrRes); in getAttribute() local 90 if (idx < 0) { in getAttribute() 93 return getStringAttributeAtIndex(tree, idx, outError); in getAttribute() 98 ssize_t idx = indexOfAttribute(tree, attrRes); in getResolvedAttribute() local 99 if (idx < 0) { in getResolvedAttribute() 104 if (tree.getAttributeValue(idx, &value) == BAD_TYPE) { in getResolvedAttribute() 114 const char16_t* str = tree.getAttributeStringValue(idx, &len); in getResolvedAttribute() [all …]
|
D | AaptUtil.h | 45 ssize_t idx = keyedVector.indexOfKey(key); in appendValue() local 46 if (idx < 0) { in appendValue() 47 idx = keyedVector.add(key, android::Vector<VALUE>()); in appendValue() 49 keyedVector.editValueAt(idx).add(value); in appendValue() 55 ssize_t idx = keyedVector.indexOfKey(key); in appendValue() local 56 if (idx < 0) { in appendValue() 57 idx = keyedVector.add(key, android::SortedVector<VALUE>()); in appendValue() 59 keyedVector.editValueAt(idx).add(value); in appendValue()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | pvdec_api.cpp | 82 int idx; in PVInitVideoDecoder() local 88 for (idx = 0; idx < nLayers; idx++) in PVInitVideoDecoder() 90 decCtrl->volbuf[idx] = volbuf[idx]; in PVInitVideoDecoder() 91 decCtrl->volbuf_size[idx] = volbuf_size[idx]; in PVInitVideoDecoder() 167 for (idx = 0; idx < nLayers; idx++) in PVInitVideoDecoder() 171 video->vopHeader[idx] = IMEM_vopHeader[idx]; in PVInitVideoDecoder() 173 video->vopHeader[idx] = (Vop *) oscl_malloc(sizeof(Vop)); in PVInitVideoDecoder() 175 if (video->vopHeader[idx] == NULL) in PVInitVideoDecoder() 182 oscl_memset(video->vopHeader[idx], 0, sizeof(Vop)); in PVInitVideoDecoder() 183 video->vopHeader[idx]->timeStamp = 0; in PVInitVideoDecoder() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_Utils.cpp | 118 status_t getLockedImageInfo(LockedImage* buffer, int idx, in getLockedImageInfo() argument 126 LOG_ALWAYS_FATAL_IF((idx >= IMAGE_MAX_NUM_PLANES) || (idx < 0), "idx (%d) is illegal", idx); in getLockedImageInfo() 144 (idx == 0) ? in getLockedImageInfo() 146 (idx == 1) ? in getLockedImageInfo() 150 if (idx == 0) { in getLockedImageInfo() 170 (idx == 0) ? in getLockedImageInfo() 172 (idx == 1) ? in getLockedImageInfo() 176 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo() 177 pStride = (idx == 0) ? 1 : 2; in getLockedImageInfo() 192 (idx == 0) ? in getLockedImageInfo() [all …]
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFReader.cpp | 87 for (size_t idx = 1; idx < entsize; ++idx) { in readSymbols() local 88 st_info = symtab[idx].st_info; in readSymbols() 89 st_other = symtab[idx].st_other; in readSymbols() 92 st_name = symtab[idx].st_name; in readSymbols() 93 st_value = symtab[idx].st_value; in readSymbols() 94 st_size = symtab[idx].st_size; in readSymbols() 95 st_shndx = symtab[idx].st_shndx; in readSymbols() 97 st_name = mcld::bswap32(symtab[idx].st_name); in readSymbols() 98 st_value = mcld::bswap32(symtab[idx].st_value); in readSymbols() 99 st_size = mcld::bswap32(symtab[idx].st_size); in readSymbols() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | small_struct.rscript | 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 ++) { 82 output.arr[idx].i = gIntStart + y * gDimX + x + idx; 83 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
|
D | small_struct_2.rscript | 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 ++) { 82 output.arr[idx].i = gIntStart + y * gDimX + x + idx; 83 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
|
/frameworks/base/core/jni/ |
D | android_util_XmlBlock.cpp | 187 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeNamespace() argument 195 return static_cast<jint>(st->getAttributeNamespaceID(idx)); in android_content_XmlBlock_nativeGetAttributeNamespace() 199 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeName() argument 207 return static_cast<jint>(st->getAttributeNameID(idx)); in android_content_XmlBlock_nativeGetAttributeName() 211 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeResource() argument 219 return static_cast<jint>(st->getAttributeNameResID(idx)); in android_content_XmlBlock_nativeGetAttributeResource() 223 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeDataType() argument 231 return static_cast<jint>(st->getAttributeDataType(idx)); in android_content_XmlBlock_nativeGetAttributeDataType() 235 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeData() argument 243 return static_cast<jint>(st->getAttributeData(idx)); in android_content_XmlBlock_nativeGetAttributeData() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | ProgramFragment.java | 71 int idx = 0; in create() local 74 tmp[idx++] = ProgramParam.INPUT.mID; in create() 75 tmp[idx++] = mInputs[i].getID(mRS); in create() 78 tmp[idx++] = ProgramParam.OUTPUT.mID; in create() 79 tmp[idx++] = mOutputs[i].getID(mRS); in create() 82 tmp[idx++] = ProgramParam.CONSTANT.mID; in create() 83 tmp[idx++] = mConstants[i].getID(mRS); in create() 86 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID; in create() 87 tmp[idx++] = mTextureTypes[i].mID; in create()
|
D | ProgramVertex.java | 132 int idx = 0; in create() local 135 tmp[idx++] = ProgramParam.INPUT.mID; in create() 136 tmp[idx++] = mInputs[i].getID(mRS); in create() 139 tmp[idx++] = ProgramParam.OUTPUT.mID; in create() 140 tmp[idx++] = mOutputs[i].getID(mRS); in create() 143 tmp[idx++] = ProgramParam.CONSTANT.mID; in create() 144 tmp[idx++] = mConstants[i].getID(mRS); in create() 147 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID; in create() 148 tmp[idx++] = mTextureTypes[i].mID; in create()
|
/frameworks/native/libs/binderthreadstate/ |
D | test.cpp | 64 static void callHidl(size_t id, int32_t idx) { in callHidl() argument 66 CHECK(stuff->call(idx).isOk()); in callHidl() 69 static void callAidl(size_t id, int32_t idx) { in callAidl() argument 72 CHECK(stuff->call(idx).isOk()); in callAidl() 85 Return<void> call(int32_t idx) { in call() argument 86 LOG(INFO) << "HidlServer CALL " << thisId << " to " << otherId << " at idx: " << idx in call() 89 if (idx > 0) { in call() 90 if (thisId == kP1Id && idx % 4 < 2) { in call() 91 callHidl(otherId, idx - 1); in call() 93 callAidl(otherId, idx - 1); in call() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | small_struct_2.rscript | 57 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 58 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx); 59 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx); 83 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 84 output.arr[idx].i = gIntStart + y * gDimX + x + idx; 85 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
|
D | small_struct.rscript | 57 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 58 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx); 59 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx); 83 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 84 output.arr[idx].i = gIntStart + y * gDimX + x + idx; 85 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
|
/frameworks/ml/nn/common/operations/ |
D | StridedSlice.cpp | 65 for (int32_t idx = numInputDims - 1; idx >= 0; --idx) { in compute() local 66 starts.emplace_back(beginData[idx]); in compute() 67 stops.emplace_back(endData[idx]); in compute() 68 strides.emplace_back(stridesData[idx]); in compute() 170 for (int32_t idx = 0; idx < static_cast<int32_t>(numInputDims); idx++) { in prepare() local 171 int32_t dim = static_cast<int32_t>(getSizeOfDimension(inputShape, idx)); in prepare() 172 int32_t stride = stridesData[idx]; in prepare() 177 int32_t begin = beginMask & (1 << idx) ? positiveStride ? 0 : dim - 1 in prepare() 178 : ClampedIndex(beginData[idx], dim, positiveStride); in prepare() 179 int32_t end = endMask & (1 << idx) ? positiveStride ? dim : -1 in prepare() [all …]
|
D | Squeeze.cpp | 93 for (int32_t idx = 0; idx < numInputDims; ++idx) { in prepare() local 94 if (getSizeOfDimension(inputShape, idx) == 1) { in prepare() 95 shouldSqueeze[idx] = true; in prepare() 101 for (int32_t idx = 0; idx < squeezeDimsSize; ++idx) { in prepare() local 103 squeezeDims[idx] < 0 ? squeezeDims[idx] + numInputDims : squeezeDims[idx]; in prepare()
|
/frameworks/rs/driver/ |
D | rsdVertexArray.cpp | 65 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { in logAttrib() argument 66 if (idx == 0) { in logAttrib() 70 idx, slot, in logAttrib() 71 mAttribs[idx].name.c_str(), in logAttrib() 72 mAttribs[idx].buffer, in logAttrib() 73 mAttribs[idx].ptr, in logAttrib() 74 mAttribs[idx].size, in logAttrib() 75 mAttribs[idx].type, in logAttrib() 76 mAttribs[idx].stride, in logAttrib() 77 mAttribs[idx].normalized, in logAttrib() [all …]
|
/frameworks/base/core/java/android/os/ |
D | PooledStringReader.java | 44 int idx = mIn.readInt(); in readString() local 45 if (idx >= 0) { in readString() 46 return mPool[idx]; in readString() 48 idx = (-idx) - 1; in readString() 50 mPool[idx] = str; in readString()
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | dec_alg_codebook.cpp | 195 int32 mask, idx; in dec_3p_3N1() local 204 idx = index & mask; in dec_3p_3N1() 213 dec_2p_2N1(idx, (int16)(N - 1), j, pos); in dec_3p_3N1() 217 idx = (index >> tmp) & mask; in dec_3p_3N1() 219 dec_1p_N1(idx, N, offset, pos + 2); in dec_3p_3N1() 232 int32 mask, idx; in dec_4p_4N1() local 239 idx = index & mask; in dec_4p_4N1() 248 dec_2p_2N1(idx, (int16)(N - 1), j, pos); in dec_4p_4N1() 253 idx = (index >> (N << 1)) & mask; /* idx = (index >> (2*N)) & mask; */ in dec_4p_4N1() 254 dec_2p_2N1(idx, N, offset, pos + 2); /* dec_2p_2N1(idx, N, offset, pos+2); */ in dec_4p_4N1() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
D | frametovalues.cpp | 43 for(int idx = 0; idx < numPixels; idx++, disp+=4) { in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues() local 48 *(grayPtr+idx) = static_cast<unsigned char>(gray); in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues() 69 for(int idx = 0; idx < numPixels; idx++, pixelDisp += 4, rgbDisp += 3) { in Java_androidx_media_filterpacks_image_ToRgbValuesFilter_toRgbValues() local
|