Home
last modified time | relevance | path

Searched refs:dataSize (Results 1 – 25 of 138) sorted by relevance

123456

/frameworks/base/libs/androidfw/tests/
DBackupData_test.cpp96 size_t dataSize; in TEST_F() local
97 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
101 EXPECT_EQ(sizeof(DATA1), dataSize) in TEST_F()
104 char* dataBytes = new char[dataSize]; in TEST_F()
105 EXPECT_EQ((int) dataSize, reader->ReadEntityData(dataBytes, dataSize)) in TEST_F()
131 size_t dataSize; in TEST_F() local
135 reader->ReadEntityHeader(&key, &dataSize); in TEST_F()
136 dataBytes = new char[dataSize]; in TEST_F()
137 reader->ReadEntityData(dataBytes, dataSize); in TEST_F()
145 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F()
[all …]
/frameworks/base/core/java/android/os/
DParcelableHolder.java137 int dataSize = parcel.readInt(); in readFromParcel() local
138 if (dataSize < 0) { in readFromParcel()
143 mParcel.appendFrom(parcel, dataStartPos, dataSize); in readFromParcel()
144 parcel.setDataPosition(MathUtils.addOrThrow(dataStartPos, dataSize)); in readFromParcel()
152 parcel.writeInt(mParcel.dataSize()); in writeToParcel()
153 parcel.appendFrom(mParcel, 0, mParcel.dataSize()); in writeToParcel()
161 int dataSize = parcel.dataPosition() - dataStartPos; in writeToParcel() local
164 parcel.writeInt(dataSize); in writeToParcel()
165 parcel.setDataPosition(MathUtils.addOrThrow(parcel.dataPosition(), dataSize)); in writeToParcel() local
/frameworks/base/core/java/android/content/pm/
DPackageStats.java52 public long dataSize; field in PackageStats
102 if (dataSize != 0) { in toString()
104 sb.append(dataSize); in toString()
149 dataSize = source.readLong(); in PackageStats()
162 dataSize = pStats.dataSize; in PackageStats()
179 dest.writeLong(dataSize); in writeToParcel()
198 && dataSize == otherStats.dataSize in equals()
209 return Objects.hash(packageName, userHandle, codeSize, dataSize, in hashCode()
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp130 uint32_t dataSize, ySize, cSize, cStride; in getLockedImageInfo() local
136 dataSize = ySize = cSize = cStride = 0; in getLockedImageInfo()
153 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
157 dataSize = buffer->chromaStride * (buffer->height / 2 - 1) + in getLockedImageInfo()
176 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo()
197 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo()
206 dataSize = buffer->stride * buffer->height; in getLockedImageInfo()
216 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
234 dataSize = Image_getBlobSize(buffer, usingRGBAOverride); in getLockedImageInfo()
243 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
[all …]
/frameworks/base/cmds/statsd/tests/shell/
DShellSubscriber_test.cpp114 size_t dataSize = 0; in runShellTest() local
115 EXPECT_EQ((int)sizeof(dataSize), read(fds_data[0], &dataSize, sizeof(dataSize))); in runShellTest()
116 EXPECT_EQ(expected_data_size, (int)dataSize); in runShellTest()
119 vector<uint8_t> dataBuffer(dataSize); in runShellTest()
120 EXPECT_EQ((int)dataSize, read(fds_data[0], dataBuffer.data(), dataSize)); in runShellTest()
124 EXPECT_TRUE(receivedAtom.ParseFromArray(dataBuffer.data(), dataSize) != 0); in runShellTest()
/frameworks/base/libs/androidfw/
DBackupData.cpp87 BackupDataWriter::WriteEntityHeader(const String8& key, size_t dataSize) in WriteEntityHeader() argument
110 key.string(), dataSize); in WriteEntityHeader()
120 header.dataSize = tolel(dataSize); in WriteEntityHeader()
263 m_header.entity.dataSize = fromlel(m_header.entity.dataSize); in ReadNextHeader()
278 m_dataEndPos = m_pos + m_header.entity.dataSize; in ReadNextHeader()
298 BackupDataReader::ReadEntityHeader(String8* key, size_t* dataSize) in ReadEntityHeader() argument
307 *dataSize = m_header.entity.dataSize; in ReadEntityHeader()
320 if (m_header.entity.dataSize > 0) { in SkipEntityData()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowBackupDataOutput.java64 protected int writeEntityHeader(String key, int dataSize) throws IOException { in writeEntityHeader() argument
68 writeEntityHeader(new ObjectOutputStream(byteStream), key, dataSize); in writeEntityHeader()
71 writeEntityHeader(mOutput, key, dataSize); in writeEntityHeader()
75 private void writeEntityHeader(ObjectOutputStream stream, String key, int dataSize) in writeEntityHeader() argument
78 stream.writeInt(dataSize); in writeEntityHeader()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java177 int dataSize = bdi.getDataSize(); in testReadMockData() local
181 (expectedBytes == null ? -1: expectedBytes.length), dataSize); in testReadMockData()
182 if (dataSize != -1) { in testReadMockData()
183 byte[] buffer = new byte[dataSize]; in testReadMockData()
184 bdi.readEntityData(buffer, 0, dataSize); in testReadMockData()
186 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadMockData()
207 int dataSize = bdi.getDataSize(); in testReadRealData() local
211 (expectedBytes == null ? -1: expectedBytes.length), dataSize); in testReadRealData()
212 if (dataSize != -1) { in testReadRealData()
213 byte[] buffer = new byte[dataSize]; in testReadRealData()
[all …]
/frameworks/av/media/libstagefright/id3/test/
DID3Test.cpp126 size_t dataSize; in TEST_P() local
128 const void *data = tag.getAlbumArt(&dataSize, &mime); in TEST_P()
132 ALOGV("Found album art: size = %zu mime = %s \n", dataSize, mime.string()); in TEST_P()
139 hexdump(data, dataSize > 128 ? 128 : dataSize); in TEST_P()
161 size_t dataSize; in TEST_P() local
163 const void *data = tag.getAlbumArt(&dataSize, &mime); in TEST_P()
165 ALOGV("Found album art: size = %zu mime = %s \n", dataSize, mime.string()); in TEST_P()
167 hexdump(data, dataSize > 128 ? 128 : dataSize); in TEST_P()
/frameworks/av/media/ndk/
DNdkImage.cpp421 uint32_t dataSize, ySize, cSize, cStride; in getPlaneData() local
435 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + in getPlaneData()
438 dataSize = in getPlaneData()
457 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData()
475 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData()
481 dataSize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData()
487 dataSize = in getPlaneData()
499 dataSize = getJpegSize(); in getPlaneData()
505 dataSize = in getPlaneData()
516 dataSize = mLockedBuffer->width; in getPlaneData()
[all …]
/frameworks/av/media/libstagefright/id3/
Dtestid3.cpp99 size_t dataSize; in scanFile() local
101 const void *data = tag.getAlbumArt(&dataSize, &mime); in scanFile()
104 printf("found album art: size=%zu mime='%s'\n", dataSize, in scanFile()
107 hexdump(data, dataSize > 128 ? 128 : dataSize); in scanFile()
DID3.cpp420 size_t dataSize; in removeUnsynchronizationV2_4() local
422 dataSize = U32_AT(&mData[offset + 4]); in removeUnsynchronizationV2_4()
423 } else if (!ParseSyncsafeInteger(&mData[offset + 4], &dataSize)) { in removeUnsynchronizationV2_4()
427 if (dataSize > mSize - 10 - offset) { in removeUnsynchronizationV2_4()
437 if (mSize < 14 || mSize - 14 < offset || dataSize < 4) { in removeUnsynchronizationV2_4()
442 dataSize -= 4; in removeUnsynchronizationV2_4()
447 if ((flags & 2) && (dataSize >= 2)) { in removeUnsynchronizationV2_4()
453 for (size_t i = 0; i + 1 < dataSize; ++i) { in removeUnsynchronizationV2_4()
458 --dataSize; in removeUnsynchronizationV2_4()
460 if (i + 1 < dataSize) { in removeUnsynchronizationV2_4()
[all …]
/frameworks/av/media/libmedia/
DMediaScanner.cpp248 void MediaAlbumArt::init(MediaAlbumArt *instance, int32_t dataSize, const void *data) { in init() argument
249 instance->mSize = dataSize; in init()
250 memcpy(&instance->mData[0], data, dataSize); in init()
253 MediaAlbumArt *MediaAlbumArt::fromData(int32_t dataSize, const void* data) { in fromData() argument
254 size_t byte_size = sizeof(MediaAlbumArt) + dataSize; in fromData()
256 init(result, dataSize, data); in fromData()
/frameworks/base/core/jni/
Dandroid_backup_BackupHelperDispatcher.cpp37 int dataSize; // corresponds to Header.chunkSize member
92 ALOGD(" dataSize=%d", flattenedHeader.dataSize); in readHeader_native()
96 if (flattenedHeader.dataSize < 0 || flattenedHeader.nameLength < 0 || in readHeader_native()
99 flattenedHeader.dataSize, flattenedHeader.nameLength); in readHeader_native()
120 env->SetIntField(headerObj, s_chunkSizeField, flattenedHeader.dataSize); in readHeader_native()
187 header.dataSize = prevPos - (pos + header.headerSize); in writeHeader_native()
Dandroid_backup_BackupDataInput.cpp73 size_t dataSize; in readNextHeader_native() local
74 err = reader->ReadEntityHeader(&key, &dataSize); in readNextHeader_native()
81 env->SetIntField(entity, s_dataSizeField, dataSize); in readNextHeader_native()
/frameworks/base/libs/services/src/os/
DStatsLogEventWrapper.cpp86 int dataSize = 0; in readFromParcel() local
87 if ((res = in->readInt32(&dataSize)) != OK) { in readFromParcel()
92 dataSize <= 0) { in readFromParcel()
97 for (int i = 0; i < dataSize; i++) { in readFromParcel()
/frameworks/base/cmds/backup/
Dbackup.cpp75 size_t dataSize; in perform_list() local
76 err = reader.ReadEntityHeader(&key, &dataSize); in perform_list()
78 printf(" entity: %s (%zu bytes)\n", key.string(), dataSize); in perform_list()
/frameworks/rs/
DrsApiElement.cpp36 const char **names, size_t *arraySizes, uint32_t dataSize) { in rsaElementGetSubElements() argument
38 rsAssert(e->getFieldCount() == dataSize); in rsaElementGetSubElements()
40 for (uint32_t i = 0; i < dataSize; i ++) { in rsaElementGetSubElements()
/frameworks/base/core/java/android/app/backup/
DBackupDataOutput.java130 public int writeEntityHeader(String key, int dataSize) throws IOException { in writeEntityHeader() argument
131 int result = writeEntityHeader_native(mBackupWriter, key, dataSize); in writeEntityHeader()
173 … private native static int writeEntityHeader_native(long mBackupWriter, String key, int dataSize); in writeEntityHeader_native() argument
DBackupDataInputStream.java45 int dataSize; field in BackupDataInputStream
118 return this.dataSize; in size()
/frameworks/base/cmds/incidentd/src/
DPrivacyFilter.cpp141 ssize_t dataSize() const { return mSize; } in dataSize() function in android::os::incidentd::FieldStripper
289 ssize_t dataSize = fieldStripper.dataSize(); in writeData() local
290 if (dataSize > 0) { in writeData()
291 err = write_section_header(output->getFd(), mSectionId, dataSize); in writeData()
305 if (dataSize > *maxSize) { in writeData()
306 *maxSize = dataSize; in writeData()
/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java442 int dataSize = data.getDataSize(); in getAncestralRecordVersionValue() local
444 if (DEBUG) Slog.v(TAG, " got key=" + key + " dataSize=" + dataSize); in getAncestralRecordVersionValue()
448 byte[] inputBytes = new byte[dataSize]; in getAncestralRecordVersionValue()
449 data.readEntityData(inputBytes, 0, dataSize); in getAncestralRecordVersionValue()
682 int dataSize = data.getDataSize(); in consumeRestoreData() local
684 if (DEBUG) Slog.v(TAG, " got key=" + key + " dataSize=" + dataSize); in consumeRestoreData()
687 byte[] inputBytes = new byte[dataSize]; in consumeRestoreData()
688 data.readEntityData(inputBytes, 0, dataSize); in consumeRestoreData()
728 + " dataSize=" + dataSize in consumeRestoreData()
767 int dataSize = data.getDataSize(); in consumeRestoreData() local
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DBackupHelpers.h35 int dataSize; // size of the data, not including the padding, -1 means delete member
74 status_t WriteEntityHeader(const String8& key, size_t dataSize);
115 status_t ReadEntityHeader(String8* key, size_t* dataSize);
/frameworks/wilhelm/src/android/
DBufferQueueSource.cpp68 uint32_t dataSize, dataUsed; in readAt() local
140 dataSize = oldFront->mDataSize; in readAt()
151 pBufferContext, pBufferData, dataSize, dataUsed, in readAt()
/frameworks/rs/support/java/src/androidx/renderscript/
DAllocation.java1082 private void data1DChecks(int off, int count, int len, int dataSize, boolean usePadding) { in data1DChecks() argument
1095 if(len < dataSize / 4 * 3) { in data1DChecks()
1099 if(len < dataSize) { in data1DChecks()
1121 final int dataSize = mType.mElement.getBytesSize() * count; in copy1DRangeFromUnchecked() local
1127 data1DChecks(off, count, arrayLen * dt.mSize, dataSize, usePadding); in copy1DRangeFromUnchecked()
1128 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, in copy1DRangeFromUnchecked() local
1448 final int dataSize = mType.mElement.getBytesSize() * w * h; in copy2DRangeFromUnchecked() local
1453 if (dataSize / 4 * 3 > sizeBytes) { in copy2DRangeFromUnchecked()
1457 sizeBytes = dataSize; in copy2DRangeFromUnchecked()
1459 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked()
[all …]

123456