Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java81 private final OwnersData mData; field in Owners
99 mData = new OwnersData(pathProvider); in Owners()
106 synchronized (mData) { in load()
109 mData.load(usersIds); in load()
116 int deviceOwnerType = mData.mDeviceOwnerTypes.getOrDefault( in load()
117 mData.mDeviceOwner.packageName, in load()
158 for (int i = mData.mProfileOwners.size() - 1; i >= 0; i--) { in pushToPackageManagerLocked()
159 po.put(mData.mProfileOwners.keyAt(i), mData.mProfileOwners.valueAt(i).packageName); in pushToPackageManagerLocked()
161 final String doPackage = mData.mDeviceOwner != null ? mData.mDeviceOwner.packageName : null; in pushToPackageManagerLocked()
163 mData.mDeviceOwnerUserId, doPackage, po); in pushToPackageManagerLocked()
[all …]
/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 …]
/frameworks/base/core/java/android/os/
DPowerComponents.java45 private final BatteryConsumer.BatteryConsumerData mData; field in PowerComponents
48 mData = builder.mData; in PowerComponents()
52 mData = data; in PowerComponents()
60 return mData.getDouble(mData.getKeyOrThrow(dimensions.powerComponent, in getConsumedPower()
63 if (!mData.layout.processStateDataIncluded) { in getConsumedPower()
68 mData.layout.processStateKeys[dimensions.processState]; in getConsumedPower()
71 totalPowerMah += mData.getDouble(keys[i].mPowerColumnIndex); in getConsumedPower()
75 return mData.getDouble(mData.layout.totalConsumedPowerColumnIndex); in getConsumedPower()
87 return mData.getDouble(key.mPowerColumnIndex); in getConsumedPower()
98 if (index >= 0 && index < mData.layout.customPowerComponentCount) { in getConsumedPowerForCustomComponent()
[all …]
/frameworks/av/media/ndk/
DNdkMediaCodec.cpp411 AMediaCodec *mData = new AMediaCodec(); in createAMediaCodec() local
412 mData->mLooper = new ALooper; in createAMediaCodec()
413 mData->mLooper->setName("NDK MediaCodec_looper"); in createAMediaCodec()
414 size_t res = mData->mLooper->start( in createAMediaCodec()
420 AMediaCodec_delete(mData); in createAMediaCodec()
424 mData->mCodec = android::MediaCodec::CreateByType( in createAMediaCodec()
425 mData->mLooper, in createAMediaCodec()
432 mData->mCodec = android::MediaCodec::CreateByComponentName( in createAMediaCodec()
433 mData->mLooper, in createAMediaCodec()
439 if (mData->mCodec == NULL) { // failed to create codec in createAMediaCodec()
[all …]
DNdkMediaExtractor.cpp66 AMediaExtractor *mData = new AMediaExtractor(); in AMediaExtractor_new() local
67 mData->mImpl = new NuMediaExtractor( in AMediaExtractor_new()
71 return mData; in AMediaExtractor_new()
75 media_status_t AMediaExtractor_delete(AMediaExtractor *mData) { in AMediaExtractor_delete() argument
77 delete mData; in AMediaExtractor_delete()
82 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, in AMediaExtractor_setDataSourceFd() argument
85 return translate_error(mData->mImpl->setDataSource(fd, offset, length)); in AMediaExtractor_setDataSourceFd()
88 media_status_t AMediaExtractor_setDataSourceWithHeaders(AMediaExtractor *mData, in AMediaExtractor_setDataSourceWithHeaders() argument
110 err = mData->mImpl->setDataSource(httpService, uri, numheaders > 0 ? &headers : NULL); in AMediaExtractor_setDataSourceWithHeaders()
115 media_status_t AMediaExtractor_setDataSource(AMediaExtractor *mData, const char *location) { in AMediaExtractor_setDataSource() argument
[all …]
/frameworks/av/media/module/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()
131 if (mData) { in ~ID3()
132 free(mData); in ~ID3()
133 mData = NULL; in ~ID3()
220 mData = (uint8_t *)malloc(size); in parseV2()
222 if (mData == NULL) { in parseV2()
[all …]
/frameworks/av/media/module/foundation/
DAString.cpp40 : mData((char *)kEmptyString), in AString()
46 : mData(NULL), in AString()
58 : mData(NULL), in AString()
70 : mData(NULL), in AString()
77 : mData(NULL), in AString()
84 : mData(NULL), in AString()
107 return mData; in c_str()
127 setTo(from.mData + offset, n); in setTo()
131 if (mData != kEmptyString) { in clear()
132 free(mData); in clear()
[all …]
/frameworks/base/core/java/android/os/incremental/
DIncrementalMetrics.java27 @NonNull private final PersistableBundle mData; field in IncrementalMetrics
30 mData = data; in IncrementalMetrics()
37 return mData.getLong(IIncrementalService.METRICS_MILLIS_SINCE_OLDEST_PENDING_READ, -1); in getMillisSinceOldestPendingRead()
44 return mData.getBoolean(IIncrementalService.METRICS_READ_LOGS_ENABLED, false); in getReadLogsEnabled()
51 return mData.getInt(IIncrementalService.METRICS_STORAGE_HEALTH_STATUS_CODE, -1); in getStorageHealthStatusCode()
58 return mData.getInt(IIncrementalService.METRICS_DATA_LOADER_STATUS_CODE, -1); in getDataLoaderStatusCode()
65 return mData.getLong(IIncrementalService.METRICS_MILLIS_SINCE_LAST_DATA_LOADER_BIND, -1); in getMillisSinceLastDataLoaderBind()
72 return mData.getLong(IIncrementalService.METRICS_DATA_LOADER_BIND_DELAY_MILLIS, -1); in getDataLoaderBindDelayMillis()
79 return mData.getInt(IIncrementalService.METRICS_TOTAL_DELAYED_READS, -1); in getTotalDelayedReads()
86 return mData.getInt(IIncrementalService.METRICS_TOTAL_FAILED_READS, -1); in getTotalFailedReads()
[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/base/core/java/android/util/
DSparseSetArray.java27 private final SparseArray<ArraySet<T>> mData; field in SparseSetArray
30 mData = new SparseArray<>(); in SparseSetArray()
38 mData = new SparseArray<>(arraySize); in SparseSetArray()
51 ArraySet<T> set = mData.get(n); in add()
54 mData.put(n, set); in add()
67 ArraySet<T> set = mData.get(n); in addAll()
70 mData.put(n, set); in addAll()
80 mData.clear(); in clear()
87 final ArraySet<T> set = mData.get(n); in contains()
98 return mData.get(n); in get()
[all …]
DSparseArrayMap.java36 private final SparseArray<ArrayMap<K, V>> mData = new SparseArray<>(); field in SparseArrayMap
46 ArrayMap<K, V> data = mData.get(key); in add()
49 mData.put(key, data); in add()
56 for (int i = 0; i < mData.size(); ++i) { in clear()
57 mData.valueAt(i).clear(); in clear()
63 return mData.contains(key) && mData.get(key).containsKey(mapKey); in contains()
68 mData.delete(key); in delete()
76 mData.removeAt(keyIndex); in deleteAt()
86 ArrayMap<K, V> data = mData.get(key); in delete()
98 mData.valueAt(keyIndex).removeAt(mapIndex); in deleteAt()
[all …]
/frameworks/base/core/java/android/content/pm/
DSignedPackage.java35 private final SignedPackageParcel mData; field in SignedPackage
42 mData = data; in SignedPackage()
47 mData = data; in SignedPackage()
52 return mData; in getData()
56 return mData.packageName; in getPackageName()
60 return mData.certificateDigest; in getCertificateDigest()
67 return mData.packageName.equals(that.mData.packageName) && Arrays.equals( in equals()
68 mData.certificateDigest, that.mData.certificateDigest); in equals()
73 return Objects.hash(mData.packageName, Arrays.hashCode(mData.certificateDigest)); in hashCode()
/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/telephony/common/com/google/android/mms/pdu/
DEncodedStringValue.java45 private byte[] mData; field in EncodedStringValue
62 mData = new byte[data.length]; in EncodedStringValue()
63 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue()
80 mData = data.getBytes(CharacterSets.DEFAULT_CHARSET_NAME); in EncodedStringValue()
115 byte[] byteArray = new byte[mData.length]; in getTextString()
117 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
133 mData = new byte[textString.length]; in setTextString()
134 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString()
147 return new String(mData); // system default encoding. in getString()
151 return new String(mData, name); in getString()
[all …]
/frameworks/base/core/tests/utiltests/src/android/util/
DMetadataReaderTest.java50 private Bundle mData; field in MetadataReaderTest
55 mData = new Bundle(); in setUp()
65 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", null); in testGetMetadata()
66 Bundle exif = mData.getBundle(DocumentsContract.METADATA_EXIF); in testGetMetadata()
76 assertEquals(mData.getStringArray(DocumentsContract.METADATA_TYPES)[0], in testGetMetadata()
83 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", tags); in testGetMetadata_JpegOneTag()
85 mData.getBundle(DocumentsContract.METADATA_EXIF).getString(tags[0])); in testGetMetadata_JpegOneTag()
91 assertEquals(0, mData.size()); in testGetMetadata_JpegNoResults()
92 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", tags); in testGetMetadata_JpegNoResults()
93 assertEquals(1, mData.size()); in testGetMetadata_JpegNoResults()
[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/services/core/java/com/android/server/utils/quota/
DUptcMap.java34 private final SparseArrayMap<String, ArrayMap<String, T>> mData = new SparseArrayMap<>(); field in UptcMap
38 ArrayMap<String, T> data = mData.get(userId, packageName); in add()
41 mData.add(userId, packageName, data); in add()
47 mData.clear(); in clear()
51 return mData.contains(userId, packageName); in contains()
57 ArrayMap<String, T> data = mData.get(userId, packageName); in contains()
63 mData.delete(userId); in delete()
68 final ArrayMap<String, T> data = mData.get(userId, packageName); in delete()
72 mData.delete(userId, packageName); in delete()
79 return mData.delete(userId, packageName); in delete()
[all …]
/frameworks/base/rs/java/android/renderscript/
DFieldPacker.java38 mData = new byte[len]; in FieldPacker()
47 mData = data; in FieldPacker()
70 mData[mPos++] = 0; in align()
111 mData[mPos++] = v; in addI8()
116 return mData[--mPos]; in subI8()
121 mData[mPos++] = (byte)(v & 0xff); in addI16()
122 mData[mPos++] = (byte)(v >> 8); in addI16()
128 v = (short)((mData[--mPos] & 0xff) << 8); in subI16()
129 v = (short)(v | (short)(mData[--mPos] & 0xff)); in subI16()
136 mData[mPos++] = (byte)(v & 0xff); in addI32()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStreamInterface.cpp36 return mData.add(streamId, stream); in add()
41 return mData.removeItem(streamId); in remove()
46 ssize_t idx = mData.indexOfKey(streamId); in get()
50 return mData.editValueAt(idx); in get()
55 return mData.editValueAt(index); in operator []()
60 return mData.size(); in size()
65 return mData.clear(); in clear()
70 std::vector<int> streamIds(mData.size()); in getStreamIds()
71 for (size_t i = 0; i < mData.size(); i++) { in getStreamIds()
72 streamIds[i] = mData.keyAt(i); in getStreamIds()
[all …]
/frameworks/base/core/java/android/hardware/location/
DContextHubMessage.java43 private byte[]mData; field in ContextHubMessage
69 return Arrays.copyOf(mData, mData.length); in getData()
96 mData = Arrays.copyOf(data, data.length); in setMsgData()
109 mData = Arrays.copyOf(data, data.length); in ContextHubMessage()
120 mData = new byte[bufferLength]; in ContextHubMessage()
121 in.readByteArray(mData); in ContextHubMessage()
127 out.writeInt(mData.length); in writeToParcel()
128 out.writeByteArray(mData); in writeToParcel()
145 int length = mData.length; in toString()
148 "ContextHubMessage[type = " + mType + ", length = " + mData.length + " bytes]("; in toString()
[all …]
/frameworks/av/media/module/esds/
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/av/media/mtp/
DMtpServer.cpp200 int ret = mData.read(mHandle); in run()
211 mData.reset(); in run()
215 if (!dataIn && mData.hasData()) { in run()
216 mData.setOperationCode(operation); in run()
217 mData.setTransactionID(transaction); in run()
219 ret = mData.write(mHandle); in run()
474 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo()
476 mData.putUInt32(0); in doGetDeviceInfo()
479 mData.putUInt32(6); in doGetDeviceInfo()
481 mData.putUInt16(MTP_STANDARD_VERSION); in doGetDeviceInfo()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DFieldPacker.java39 mData = new byte[len]; in FieldPacker()
48 mData = data; in FieldPacker()
71 mData[mPos++] = 0; in align()
112 mData[mPos++] = v; in addI8()
117 return mData[--mPos]; in subI8()
122 mData[mPos++] = (byte)(v & 0xff); in addI16()
123 mData[mPos++] = (byte)(v >> 8); in addI16()
129 v = (short)((mData[--mPos] & 0xff) << 8); in subI16()
130 v = (short)(v | (short)(mData[--mPos] & 0xff)); in subI16()
137 mData[mPos++] = (byte)(v & 0xff); in addI32()
[all …]
/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()
32 StringPiece(std::string_view str) : mData(str.data()), mLength(str.size()) {} in StringPiece()
34 inline const char* data() const { return mData; } in data()
39 inline char operator[](size_t i) const { return mData[i]; }
42 return StringPiece(mData + from, length); in substr()
49 const char* p = static_cast<const char*>(memchr(mData + from, c, mLength - from)); in find()
50 return p == nullptr ? mLength : p - mData; in find()
[all …]

1234567891011