/frameworks/libs/net/common/framework/android/net/util/nsd/ |
D | DnsSdTxtRecord.java | 45 private byte[] mData; field in DnsSdTxtRecord 49 mData = new byte[0]; in DnsSdTxtRecord() 54 mData = (byte[]) data.clone(); in DnsSdTxtRecord() 59 if (src != null && src.mData != null) { in DnsSdTxtRecord() 60 mData = (byte[]) src.mData.clone(); in DnsSdTxtRecord() 121 for (int i=0; avStart < mData.length; i++) { in remove() 122 int avLen = mData[avStart]; in remove() 124 (key.length() == avLen || mData[avStart + key.length() + 1] == mSeparator)) { in remove() 125 String s = new String(mData, avStart + 1, key.length()); in remove() 127 byte[] oldBytes = mData; in remove() [all …]
|
/frameworks/av/media/libmedia/ |
D | Metadata.cpp | 59 :mData(p), in Metadata() 66 mData->setDataPosition(mBegin); in resetParcel() 73 const size_t end = mData->dataPosition(); in updateLength() 75 mData->setDataPosition(mBegin); in updateLength() 76 mData->writeInt32(end - mBegin); in updateLength() 77 mData->setDataPosition(end); in updateLength() 86 ok = ok && mData->writeInt32(-1) == OK; in appendHeader() 87 ok = ok && mData->writeInt32(kMetaMarker) == OK; in appendHeader() 97 const size_t begin = mData->dataPosition(); in appendBool() 101 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK; in appendBool() [all …]
|
/frameworks/av/media/ndk/ |
D | NdkMediaCodec.cpp | 312 AMediaCodec *mData = new AMediaCodec(); in createAMediaCodec() local 313 mData->mLooper = new ALooper; in createAMediaCodec() 314 mData->mLooper->setName("NDK MediaCodec_looper"); in createAMediaCodec() 315 size_t res = mData->mLooper->start( in createAMediaCodec() 321 AMediaCodec_delete(mData); in createAMediaCodec() 325 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); in createAMediaCodec() 327 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); in createAMediaCodec() 329 if (mData->mCodec == NULL) { // failed to create codec in createAMediaCodec() 330 AMediaCodec_delete(mData); in createAMediaCodec() 333 mData->mHandler = new CodecHandler(mData); in createAMediaCodec() [all …]
|
D | NdkMediaExtractor.cpp | 65 AMediaExtractor *mData = new AMediaExtractor(); in AMediaExtractor_new() local 66 mData->mImpl = new NuMediaExtractor(); in AMediaExtractor_new() 67 return mData; in AMediaExtractor_new() 71 media_status_t AMediaExtractor_delete(AMediaExtractor *mData) { in AMediaExtractor_delete() argument 73 delete mData; in AMediaExtractor_delete() 78 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, in AMediaExtractor_setDataSourceFd() argument 81 return translate_error(mData->mImpl->setDataSource(fd, offset, length)); in AMediaExtractor_setDataSourceFd() 84 media_status_t AMediaExtractor_setDataSourceWithHeaders(AMediaExtractor *mData, in AMediaExtractor_setDataSourceWithHeaders() argument 106 err = mData->mImpl->setDataSource(httpService, uri, numheaders > 0 ? &headers : NULL); in AMediaExtractor_setDataSourceWithHeaders() 111 media_status_t AMediaExtractor_setDataSource(AMediaExtractor *mData, const char *location) { in AMediaExtractor_setDataSource() argument [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AString.cpp | 40 : mData((char *)kEmptyString), in AString() 46 : mData(NULL), in AString() 58 : mData(NULL), in AString() 70 : mData(NULL), in AString() 77 : mData(NULL), in AString() 84 : mData(NULL), in AString() 107 return mData; in c_str() 127 setTo(from.mData + offset, n); in setTo() 131 if (mData != kEmptyString) { in clear() 132 free(mData); in clear() [all …]
|
/frameworks/av/media/libstagefright/id3/ |
D | ID3.cpp | 37 : mData(data), in MemorySource() 49 memcpy(data, mData + offset, copy); in readAt() 55 const uint8_t *mData; member 97 mData(NULL), in ID3() 112 mData(NULL), in ID3() 126 mData(NULL), in ID3() 145 if (mData) { in ~ID3() 146 free(mData); in ~ID3() 147 mData = NULL; in ~ID3() 234 mData = (uint8_t *)malloc(size); in parseV2() [all …]
|
/frameworks/rs/ |
D | rsStream.cpp | 25 mData = buf; in IStream() 31 memcpy(dest, mData + mPos, numBytes); in loadByteArray() 39 tmp = reinterpret_cast<const uint64_t *>(&mData[mPos])[0]; in loadOffset() 48 const char *s = rsuCopyString((const char *)&mData[mPos], len); in loadString() 55 mData = (uint8_t*)malloc(len); in OStream() 62 free(mData); in ~OStream() 70 memcpy(mData + mPos, src, numBytes); in addByteArray() 80 mData[mPos++] = (uint8_t)(v & 0xff); in addOffset() 81 mData[mPos++] = (uint8_t)((v >> 8) & 0xff); in addOffset() 82 mData[mPos++] = (uint8_t)((v >> 16) & 0xff); in addOffset() [all …]
|
D | rsStream.h | 33 float tmp = reinterpret_cast<const float *>(&mData[mPos])[0]; in loadF() 39 int32_t tmp = reinterpret_cast<const int32_t *>(&mData[mPos])[0]; in loadI32() 45 uint32_t tmp = reinterpret_cast<const uint32_t *>(&mData[mPos])[0]; in loadU32() 51 uint16_t tmp = reinterpret_cast<const uint16_t *>(&mData[mPos])[0]; in loadU16() 56 uint8_t tmp = reinterpret_cast<const uint8_t *>(&mData[mPos])[0]; in loadU8() 74 return mData; in getPtr() 77 const uint8_t * mData; 103 mData[mPos++] = (uint8_t)(v & 0xff); in addI32() 104 mData[mPos++] = (uint8_t)((v >> 8) & 0xff); in addI32() 105 mData[mPos++] = (uint8_t)((v >> 16) & 0xff); in addI32() [all …]
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | MetadataReaderTest.java | 40 private Bundle mData; field in MetadataReaderTest 45 mData = new Bundle(); in setUp() 55 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", null); in testGetMetadata() 56 Bundle exif = mData.getBundle(DocumentsContract.METADATA_EXIF); in testGetMetadata() 66 assertEquals(mData.getStringArray(DocumentsContract.METADATA_TYPES)[0], in testGetMetadata() 73 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", tags); in testGetMetadata_JpegOneTag() 75 mData.getBundle(DocumentsContract.METADATA_EXIF).getString(tags[0])); in testGetMetadata_JpegOneTag() 81 assertEquals(0, mData.size()); in testGetMetadata_JpegNoResults() 82 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", tags); in testGetMetadata_JpegNoResults() 83 assertEquals(1, mData.size()); in testGetMetadata_JpegNoResults() [all …]
|
/frameworks/base/core/java/android/util/ |
D | SparseSetArray.java | 24 private final SparseArray<ArraySet<T>> mData = new SparseArray<>(); field in SparseSetArray 34 ArraySet<T> set = mData.get(n); in add() 37 mData.put(n, set); in add() 50 mData.clear(); in clear() 57 final ArraySet<T> set = mData.get(n); in contains() 68 return mData.get(n); in get() 76 final ArraySet<T> set = mData.get(n); in remove() 82 mData.remove(n); in remove() 91 mData.remove(n); in remove() 94 return mData.size(); in size() [all …]
|
/frameworks/base/telephony/common/com/google/android/mms/pdu/ |
D | EncodedStringValue.java | 44 private byte[] mData; field in EncodedStringValue 61 mData = new byte[data.length]; in EncodedStringValue() 62 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue() 79 mData = data.getBytes(CharacterSets.DEFAULT_CHARSET_NAME); in EncodedStringValue() 114 byte[] byteArray = new byte[mData.length]; in getTextString() 116 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString() 132 mData = new byte[textString.length]; in setTextString() 133 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString() 146 return new String(mData); // system default encoding. in getString() 150 return new String(mData, name); in getString() [all …]
|
/frameworks/base/obex/javax/obex/ |
D | PrivateInputStream.java | 47 private byte[] mData; field in PrivateInputStream 59 mData = new byte[0]; in PrivateInputStream() 76 return mData.length - mIndex; in available() 92 while (mData.length == mIndex) { in read() 97 return (mData[mIndex++] & 0xFF); in read() 116 int currentDataLength = mData.length - mIndex; in read() 122 System.arraycopy(mData, mIndex, b, offset1, currentDataLength); in read() 131 currentDataLength = mData.length - mIndex; in read() 134 System.arraycopy(mData, mIndex, b, offset1, remainReadLength); in read() 149 int length = (body.length - start) + (mData.length - mIndex); in writeBytes() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/util/ |
D | IntArray.java | 22 private int mData[] = new int[INIT_CAPACITY]; field in IntArray 26 if (mData.length == mSize) { in add() 28 System.arraycopy(mData, 0, temp, 0, mSize); in add() 29 mData = temp; in add() 31 mData[mSize++] = value; in add() 36 return mData[mSize]; in removeLast() 48 System.arraycopy(mData, 0, result, 0, mSize); in toArray() 53 return mData; in getInternalArray() 58 if (mData.length != INIT_CAPACITY) mData = new int[INIT_CAPACITY]; in clear()
|
/frameworks/base/rs/java/android/renderscript/ |
D | FieldPacker.java | 34 mData = new byte[len]; in FieldPacker() 43 mData = data; in FieldPacker() 66 mData[mPos++] = 0; in align() 107 mData[mPos++] = v; in addI8() 112 return mData[--mPos]; in subI8() 117 mData[mPos++] = (byte)(v & 0xff); in addI16() 118 mData[mPos++] = (byte)(v >> 8); in addI16() 124 v = (short)((mData[--mPos] & 0xff) << 8); in subI16() 125 v = (short)(v | (short)(mData[--mPos] & 0xff)); in subI16() 132 mData[mPos++] = (byte)(v & 0xff); in addI32() [all …]
|
/frameworks/minikin/include/minikin/ |
D | U16StringPiece.h | 28 U16StringPiece() : mData(nullptr), mLength(0) {} in U16StringPiece() 29 U16StringPiece(const uint16_t* data, uint32_t length) : mData(data), mLength(length) {} in U16StringPiece() 31 : mData(v.data()), mLength(static_cast<uint32_t>(v.size())) {} in U16StringPiece() 33 U16StringPiece(uint16_t const (&data)[length]) : mData(data), mLength(length) {} in U16StringPiece() 38 inline const uint16_t* data() const { return mData; } in data() 43 inline const uint16_t& at(uint32_t pos) const { return mData[pos]; } in at() 44 inline const uint16_t& operator[](uint32_t pos) const { return mData[pos]; } 47 return U16StringPiece(mData + range.getStart(), range.getLength()); in substr() 51 const uint16_t* end = mData + mLength; in hasChar() 52 return std::find(mData, end, c) != end; in hasChar() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpServer.cpp | 196 int ret = mData.read(mHandle); in run() 207 mData.reset(); in run() 211 if (!dataIn && mData.hasData()) { in run() 212 mData.setOperationCode(operation); in run() 213 mData.setTransactionID(transaction); in run() 215 ret = mData.write(mHandle); in run() 470 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo() 472 mData.putUInt32(0); in doGetDeviceInfo() 475 mData.putUInt32(6); in doGetDeviceInfo() 477 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo() [all …]
|
D | MtpDevice.cpp | 366 if (info->read(mData)) in getDeviceInfo() 384 return mData.getAUInt32(); in getStorageIDs() 401 if (info->read(mData)) in getStorageInfo() 423 return mData.getAUInt32(); in getObjectHandles() 442 if (info->read(mData)) in getObjectInfo() 458 return mData.getData(&outLength); in getThumbnail() 476 mData.reset(); in sendObjectInfo() 477 mData.putUInt32(info->mStorageID); in sendObjectInfo() 478 mData.putUInt16(info->mFormat); in sendObjectInfo() 479 mData.putUInt16(info->mProtectionStatus); in sendObjectInfo() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ResultInfo.java | 37 public final Intent mData; field in ResultInfo 45 mData = data; in ResultInfo() 50 + ", result=" + mResultCode + ", data=" + mData + "}"; in toString() 61 if (mData != null) { in writeToParcel() 63 mData.writeToParcel(out, 0); in writeToParcel() 86 mData = Intent.CREATOR.createFromParcel(in); in ResultInfo() 88 mData = null; in ResultInfo() 98 final boolean intentsEqual = mData == null ? (other.mData == null) in equals() 99 : mData.filterEquals(other.mData); in equals() 111 if (mData != null) { in hashCode() [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | FieldPacker.java | 35 mData = new byte[len]; in FieldPacker() 44 mData = data; in FieldPacker() 67 mData[mPos++] = 0; in align() 108 mData[mPos++] = v; in addI8() 113 return mData[--mPos]; in subI8() 118 mData[mPos++] = (byte)(v & 0xff); in addI16() 119 mData[mPos++] = (byte)(v >> 8); in addI16() 125 v = (short)((mData[--mPos] & 0xff) << 8); in subI16() 126 v = (short)(v | (short)(mData[--mPos] & 0xff)); in subI16() 133 mData[mPos++] = (byte)(v & 0xff); in addI32() [all …]
|
/frameworks/av/media/libstagefright/ |
D | ESDS.cpp | 30 : mData(new uint8_t[size]), in ESDS() 36 memcpy(mData, data, size); in ESDS() 42 delete[] mData; in ~ESDS() 43 mData = NULL; in ~ESDS() 65 *data = &mData[mDecoderSpecificOffset]; in getCodecSpecificInfo() 78 *tag = mData[offset++]; in skipDescriptorHeader() 88 uint8_t x = mData[offset++]; in skipDescriptorHeader() 133 unsigned streamDependenceFlag = mData[offset] & 0x80; in parseESDescriptor() 134 unsigned URL_Flag = mData[offset] & 0x40; in parseESDescriptor() 135 unsigned OCRstreamFlag = mData[offset] & 0x20; in parseESDescriptor() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | ContextHubMessage.java | 43 private byte[]mData; field in ContextHubMessage 69 return Arrays.copyOf(mData, mData.length); in getData() 96 mData = Arrays.copyOf(data, data.length); in setMsgData() 109 mData = Arrays.copyOf(data, data.length); in ContextHubMessage() 120 mData = new byte[bufferLength]; in ContextHubMessage() 121 in.readByteArray(mData); in ContextHubMessage() 127 out.writeInt(mData.length); in writeToParcel() 128 out.writeByteArray(mData); in writeToParcel() 145 int length = mData.length; in toString() 148 "ContextHubMessage[type = " + mType + ", length = " + mData.length + " bytes]("; in toString() [all …]
|
/frameworks/native/libs/input/ |
D | TouchVideoFrame.cpp | 23 mHeight(height), mWidth(width),mData(std::move(data)), mTimestamp(timestamp) { in TouchVideoFrame() 29 && mData == rhs.mData in operator ==() 38 const std::vector<int16_t>& TouchVideoFrame::getData() const { return mData; } in getData() 65 std::vector<int16_t> rotated(mData.size()); in rotateQuarterTurn() 77 rotated[indexRotated] = mData[i * mWidth + j]; in rotateQuarterTurn() 80 mData = std::move(rotated); in rotateQuarterTurn() 91 if (mData.size() == 0) { in rotate180() 95 for (size_t i = 0; i < mData.size() / 2; i++) { in rotate180() 96 std::swap(mData[i], mData[mHeight * mWidth - 1 - i]); in rotate180()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuUidBpfMapReader.java | 72 protected SparseArray<long[]> mData = new SparseArray<>(); field in KernelCpuUidBpfMapReader 97 int firstIndex = mData.indexOfKey(startUid); in removeUidsInRange() 99 mData.put(startUid, null); in removeUidsInRange() 100 firstIndex = mData.indexOfKey(startUid); in removeUidsInRange() 102 int lastIndex = mData.indexOfKey(endUid); in removeUidsInRange() 104 mData.put(endUid, null); in removeUidsInRange() 105 lastIndex = mData.indexOfKey(endUid); in removeUidsInRange() 107 mData.removeAtRange(firstIndex, lastIndex - firstIndex + 1); in removeUidsInRange() 153 return mData.size() > 0 && (SystemClock.elapsedRealtime() - mLastReadTime < FRESHNESS_MS); in dataValid() 163 if (mPos >= mData.size()) { in getNextUid() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | StringPiece.h | 28 StringPiece() : mData(nullptr), mLength(0) {} in StringPiece() 29 StringPiece(const char* data) : mData(data), mLength(data == nullptr ? 0 : strlen(data)) {} in StringPiece() 30 StringPiece(const char* data, size_t length) : mData(data), mLength(length) {} in StringPiece() 31 StringPiece(const std::string& str) : mData(str.data()), mLength(str.size()) {} in StringPiece() 33 inline const char* data() const { return mData; } in data() 38 inline char operator[](size_t i) const { return mData[i]; } 41 return StringPiece(mData + from, length); in substr() 48 const char* p = static_cast<const char*>(memchr(mData + from, c, mLength - from)); in find() 49 return p == nullptr ? mLength : p - mData; in find() 52 std::string toString() const { return std::string(mData, mData + mLength); } in toString() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ExponentiallyBucketedHistogram.java | 30 private final int[] mData; field in ExponentiallyBucketedHistogram 41 mData = new int[numBuckets]; in ExponentiallyBucketedHistogram() 54 mData[0]++; in add() 56 mData[Math.min(mData.length - 1, 32 - Integer.numberOfLeadingZeros(value))]++; in add() 64 Arrays.fill(mData, 0); in reset() 77 for (int i = 0; i < mData.length; i++) { in log() 82 if (i < mData.length - 1) { in log() 91 builder.append(mData[i]); in log()
|