/frameworks/av/media/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/av/media/libstagefright/writer_fuzzers/ |
D | WriterFuzzerBase.cpp | 203 for (int idx = startFrameIndex; idx < endFrameIndex; ++idx) { in sendBuffersToWriter() local 204 sp<ABuffer> buffer = new ABuffer((void *)bufferInfo[idx].buf, bufferInfo[idx].size); in sendBuffersToWriter() 211 sampleMetaData.setInt64(kKeyTime, bufferInfo[idx].timeUs); in sendBuffersToWriter() 214 sampleMetaData.setInt64(kKeyDecodingTime, bufferInfo[idx].timeUs); in sendBuffersToWriter() 215 if (bufferInfo[idx].flags == SampleFlag::SYNC_FLAG) { in sendBuffersToWriter() 226 for (int32_t idx = 0; idx < numTracks; ++idx) { in sendBuffersInterleave() local 227 currentFrameIndex[idx] = mBufferSource->getNumCsds(idx); in sendBuffersInterleave() 228 remainingNumFrames[idx] = mBufferSource->getFrameList(idx).size() - currentFrameIndex[idx]; in sendBuffersInterleave() 232 for (int32_t idx = 0; idx < numTracks; ++idx) { in sendBuffersInterleave() local 233 if (remainingNumFrames[idx] > 0) { in sendBuffersInterleave() [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/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 | 254 int idx = nativeGetAttributeIndex(mParseState, namespace, name); in getAttributeValue() local 255 if (idx >= 0) { in getAttributeValue() 257 + namespace + ":" + name + " index = " + idx); in getAttributeValue() 259 "Namespace=" + getAttributeNamespace(idx) in getAttributeValue() 260 + "Name=" + getAttributeName(idx) in getAttributeValue() 261 + ", Value=" + getAttributeValue(idx)); in getAttributeValue() 262 return getAttributeValue(idx); in getAttributeValue() 346 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute); in getAttributeListValue() local 347 if (idx >= 0) { in getAttributeListValue() 348 return getAttributeListValue(idx, options, defaultValue); in getAttributeListValue() [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/tests/writer/ |
D | WriterTest.cpp | 136 for (int32_t idx = 0; idx < kMaxTrackCount; idx++) { in ~WriterTest() local 137 mBufferInfo[idx].clear(); in ~WriterTest() 138 if (mCurrentTrack[idx]) { in ~WriterTest() 139 mCurrentTrack[idx]->stop(); in ~WriterTest() 140 mCurrentTrack[idx].clear(); in ~WriterTest() 141 mCurrentTrack[idx] = nullptr; in ~WriterTest() 143 if (mInputStream[idx].is_open()) mInputStream[idx].close(); in ~WriterTest() 163 void getInputBufferInfo(string inputFileName, string inputInfo, int32_t idx = 0); 167 int32_t addWriterSource(bool isAudio, configFormat params, int32_t idx = 0); 172 uint8_t *buffer, size_t bufSize, size_t *bytesExtracted, int32_t idx); [all …]
|
/frameworks/av/media/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 | 119 status_t getLockedImageInfo(LockedImage* buffer, int idx, in getLockedImageInfo() argument 127 LOG_ALWAYS_FATAL_IF((idx >= IMAGE_MAX_NUM_PLANES) || (idx < 0), "idx (%d) is illegal", idx); in getLockedImageInfo() 166 (idx == 0) ? in getLockedImageInfo() 168 (idx == 1) ? in getLockedImageInfo() 172 if (idx == 0) { in getLockedImageInfo() 213 (idx == 0) ? in getLockedImageInfo() 215 (idx == 1) ? in getLockedImageInfo() 219 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo() 220 pStride = (idx == 0) ? 1 : 2; in getLockedImageInfo() 256 (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/base/rs/java/android/renderscript/ |
D | ProgramFragment.java | 72 int idx = 0; in create() local 75 tmp[idx++] = ProgramParam.INPUT.mID; in create() 76 tmp[idx++] = mInputs[i].getID(mRS); in create() 79 tmp[idx++] = ProgramParam.OUTPUT.mID; in create() 80 tmp[idx++] = mOutputs[i].getID(mRS); in create() 83 tmp[idx++] = ProgramParam.CONSTANT.mID; in create() 84 tmp[idx++] = mConstants[i].getID(mRS); in create() 87 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID; in create() 88 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/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
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;
|
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;
|
/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/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.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_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;
|
/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/writer_fuzzers/include/ |
D | WriterFuzzerBase.h | 124 for (int32_t idx = 0; idx < kMaxTrackCount; ++idx) { in ~WriterFuzzerBase() local 125 if (mCurrentTrack[idx]) { in ~WriterFuzzerBase() 126 mCurrentTrack[idx]->stop(); in ~WriterFuzzerBase() 127 mCurrentTrack[idx].clear(); in ~WriterFuzzerBase() 128 mCurrentTrack[idx] = nullptr; in ~WriterFuzzerBase() 163 for (int32_t idx = 0; idx < kMaxTrackCount; ++idx) { in ~BufferSource() local 164 mFrameList[idx].clear(); in ~BufferSource()
|
/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
|
/frameworks/av/media/extractors/tests/ |
D | ExtractorUnitTest.cpp | 416 for (int32_t idx = 0; idx < numTracks; idx++) { in TEST_P() local 417 MediaTrackHelper *track = mExtractor->getTrack(idx); in TEST_P() 418 ASSERT_NE(track, nullptr) << "Failed to get track for index " << idx; in TEST_P() 421 ASSERT_NE(cTrack, nullptr) << "Failed to get track wrapper for index " << idx; in TEST_P() 427 FILE *outFp = fopen((OUTPUT_DUMP_FILE + to_string(idx)).c_str(), "wb"); in TEST_P() 472 for (int32_t idx = 0; idx < numTracks; idx++) { in TEST_P() local 473 MediaTrackHelper *track = mExtractor->getTrack(idx); in TEST_P() 474 ASSERT_NE(track, nullptr) << "Failed to get track for index " << idx; in TEST_P() 477 ASSERT_NE(cTrack, nullptr) << "Failed to get track wrapper for index " << idx; in TEST_P() 483 status = mExtractor->getTrackMetaData(extractorFormat, idx, 1); in TEST_P() [all …]
|
/frameworks/av/media/codecs/amrwb/dec/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 …]
|