/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()
|
/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 103 if (dataSize != 0) { in toString() 105 sb.append(dataSize); in toString() 150 dataSize = source.readLong(); in PackageStats() 163 dataSize = pStats.dataSize; in PackageStats() 180 dest.writeLong(dataSize); in writeToParcel() 199 && dataSize == otherStats.dataSize in equals() 210 return Objects.hash(packageName, userHandle, codeSize, dataSize, in hashCode()
|
/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/libs/androidfw/ |
D | BackupData.cpp | 87 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/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/libstagefright/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.string()); 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.string()); in TEST_P() 173 hexdump(data, dataSize > 128 ? 128 : dataSize); in TEST_P()
|
/frameworks/av/media/ndk/ |
D | NdkImage.cpp | 434 uint32_t dataSize, ySize, cSize, cStride; in getPlaneData() local 448 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + in getPlaneData() 451 dataSize = in getPlaneData() 470 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData() 488 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData() 512 dataSize = cStride * (mLockedBuffer->height - 1) + mLockedBuffer->width * 2; in getPlaneData() 516 dataSize = cStride * (mLockedBuffer->height / 2 - 1) + in getPlaneData() 529 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData() 535 dataSize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData() 541 dataSize = in getPlaneData() [all …]
|
/frameworks/av/media/libstagefright/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()
|
D | ID3.cpp | 429 size_t dataSize; in removeUnsynchronizationV2_4() local 431 dataSize = U32_AT(&mData[offset + 4]); in removeUnsynchronizationV2_4() 432 } else if (!ParseSyncsafeInteger(&mData[offset + 4], &dataSize)) { in removeUnsynchronizationV2_4() 436 if (dataSize > mSize - 10 - offset) { in removeUnsynchronizationV2_4() 446 if (mSize < 14 || mSize - 14 < offset || dataSize < 4) { in removeUnsynchronizationV2_4() 451 dataSize -= 4; in removeUnsynchronizationV2_4() 460 if ((hasGlobalUnsync || (flags & 2)) && (dataSize >= 2)) { in removeUnsynchronizationV2_4() 466 for (size_t i = 0; i + 1 < dataSize; ++i) { in removeUnsynchronizationV2_4() 471 --dataSize; in removeUnsynchronizationV2_4() 473 if (i + 1 < dataSize) { in removeUnsynchronizationV2_4() [all …]
|
/frameworks/native/libs/binder/ndk/include_cpp/android/ |
D | binder_parcelable_utils.h | 110 int32_t dataSize; local 111 binder_status_t status = AParcel_readInt32(parcel, &dataSize); 113 if (status != STATUS_OK || dataSize < 0) { 119 if (dataStartPos > INT32_MAX - dataSize) { 128 status = AParcel_appendFrom(parcel, mParcel.get(), dataStartPos, dataSize); 135 return AParcel_setDataPosition(parcel, dataStartPos + dataSize);
|
/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.string(), 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()
|
D | android_backup_BackupDataInput.cpp | 73 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/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/core/java/com/android/server/pm/ |
D | PackageManagerShellCommandDataLoader.java | 188 int dataSize = ByteBuffer.wrap(bytes, offset, 4).order( in fromByteArray() local 191 data = new String(bytes, offset, dataSize, StandardCharsets.UTF_8); in fromByteArray() 192 offset += dataSize; in fromByteArray() 213 int dataSize = dataBytes.length; in toByteArray() local 215 result = new byte[1 + 4 + dataSize + saltBytes.length]; in toByteArray() 220 dataSize); in toByteArray() 222 System.arraycopy(dataBytes, 0, result, offset, dataSize); in toByteArray() 223 offset += dataSize; in toByteArray()
|
/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
|
D | BackupDataInputStream.java | 45 int dataSize; field in BackupDataInputStream 118 return this.dataSize; in size()
|
/frameworks/base/cmds/incidentd/src/ |
D | PrivacyFilter.cpp | 140 ssize_t dataSize() const { return mSize; } in dataSize() function in android::os::incidentd::FieldStripper 295 ssize_t dataSize = fieldStripper.dataSize(); in writeData() local 296 if (dataSize > 0) { in writeData() 297 err = write_section_header(output->getFd(), mSectionId, dataSize); in writeData() 311 if (dataSize > *maxSize) { in writeData() 312 *maxSize = dataSize; in writeData()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | PackageManagerBackupAgent.java | 444 int dataSize = data.getDataSize(); in getAncestralRecordVersionValue() local 446 if (DEBUG) Slog.v(TAG, " got key=" + key + " dataSize=" + dataSize); in getAncestralRecordVersionValue() 450 byte[] inputBytes = new byte[dataSize]; in getAncestralRecordVersionValue() 451 data.readEntityData(inputBytes, 0, dataSize); in getAncestralRecordVersionValue() 684 int dataSize = data.getDataSize(); in consumeRestoreData() local 686 if (DEBUG) Slog.v(TAG, " got key=" + key + " dataSize=" + dataSize); in consumeRestoreData() 689 byte[] inputBytes = new byte[dataSize]; in consumeRestoreData() 690 data.readEntityData(inputBytes, 0, dataSize); in consumeRestoreData() 730 + " dataSize=" + dataSize in consumeRestoreData() 769 int dataSize = data.getDataSize(); in consumeRestoreData() local [all …]
|
/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);
|
/frameworks/wilhelm/src/android/ |
D | BufferQueueSource.cpp | 68 uint32_t dataSize, dataUsed; in readAt() local 140 dataSize = oldFront->mDataSize; in readAt() 151 pBufferContext, pBufferData, dataSize, dataUsed, in readAt()
|