/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/av/media/libstagefright/codecs/aacenc/src/ |
D | ms_stereo.c | 64 Word32 idx, shift; in MsStereoProcessing() local 66 idx = sfb + sfboffs; in MsStereoProcessing() 68 thrL = sfbThresholdLeft[idx]; in MsStereoProcessing() 69 thrR = sfbThresholdRight[idx]; in MsStereoProcessing() 70 nrgL = sfbEnergyLeft[idx]; in MsStereoProcessing() 71 nrgR = sfbEnergyRight[idx]; in MsStereoProcessing() 84 nrgL = sfbEnergyMid[idx]; in MsStereoProcessing() 85 nrgR = sfbEnergySide[idx]; in MsStereoProcessing() 102 msMask[idx] = 1; in MsStereoProcessing() 105 for (j=sfbOffset[idx]; j<sfbOffset[idx+1]; j++) { in MsStereoProcessing() [all …]
|
/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 87 media_status_t GrallocConsumer::lockNextBuffer(uint32_t idx) { in lockNextBuffer() argument 90 if (idx >= mNumAlloc) { in lockNextBuffer() 91 ALOGE("Invalid buffer index: %d", idx); in lockNextBuffer() 95 if (mAcquiredBuffer[idx].mImg != nullptr) { in lockNextBuffer() 96 ret = unlockBuffer(idx); in lockNextBuffer() 102 ret = AImageReader_acquireNextImage(mImgReader, &(mAcquiredBuffer[idx].mImg)); in lockNextBuffer() 103 if (ret != AMEDIA_OK || mAcquiredBuffer[idx].mImg == nullptr) { in lockNextBuffer() 105 __FUNCTION__, mImgReader, ret, mAcquiredBuffer[idx].mImg); in lockNextBuffer() 109 AImage *img = mAcquiredBuffer[idx].mImg; in lockNextBuffer() 156 mAcquiredBuffer[idx].mBufferPointer = data; in lockNextBuffer() [all …]
|
D | rsDevice.cpp | 35 for (size_t idx=0; idx < mContexts.size(); idx++) { in removeContext() local 36 if (mContexts[idx] == rsc) { in removeContext() 37 mContexts.erase(mContexts.begin() + idx); in removeContext()
|
/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 | 226 int idx = nativeGetAttributeIndex(mParseState, namespace, name); in getAttributeValue() local 227 if (idx >= 0) { in getAttributeValue() 229 + namespace + ":" + name + " index = " + idx); in getAttributeValue() 231 "Namespace=" + getAttributeNamespace(idx) in getAttributeValue() 232 + "Name=" + getAttributeName(idx) in getAttributeValue() 233 + ", Value=" + getAttributeValue(idx)); in getAttributeValue() 234 return getAttributeValue(idx); in getAttributeValue() 318 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute); in getAttributeListValue() local 319 if (idx >= 0) { in getAttributeListValue() 320 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() 103 if (tree.getAttributeValue(idx, &value) != NO_ERROR) { in getResolvedAttribute() 106 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/rs/tests/java_api/RsTest/src/com/android/rs/test/ |
D | small_struct_2.rs | 39 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 40 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx); 41 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx); 65 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 66 output.arr[idx].i = gIntStart + y * gDimX + x + idx; 67 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
|
D | small_struct.rs | 39 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 40 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx); 41 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx); 65 for (int idx = 0; idx < ARRAY_LEN; idx ++) { 66 output.arr[idx].i = gIntStart + y * gDimX + x + idx; 67 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
|
/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() 165 for (idx = 0; idx < nLayers; idx++) in PVInitVideoDecoder() 169 video->vopHeader[idx] = IMEM_vopHeader[idx]; in PVInitVideoDecoder() 171 video->vopHeader[idx] = (Vop *) oscl_malloc(sizeof(Vop)); in PVInitVideoDecoder() 173 if (video->vopHeader[idx] == NULL) in PVInitVideoDecoder() 180 oscl_memset(video->vopHeader[idx], 0, sizeof(Vop)); in PVInitVideoDecoder() 181 video->vopHeader[idx]->timeStamp = 0; in PVInitVideoDecoder() [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 | 67 int idx = 0; in create() local 70 tmp[idx++] = ProgramParam.INPUT.mID; in create() 71 tmp[idx++] = mInputs[i].getID(mRS); in create() 74 tmp[idx++] = ProgramParam.OUTPUT.mID; in create() 75 tmp[idx++] = mOutputs[i].getID(mRS); in create() 78 tmp[idx++] = ProgramParam.CONSTANT.mID; in create() 79 tmp[idx++] = mConstants[i].getID(mRS); in create() 82 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID; in create() 83 tmp[idx++] = mTextureTypes[i].mID; in create()
|
D | ProgramVertex.java | 127 int idx = 0; in create() local 130 tmp[idx++] = ProgramParam.INPUT.mID; in create() 131 tmp[idx++] = mInputs[i].getID(mRS); in create() 134 tmp[idx++] = ProgramParam.OUTPUT.mID; in create() 135 tmp[idx++] = mOutputs[i].getID(mRS); in create() 138 tmp[idx++] = ProgramParam.CONSTANT.mID; in create() 139 tmp[idx++] = mConstants[i].getID(mRS); in create() 142 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID; in create() 143 tmp[idx++] = mTextureTypes[i].mID; in create()
|
/frameworks/base/core/jni/ |
D | android_util_XmlBlock.cpp | 186 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeNamespace() argument 194 return static_cast<jint>(st->getAttributeNamespaceID(idx)); in android_content_XmlBlock_nativeGetAttributeNamespace() 198 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeName() argument 206 return static_cast<jint>(st->getAttributeNameID(idx)); in android_content_XmlBlock_nativeGetAttributeName() 210 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeResource() argument 218 return static_cast<jint>(st->getAttributeNameResID(idx)); in android_content_XmlBlock_nativeGetAttributeResource() 222 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeDataType() argument 230 return static_cast<jint>(st->getAttributeDataType(idx)); in android_content_XmlBlock_nativeGetAttributeDataType() 234 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeData() argument 242 return static_cast<jint>(st->getAttributeData(idx)); in android_content_XmlBlock_nativeGetAttributeData() [all …]
|
/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/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/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/services/core/java/com/android/server/om/ |
D | OverlayManagerSettings.java | 98 final int idx = select(packageName, userId); in remove() local 99 if (idx < 0) { in remove() 103 mItems.remove(idx); in remove() 109 final int idx = select(packageName, userId); in getOverlayInfo() local 110 if (idx < 0) { in getOverlayInfo() 113 return mItems.get(idx).getOverlayInfo(); in getOverlayInfo() 121 final int idx = select(packageName, userId); in setBaseCodePath() local 122 if (idx < 0) { in setBaseCodePath() 125 return mItems.get(idx).setBaseCodePath(path); in setBaseCodePath() 129 final int idx = select(packageName, userId); in getEnabled() local [all …]
|
/frameworks/av/include/media/ |
D | StringArray.h | 44 void erase(int idx); 65 const char* getEntry(int idx) const { in getEntry() argument 66 return (unsigned(idx) >= unsigned(mCurrent)) ? NULL : mArray[idx]; in getEntry() 73 void setEntry(int idx, const char* str);
|
/frameworks/av/media/libmedia/include/media/ |
D | StringArray.h | 44 void erase(int idx); 65 const char* getEntry(int idx) const { in getEntry() argument 66 return (unsigned(idx) >= unsigned(mCurrent)) ? NULL : mArray[idx]; in getEntry() 73 void setEntry(int idx, const char* str);
|
/frameworks/native/services/surfaceflinger/ |
D | FrameTracker.cpp | 152 size_t idx = (mOffset+NUM_FRAME_RECORDS-i) % NUM_FRAME_RECORDS; in processFencesLocked() local 155 const std::shared_ptr<FenceTime>& rfence = records[idx].frameReadyFence; in processFencesLocked() 157 records[idx].frameReadyTime = rfence->getSignalTime(); in processFencesLocked() 158 if (records[idx].frameReadyTime < INT64_MAX) { in processFencesLocked() 159 records[idx].frameReadyFence = NULL; in processFencesLocked() 166 records[idx].actualPresentFence; in processFencesLocked() 168 records[idx].actualPresentTime = pfence->getSignalTime(); in processFencesLocked() 169 if (records[idx].actualPresentTime < INT64_MAX) { in processFencesLocked() 170 records[idx].actualPresentFence = NULL; in processFencesLocked() 177 updateStatsLocked(idx); in processFencesLocked() [all …]
|
/frameworks/av/media/ndk/ |
D | NdkMediaCodec.cpp | 274 size_t idx; in AMediaCodec_dequeueInputBuffer() local 275 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs); in AMediaCodec_dequeueInputBuffer() 278 return idx; in AMediaCodec_dequeueInputBuffer() 284 uint8_t* AMediaCodec_getInputBuffer(AMediaCodec *mData, size_t idx, size_t *out_size) { in AMediaCodec_getInputBuffer() argument 288 if (idx >= n) { in AMediaCodec_getInputBuffer() 289 ALOGE("buffer index %zu out of range", idx); in AMediaCodec_getInputBuffer() 292 if (abufs[idx] == NULL) { in AMediaCodec_getInputBuffer() 293 ALOGE("buffer index %zu is NULL", idx); in AMediaCodec_getInputBuffer() 297 *out_size = abufs[idx]->capacity(); in AMediaCodec_getInputBuffer() 299 return abufs[idx]->data(); in AMediaCodec_getInputBuffer() [all …]
|
/frameworks/native/opengl/tools/glgen/src/ |
D | JniCodeEmitter.java | 543 int idx = nonPrimitiveArgs.get(i).intValue(); in hasNonConstArg() local 544 int cIndex = jfunc.getArgCIndex(idx); in hasNonConstArg() 545 if (jfunc.getArgType(idx).isArray()) { in hasNonConstArg() 549 } else if (jfunc.getArgType(idx).isBuffer()) { in hasNonConstArg() 907 int idx = nonPrimitiveArgs.get(i).intValue(); in emitJniCode() local 908 JType argType = jfunc.getArgType(idx); in emitJniCode() 1047 int idx = nonPrimitiveArgs.get(i).intValue(); in emitJniCode() local 1048 int cIndex = jfunc.getArgCIndex(idx); in emitJniCode() 1051 if (jfunc.getArgType(idx).isBuffer() in emitJniCode() 1052 || jfunc.getArgType(idx).isArray() in emitJniCode() [all …]
|