/frameworks/libs/net/common/src_frameworkcommon/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 | 66 AMediaExtractor *mData = new AMediaExtractor(); in AMediaExtractor_new() local 67 mData->mImpl = new NuMediaExtractor( in AMediaExtractor_new() 71 return mData; in AMediaExtractor_new() 75 media_status_t AMediaExtractor_delete(AMediaExtractor *mData) { in AMediaExtractor_delete() argument 77 delete mData; in AMediaExtractor_delete() 82 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, in AMediaExtractor_setDataSourceFd() argument 85 return translate_error(mData->mImpl->setDataSource(fd, offset, length)); in AMediaExtractor_setDataSourceFd() 88 media_status_t AMediaExtractor_setDataSourceWithHeaders(AMediaExtractor *mData, in AMediaExtractor_setDataSourceWithHeaders() argument 110 err = mData->mImpl->setDataSource(httpService, uri, numheaders > 0 ? &headers : NULL); in AMediaExtractor_setDataSourceWithHeaders() 115 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() 131 if (mData) { in ~ID3() 132 free(mData); in ~ID3() 133 mData = NULL; in ~ID3() 220 mData = (uint8_t *)malloc(size); in parseV2() 222 if (mData == NULL) { 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/java/android/util/ |
D | SparseArrayMap.java | 34 private final SparseArray<ArrayMap<String, T>> mData = new SparseArray<>(); field in SparseArrayMap 38 ArrayMap<String, T> data = mData.get(key); in add() 41 mData.put(key, data); in add() 48 for (int i = 0; i < mData.size(); ++i) { in clear() 49 mData.valueAt(i).clear(); in clear() 55 return mData.contains(key) && mData.get(key).containsKey(mapKey); in contains() 60 mData.delete(key); in delete() 70 ArrayMap<String, T> data = mData.get(key); in delete() 82 ArrayMap<String, T> data = mData.get(key); in get() 95 if (mData.contains(key)) { in getOrDefault() [all …]
|
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/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/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/services/core/java/com/android/server/utils/quota/ |
D | UptcMap.java | 34 private final SparseArrayMap<ArrayMap<String, T>> mData = new SparseArrayMap<>(); field in UptcMap 38 ArrayMap<String, T> data = mData.get(userId, packageName); in add() 41 mData.add(userId, packageName, data); in add() 47 mData.clear(); in clear() 51 return mData.contains(userId, packageName); in contains() 57 ArrayMap<String, T> data = mData.get(userId, packageName); in contains() 63 mData.delete(userId); in delete() 68 final ArrayMap<String, T> data = mData.get(userId, packageName); in delete() 72 mData.delete(userId, packageName); in delete() 79 return mData.delete(userId, packageName); in delete() [all …]
|
/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/services/camera/libcameraservice/device3/ |
D | Camera3OutputStreamInterface.cpp | 36 return mData.add(streamId, stream); in add() 41 return mData.removeItem(streamId); in remove() 46 ssize_t idx = mData.indexOfKey(streamId); in get() 50 return mData.editValueAt(idx); in get() 55 return mData.editValueAt(index); in operator []() 60 return mData.size(); in size() 65 return mData.clear(); in clear() 70 std::vector<int> streamIds(mData.size()); in getStreamIds() 71 for (size_t i = 0; i < mData.size(); i++) { in getStreamIds() 72 streamIds[i] = mData.keyAt(i); in getStreamIds() [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/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 …]
|
/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 | 24 mHeight(height), mWidth(width),mData(std::move(data)), mTimestamp(timestamp) { in TouchVideoFrame() 30 && mData == rhs.mData in operator ==() 39 const std::vector<int16_t>& TouchVideoFrame::getData() const { return mData; } in getData() 66 std::vector<int16_t> rotated(mData.size()); in rotateQuarterTurn() 78 rotated[indexRotated] = mData[i * mWidth + j]; in rotateQuarterTurn() 81 mData = std::move(rotated); in rotateQuarterTurn() 92 if (mData.size() == 0) { in rotate180() 96 for (size_t i = 0; i < mData.size() / 2; i++) { in rotate180() 97 std::swap(mData[i], mData[mHeight * mWidth - 1 - i]); in rotate180()
|
/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 …]
|