Home
last modified time | relevance | path

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

123

/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/
DLargeParcelableTest.cpp45 std::unique_ptr<TestStableParcelable> createTestStableParcelable(size_t dataSize) { in createTestStableParcelable() argument
47 p->bytes.resize(dataSize); in createTestStableParcelable()
53 std::vector<TestStableParcelable> createTestStableParcelableVector(size_t dataSize) { in createTestStableParcelableVector() argument
57 p.push_back(*createTestStableParcelable(dataSize / VECTOR_SIZE)); in createTestStableParcelableVector()
62 void checkTestStableParcelable(const TestStableParcelable* p, size_t dataSize) { in checkTestStableParcelable() argument
63 ASSERT_EQ(dataSize, p->bytes.size()); in checkTestStableParcelable()
64 for (size_t i = 0; i < dataSize; i++) { in checkTestStableParcelable()
70 void checkTestStableParcelableVector(const std::vector<TestStableParcelable>* p, size_t dataSize) { in checkTestStableParcelableVector() argument
73 checkTestStableParcelable(&((*p)[i]), dataSize / VECTOR_SIZE); in checkTestStableParcelableVector()
77 void testWrapStableAidlWriteReadPayload(size_t dataSize) { in testWrapStableAidlWriteReadPayload() argument
[all …]
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dpatch_utils.cpp40 int64_t dataSize; in GetDeviceAPKMetaData() local
46 cur, size, &md5Hash, &localFileHeaderOffset, &dataSize)) { in GetDeviceAPKMetaData()
53 apkEntry->set_datasize(dataSize); in GetDeviceAPKMetaData()
70 auto dataSize = in GetHostAPKMetaData() local
72 if (dataSize == 0) { in GetHostAPKMetaData()
75 apkEntry.set_datasize(dataSize); in GetHostAPKMetaData()
Dapk_archive.cpp210 int64_t* localFileHeaderOffset, int64_t* dataSize) { in ParseCentralDirectoryRecord() argument
285 *dataSize = (cdr->compression_method == kCompressStored) ? cdr->uncompressed_size in ParseCentralDirectoryRecord()
292 int64_t dataSize) const { in CalculateLocalFileEntrySize()
367 lfh->extra_field_length + dataSize; in CalculateLocalFileEntrySize()
407 if (localDataSize != dataSize) { in CalculateLocalFileEntrySize()
411 static_cast<long long>(dataSize), static_cast<long long>(localDataSize)); in CalculateLocalFileEntrySize()
415 return kLocalFileHeaderSize + lfh->file_name_length + lfh->extra_field_length + dataSize + in CalculateLocalFileEntrySize()
Dapk_archive.h52 int64_t* localFileHeaderOffset, int64_t* dataSize);
55 size_t CalculateLocalFileEntrySize(int64_t localFileHeaderOffset, int64_t dataSize) const;
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/text/
DTextJitterBuffer.cpp107 bool TextJitterBuffer::Get(ImsMediaSubType* subtype, uint8_t** data, uint32_t* dataSize, in Get() argument
120 if (dataSize) in Get()
121 *dataSize = pEntry->nBufferSize; in Get()
141 if (dataSize) in Get()
142 *dataSize = 0; in Get()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/
DRtpDecoderNode.cpp636 int8_t dataSize = extensionInfo.extensionData[offset++]; // add header in DecodeRtpHeaderExtension() local
639 if (dataSize > 0) in DecodeRtpHeaderExtension()
643 dataSize); in DecodeRtpHeaderExtension()
646 offset += dataSize; in DecodeRtpHeaderExtension()
647 remainingSize -= (dataSize + 2); // remove two byte header too in DecodeRtpHeaderExtension()
653 int8_t dataSize = (extensionInfo.extensionData[offset] & 0x0F) + 1; // data + header in DecodeRtpHeaderExtension() local
657 if (dataSize > 0) in DecodeRtpHeaderExtension()
661 dataSize); in DecodeRtpHeaderExtension()
664 offset += dataSize; in DecodeRtpHeaderExtension()
665 remainingSize -= (dataSize + 1); // remove one byte header too in DecodeRtpHeaderExtension()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStorageSizesController.java74 long dataSize = in updateUi() local
80 if (mLastDataSize != dataSize) { in updateUi()
81 mLastDataSize = dataSize; in updateUi()
82 mDataSize.setSummary(getSizeStr(context, dataSize)); in updateUi()
90 long totalSize = codeSize + dataSize + cacheSize; in updateUi()
/packages/apps/TV/tuner/sampletunertvinput/src/com/android/tv/samples/sampletunertvinput/
DSampleTunerTvInputService.java244 int dataSize = (int)sectionEvent.getDataLengthLong();
246 Log.d(TAG, "section dataSize:" + dataSize);
249 byte[] data = new byte[dataSize];
250 filter.read(data, 0, dataSize);
480 public MediaEventData(long pts, int dataSize, byte[] data) {
482 mDataSize = dataSize;
517 int dataSize = Math.min(eventDataLength, memoryBlock.limit() - eventOffset);
520 byte[] memoryData = new byte[dataSize];
521 memoryBlock.get(memoryData, 0, dataSize);
522 MediaEventData eventData = new MediaEventData(event.getPts(), dataSize, memoryData);
DSampleTunerTvInputSetupActivity.java117 int dataSize = (int)sectionEvent.getDataLengthLong(); in sectionFilterCallback()
119 Log.d(TAG, "section dataSize:" + dataSize); in sectionFilterCallback() argument
122 byte[] data = new byte[dataSize]; in sectionFilterCallback()
123 filter.read(data, 0, dataSize); in sectionFilterCallback() argument
/packages/apps/TV/jni/
Dtunertvinput_jni.cpp171 int dataSize = dvbManager->readTsStream(env, thiz, tsBuffer, readBufferSize, in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer() local
173 if (dataSize == 0) { in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
176 } else if (dataSize < 0) { in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
180 sTotalBytesFetched += dataSize; in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
182 env->SetByteArrayRegion(javaBuffer, 0, dataSize, (jbyte *)tsBuffer); in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
183 return dataSize; in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAuctionServerPayloadFormatterExcessiveMaxSize.java103 int dataSize = ByteBuffer.wrap(sizeBytes).getInt(); in extract() local
105 if (META_INFO_LENGTH_BYTE + DATA_SIZE_PADDING_LENGTH_BYTE + dataSize > payload.length) { in extract()
111 byte[] data = new byte[dataSize]; in extract()
113 payload, META_INFO_LENGTH_BYTE + DATA_SIZE_PADDING_LENGTH_BYTE, data, 0, dataSize); in extract()
DAuctionServerPayloadFormatterV0.java123 int dataSize = ByteBuffer.wrap(sizeBytes).getInt(); in extract() local
125 if (META_INFO_LENGTH_BYTE + DATA_SIZE_PADDING_LENGTH_BYTE + dataSize > payload.length) { in extract()
131 byte[] data = new byte[dataSize]; in extract()
133 payload, META_INFO_LENGTH_BYTE + DATA_SIZE_PADDING_LENGTH_BYTE, data, 0, dataSize); in extract()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/nodes/
DIVideoRendererNode.cpp165 uint32_t dataSize = 0; in ProcessData() local
175 while (GetData(&subtype, &data, &dataSize, &timestamp, &mark, &seq, &dataType)) in ProcessData()
178 "[ProcessData] subtype[%d], Size[%d], TS[%d] frameSize[%d]", subtype, dataSize, in ProcessData()
185 else if (timestamp != prevTimestamp || (frameSize != 0 && hasStartingCode(data, dataSize))) in ProcessData()
191 if (dataSize >= MAX_RTP_PAYLOAD_BUFFER_SIZE) in ProcessData()
193 IMLOGE1("[ProcessData] exceed buffer size[%d]", dataSize); in ProcessData()
197 memcpy(mBuffer + frameSize, data, dataSize); in ProcessData()
198 frameSize += dataSize; in ProcessData()
DIVideoSourceNode.cpp244 uint32_t dataSize = 0; in ProcessData() local
251 while (GetData(&subtype, &data, &dataSize, &timestamp, &mark, &seq, &dataType)) in ProcessData()
253 IMLOGD_PACKET1(IM_PACKET_LOG_VIDEO, "[ProcessData] size[%d]", dataSize); in ProcessData()
256 MEDIASUBTYPE_UNDEFINED, data, dataSize, timestamp, true, MEDIASUBTYPE_UNDEFINED); in ProcessData()
/packages/modules/NeuralNetworks/runtime/operation_converters/
DSubGraphContext.h60 void copyConstantValueToData(const Operand& operand, Type* data, size_t dataSize);
93 void SubGraphContext::copyConstantValueToData(const Operand& operand, Type* data, size_t dataSize) { in copyConstantValueToData() argument
95 CHECK_GE(dataSize, length); in copyConstantValueToData()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dsparse_table.h32 const int dataSize) in SparseTable() argument
34 mBlockSize(blockSize), mDataSize(dataSize) {} in SparseTable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBackupHelperTest.java256 final int dataSize = 30; in restoreEntity_readExpectedDataFromBackupData() local
257 mockBackupData(dataSize, BatteryBackupHelper.KEY_OPTIMIZATION_LIST); in restoreEntity_readExpectedDataFromBackupData()
262 verify(mBackupDataInputStream).read(captor.capture(), eq(0), eq(dataSize)); in restoreEntity_readExpectedDataFromBackupData()
263 assertThat(captor.getValue().length).isEqualTo(dataSize); in restoreEntity_readExpectedDataFromBackupData()
374 private void mockBackupData(int dataSize, String dataKey) { in mockBackupData() argument
375 doReturn(dataSize).when(mBackupDataInputStream).size(); in mockBackupData()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java174 int dataSize = payloadBody.length - KE_HEADER_LEN; in IkeKePayload() local
177 if (PUBLIC_KEY_LEN_MAP.contains(dhGroup) && dataSize != PUBLIC_KEY_LEN_MAP.get(dhGroup)) { in IkeKePayload()
182 + dataSize); in IkeKePayload()
185 keyExchangeData = new byte[dataSize]; in IkeKePayload()
/packages/modules/StatsD/statsd/src/shell/
DShellSubscriberClient.cpp314 const size_t dataSize = mProtoOut.size(); in attemptWriteToPipeLocked() local
316 if (!android::base::WriteFully(mDupOut, &dataSize, sizeof(dataSize))) { in attemptWriteToPipeLocked()
321 if (dataSize > 0 && !mProtoOut.flush(mDupOut.get())) { in attemptWriteToPipeLocked()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/nodes/
DBaseNode.h243 virtual bool GetData(ImsMediaSubType* subtype, uint8_t** data, uint32_t* dataSize,
286 virtual void SendDataToRearNode(ImsMediaSubType subtype, uint8_t* data, uint32_t dataSize,
/packages/services/Car/cpp/evs/sampleDriver/hidl/
DConfigManager.cpp152 size_t& dataSize) { in readCameraCapabilities() argument
215 dataSize = calculate_camera_metadata_entry_data_size( in readCameraCapabilities()
220 return dataSize > 0 ? 1 : 0; in readCameraCapabilities()
224 size_t& dataSize) { in readCameraMetadata() argument
251 dataSize += in readCameraMetadata()
269 dataSize += calculate_camera_metadata_entry_data_size( in readCameraMetadata()
294 dataSize += in readCameraMetadata()
/packages/modules/AppSearch/framework/java/android/app/appsearch/safeparcel/
DSafeParcelWriter.java676 p.appendFrom(val, 0, val.dataSize()); in writeParcel()
698 p.writeInt(item.dataSize()); in writeParcelArray()
700 p.appendFrom(item, 0, item.dataSize()); in writeParcelArray()
726 p.writeInt(item.dataSize()); in writeParcelList()
728 p.appendFrom(item, 0, item.dataSize()); in writeParcelList()
892 p.writeInt(item.dataSize()); in writeParcelSparseArray()
894 p.appendFrom(item, 0, item.dataSize()); in writeParcelSparseArray()
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/
DConfigManager.cpp152 size_t& dataSize) { in readCameraCapabilities() argument
218 dataSize = calculate_camera_metadata_entry_data_size( in readCameraCapabilities()
223 return dataSize > 0 ? 1 : 0; in readCameraCapabilities()
227 size_t& dataSize) { in readCameraMetadata() argument
254 dataSize += in readCameraMetadata()
272 dataSize += calculate_camera_metadata_entry_data_size( in readCameraMetadata()
297 dataSize += in readCameraMetadata()
/packages/modules/StatsD/statsd/tests/shell/
DShellSubscriber_test.cpp144 ssize_t dataSize = 0; in readData() local
145 while (dataSize == 0) { in readData()
146 read(fd, &dataSize, sizeof(dataSize)); in readData()
149 vector<uint8_t> dataBuffer(dataSize); in readData()
150 EXPECT_EQ((int)dataSize, read(fd, dataBuffer.data(), dataSize)); in readData()
154 EXPECT_TRUE(receivedAtom.ParseFromArray(dataBuffer.data(), dataSize) != 0); in readData()
/packages/modules/StatsD/framework/test/unittests/src/android/os/
DStatsDimensionsValueTest.java105 assertThat(sdvpParcel.dataSize()).isEqualTo(sdvParcel.dataSize()); in testConversionFromStructuredParcel()

123