/frameworks/base/apct-tests/perftests/blobstore/src/com/android/perftests/blob/ |
D | BlobStorePerfTests.java | 128 final long sizeBytes = DataUnit.MEBIBYTES.toBytes(fileSizeInMb); in testDirectReads() local 130 writeData(outputStream, sizeBytes); in testDirectReads() 138 readData(inputStream, sizeBytes); in testDirectReads() 149 final long sizeBytes = DataUnit.MEBIBYTES.toBytes(fileSizeInMb); in testBlobStoreReads() local 157 readData(inputStream, sizeBytes); in testBlobStoreReads() 168 final long sizeBytes = DataUnit.MEBIBYTES.toBytes(fileSizeInMb); in testDirectWrites() local 176 writeData(outputStream, sizeBytes); in testDirectWrites() 185 final long sizeBytes = DataUnit.MEBIBYTES.toBytes(fileSizeInMb); in testBlobStoreWrites() local 193 .AutoCloseOutputStream(session.openWrite(0, sizeBytes))) { in testBlobStoreWrites() argument 195 writeData(outputStream, sizeBytes); in testBlobStoreWrites() [all …]
|
/frameworks/rs/ |
D | rsAllocation.cpp | 195 uint32_t count, const void *data, size_t sizeBytes) { in data() argument 198 if ((count * eSize) != sizeBytes) { in data() 202 (count * eSize), sizeBytes); in data() 208 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data() 213 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) { in data() argument 214 …rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in data() 220 … uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) { in data() argument 221 …rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in data() 226 uint32_t count, void *data, size_t sizeBytes) { in read() argument 229 if ((count * eSize) != sizeBytes) { in read() [all …]
|
D | rsAllocation.h | 132 …ata(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes); 134 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride); 136 … uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride); 138 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 140 uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride); 142 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride); 145 const void *data, uint32_t elementOff, size_t sizeBytes); 148 void *data, uint32_t elementOff, size_t sizeBytes);
|
D | rsHidlAdaptation.cpp | 434 … const void *data, size_t sizeBytes, uint32_t usages) in AllocationCreateFromBitmap() argument 439 _bitmap.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in AllocationCreateFromBitmap() 448 … const void *data, size_t sizeBytes, uint32_t usages) in AllocationCubeCreateFromBitmap() argument 453 _bitmap.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in AllocationCubeCreateFromBitmap() 549 …::AllocationCopyToBitmap (RsContext context, RsAllocation allocation, void *data, size_t sizeBytes) in AllocationCopyToBitmap() argument 553 GetIContextHandle(context)->allocationCopyToBitmap(_allocation, data, sizeBytes); in AllocationCopyToBitmap() 557 uint32_t count, const void *data, size_t sizeBytes) in Allocation1DData() argument 562 _data.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in Allocation1DData() 567 … uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) in Allocation1DElementData() argument 572 _data.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in Allocation1DElementData() [all …]
|
D | rs_hal.h | 246 const void *data, size_t sizeBytes); 250 const void *data, size_t sizeBytes, size_t stride); 253 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, 258 void *data, size_t sizeBytes); 262 void *data, size_t sizeBytes, size_t stride); 265 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, 297 const void *data, uint32_t elementOff, size_t sizeBytes); 300 void *data, uint32_t elementOff, size_t sizeBytes);
|
/frameworks/base/core/java/com/android/internal/content/ |
D | InstallLocationUtils.java | 147 int installLocation, long sizeBytes, TestableInterface testInterface) in resolveInstallVolume() argument 152 params.sizeBytes = sizeBytes; in resolveInstallVolume() 169 params.sizeBytes, testableInterface); in resolveInstallVolume() 181 if (params.sizeBytes <= availBytes) { in checkFitOnVolume() 186 return params.sizeBytes <= availBytes + cacheClearable; in checkFitOnVolume() 287 if (bestCandidateAvailBytes >= params.sizeBytes) { in resolveInstallVolume() 295 if (!volumePaths.isEmpty() && Integer.MAX_VALUE == params.sizeBytes in resolveInstallVolume() 315 if (params.sizeBytes <= allocateableBytes) { in fitsOnInternal() 322 return params.sizeBytes <= allocateableBytes + cacheClearable; in fitsOnInternal() 328 return (params.sizeBytes > 0) && !primary.isEmulated() in fitsOnExternal() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 109 public static String formatFileSize(@Nullable Context context, long sizeBytes) { in formatFileSize() argument 110 return formatFileSize(context, sizeBytes, FLAG_SI_UNITS); in formatFileSize() 114 public static String formatFileSize(@Nullable Context context, long sizeBytes, int flags) { in formatFileSize() argument 118 final RoundedBytesResult res = RoundedBytesResult.roundBytes(sizeBytes, flags); in formatFileSize() 126 public static String formatShortFileSize(@Nullable Context context, long sizeBytes) { in formatShortFileSize() argument 127 return formatFileSize(context, sizeBytes, FLAG_SI_UNITS | FLAG_SHORTER); in formatShortFileSize() 200 public static RoundedBytesResult roundBytes(long sizeBytes, int flags) { in roundBytes() argument 202 final boolean isNegative = (sizeBytes < 0); in roundBytes() 203 float result = isNegative ? -sizeBytes : sizeBytes; in roundBytes() 276 public static BytesResult formatBytes(Resources res, long sizeBytes, int flags) { in formatBytes() argument [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/ |
D | SessionStager.kt | 56 val sizeBytes = getContentSizeBytes() in <lambda>() constant 57 publishProgress(if (sizeBytes > 0) 0 else -1) in <lambda>() 60 session.openWrite("PackageInstaller", 0, sizeBytes).use { out -> in <lambda>() 70 if (sizeBytes > 0) { in <lambda>() 72 val fraction = totalRead.toFloat() / sizeBytes.toFloat() in <lambda>()
|
/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
D | BlobInfo.java | 42 public BlobInfo(long id, long expiryTimeMs, CharSequence label, long sizeBytes, in BlobInfo() argument 47 mSizeBytes = sizeBytes; in BlobInfo() 104 private static String formatBlobSize(long sizeBytes) { in formatBlobSize() argument 106 sizeBytes, FLAG_IEC_UNITS); in formatBlobSize()
|
/frameworks/rs/driver/ |
D | rsdAllocation.h | 113 const void *data, size_t sizeBytes); 118 const void *data, size_t sizeBytes, size_t stride); 122 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, 128 void *data, size_t sizeBytes); 133 void *data, size_t sizeBytes, size_t stride); 137 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, 170 const void *data, uint32_t elementOff, size_t sizeBytes); 175 void *data, uint32_t elementOff, size_t sizeBytes);
|
D | rsdAllocation.cpp | 830 const void *data, size_t sizeBytes) { in rsdAllocationData1D() argument 850 … uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) { in rsdAllocationData2D() argument 914 size_t sizeBytes, size_t stride) { in rsdAllocationData3D() argument 951 void *data, size_t sizeBytes) { in rsdAllocationRead1D() argument 963 … uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) { in rsdAllocationRead2D() argument 993 … uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) { in rsdAllocationRead3D() argument 1114 const void *data, uint32_t cIdx, size_t sizeBytes) { in rsdAllocationElementData() argument 1127 memcpy(ptr, data, sizeBytes); in rsdAllocationElementData() 1133 void *data, uint32_t cIdx, size_t sizeBytes) { in rsdAllocationElementRead() argument 1141 memcpy(data, ptr, sizeBytes); in rsdAllocationElementRead()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_block_adapter.cpp | 82 int32_t sizeBytes = variableCount * sizeof(int32_t); in testInputWrite() local 83 return mFixedBlockWriter.processVariableBlock((uint8_t *) mTestBuffer, sizeBytes); in testInputWrite() 109 int32_t sizeBytes = variableCount * sizeof(int32_t); in testOutputRead() local 110 int32_t result = mFixedBlockReader.processVariableBlock((uint8_t *) mTestBuffer, sizeBytes); in testOutputRead()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/ |
D | AppStorageSize.kt | 42 val sizeBytes = calculateSizeBytes(context) in getStorageSize() constant 43 this.emit(if (sizeBytes != null) Formatter.formatFileSize(context, sizeBytes) else "") in getStorageSize()
|
/frameworks/base/keystore/java/android/security/keystore2/ |
D | KeyStoreCryptoOperationUtils.java | 155 static byte[] getRandomBytesToMixIntoKeystoreRng(SecureRandom rng, int sizeBytes) { in getRandomBytesToMixIntoKeystoreRng() argument 156 if (sizeBytes <= 0) { in getRandomBytesToMixIntoKeystoreRng() 162 byte[] result = new byte[sizeBytes]; in getRandomBytesToMixIntoKeystoreRng()
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScript.java | 541 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 543 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument 546 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 549 …ata(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData() argument 550 …ElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData() argument 552 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData() 576 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 579 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 582 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 610 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument [all …]
|
D | Allocation.java | 1482 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() local 1484 if (dataSize / 4 * 3 > sizeBytes) { in copy2DRangeFromUnchecked() 1488 sizeBytes = dataSize; in copy2DRangeFromUnchecked() 1490 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked() 1495 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local 1759 int sizeBytes = arrayLen * dt.mSize; in copy3DRangeFromUnchecked() local 1761 if (dataSize / 4 * 3 > sizeBytes) { in copy3DRangeFromUnchecked() 1765 sizeBytes = dataSize; in copy3DRangeFromUnchecked() 1767 if (dataSize > sizeBytes) { in copy3DRangeFromUnchecked() 1772 array, sizeBytes, dt, in copy3DRangeFromUnchecked() local [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallStaging.java | 296 final long sizeBytes = getContentSizeBytes(); in onPreExecute() local 297 if (sizeBytes > 0 && mDialog != null) { in onPreExecute() 318 long sizeBytes = getContentSizeBytes(); in doInBackground() local 321 try (OutputStream out = session.openWrite("PackageInstaller", 0, sizeBytes)) { in doInBackground() argument 336 if (sizeBytes > 0) { in doInBackground() 338 float fraction = ((float) totalRead / (float) sizeBytes); in doInBackground()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | RenderScript.java | 478 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 480 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument 483 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 486 …AllocationElementData1D(long con,long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData1D() argument 487 …d void nAllocationElementData1D(long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData1D() argument 489 rsnAllocationElementData1D(mContext, id, xoff, mip, compIdx, d, sizeBytes); in nAllocationElementData1D() 520 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 523 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 526 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 555 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument [all …]
|
D | Allocation.java | 1456 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() local 1458 if (dataSize / 4 * 3 > sizeBytes) { in copy2DRangeFromUnchecked() 1462 sizeBytes = dataSize; in copy2DRangeFromUnchecked() 1464 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked() 1469 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local 1713 int sizeBytes = arrayLen * dt.mSize; in copy3DRangeFromUnchecked() local 1715 if (dataSize / 4 * 3 > sizeBytes) { in copy3DRangeFromUnchecked() 1719 sizeBytes = dataSize; in copy3DRangeFromUnchecked() 1721 if (dataSize > sizeBytes) { in copy3DRangeFromUnchecked() 1726 array, sizeBytes, dt, in copy3DRangeFromUnchecked() local [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | FreeStorageHelper.java | 191 final long sizeBytes = PackageManagerServiceUtils.calculateInstalledSize(resolvedPath, in freeCacheForInstallation() local 193 if (sizeBytes >= 0) { in freeCacheForInstallation() 195 mPm.mInstaller.freeCache(null, sizeBytes + lowThreshold, 0); in freeCacheForInstallation()
|
D | MovePackageHelper.java | 225 final long sizeBytes; in movePackageInternal() local 227 sizeBytes = stats.codeSize + stats.dataSize; in movePackageInternal() 229 sizeBytes = stats.codeSize; in movePackageInternal() 232 if (sizeBytes > storage.getStorageBytesUntilLow(measurePath)) { in movePackageInternal() 300 ((deltaFreeBytes * 80) / sizeBytes), 0, 80); in movePackageInternal()
|
/frameworks/base/core/java/android/content/pm/dex/ |
D | DexMetadataHelper.java | 89 long sizeBytes = 0; in getPackageDexMetadataSize() local 92 sizeBytes += new File(dexMetadata).length(); in getPackageDexMetadataSize() 94 return sizeBytes; in getPackageDexMetadataSize()
|
/frameworks/base/rs/jni/ |
D | android_renderscript_RenderScript.cpp | 318 int sizeBytes = mSize * 3; in copyWithPadding() local 322 memcpy(dst, src, sizeBytes); in copyWithPadding() 324 src += sizeBytes; in copyWithPadding() 330 int sizeBytes = mSize * 3; in copyWithUnPadding() local 334 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 335 dst += sizeBytes; in copyWithUnPadding() 1387 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, in nAllocationData1D() argument 1393 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, in nAllocationData1D() 1397 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D() 1403 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) in nAllocationElementData() argument [all …]
|
/frameworks/rs/support/jni/ |
D | android_renderscript_RenderScript.cpp | 323 int sizeBytes = mSize * 3; in copyWithPadding() local 327 memcpy(dst, src, sizeBytes); in copyWithPadding() 329 src += sizeBytes; in copyWithPadding() 335 int sizeBytes = mSize * 3; in copyWithUnPadding() local 339 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 340 dst += sizeBytes; in copyWithUnPadding() 1175 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, in nAllocationData1D() argument 1180 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, in nAllocationData1D() 1183 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D() 1189 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) in nAllocationElementData1D() argument [all …]
|
/frameworks/rs/cpp/ |
D | Allocation.cpp | 194 int sizeBytes = mSize * 3; in copyWithPadding() local 198 memcpy(dst, src, sizeBytes); in copyWithPadding() 200 src += sizeBytes; in copyWithPadding() 206 int sizeBytes = mSize * 3; in copyWithUnPadding() local 210 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 211 dst += sizeBytes; in copyWithUnPadding()
|