/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 | PackageHelper.java | 144 int installLocation, long sizeBytes, TestableInterface testInterface) in resolveInstallVolume() argument 149 params.sizeBytes = sizeBytes; in resolveInstallVolume() 166 params.sizeBytes, testableInterface); in resolveInstallVolume() 193 fitsOnInternal = (params.sizeBytes <= availBytes); in resolveInstallVolume() 196 if (availBytes >= params.sizeBytes) { in resolveInstallVolume() 264 return (params.sizeBytes <= storage.getAllocatableBytes(target, in fitsOnInternal() 271 return (params.sizeBytes > 0) && !primary.isEmulated() in fitsOnExternal() 273 && params.sizeBytes <= storage.getStorageBytesUntilLow(primary.getPathFile()); in fitsOnExternal() 278 int installLocation, long sizeBytes, int installFlags) { in resolveInstallLocation() argument 282 params.sizeBytes = sizeBytes; in resolveInstallLocation() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 94 public static String formatFileSize(@Nullable Context context, long sizeBytes) { in formatFileSize() argument 95 return formatFileSize(context, sizeBytes, FLAG_SI_UNITS); in formatFileSize() 99 public static String formatFileSize(@Nullable Context context, long sizeBytes, int flags) { in formatFileSize() argument 103 final BytesResult res = formatBytes(context.getResources(), sizeBytes, flags); in formatFileSize() 112 public static String formatShortFileSize(@Nullable Context context, long sizeBytes) { in formatShortFileSize() argument 116 final BytesResult res = formatBytes(context.getResources(), sizeBytes, in formatShortFileSize() 124 public static BytesResult formatBytes(Resources res, long sizeBytes, int flags) { in formatBytes() argument 126 final boolean isNegative = (sizeBytes < 0); in formatBytes() 127 float result = isNegative ? -sizeBytes : sizeBytes; in formatBytes()
|
/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/base/keystore/java/android/security/keystore/ |
D | KeyStoreCryptoOperationUtils.java | 98 static byte[] getRandomBytesToMixIntoKeystoreRng(SecureRandom rng, int sizeBytes) { in getRandomBytesToMixIntoKeystoreRng() argument 99 if (sizeBytes <= 0) { in getRandomBytesToMixIntoKeystoreRng() 105 byte[] result = new byte[sizeBytes]; in getRandomBytesToMixIntoKeystoreRng()
|
/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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | ByteArrayRingBuffer.java | 89 private void pruneToSize(int sizeBytes) { in pruneToSize() argument 92 while (i < mArrayList.size() && newBytesUsed > sizeBytes) { in pruneToSize()
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScript.java | 547 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 549 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument 552 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 555 …ata(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData() argument 556 …ElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData() argument 558 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData() 582 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 585 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 588 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 616 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument [all …]
|
D | Allocation.java | 1478 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() local 1480 if (dataSize / 4 * 3 > sizeBytes) { in copy2DRangeFromUnchecked() 1484 sizeBytes = dataSize; in copy2DRangeFromUnchecked() 1486 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked() 1491 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local 1755 int sizeBytes = arrayLen * dt.mSize; in copy3DRangeFromUnchecked() local 1757 if (dataSize / 4 * 3 > sizeBytes) { in copy3DRangeFromUnchecked() 1761 sizeBytes = dataSize; in copy3DRangeFromUnchecked() 1763 if (dataSize > sizeBytes) { in copy3DRangeFromUnchecked() 1768 array, sizeBytes, dt, in copy3DRangeFromUnchecked() local [all …]
|
/frameworks/base/core/java/android/content/pm/dex/ |
D | DexMetadataHelper.java | 61 long sizeBytes = 0; in getPackageDexMetadataSize() local 64 sizeBytes += new File(dexMetadata).length(); in getPackageDexMetadataSize() 66 return sizeBytes; in getPackageDexMetadataSize()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInstaller.java | 1276 public long sizeBytes = -1; field in PackageInstaller.SessionParams 1329 sizeBytes = source.readLong(); in SessionParams() 1352 ret.sizeBytes = sizeBytes; in copy() 1409 public void setSize(long sizeBytes) { in setSize() argument 1410 this.sizeBytes = sizeBytes; in setSize() 1700 pw.printPair("sizeBytes", sizeBytes); in dump() 1729 dest.writeLong(sizeBytes); in writeToParcel() 1831 public long sizeBytes; field in PackageInstaller.SessionInfo 1897 sizeBytes = source.readLong(); in SessionInfo() 2076 return sizeBytes; in getSize() [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | RenderScript.java | 473 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 475 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument 478 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 481 …AllocationElementData1D(long con,long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData1D() argument 482 …d void nAllocationElementData1D(long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData1D() argument 484 rsnAllocationElementData1D(mContext, id, xoff, mip, compIdx, d, sizeBytes); in nAllocationElementData1D() 515 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 518 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 521 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 550 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument [all …]
|
D | Allocation.java | 1451 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() local 1453 if (dataSize / 4 * 3 > sizeBytes) { in copy2DRangeFromUnchecked() 1457 sizeBytes = dataSize; in copy2DRangeFromUnchecked() 1459 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked() 1464 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local 1708 int sizeBytes = arrayLen * dt.mSize; in copy3DRangeFromUnchecked() local 1710 if (dataSize / 4 * 3 > sizeBytes) { in copy3DRangeFromUnchecked() 1714 sizeBytes = dataSize; in copy3DRangeFromUnchecked() 1716 if (dataSize > sizeBytes) { in copy3DRangeFromUnchecked() 1721 array, sizeBytes, dt, in copy3DRangeFromUnchecked() local [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallInstalling.java | 351 long sizeBytes = file.length(); in doInBackground() local 353 .openWrite("PackageInstaller", 0, sizeBytes)) { in doInBackground() argument 369 if (sizeBytes > 0) { in doInBackground() 370 float fraction = ((float) numRead / (float) sizeBytes); in doInBackground()
|
/frameworks/base/rs/jni/ |
D | android_renderscript_RenderScript.cpp | 319 int sizeBytes = mSize * 3; in copyWithPadding() local 323 memcpy(dst, src, sizeBytes); in copyWithPadding() 325 src += sizeBytes; in copyWithPadding() 331 int sizeBytes = mSize * 3; in copyWithUnPadding() local 335 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 336 dst += sizeBytes; in copyWithUnPadding() 1392 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, in nAllocationData1D() argument 1398 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, in nAllocationData1D() 1402 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D() 1408 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()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerShellCommand.java | 438 if (params.sessionParams.sizeBytes == -1 && !STDIN_PATH.equals(inPath)) { in setParamsSize() 1145 if (inPath == null && params.sessionParams.sizeBytes == -1) { in runInstall() 1152 if (doWriteSplit(sessionId, inPath, params.sessionParams.sizeBytes, splitName, in runInstall() 1277 long sizeBytes = -1; in runInstallWrite() local 1282 sizeBytes = Long.parseLong(getNextArg()); in runInstallWrite() 1291 return doWriteSplit(sessionId, path, sizeBytes, splitName, true /*logSuccess*/); in runInstallWrite() 2606 final long sizeBytes = Long.parseLong(getNextArg()); in makeInstallParams() local 2607 if (sizeBytes <= 0) { in makeInstallParams() 2610 sessionParams.setSize(sizeBytes); in makeInstallParams() 2888 private int doWriteSplit(int sessionId, String inPath, long sizeBytes, String splitName, in doWriteSplit() argument [all …]
|
D | PackageManagerServiceUtils.java | 748 final long sizeBytes; in getMinimalPackageInfo() local 751 sizeBytes = PackageHelper.calculateInstalledSize(pkg, abiOverride); in getMinimalPackageInfo() 765 pkg.packageName, pkg.installLocation, sizeBytes, flags); in getMinimalPackageInfo()
|
D | StagingManager.java | 459 long sizeBytes = (pfd == null) ? -1 : pfd.getStatSize(); in createAndWriteApkSession() local 460 if (sizeBytes < 0) { in createAndWriteApkSession() 465 apkSession.write(apkFile.getName(), 0, sizeBytes, pfd); in createAndWriteApkSession() local
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageInstallerSessionTest.java | 261 assertEquals(expected.sizeBytes, actual.sizeBytes); in assertSessionParamsEquivalent()
|