/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/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 | 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 status_t ret = mData->mLooper->start( in createAMediaCodec() 153 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); in createAMediaCodec() 155 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); in createAMediaCodec() 157 if (mData->mCodec == NULL) { // failed to create codec in createAMediaCodec() 158 AMediaCodec_delete(mData); in createAMediaCodec() 161 mData->mHandler = new CodecHandler(mData); in createAMediaCodec() 162 mData->mLooper->registerHandler(mData->mHandler); in createAMediaCodec() [all …]
|
D | NdkMediaExtractor.cpp | 60 AMediaExtractor *mData = new AMediaExtractor(); in AMediaExtractor_new() local 61 mData->mImpl = new NuMediaExtractor(); in AMediaExtractor_new() 62 return mData; in AMediaExtractor_new() 66 media_status_t AMediaExtractor_delete(AMediaExtractor *mData) { in AMediaExtractor_delete() argument 68 delete mData; in AMediaExtractor_delete() 73 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, in AMediaExtractor_setDataSourceFd() argument 76 return translate_error(mData->mImpl->setDataSource(fd, offset, length)); in AMediaExtractor_setDataSourceFd() 80 media_status_t AMediaExtractor_setDataSource(AMediaExtractor *mData, const char *location) { in AMediaExtractor_setDataSource() argument 118 status_t err = mData->mImpl->setDataSource(httpService, location, NULL); in AMediaExtractor_setDataSource() 124 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 return mData; in AMediaFormat_fromMsg() 52 void AMediaFormat_getFormat(const AMediaFormat* mData, void* dest) { in AMediaFormat_getFormat() argument 53 *((sp<AMessage>*)dest) = mData->mFormat; in AMediaFormat_getFormat() 68 media_status_t AMediaFormat_delete(AMediaFormat *mData) { in AMediaFormat_delete() argument 70 delete mData; in AMediaFormat_delete() 76 const char* AMediaFormat_toString(AMediaFormat *mData) { in AMediaFormat_toString() argument 77 sp<AMessage> f = mData->mFormat; in AMediaFormat_toString() 144 mData->mDebug = ret; in AMediaFormat_toString() [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 …]
|
/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/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/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | CompoundTransform.java | 38 protected ScriptField_TransformComponent_s.Item mData; field in CompoundTransform.Component 41 mData = new ScriptField_TransformComponent_s.Item(); in Component() 42 mData.type = type; in Component() 48 if (mData.name != null) { in setNameAlloc() 51 mData.name = SceneManager.getCachedAlloc(getName()); in setNameAlloc() 52 if (mData.name == null) { in setNameAlloc() 53 mData.name = SceneManager.getStringAsAllocation(rs, getName()); in setNameAlloc() 54 SceneManager.cacheAlloc(getName(), mData.name); in setNameAlloc() 60 return mData; in getRSData() 80 return new Float3(mData.value.x, mData.value.y, mData.value.z); in getValue() [all …]
|
D | Camera.java | 36 ScriptField_Camera_s.Item mData; field in Camera 40 mData = new ScriptField_Camera_s.Item(); in Camera() 41 mData.near = 0.1f; in Camera() 42 mData.far = 1000.0f; in Camera() 43 mData.horizontalFOV = 60.0f; in Camera() 44 mData.aspect = 0; in Camera() 55 mData.horizontalFOV = fov; in setFOV() 63 mData.near = n; in setNear() 71 mData.far = f; in setFar() 82 mData.name = getNameAlloc(rs); in setName() [all …]
|
D | Renderable.java | 57 ScriptField_Renderable_s.Item mData; field in Renderable 61 mData = new ScriptField_Renderable_s.Item(); in Renderable() 65 mData.cullType = cull; in setCullType() 73 mField.set(mData, 0, true); in setRenderState() 78 mData.mesh = mesh; in setMesh() 80 mField.set_mesh(0, mData.mesh, true); in setMesh() 102 mField.set(mData, 0, true); in setTransform() 115 mData.mesh = mesh; in resolveMeshData() 116 if (mData.mesh == null) { in resolveMeshData() 120 int subIndexCount = mData.mesh.getPrimitiveCount(); in resolveMeshData() [all …]
|
/frameworks/base/libs/hwui/ |
D | JankTracker.cpp | 118 mData = new ProfileData; in JankTracker() 129 munmap(mData, sizeof(ProfileData)); in freeData() 131 delete mData; in freeData() 134 mData = nullptr; in freeData() 160 for (size_t i = 0; i < mData->jankTypeCounts.size(); i++) { in switchStorageToAshmem() 162 newData->jankTypeCounts[i] += mData->jankTypeCounts[i]; in switchStorageToAshmem() 164 for (size_t i = 0; i < mData->frameCounts.size(); i++) { in switchStorageToAshmem() 166 newData->frameCounts[i] += mData->frameCounts[i]; in switchStorageToAshmem() 169 newData->jankFrameCount += mData->jankFrameCount; in switchStorageToAshmem() 171 newData->totalFrameCount += mData->totalFrameCount; in switchStorageToAshmem() [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/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/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() 447 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo() 449 mData.putUInt32(0); in doGetDeviceInfo() [all …]
|
D | MtpDevice.cpp | 325 if (info->read(mData)) in getDeviceInfo() 343 return mData.getAUInt32(); in getStorageIDs() 360 if (info->read(mData)) in getStorageInfo() 382 return mData.getAUInt32(); in getObjectHandles() 401 if (info->read(mData)) in getObjectInfo() 417 return mData.getData(outLength); in getThumbnail() 435 mData.putUInt32(info->mStorageID); in sendObjectInfo() 436 mData.putUInt16(info->mFormat); in sendObjectInfo() 437 mData.putUInt16(info->mProtectionStatus); in sendObjectInfo() 438 mData.putUInt32(info->mCompressedSize); in sendObjectInfo() [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/base/tools/aapt2/ |
D | StringPiece.h | 69 const TChar* mData; 81 inline BasicStringPiece<TChar>::BasicStringPiece() : mData(nullptr) , mLength(0) { in BasicStringPiece() 86 mData(str.mData), mLength(str.mLength) { in BasicStringPiece() 91 mData(str.data()), mLength(str.length()) { in BasicStringPiece() 96 mData(str), mLength(str != nullptr ? strlen(str) : 0) { in BasicStringPiece() 101 mData(str), mLength(str != nullptr ? strlen16(str) : 0) { in BasicStringPiece() 106 mData(str), mLength(len) { in BasicStringPiece() 112 mData = rhs.mData; 119 mData = str; in assign() 130 return BasicStringPiece<TChar>(mData + start, len); in substr() [all …]
|
/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 | 28 : mData(new uint8_t[size]), in ESDS() 34 memcpy(mData, data, size); in ESDS() 40 delete[] mData; in ~ESDS() 41 mData = NULL; in ~ESDS() 63 *data = &mData[mDecoderSpecificOffset]; in getCodecSpecificInfo() 76 *tag = mData[offset++]; in skipDescriptorHeader() 86 uint8_t x = mData[offset++]; in skipDescriptorHeader() 131 unsigned streamDependenceFlag = mData[offset] & 0x80; in parseESDescriptor() 132 unsigned URL_Flag = mData[offset] & 0x40; in parseESDescriptor() 133 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/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()
|