/frameworks/base/libs/androidfw/tests/ |
D | BackupData_test.cpp | 96 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/native/libs/binder/ |
D | ParcelableHolder.cpp | 32 RETURN_ON_FAILURE(p->writeInt32(this->mParcelPtr->dataSize())); in writeToParcel() 33 RETURN_ON_FAILURE(p->appendFrom(this->mParcelPtr.get(), 0, this->mParcelPtr->dataSize())); in writeToParcel() 42 size_t dataSize = p->dataPosition() - dataStartPos; in writeToParcel() local 45 RETURN_ON_FAILURE(p->writeInt32(dataSize)); in writeToParcel() 46 p->setDataPosition(p->dataPosition() + dataSize); in writeToParcel() 75 size_t dataSize = rawDataSize; in readFromParcel() local 79 if (dataStartPos > SIZE_MAX - dataSize) { in readFromParcel() 89 status = this->mParcelPtr->appendFrom(p, dataStartPos, dataSize); in readFromParcel() 94 p->setDataPosition(dataStartPos + dataSize); in readFromParcel()
|
D | RecordedTransaction.cpp | 117 mSentDataOnly.setData(t.getDataParcel().data(), t.getDataParcel().dataSize()); in RecordedTransaction() 118 mReplyDataOnly.setData(t.getReplyParcel().data(), t.getReplyParcel().dataSize()); in RecordedTransaction() 172 uint32_t dataSize = 0; member 214 if (chunk.dataSize > kMaxChunkDataSize) { in fromFile() 220 chunk.dataSize + PADDING8(chunk.dataSize) + sizeof(transaction_checksum_t); in fromFile() 264 if (chunk.dataSize != static_cast<uint32_t>(sizeof(TransactionHeader))) { in fromFile() 265 ALOGE("Header Chunk indicated size %" PRIu32 "; Expected %zu.", chunk.dataSize, in fromFile() 274 std::string(reinterpret_cast<char*>(payloadMap), chunk.dataSize); in fromFile() 279 chunk.dataSize) != android::NO_ERROR) { in fromFile() 287 chunk.dataSize) != android::NO_ERROR) { in fromFile() [all …]
|
/frameworks/base/core/java/android/os/ |
D | ParcelableHolder.java | 190 int dataSize = parcel.readInt(); in readFromParcel() local 191 if (dataSize < 0) { in readFromParcel() 193 } else if (dataSize == 0) { in readFromParcel() 207 mParcel.appendFrom(parcel, dataStartPos, dataSize); in readFromParcel() 208 parcel.setDataPosition(MathUtils.addOrThrow(dataStartPos, dataSize)); in readFromParcel() 216 parcel.writeInt(mParcel.dataSize()); in writeToParcel() 217 parcel.appendFrom(mParcel, 0, mParcel.dataSize()); in writeToParcel() 230 int dataSize = parcel.dataPosition() - dataStartPos; in writeToParcel() local 233 parcel.writeInt(dataSize); in writeToParcel() 234 parcel.setDataPosition(MathUtils.addOrThrow(parcel.dataPosition(), dataSize)); in writeToParcel() local
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageStats.java | 53 public long dataSize; field in PackageStats 127 if (dataSize != 0) { in toString() 129 sb.append(dataSize); in toString() 198 dataSize = source.readLong(); in PackageStats() 217 dataSize = pStats.dataSize; in PackageStats() 240 dest.writeLong(dataSize); in writeToParcel() 265 && dataSize == otherStats.dataSize in equals() 282 return Objects.hash(packageName, userHandle, codeSize, dataSize, in hashCode()
|
D | BaseParceledListSlice.java | 185 while (i < N && i < mInlineCountLimit && dest.dataSize() < MAX_IPC_SIZE) { in writeToParcel() 220 while (i < N && reply.dataSize() < MAX_IPC_SIZE) { in writeToParcel() 223 int preWriteSize = reply.dataSize(); in writeToParcel() 229 int elmSize = reply.dataSize() - preWriteSize; in writeToParcel() 244 if (reply.dataSize() >= MAX_IPC_SIZE + WARN_ELM_SIZE) { in writeToParcel() 245 Log.w(TAG, "Overly large reply size: " + reply.dataSize()); in writeToParcel()
|
/frameworks/base/libs/androidfw/ |
D | BackupData.cpp | 87 BackupDataWriter::WriteEntityHeader(const String8& key, size_t dataSize) in WriteEntityHeader() argument 110 key.c_str(), 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/ |
D | ShadowBackupDataOutput.java | 64 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/media/jni/ |
D | android_media_Utils.cpp | 166 uint32_t dataSize, ySize, cSize, cStride; in getLockedImageInfo() local 172 dataSize = ySize = cSize = cStride = 0; in getLockedImageInfo() 210 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo() 214 dataSize = buffer->chromaStride * (buffer->height / 2 - 1) + in getLockedImageInfo() 254 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo() 296 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo() 327 dataSize = buffer->stride * (buffer->height - 1) + buffer->width * 2; in getLockedImageInfo() 331 dataSize = buffer->chromaStride * (buffer->height / 2 - 1) + in getLockedImageInfo() 344 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo() 352 dataSize = buffer->stride * buffer->height; in getLockedImageInfo() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | BackupDataTest.java | 177 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/module/id3/test/ |
D | ID3Test.cpp | 131 size_t dataSize; in TEST_P() local 133 const void *data = tag.getAlbumArt(&dataSize, &mime); in TEST_P() 137 ALOGV("Found album art: size = %zu mime = %s \n", dataSize, mime.c_str()); in TEST_P() 145 hexdump(data, dataSize > 128 ? 128 : dataSize); in TEST_P() 167 size_t dataSize; in TEST_P() local 169 const void *data = tag.getAlbumArt(&dataSize, &mime); in TEST_P() 171 ALOGV("Found album art: size = %zu mime = %s \n", dataSize, mime.c_str()); in TEST_P() 173 hexdump(data, dataSize > 128 ? 128 : dataSize); in TEST_P()
|
/frameworks/av/media/ndk/ |
D | NdkImage.cpp | 451 uint32_t dataSize, ySize, cSize, cStride; in getPlaneData() local 465 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + in getPlaneData() 468 dataSize = in getPlaneData() 487 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData() 505 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData() 529 dataSize = cStride * (mLockedBuffer->height - 1) + mLockedBuffer->width * 2; in getPlaneData() 533 dataSize = cStride * (mLockedBuffer->height / 2 - 1) + in getPlaneData() 546 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData() 552 dataSize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData() 558 dataSize = in getPlaneData() [all …]
|
/frameworks/av/media/module/id3/ |
D | testid3.cpp | 101 size_t dataSize; in scanFile() local 103 const void *data = tag.getAlbumArt(&dataSize, &mime); in scanFile() 106 printf("found album art: size=%zu mime='%s'\n", dataSize, in scanFile() 109 hexdump(data, dataSize > 128 ? 128 : dataSize); in scanFile()
|
/frameworks/native/libs/binder/ndk/include_cpp/android/ |
D | binder_parcelable_utils.h | 79 int32_t dataSize; in readFromParcel() local 80 binder_status_t status = AParcel_readInt32(parcel, &dataSize); in readFromParcel() 82 if (status != STATUS_OK || dataSize < 0) { in readFromParcel() 88 if (dataStartPos > INT32_MAX - dataSize) { in readFromParcel() 92 status = AParcel_appendFrom(parcel, mParcel.get(), dataStartPos, dataSize); in readFromParcel() 96 return AParcel_setDataPosition(parcel, dataStartPos + dataSize); in readFromParcel()
|
/frameworks/base/cmds/backup/ |
D | backup.cpp | 75 size_t dataSize; in perform_list() local 76 err = reader.ReadEntityHeader(&key, &dataSize); in perform_list() 78 printf(" entity: %s (%zu bytes)\n", key.c_str(), dataSize); in perform_list()
|
/frameworks/rs/ |
D | rsApiElement.cpp | 36 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/jni/ |
D | android_backup_BackupHelperDispatcher.cpp | 37 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()
|
/frameworks/av/media/libmedia/ |
D | MediaScanner.cpp | 248 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/services/backup/java/com/android/server/backup/ |
D | PackageManagerBackupAgent.java | 450 int dataSize = data.getDataSize(); in getAncestralRecordVersionValue() local 452 if (DEBUG) Slog.v(TAG, " got key=" + key + " dataSize=" + dataSize); in getAncestralRecordVersionValue() 456 byte[] inputBytes = new byte[dataSize]; in getAncestralRecordVersionValue() 457 data.readEntityData(inputBytes, 0, dataSize); in getAncestralRecordVersionValue() 708 int dataSize = data.getDataSize(); in consumeRestoreData() local 710 if (DEBUG) Slog.v(TAG, " got key=" + key + " dataSize=" + dataSize); in consumeRestoreData() 713 byte[] inputBytes = new byte[dataSize]; in consumeRestoreData() 714 data.readEntityData(inputBytes, 0, dataSize); in consumeRestoreData() 771 + dataSize in consumeRestoreData() 820 int dataSize = data.getDataSize(); in consumeRestoreData() local [all …]
|
/frameworks/native/libs/binder/tests/ |
D | binderRecordedTransactionTest.cpp | 53 EXPECT_EQ(retrievedTransaction->getDataParcel().dataSize(), 12); in TEST() 54 EXPECT_EQ(retrievedTransaction->getReplyParcel().dataSize(), 4); in TEST() 127 EXPECT_EQ(retrievedTransaction->getDataParcel().dataSize(), d.dataSize()); in TEST() 128 EXPECT_EQ(retrievedTransaction->getReplyParcel().dataSize(), 4); in TEST()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupDataOutput.java | 131 public int writeEntityHeader(String key, int dataSize) throws IOException { in writeEntityHeader() argument 132 int result = writeEntityHeader_native(mBackupWriter, key, dataSize); in writeEntityHeader() 174 … private native static int writeEntityHeader_native(long mBackupWriter, String key, int dataSize); in writeEntityHeader_native() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/backup/ |
D | CommunalBackupHelper.kt | 86 val dataSize = data.size() in restoreEntity() constant 87 val bytes = ByteArray(dataSize) in restoreEntity() 89 data.read(bytes, /* offset= */ 0, dataSize) in restoreEntity()
|
/frameworks/base/cmds/incidentd/src/ |
D | PrivacyFilter.cpp | 140 ssize_t dataSize() const { return mSize; } in dataSize() function in android::os::incidentd::FieldStripper 297 ssize_t dataSize = fieldStripper.dataSize(); in writeData() local 298 if (dataSize > 0) { in writeData() 299 err = write_section_header(output->getFd(), mSectionId, dataSize); in writeData() 313 if (dataSize > *maxSize) { in writeData() 314 *maxSize = dataSize; in writeData()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerShellCommandDataLoader.java | 206 int dataSize = ByteBuffer.wrap(bytes, offset, 4).order( in fromByteArray() local 209 data = Arrays.copyOfRange(bytes, offset, offset + dataSize); in fromByteArray() 210 offset += dataSize; in fromByteArray() 230 int dataSize = dataBytes.length; in toByteArray() local 232 result = new byte[1 + 4 + dataSize + saltBytes.length]; in toByteArray() 237 dataSize); in toByteArray() 239 System.arraycopy(dataBytes, 0, result, offset, dataSize); in toByteArray() 240 offset += dataSize; in toByteArray()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | BackupHelpers.h | 35 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);
|