/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/base/core/java/android/content/pm/ |
D | PackageStats.java | 52 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/ |
D | android_media_Utils.cpp | 130 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/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/cmds/statsd/tests/shell/ |
D | ShellSubscriber_test.cpp | 114 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/ |
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/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/ |
D | testid3.cpp | 99 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()
|
D | ID3.cpp | 420 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/ndk/ |
D | NdkImage.cpp | 435 uint32_t dataSize, ySize, cSize, cStride; in getPlaneData() local 449 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + in getPlaneData() 452 dataSize = in getPlaneData() 471 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData() 489 dataSize = (planeIdx == 0) ? ySize : cSize; in getPlaneData() 495 dataSize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData() 501 dataSize = in getPlaneData() 513 dataSize = getJpegSize(); in getPlaneData() 519 dataSize = in getPlaneData() 530 dataSize = mLockedBuffer->width; in getPlaneData() [all …]
|
/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/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/ |
D | Extension.java | 473 int dataSize = computePackedDataSize(array); in writeRepeatedData() local 477 output.writeRawVarint32(dataSize); in writeRepeatedData() 564 int dataSize = 0; in computePackedDataSize() local 569 dataSize = arrayLength; in computePackedDataSize() 574 dataSize = arrayLength * CodedOutputByteBufferNano.LITTLE_ENDIAN_32_SIZE; in computePackedDataSize() 579 dataSize = arrayLength * CodedOutputByteBufferNano.LITTLE_ENDIAN_64_SIZE; in computePackedDataSize() 583 dataSize += CodedOutputByteBufferNano.computeInt32SizeNoTag( in computePackedDataSize() 589 dataSize += CodedOutputByteBufferNano.computeSInt32SizeNoTag( in computePackedDataSize() 595 dataSize += CodedOutputByteBufferNano.computeUInt32SizeNoTag( in computePackedDataSize() 601 dataSize += CodedOutputByteBufferNano.computeInt64SizeNoTag( in computePackedDataSize() [all …]
|
/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/libs/services/src/os/ |
D | StatsLogEventWrapper.cpp | 86 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/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/ |
D | GPBCodedOutputStream.m | 442 //% __block size_t dataSize = 0; 445 //% dataSize += GPBCompute##NAME##SizeNoTag(value); 448 //% GPBWriteRawVarint32(&state_, (int32_t)dataSize); 476 __block size_t dataSize = 0; 479 dataSize += GPBComputeDoubleSizeNoTag(value); 482 GPBWriteRawVarint32(&state_, (int32_t)dataSize); 503 __block size_t dataSize = 0; 506 dataSize += GPBComputeFloatSizeNoTag(value); 509 GPBWriteRawVarint32(&state_, (int32_t)dataSize); 530 __block size_t dataSize = 0; [all …]
|
/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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | ByteStringTest.java | 721 final int dataSize = ByteString.CONCATENATE_BY_COPY_SIZE + 1; in testWriteToOutputStream() local 722 byte[] data1 = new byte[dataSize]; in testWriteToOutputStream() 733 byte[] data2 = new byte[dataSize]; in testWriteToOutputStream() 744 result = substringUsingWriteTo(root, 0, dataSize); in testWriteToOutputStream() 745 assertEquals(dataSize, result.length); in testWriteToOutputStream() 747 assertEquals((byte) 1, result[dataSize - 1]); in testWriteToOutputStream() 749 result = substringUsingWriteTo(root, dataSize, dataSize); in testWriteToOutputStream() 750 assertEquals(dataSize, result.length); in testWriteToOutputStream() 752 assertEquals((byte) 2, result[dataSize - 1]); in testWriteToOutputStream() 754 result = substringUsingWriteTo(root, dataSize / 2, dataSize); in testWriteToOutputStream() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupDataOutput.java | 130 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
|
D | BackupDataInputStream.java | 44 int dataSize; field in BackupDataInputStream 117 return this.dataSize; in size()
|
/frameworks/base/cmds/incidentd/src/ |
D | PrivacyFilter.cpp | 141 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/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/base/services/backup/java/com/android/server/backup/ |
D | PackageManagerBackupAgent.java | 442 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/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()
|