/frameworks/base/core/java/android/net/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] == 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/ |
D | NdkMediaCodec.cpp | 145 AMediaCodec *mData = new AMediaCodec(); in createAMediaCodec() local 146 mData->mLooper = new ALooper; in createAMediaCodec() 147 mData->mLooper->setName("NDK MediaCodec_looper"); in createAMediaCodec() 148 size_t res = mData->mLooper->start( in createAMediaCodec() 154 AMediaCodec_delete(mData); in createAMediaCodec() 158 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); in createAMediaCodec() 160 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); in createAMediaCodec() 162 if (mData->mCodec == NULL) { // failed to create codec in createAMediaCodec() 163 AMediaCodec_delete(mData); in createAMediaCodec() 166 mData->mHandler = new CodecHandler(mData); in createAMediaCodec() [all …]
|
D | NdkMediaExtractor.cpp | 61 AMediaExtractor *mData = new AMediaExtractor(); in AMediaExtractor_new() local 62 mData->mImpl = new NuMediaExtractor(); in AMediaExtractor_new() 63 return mData; in AMediaExtractor_new() 67 media_status_t AMediaExtractor_delete(AMediaExtractor *mData) { in AMediaExtractor_delete() argument 69 delete mData; in AMediaExtractor_delete() 74 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, in AMediaExtractor_setDataSourceFd() argument 77 return translate_error(mData->mImpl->setDataSource(fd, offset, length)); in AMediaExtractor_setDataSourceFd() 81 media_status_t AMediaExtractor_setDataSource(AMediaExtractor *mData, const char *location) { in AMediaExtractor_setDataSource() argument 119 status_t err = mData->mImpl->setDataSource(httpService, location, NULL); in AMediaExtractor_setDataSource() 125 size_t AMediaExtractor_getTrackCount(AMediaExtractor *mData) { in AMediaExtractor_getTrackCount() argument [all …]
|
D | NdkMediaFormat.cpp | 47 AMediaFormat* mData = new AMediaFormat(); in AMediaFormat_fromMsg() local 48 mData->mFormat = *((sp<AMessage>*)data); in AMediaFormat_fromMsg() 49 if (mData->mFormat == NULL) { in AMediaFormat_fromMsg() 51 mData->mFormat = new AMessage; in AMediaFormat_fromMsg() 53 return mData; in AMediaFormat_fromMsg() 56 void AMediaFormat_getFormat(const AMediaFormat* mData, void* dest) { in AMediaFormat_getFormat() argument 57 *((sp<AMessage>*)dest) = mData->mFormat; in AMediaFormat_getFormat() 72 media_status_t AMediaFormat_delete(AMediaFormat *mData) { in AMediaFormat_delete() argument 74 delete mData; in AMediaFormat_delete() 80 const char* AMediaFormat_toString(AMediaFormat *mData) { in AMediaFormat_toString() argument [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/libstagefright/id3/ |
D | ID3.cpp | 35 : mData(data), in MemorySource() 47 memcpy(data, mData + offset, copy); in readAt() 53 const uint8_t *mData; member 61 mData(NULL), in ID3() 75 mData(NULL), in ID3() 90 if (mData) { in ~ID3() 91 free(mData); in ~ID3() 92 mData = NULL; in ~ID3() 179 mData = (uint8_t *)malloc(size); in parseV2() 181 if (mData == NULL) { in parseV2() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AString.cpp | 34 : mData((char *)kEmptyString), in AString() 40 : mData(NULL), in AString() 47 : mData(NULL), in AString() 54 : mData(NULL), in AString() 61 : mData(NULL), in AString() 68 : mData(NULL), in AString() 91 return mData; in c_str() 111 setTo(from.mData + offset, n); in setTo() 115 if (mData && mData != kEmptyString) { in clear() 116 free(mData); in clear() [all …]
|
D | MediaBuffer.cpp | 37 mData(data), in MediaBuffer() 50 mData(NULL), in MediaBuffer() 58 mData = malloc(size); in MediaBuffer() 64 mData = malloc(size); in MediaBuffer() 65 if (mData == NULL) { in MediaBuffer() 69 mData = mMemory->pointer(); in MediaBuffer() 70 ALOGV("Allocated shared mem buffer of size %zu @ %p", size, mData); in MediaBuffer() 79 mData(NULL), in MediaBuffer() 93 mData(buffer->data()), in MediaBuffer() 135 return mData; in data() [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/tools/aapt2/util/ |
D | StringPiece.h | 71 const TChar* mData; 83 inline BasicStringPiece<TChar>::BasicStringPiece() : mData(nullptr) , mLength(0) { in BasicStringPiece() 88 mData(str.mData), mLength(str.mLength) { in BasicStringPiece() 93 mData(str.data()), mLength(str.length()) { in BasicStringPiece() 98 mData(str), mLength(str != nullptr ? strlen(str) : 0) { in BasicStringPiece() 103 mData(str), mLength(str != nullptr ? strlen16(str) : 0) { in BasicStringPiece() 108 mData(str), mLength(len) { in BasicStringPiece() 114 mData = rhs.mData; 121 mData = str; in assign() 132 return BasicStringPiece<TChar>(mData + start, len); in substr() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpServer.cpp | 182 int ret = mData.read(fd); in run() 192 mData.dump(); in run() 194 mData.reset(); in run() 198 if (!dataIn && mData.hasData()) { in run() 199 mData.setOperationCode(operation); in run() 200 mData.setTransactionID(transaction); in run() 202 mData.dump(); in run() 203 ret = mData.write(fd); in run() 448 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo() 450 mData.putUInt32(0); in doGetDeviceInfo() [all …]
|
D | MtpDevice.cpp | 351 if (info->read(mData)) in getDeviceInfo() 369 return mData.getAUInt32(); in getStorageIDs() 386 if (info->read(mData)) in getStorageInfo() 408 return mData.getAUInt32(); in getObjectHandles() 427 if (info->read(mData)) in getObjectInfo() 443 return mData.getData(&outLength); in getThumbnail() 461 mData.reset(); in sendObjectInfo() 462 mData.putUInt32(info->mStorageID); in sendObjectInfo() 463 mData.putUInt16(info->mFormat); in sendObjectInfo() 464 mData.putUInt16(info->mProtectionStatus); in sendObjectInfo() [all …]
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | EncodedStringValue.java | 43 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/base/libs/hwui/ |
D | JankTracker.cpp | 125 mData = new ProfileData; in JankTracker() 136 munmap(mData, sizeof(ProfileData)); in freeData() 138 delete mData; in freeData() 141 mData = nullptr; in freeData() 167 for (size_t i = 0; i < mData->jankTypeCounts.size(); i++) { in switchStorageToAshmem() 169 newData->jankTypeCounts[i] += mData->jankTypeCounts[i]; in switchStorageToAshmem() 171 for (size_t i = 0; i < mData->frameCounts.size(); i++) { in switchStorageToAshmem() 173 newData->frameCounts[i] += mData->frameCounts[i]; in switchStorageToAshmem() 176 newData->jankFrameCount += mData->jankFrameCount; in switchStorageToAshmem() 178 newData->totalFrameCount += mData->totalFrameCount; in switchStorageToAshmem() [all …]
|
/frameworks/av/include/private/media/ |
D | VideoFrame.h | 33 VideoFrame(): mWidth(0), mHeight(0), mDisplayWidth(0), mDisplayHeight(0), mSize(0), mData(0), in VideoFrame() 42 mData = NULL; // initialize it first in VideoFrame() 43 if (mSize > 0 && copy.mData != NULL) { in VideoFrame() 44 mData = new uint8_t[mSize]; in VideoFrame() 45 if (mData != NULL) { in VideoFrame() 46 memcpy(mData, copy.mData, mSize); in VideoFrame() 55 if (mData != 0) { in ~VideoFrame() 56 delete[] mData; in ~VideoFrame() 68 uint8_t* mData; // Actual binary data variable 70 char mPadding[8 - sizeof(mData)];
|
/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/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/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/support/v8/renderscript/java/src/android/support/v8/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/support/v7/recyclerview/src/android/support/v7/util/ |
D | SortedList.java | 49 T[] mData; field in SortedList 94 mData = (T[]) Array.newInstance(klass, initialCapacity); in SortedList() 194 mOldData = mData; in addAllInternal() 202 mData = newItems; in addAllInternal() 280 mData = (T[]) Array.newInstance(mTClass, mergedCapacity); in merge() 288 System.arraycopy(newData, newDataStart, mData, mMergedSize, itemCount); in merge() 298 System.arraycopy(mOldData, mOldDataStart, mData, mMergedSize, itemCount); in merge() 308 mData[mMergedSize++] = newItem; in merge() 314 mData[mMergedSize++] = newItem; in merge() 323 mData[mMergedSize++] = oldItem; in merge() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | ContextHubMessage.java | 33 private byte[]mData; field in ContextHubMessage 62 return Arrays.copyOf(mData, mData.length); in getData() 89 mData = Arrays.copyOf(data, data.length); in setMsgData() 102 mData = Arrays.copyOf(data, data.length); in ContextHubMessage() 113 mData = new byte[bufferLength]; in ContextHubMessage() 114 in.readByteArray(mData); in ContextHubMessage() 120 out.writeInt(mData.length); in writeToParcel() 121 out.writeByteArray(mData); in writeToParcel()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridDelete.java | 70 private ArrayList<Integer> mData; field in GridDelete.DeleteAdapter 74 mData = new ArrayList<Integer>(initialNumItems); in DeleteAdapter() 78 mData.add(new Integer(10000 + i)); in DeleteAdapter() 84 if (selectedItemPosition >=0 && selectedItemPosition < mData.size()) { in deletePosition() 85 mData.remove(selectedItemPosition); in deletePosition() 92 return mData.size(); in getCount() 96 return mData.get(position); in getItem() 100 return mData.get(position); in getItemId() 105 return createView(mData.get(position), parent, desiredHeight); in getView()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | ChildHelper.java | 401 long mData = 0; field in ChildHelper.Bucket 410 mData |= 1L << index; in set() 426 mData &= ~(1L << index); in clear() 436 return (mData & (1L << index)) != 0; in get() 441 mData = 0; in reset() 452 final boolean lastBit = (mData & LAST_BIT) != 0; in insert() 454 final long before = mData & mask; in insert() 455 final long after = ((mData & ~mask)) << 1; in insert() 456 mData = before | after; in insert() 475 final boolean value = (mData & mask) != 0; in remove() [all …]
|