/frameworks/av/media/module/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/av/media/libstagefright/writer_fuzzers/ |
D | WriterFuzzerBase.cpp | 211 for (int idx = startFrameIndex; idx < endFrameIndex; ++idx) { in sendBuffersToWriter() local 212 if (!mWriter->isSampleMetadataValid(trackIndex, bufferInfo[idx].timeUs)) { in sendBuffersToWriter() 215 sp<ABuffer> buffer = new ABuffer((void *)bufferInfo[idx].buf, bufferInfo[idx].size); in sendBuffersToWriter() 220 sampleMetaData.setInt64(kKeyTime, bufferInfo[idx].timeUs); in sendBuffersToWriter() 223 sampleMetaData.setInt64(kKeyDecodingTime, bufferInfo[idx].timeUs); in sendBuffersToWriter() 224 if (bufferInfo[idx].flags == SampleFlag::SYNC_FLAG) { in sendBuffersToWriter() 246 for (int32_t idx = 0; idx < numTracks; ++idx) { in sendBuffersInterleave() local 247 currentFrameIndex[idx] = mBufferSource->getNumCsds(idx); in sendBuffersInterleave() 248 remainingNumFrames[idx] = mBufferSource->getFrameList(idx).size() - currentFrameIndex[idx]; in sendBuffersInterleave() 252 for (int32_t idx = 0; idx < numTracks; ++idx) { in sendBuffersInterleave() local [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/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/mtp/tests/MtpFuzzer/ |
D | mtp_data_packet_fuzzer.cpp | 96 for (size_t idx = 0; idx < size; ++idx) { in process() local 97 arr[idx] = mFdp.ConsumeIntegral<uint16_t>(); in process() 108 for (size_t idx = 0; idx < size; ++idx) { in process() local 109 arr[idx] = mFdp.ConsumeIntegral<uint32_t>(); in process() 120 for (size_t idx = 0; idx < size; ++idx) { in process() local 121 arr[idx] = mFdp.ConsumeIntegral<uint64_t>(); in process() 132 for (size_t idx = 0; idx < size; ++idx) { in process() local 133 arr[idx] = mFdp.ConsumeIntegral<int64_t>(); in process() 144 for (size_t idx = 0; idx < size; ++idx) { in process() local 156 for (size_t idx = 0; idx < size; ++idx) { in process() local [all …]
|
/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/module/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/core/java/android/content/res/ |
D | XmlBlock.java | 314 int idx = nativeGetAttributeIndex(mParseState, namespace, name); in getAttributeValue() local 315 if (idx >= 0) { in getAttributeValue() 317 + namespace + ":" + name + " index = " + idx); in getAttributeValue() 319 "Namespace=" + getAttributeNamespace(idx) in getAttributeValue() 320 + "Name=" + getAttributeName(idx) in getAttributeValue() 321 + ", Value=" + getAttributeValue(idx)); in getAttributeValue() 322 String value = getAttributeValue(idx); in getAttributeValue() 420 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute); in getAttributeListValue() local 421 if (idx >= 0) { in getAttributeListValue() 422 return getAttributeListValue(idx, options, defaultValue); in getAttributeListValue() [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/media/jni/ |
D | android_media_Utils.cpp | 154 status_t getLockedImageInfo(LockedImage* buffer, int idx, in getLockedImageInfo() argument 162 LOG_ALWAYS_FATAL_IF((idx >= IMAGE_MAX_NUM_PLANES) || (idx < 0), "idx (%d) is illegal", idx); in getLockedImageInfo() 201 (idx == 0) ? in getLockedImageInfo() 203 (idx == 1) ? in getLockedImageInfo() 207 if (idx == 0) { in getLockedImageInfo() 248 (idx == 0) ? in getLockedImageInfo() 250 (idx == 1) ? in getLockedImageInfo() 254 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo() 255 pStride = (idx == 0) ? 1 : 2; in getLockedImageInfo() 291 (idx == 0) ? in getLockedImageInfo() [all …]
|
/frameworks/base/core/jni/ |
D | android_util_XmlBlock.cpp | 175 CRITICAL_JNI_PARAMS_COMMA jlong token, jint idx) { in android_content_XmlBlock_nativeGetAttributeNamespace() argument 181 return static_cast<jint>(st->getAttributeNamespaceID(idx)); in android_content_XmlBlock_nativeGetAttributeNamespace() 185 jint idx) { in android_content_XmlBlock_nativeGetAttributeName() argument 191 return static_cast<jint>(st->getAttributeNameID(idx)); in android_content_XmlBlock_nativeGetAttributeName() 195 CRITICAL_JNI_PARAMS_COMMA jlong token, jint idx) { in android_content_XmlBlock_nativeGetAttributeResource() argument 201 return static_cast<jint>(st->getAttributeNameResID(idx)); in android_content_XmlBlock_nativeGetAttributeResource() 205 CRITICAL_JNI_PARAMS_COMMA jlong token, jint idx) { in android_content_XmlBlock_nativeGetAttributeDataType() argument 211 return static_cast<jint>(st->getAttributeDataType(idx)); in android_content_XmlBlock_nativeGetAttributeDataType() 215 jint idx) { in android_content_XmlBlock_nativeGetAttributeData() argument 221 return static_cast<jint>(st->getAttributeData(idx)); in android_content_XmlBlock_nativeGetAttributeData() [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/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | ChoreographerCallbacks.java | 57 int idx = 0; in add() local 60 while (idx < mCallbacks.size()) { in add() 61 if (mCallbacks.get(idx).mDueTime > dueTime) { in add() 64 ++idx; in add() 67 mCallbacks.add(idx, new Callback(action, token, dueTime)); in add() 82 int idx = 0; in execute() local 83 while (idx < mCallbacks.size()) { in execute() 84 if (mCallbacks.get(idx).mDueTime > currentTimeMs) { in execute() 87 ++idx; in execute() 90 toExecute = new ArrayList<>(mCallbacks.subList(0, idx)); in execute() [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/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/ |
D | UdfpsUtils.java | 66 public Point getTouchInNativeCoordinates(int idx, MotionEvent event, in getTouchInNativeCoordinates() argument 68 return getTouchInNativeCoordinates(idx, event, udfpsOverlayParams, true); in getTouchInNativeCoordinates() 82 public Point getTouchInNativeCoordinates(int idx, MotionEvent event, in getTouchInNativeCoordinates() argument 86 touch = getPortraitTouch(idx, event, udfpsOverlayParams); in getTouchInNativeCoordinates() 88 touch = new Point((int) event.getRawX(idx), (int) event.getRawY(idx)); in getTouchInNativeCoordinates() 104 public boolean isWithinSensorArea(int idx, MotionEvent event, in isWithinSensorArea() argument 106 return isWithinSensorArea(idx, event, udfpsOverlayParams, true); in isWithinSensorArea() 116 public boolean isWithinSensorArea(int idx, MotionEvent event, in isWithinSensorArea() argument 120 touch = getPortraitTouch(idx, event, udfpsOverlayParams); in isWithinSensorArea() 122 touch = new Point((int) event.getRawX(idx), (int) event.getRawY(idx)); in isWithinSensorArea() [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/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/base/services/core/java/com/android/server/appop/ |
D | AppOpsUidStateTrackerImpl.java | 453 int idx = (mUpdateUidProcStateLogHead + mUpdateUidProcStateLogSize) in logUpdateUidProcStateAsync() local 462 mUpdateUidProcStateLog[idx][0] = uid; in logUpdateUidProcStateAsync() 463 mUpdateUidProcStateLog[idx][1] = procState; in logUpdateUidProcStateAsync() 464 mUpdateUidProcStateLog[idx][2] = capability; in logUpdateUidProcStateAsync() 465 mUpdateUidProcStateLogTimestamps[idx] = timestamp; in logUpdateUidProcStateAsync() 480 int idx = (mCommitUidStateLogHead + mCommitUidStateLogSize) in logCommitUidStateAsync() local 489 mCommitUidStateLog[idx][0] = uid; in logCommitUidStateAsync() 490 mCommitUidStateLog[idx][1] = uidState; in logCommitUidStateAsync() 491 mCommitUidStateLog[idx][2] = capability; in logCommitUidStateAsync() 492 mCommitUidStateLog[idx][3] = 0; in logCommitUidStateAsync() [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/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
|