/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 | 49 public long dataSize; field in PackageStats 99 if (dataSize != 0) { in toString() 101 sb.append(dataSize); in toString() 146 dataSize = source.readLong(); in PackageStats() 159 dataSize = pStats.dataSize; in PackageStats() 176 dest.writeLong(dataSize); in writeToParcel() 195 && dataSize == otherStats.dataSize in equals() 206 return Objects.hash(packageName, userHandle, codeSize, dataSize, in hashCode()
|
/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 | 184 int dataSize = bdi.getDataSize(); in testReadMockData() local 188 (expectedBytes == null ? -1: expectedBytes.length), dataSize); in testReadMockData() 189 if (dataSize != -1) { in testReadMockData() 190 byte[] buffer = new byte[dataSize]; in testReadMockData() 191 bdi.readEntityData(buffer, 0, dataSize); in testReadMockData() 193 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadMockData() 214 int dataSize = bdi.getDataSize(); in testReadRealData() local 218 (expectedBytes == null ? -1: expectedBytes.length), dataSize); in testReadRealData() 219 if (dataSize != -1) { in testReadRealData() 220 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 | 355 size_t dataSize; in removeUnsynchronizationV2_4() local 357 dataSize = U32_AT(&mData[offset + 4]); in removeUnsynchronizationV2_4() 358 } else if (!ParseSyncsafeInteger(&mData[offset + 4], &dataSize)) { in removeUnsynchronizationV2_4() 362 if (dataSize > mSize - 10 - offset) { in removeUnsynchronizationV2_4() 372 if (mSize < 14 || mSize - 14 < offset || dataSize < 4) { in removeUnsynchronizationV2_4() 377 dataSize -= 4; in removeUnsynchronizationV2_4() 382 if ((flags & 2) && (dataSize >= 2)) { in removeUnsynchronizationV2_4() 388 for (size_t i = 0; i + 1 < dataSize; ++i) { in removeUnsynchronizationV2_4() 393 --dataSize; in removeUnsynchronizationV2_4() 408 WriteSyncsafeInteger(&mData[offset + 4], dataSize); in removeUnsynchronizationV2_4() [all …]
|
/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() 494 dataSize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData() 500 dataSize = in getPlaneData() 512 dataSize = getJpegSize(); in getPlaneData() 518 dataSize = in getPlaneData() 529 dataSize = mLockedBuffer->width; in getPlaneData() [all …]
|
D | NdkMediaDrm.cpp | 78 int32_t dataSize = obj->readInt32(); in notify() local 80 if (dataSize) { in notify() 81 data = new uint8_t[dataSize]; in notify() 82 obj->read(data, dataSize); in notify() 105 (*mListener)(mObj, &sessionId, ndkEventType, extra, data, dataSize); in notify() 587 const uint8_t *input, uint8_t *output, size_t dataSize, bool encrypt) { in encrypt_decrypt_common() argument 607 inputVec.appendArray(input, dataSize); in encrypt_decrypt_common() 628 const uint8_t *input, uint8_t *output, size_t dataSize) { in AMediaDrm_encrypt() argument 633 input, output, dataSize, true); in AMediaDrm_encrypt() 639 const uint8_t *input, uint8_t *output, size_t dataSize) { in AMediaDrm_decrypt() argument [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/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/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()
|
D | IMediaPlayerClient.cpp | 45 if (obj && obj->dataSize() > 0) { in notify() 46 data.appendFrom(const_cast<Parcel *>(obj), 0, obj->dataSize()); in notify()
|
/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/base/core/java/android/app/backup/ |
D | BackupDataOutput.java | 108 public int writeEntityHeader(String key, int dataSize) throws IOException { in writeEntityHeader() argument 109 int result = writeEntityHeader_native(mBackupWriter, key, dataSize); in writeEntityHeader() 151 … private native static int writeEntityHeader_native(long mBackupWriter, String key, int dataSize); in writeEntityHeader_native() argument
|
D | BackupDataInputStream.java | 41 int dataSize; field in BackupDataInputStream 114 return this.dataSize; in size()
|
/frameworks/base/media/jni/ |
D | android_media_Utils.cpp | 658 uint32_t dataSize, ySize, cSize, cStride; in getLockedImageInfo() local 664 dataSize = ySize = cSize = cStride = 0; in getLockedImageInfo() 681 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo() 685 dataSize = buffer->chromaStride * (buffer->height / 2 - 1) + in getLockedImageInfo() 704 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo() 725 dataSize = (idx == 0) ? ySize : cSize; in getLockedImageInfo() 734 dataSize = buffer->stride * buffer->height; in getLockedImageInfo() 744 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 762 dataSize = Image_getJpegSize(buffer, usingRGBAOverride); in getLockedImageInfo() 771 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() [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/base/media/native/midi/ |
D | midi.cpp | 183 size_t dataSize = 0; in AMIDI_receive() local 187 dataSize = readCount - AMIDI_PACKET_OVERHEAD; in AMIDI_receive() 188 if (dataSize) { in AMIDI_receive() 189 memcpy(message->buffer, readBuffer + 1, dataSize); in AMIDI_receive() 193 message->len = dataSize; in AMIDI_receive()
|
/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()
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
D | Allocation.java | 1082 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 …]
|
/frameworks/av/include/ndk/ |
D | NdkMediaDrm.h | 84 AMediaDrmEventType eventType, int extra, const uint8_t *data, size_t dataSize); 416 const uint8_t *input, uint8_t *output, size_t dataSize); 427 const uint8_t *input, uint8_t *output, size_t dataSize);
|
/frameworks/av/drm/libmediadrm/ |
D | IDrmClient.cpp | 49 if (obj && obj->dataSize() > 0) { in notify() 50 data.appendFrom(const_cast<Parcel *>(obj), 0, obj->dataSize()); in notify()
|
/frameworks/base/core/java/android/os/ |
D | ParcelableParcel.java | 63 dest.writeInt(mParcel.dataSize()); in writeToParcel() 64 dest.appendFrom(mParcel, 0, mParcel.dataSize()); in writeToParcel()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Allocation.java | 1100 private void data1DChecks(int off, int count, int len, int dataSize, boolean usePadding) { in data1DChecks() argument 1113 if(len < dataSize / 4 * 3) { in data1DChecks() 1117 if(len < dataSize) { in data1DChecks() 1141 final int dataSize = mType.mElement.getBytesSize() * count; in copy1DRangeFromUnchecked() local 1147 data1DChecks(off, count, arrayLen * dt.mSize, dataSize, usePadding); in copy1DRangeFromUnchecked() 1148 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, in copy1DRangeFromUnchecked() local 1475 final int dataSize = mType.mElement.getBytesSize() * w * h; in copy2DRangeFromUnchecked() local 1480 if (dataSize / 4 * 3 > sizeBytes) { in copy2DRangeFromUnchecked() 1484 sizeBytes = dataSize; in copy2DRangeFromUnchecked() 1486 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked() [all …]
|