/frameworks/av/include/private/media/ |
D | VideoFrame.h | 32 MediaAlbumArt(): mSize(0), mData(0) {} in MediaAlbumArt() 36 mData = NULL; in MediaAlbumArt() 43 if (mSize == 0 || (mData = new uint8_t[mSize]) == NULL) { in MediaAlbumArt() 51 if (fread(mData, 1, mSize, in) != mSize) { // Read failed. in MediaAlbumArt() 52 delete[] mData; in MediaAlbumArt() 53 mData = NULL; in MediaAlbumArt() 62 mData = NULL; // initialize it first in MediaAlbumArt() 63 if (mSize > 0 && copy.mData != NULL) { in MediaAlbumArt() 64 mData = new uint8_t[copy.mSize]; in MediaAlbumArt() 65 if (mData != NULL) { in MediaAlbumArt() [all …]
|
/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/libstagefright/foundation/ |
D | AString.cpp | 32 : mData((char *)kEmptyString), in AString() 38 : mData(NULL), in AString() 45 : mData(NULL), in AString() 52 : mData(NULL), in AString() 59 : mData(NULL), in AString() 82 return mData; in c_str() 102 setTo(from.mData + offset, n); in setTo() 106 if (mData && mData != kEmptyString) { in clear() 107 free(mData); in clear() 108 mData = NULL; in clear() [all …]
|
/frameworks/av/media/libstagefright/id3/ |
D | ID3.cpp | 35 mData(NULL), in ID3() 47 if (mData) { in ~ID3() 48 free(mData); in ~ID3() 49 mData = NULL; in ~ID3() 136 mData = (uint8_t *)malloc(size); in parseV2() 138 if (mData == NULL) { in parseV2() 144 if (source->readAt(sizeof(header), mData, mSize) != (ssize_t)mSize) { in parseV2() 145 free(mData); in parseV2() 146 mData = NULL; in parseV2() 153 memcpy(copy, mData, 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 s->setTo((const char *)&mData[mPos], len); in loadString() 54 mData = (uint8_t*)malloc(len); in OStream() 61 free(mData); in ~OStream() 69 memcpy(mData + mPos, src, numBytes); in addByteArray() 79 mData[mPos++] = (uint8_t)(v & 0xff); in addOffset() 80 mData[mPos++] = (uint8_t)((v >> 8) & 0xff); in addOffset() 81 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 …]
|
D | ShaderParam.java | 55 ScriptField_ShaderParamData_s.Item mData; field in ShaderParam 111 mData = new ScriptField_ShaderParamData_s.Item(); in ShaderParam() 121 mData.camera = mCamera.getRSData().getAllocation(); in setCamera() 122 mField.set_camera(0, mData.camera, true); in setCamera() 128 mData.timestamp ++; in incTimestamp() 129 mData.timestamp %= sMaxTimeStamp; in incTimestamp() 130 mField.set_timestamp(0, mData.timestamp, true); in incTimestamp() 145 mData.paramName = SceneManager.getCachedAlloc(mParamName); in getRSData() 146 if (mData.paramName == null) { in getRSData() 147 mData.paramName = SceneManager.getStringAsAllocation(rs, mParamName); in getRSData() [all …]
|
D | Float4Param.java | 67 mData.float_value.x = x; in set() 68 mData.float_value.y = y; in set() 69 mData.float_value.z = z; in set() 70 mData.float_value.w = w; in set() 72 mField.set_float_value(0, mData.float_value, true); in set() 82 return mData.float_value; in getValue() 88 mData.light = mLight.getRSData().getAllocation(); in setLight() 89 mField.set_light(0, mData.light, true); in setLight() 133 mData.type = getTypeFromName(); in initLocalData() 135 mData.camera = mCamera.getRSData().getAllocation(); in initLocalData() [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/opt/mms/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/media/mtp/ |
D | MtpServer.cpp | 180 int ret = mData.read(fd); in run() 190 mData.dump(); in run() 192 mData.reset(); in run() 196 if (!dataIn && mData.hasData()) { in run() 197 mData.setOperationCode(operation); in run() 198 mData.setTransactionID(transaction); in run() 200 mData.dump(); in run() 201 ret = mData.write(fd); in run() 431 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo() 433 mData.putUInt32(0); in doGetDeviceInfo() [all …]
|
D | MtpDevice.cpp | 316 info->read(mData); in getDeviceInfo() 332 return mData.getAUInt32(); in getStorageIDs() 349 info->read(mData); in getStorageInfo() 369 return mData.getAUInt32(); in getObjectHandles() 388 info->read(mData); in getObjectInfo() 402 return mData.getData(outLength); in getThumbnail() 420 mData.putUInt32(info->mStorageID); in sendObjectInfo() 421 mData.putUInt16(info->mFormat); in sendObjectInfo() 422 mData.putUInt16(info->mProtectionStatus); in sendObjectInfo() 423 mData.putUInt32(info->mCompressedSize); in sendObjectInfo() [all …]
|
/frameworks/base/graphics/java/android/renderscript/ |
D | FieldPacker.java | 35 mData = new byte[len]; in FieldPacker() 42 mData = data; in FieldPacker() 53 mData[mPos++] = 0; in align() 94 mData[mPos++] = v; in addI8() 99 return mData[--mPos]; in subI8() 104 mData[mPos++] = (byte)(v & 0xff); in addI16() 105 mData[mPos++] = (byte)(v >> 8); in addI16() 111 v = (short)((mData[--mPos] & 0xff) << 8); in subI16() 112 v = (short)(v | (short)(mData[--mPos] & 0xff)); in subI16() 119 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/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/base/drm/java/android/drm/ |
D | DrmInfo.java | 34 private byte[] mData; field in DrmInfo 51 mData = data; in DrmInfo() 72 mData = DrmUtils.readBytes(path); in DrmInfo() 77 mData = null; in DrmInfo() 82 "data: " + mData; in DrmInfo() 137 return mData; in getData() 167 && null != mData && mData.length > 0 && DrmInfoRequest.isValidType(mInfoType)); in isValid()
|
D | DrmRights.java | 41 private byte[] mData; field in DrmRights 98 mData = DrmUtils.readBytes(rightsFile); in instantiate() 106 "data: " + mData; in instantiate() 123 mData = data.getData(); in DrmRights() 130 "data: " + mData; in DrmRights() 141 return mData; in getData() 178 && null != mData && mData.length > 0); in isValid()
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | FieldPacker.java | 50 mData = new byte[len]; in FieldPacker() 66 mData[mPos++] = 0; in align() 105 mData[mPos++] = v; in addI8() 114 mData[mPos++] = (byte)(v & 0xff); in addI16() 115 mData[mPos++] = (byte)(v >> 8); in addI16() 124 mData[mPos++] = (byte)(v & 0xff); in addI32() 125 mData[mPos++] = (byte)((v >> 8) & 0xff); in addI32() 126 mData[mPos++] = (byte)((v >> 16) & 0xff); in addI32() 127 mData[mPos++] = (byte)((v >> 24) & 0xff); in addI32() 136 mData[mPos++] = (byte)(v & 0xff); in addI64() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ResultInfo.java | 34 public final Intent mData; field in ResultInfo 41 mData = data; in ResultInfo() 46 + ", result=" + mResultCode + ", data=" + mData + "}"; in toString() 57 if (mData != null) { in writeToParcel() 59 mData.writeToParcel(out, 0); in writeToParcel() 81 mData = Intent.CREATOR.createFromParcel(in); in ResultInfo() 83 mData = null; in ResultInfo()
|
/frameworks/base/tools/aapt/ |
D | ResourceFilter.cpp | 45 ssize_t index = mData.indexOfKey(axis); in parse() 47 mData.add(axis, SortedVector<uint32_t>()); in parse() 49 SortedVector<uint32_t>& sv = mData.editValueFor(axis); in parse() 69 return mData.size() == 0; in isEmpty() 79 ssize_t index = mData.indexOfKey(axis); in match() 84 const SortedVector<uint32_t>& sv = mData.valueAt(index); in match() 107 ssize_t index = mData.indexOfKey(axis); in configsForAxis() 111 return &mData.valueAt(index); in configsForAxis()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupDataInputStream.java | 43 BackupDataInput mData; field in BackupDataInputStream 48 mData = data; in BackupDataInputStream() 63 mData.readEntityData(one, 0, 1); in read() 81 return mData.readEntityData(b, offset, size); in read() 94 return mData.readEntityData(b, 0, b.length); in read()
|