Home
last modified time | relevance | path

Searched refs:mData (Results 1 – 25 of 212) sorted by relevance

123456789

/frameworks/av/media/libmedia/
DMetadata.cpp59 :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 …]
DNdkMediaFormatPriv.cpp36 AMediaFormat* mData = new AMediaFormat(); in AMediaFormat_fromMsg() local
37 mData->mFormat = *data; in AMediaFormat_fromMsg()
38 if (mData->mFormat == NULL) { in AMediaFormat_fromMsg()
40 mData->mFormat = new AMessage; in AMediaFormat_fromMsg()
42 return mData; in AMediaFormat_fromMsg()
45 void AMediaFormat_getFormat(const AMediaFormat* mData, sp<AMessage> *dest) { in AMediaFormat_getFormat() argument
46 *dest = mData->mFormat; in AMediaFormat_getFormat()
/frameworks/base/core/java/android/net/nsd/
DDnsSdTxtRecord.java45 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] == mSeperator)) { in remove()
125 String s = new String(mData, avStart + 1, key.length()); in remove()
127 byte[] oldBytes = mData; in remove()
[all …]
/frameworks/av/media/ndk/
DNdkMediaCodec.cpp306 AMediaCodec *mData = new AMediaCodec(); in createAMediaCodec() local
307 mData->mLooper = new ALooper; in createAMediaCodec()
308 mData->mLooper->setName("NDK MediaCodec_looper"); in createAMediaCodec()
309 size_t res = mData->mLooper->start( in createAMediaCodec()
315 AMediaCodec_delete(mData); in createAMediaCodec()
319 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); in createAMediaCodec()
321 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); in createAMediaCodec()
323 if (mData->mCodec == NULL) { // failed to create codec in createAMediaCodec()
324 AMediaCodec_delete(mData); in createAMediaCodec()
327 mData->mHandler = new CodecHandler(mData); in createAMediaCodec()
[all …]
DNdkMediaExtractor.cpp65 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/
DAString.cpp37 : mData((char *)kEmptyString), in AString()
43 : mData(NULL), in AString()
55 : mData(NULL), in AString()
67 : mData(NULL), in AString()
74 : mData(NULL), in AString()
81 : mData(NULL), in AString()
104 return mData; in c_str()
124 setTo(from.mData + offset, n); in setTo()
128 if (mData != kEmptyString) { in clear()
129 free(mData); in clear()
[all …]
/frameworks/av/media/libstagefright/id3/
DID3.cpp37 : 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/
DrsStream.cpp25 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 …]
DrsStream.h33 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/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DFieldArray.java48 private FieldData[] mData; field in FieldArray
66 mData = new FieldData[initialCapacity]; in FieldArray()
77 if (i < 0 || mData[i] == DELETED) { in get()
80 return mData[i]; in get()
90 if (i >= 0 && mData[i] != DELETED) { in remove()
91 mData[i] = DELETED; in remove()
100 FieldData[] values = mData; in gc()
128 mData[i] = data; in put()
132 if (i < mSize && mData[i] == DELETED) { in put()
134 mData[i] = data; in put()
[all …]
/frameworks/base/core/java/android/util/
DSparseSetArray.java24 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/packages/WallpaperCropper/src/com/android/gallery3d/util/
DIntArray.java22 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/obex/javax/obex/
DPrivateInputStream.java47 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/opt/telephony/src/java/com/google/android/mms/pdu/
DEncodedStringValue.java43 private byte[] mData; field in EncodedStringValue
59 mData = new byte[data.length]; in EncodedStringValue()
60 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue()
75 mData = data.getBytes(CharacterSets.DEFAULT_CHARSET_NAME); in EncodedStringValue()
107 byte[] byteArray = new byte[mData.length]; in getTextString()
109 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
124 mData = new byte[textString.length]; in setTextString()
125 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString()
137 return new String(mData); // system default encoding. in getString()
141 return new String(mData, name); in getString()
[all …]
/frameworks/minikin/include/minikin/
DU16StringPiece.h28 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/base/core/java/android/app/
DResultInfo.java37 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/base/core/java/android/hardware/location/
DContextHubMessage.java40 private byte[]mData; field in ContextHubMessage
66 return Arrays.copyOf(mData, mData.length); in getData()
93 mData = Arrays.copyOf(data, data.length); in setMsgData()
106 mData = Arrays.copyOf(data, data.length); in ContextHubMessage()
117 mData = new byte[bufferLength]; in ContextHubMessage()
118 in.readByteArray(mData); in ContextHubMessage()
124 out.writeInt(mData.length); in writeToParcel()
125 out.writeByteArray(mData); in writeToParcel()
141 int length = mData.length; in toString()
144 "ContextHubMessage[type = " + mType + ", length = " + mData.length + " bytes]("; in toString()
[all …]
/frameworks/base/rs/java/android/renderscript/
DFieldPacker.java34 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/av/media/libstagefright/
DESDS.cpp30 : 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/native/libs/input/
DTouchVideoFrame.cpp23 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/av/media/mtp/
DMtpServer.cpp194 int ret = mData.read(mHandle); in run()
205 mData.reset(); in run()
209 if (!dataIn && mData.hasData()) { in run()
210 mData.setOperationCode(operation); in run()
211 mData.setTransactionID(transaction); in run()
213 ret = mData.write(mHandle); in run()
468 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo()
470 mData.putUInt32(0); in doGetDeviceInfo()
473 mData.putUInt32(6); in doGetDeviceInfo()
475 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DFieldPacker.java35 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/base/core/java/com/android/internal/util/
DExponentiallyBucketedHistogram.java30 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()
/frameworks/minikin/libs/minikin/
DStringPiece.h28 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/tests/coretests/src/android/widget/gridview/
DGridDelete.java69 private ArrayList<Integer> mData; field in GridDelete.DeleteAdapter
73 mData = new ArrayList<Integer>(initialNumItems); in DeleteAdapter()
77 mData.add(new Integer(10000 + i)); in DeleteAdapter()
83 if (selectedItemPosition >=0 && selectedItemPosition < mData.size()) { in deletePosition()
84 mData.remove(selectedItemPosition); in deletePosition()
91 return mData.size(); in getCount()
95 return mData.get(position); in getItem()
99 return mData.get(position); in getItemId()
104 return createView(mData.get(position), parent, desiredHeight); in getView()

123456789