/frameworks/base/graphics/java/android/renderscript/ |
D | FieldPacker.java | 27 mData = new byte[len]; in FieldPacker() 32 mData[mPos++] = 0; in align() 41 mData[mPos++] = v; in addI8() 46 mData[mPos++] = (byte)(v & 0xff); in addI16() 47 mData[mPos++] = (byte)(v >> 8); in addI16() 52 mData[mPos++] = (byte)(v & 0xff); in addI32() 53 mData[mPos++] = (byte)((v >> 8) & 0xff); in addI32() 54 mData[mPos++] = (byte)((v >> 16) & 0xff); in addI32() 55 mData[mPos++] = (byte)((v >> 24) & 0xff); in addI32() 60 mData[mPos++] = (byte)(v & 0xff); in addI64() [all …]
|
/frameworks/base/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/media/libmedia/ |
D | Metadata.cpp | 60 :mData(p), in Metadata() 67 mData->setDataPosition(mBegin); in resetParcel() 74 const size_t end = mData->dataPosition(); in updateLength() 76 mData->setDataPosition(mBegin); in updateLength() 77 mData->writeInt32(end - mBegin); in updateLength() 78 mData->setDataPosition(end); in updateLength() 87 ok = ok && mData->writeInt32(-1) == OK; in appendHeader() 88 ok = ok && mData->writeInt32(kMetaMarker) == OK; in appendHeader() 98 const size_t begin = mData->dataPosition(); in appendBool() 102 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK; in appendBool() [all …]
|
/frameworks/base/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 …]
|
D | ABuffer.cpp | 26 : mData(malloc(capacity)), in ABuffer() 35 : mData(data), in ABuffer() 45 if (mData != NULL) { in ~ABuffer() 46 free(mData); in ~ABuffer() 47 mData = NULL; in ~ABuffer()
|
D | ABitReader.cpp | 24 : mData(data), in ABitReader() 36 mReservoir = (mReservoir << 8) | *mData; in fillReservoir() 38 ++mData; in fillReservoir() 95 return mData - mNumBitsLeft / 8; in data()
|
/frameworks/base/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 free(mData); in parseV2() [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/core/java/com/google/android/mms/pdu/ |
D | EncodedStringValue.java | 44 private byte[] mData; field in EncodedStringValue 60 mData = new byte[data.length]; in EncodedStringValue() 61 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue() 76 mData = data.getBytes(CharacterSets.DEFAULT_CHARSET_NAME); in EncodedStringValue() 108 byte[] byteArray = new byte[mData.length]; in getTextString() 110 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString() 125 mData = new byte[textString.length]; in setTextString() 126 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString() 138 return new String(mData); // system default encoding. in getString() 142 return new String(mData, name); in getString() [all …]
|
/frameworks/base/services/sensorservice/ |
D | LinearAccelerationSensor.cpp | 34 mData[0] = mData[1] = mData[2] = 0; in LinearAccelerationSensor() 43 mData[0] = event.acceleration.x; in process() 44 mData[1] = event.acceleration.y; in process() 45 mData[2] = event.acceleration.z; in process() 47 outEvent->data[0] = mData[0] - outEvent->data[0]; in process() 48 outEvent->data[1] = mData[1] - outEvent->data[1]; in process() 49 outEvent->data[2] = mData[2] - outEvent->data[2]; in process()
|
/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/media/libstagefright/ |
D | ESDS.cpp | 24 : mData(new uint8_t[size]), in ESDS() 30 memcpy(mData, data, size); in ESDS() 36 delete[] mData; in ~ESDS() 37 mData = NULL; in ~ESDS() 59 *data = &mData[mDecoderSpecificOffset]; in getCodecSpecificInfo() 72 *tag = mData[offset++]; in skipDescriptorHeader() 82 uint8_t x = mData[offset++]; in skipDescriptorHeader() 125 unsigned streamDependenceFlag = mData[offset] & 0x80; in parseESDescriptor() 126 unsigned URL_Flag = mData[offset] & 0x40; in parseESDescriptor() 127 unsigned OCRstreamFlag = mData[offset] & 0x20; in parseESDescriptor() [all …]
|
D | MediaBuffer.cpp | 42 mData(data), in MediaBuffer() 55 mData(malloc(size)), in MediaBuffer() 95 return mData; in data() 132 if (mOwnsData && mData != NULL) { in ~MediaBuffer() 133 free(mData); in ~MediaBuffer() 134 mData = NULL; in ~MediaBuffer() 161 MediaBuffer *buffer = new MediaBuffer(mData, mSize); in clone()
|
/frameworks/base/core/jni/ |
D | CursorWindow.cpp | 44 mData = (uint8_t *) memory->pointer(); in setMemory() 45 if (mData == NULL) { in setMemory() 48 mHeader = (window_header_t *) mData; in setMemory() 55 …ize = %d, mData = %p", mFreeOffset, mHeader->numRows, mHeader->numColumns, mSize, mMaxSize, mData); in setMemory() 68 mData = (uint8_t *) mMemory->pointer(); in initBuffer() 69 if (mData) { in initBuffer() 70 mHeader = (window_header_t *) mData; in initBuffer() 75 …er: mFreeOffset = %d, mSize = %d, mMaxSize = %d, mData = %p", mFreeOffset, mSize, mMaxSize, mData); in initBuffer() 98 *((uint32_t *)(mData + mFreeOffset - sizeof(uint32_t))) = 0; in clear() 129 … %d bytes at offset %u\n", (mHeader->numRows - 1), ((uint8_t *)rowSlot) - mData, fieldDirSize, fie… in allocRow() [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/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()
|
/frameworks/base/core/java/android/os/ |
D | DropBoxManager.java | 69 private final byte[] mData; field in DropBoxManager.Entry 79 mData = null; in Entry() 91 mData = text.getBytes(); in Entry() 108 mData = data; in Entry() 125 mData = null; in Entry() 140 mData = null; in Entry() 165 if (mData != null) return new String(mData, 0, Math.min(maxBytes, mData.length)); in getText() 183 if (mData != null) { in getInputStream() 184 is = new ByteArrayInputStream(mData); in getInputStream() 219 out.writeByteArray(mData); in writeToParcel()
|
/frameworks/base/core/java/android/content/res/ |
D | TypedArray.java | 42 /*package*/ int[] mData; field in TypedArray 91 final int[] data = mData; in getText() 119 final int[] data = mData; in getString() 154 final int[] data = mData; in getNonResourceString() 180 final int[] data = mData; in getNonConfigurationString() 212 final int[] data = mData; in getBoolean() 242 final int[] data = mData; in getInt() 271 final int[] data = mData; in getFloat() 309 final int[] data = mData; in getColor() 358 final int[] data = mData; in getInteger() [all …]
|
/frameworks/base/libs/rs/ |
D | rsFileA3D.h | 60 float tmp = reinterpret_cast<const float *>(&mData[mPos])[0]; in loadF() 66 int32_t tmp = reinterpret_cast<const int32_t *>(&mData[mPos])[0]; in loadI32() 72 uint32_t tmp = reinterpret_cast<const uint32_t *>(&mData[mPos])[0]; in loadU32() 78 uint16_t tmp = reinterpret_cast<const uint16_t *>(&mData[mPos])[0]; in loadU16() 83 uint8_t tmp = reinterpret_cast<const uint8_t *>(&mData[mPos])[0]; in loadU8() 92 const uint8_t * mData; 106 const uint8_t * mData; variable
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityTestsBase.java | 40 private Intent mData; field in ActivityTestsBase 122 mData = data; in finishWithResult() 153 mData != null ? mData.toString() : "Unable to launch", in waitForResultOrThrow() 157 mData != null ? mData.toString() : "Unable to launch"); in waitForResultOrThrow() 199 return mData; in getResultData()
|
/frameworks/base/core/java/android/webkit/ |
D | StreamLoader.java | 57 private byte [] mData; // buffer to pass data to loader with. field in StreamLoader 111 mData = new byte[8192]; in load() 133 mData = new byte[8192]; in handleMessage() 179 int amount = mDataStream.read(mData); in sendData() 181 mLoadListener.data(mData, amount); in sendData()
|
/frameworks/base/tests/CoreTests/android/core/ |
D | ClassLoaderTest.java | 201 mData = data; in MyLoader() 206 return defineClass(name, mData, 0, mData.length); in findClass() 209 byte[] mData; field in ClassLoaderTest.MyLoader
|
/frameworks/base/libs/binder/ |
D | Parcel.cpp | 293 return mData; in data() 360 uint8_t *data = parcel->mData; in appendFrom() 396 memcpy(mData + mDataPos, data + offset, len); in appendFrom() 421 = reinterpret_cast<flat_binder_object*>(mData + off); in appendFrom() 530 memcpy(mData+mDataPos, data, len); in writeUnpadded() 561 uint8_t* const data = mData+mDataPos; in writeInplace() 746 *reinterpret_cast<flat_binder_object*>(mData+mDataPos) = val; in writeObject() 791 memcpy(outData, mData+mDataPos, len); in read() 802 const void* data = mData+mDataPos; in readInplace() 815 const void* data = mData+mDataPos; in readAligned() [all …]
|
/frameworks/base/services/audioflinger/ |
D | A2dpAudioInterface.cpp | 221 mFd(-1), mStandby(true), mStartCount(0), mRetryCount(0), mData(NULL), in A2dpAudioStreamOut() 290 status = a2dp_write(mData, buffer, remaining); in write() 312 if (!mData) { in init() 313 status_t status = a2dp_init(44100, 2, &mData); in init() 316 mData = NULL; in init() 319 a2dp_set_sink(mData, mA2dpAddress); in init() 337 result = a2dp_stop(mData); in standby() 411 if (mData) in setAddress() 412 a2dp_set_sink(mData, mA2dpAddress); in setAddress() 447 if (mData) { in close_l() [all …]
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 56 mData = 0; in MallocHelper() 60 if (mData != 0) { in ~MallocHelper() 61 free(mData); in ~MallocHelper() 66 mData = malloc(size); in alloc() 67 return mData; in alloc() 71 void* mData; member in android::MallocHelper 200 mData = mBase + mOffset; in bind() 207 T* mData; member in android::ArrayHelper 252 const float* pSrc = positions.mData; in util_computeBoundingSphere() 294 float* pSphere = sphere.mData; in util_computeBoundingSphere() [all …]
|