/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 | 93 public static String createSdDir(long sizeBytes, String cid, String sdEncKey, int uid, in createSdDir() argument 96 final int sizeMb = (int) ((sizeBytes + MB_IN_BYTES) / MB_IN_BYTES) + 1; in createSdDir() 119 public static boolean resizeSdDir(long sizeBytes, String cid, String sdEncKey) { in resizeSdDir() argument 121 final int sizeMb = (int) ((sizeBytes + MB_IN_BYTES) / MB_IN_BYTES) + 1; in resizeSdDir() 362 return (params.sizeBytes <= storage.getAllocatableBytes(target, in fitsOnInternalStorage() 410 int installLocation, long sizeBytes, TestableInterface testInterface) in resolveInstallVolume() argument 415 params.sizeBytes = sizeBytes; in resolveInstallVolume() 432 params.sizeBytes, testableInterface); in resolveInstallVolume() 471 if (availBytes >= params.sizeBytes) { in resolveInstallVolume() 527 return (params.sizeBytes <= storage.getAllocatableBytes(target, in fitsOnInternal() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 82 public static String formatFileSize(@Nullable Context context, long sizeBytes) { in formatFileSize() argument 86 final BytesResult res = formatBytes(context.getResources(), sizeBytes, 0); in formatFileSize() 95 public static String formatShortFileSize(@Nullable Context context, long sizeBytes) { in formatShortFileSize() argument 99 final BytesResult res = formatBytes(context.getResources(), sizeBytes, FLAG_SHORTER); in formatShortFileSize() 105 public static BytesResult formatBytes(Resources res, long sizeBytes, int flags) { in formatBytes() argument 106 final boolean isNegative = (sizeBytes < 0); in formatBytes() 107 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 | 818 const void *data, size_t sizeBytes) { in rsdAllocationData1D() argument 838 … uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) { in rsdAllocationData2D() argument 902 size_t sizeBytes, size_t stride) { in rsdAllocationData3D() argument 939 void *data, size_t sizeBytes) { in rsdAllocationRead1D() argument 951 … uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) { in rsdAllocationRead2D() argument 981 … uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) { in rsdAllocationRead3D() argument 1102 const void *data, uint32_t cIdx, size_t sizeBytes) { in rsdAllocationElementData() argument 1115 memcpy(ptr, data, sizeBytes); in rsdAllocationElementData() 1121 void *data, uint32_t cIdx, size_t sizeBytes) { in rsdAllocationElementRead() argument 1129 memcpy(data, ptr, sizeBytes); in rsdAllocationElementRead()
|
/frameworks/rs/rsov/driver/ |
D | rsovAllocation.h | 91 const void *data, size_t sizeBytes); 97 uint32_t h, const void *data, size_t sizeBytes, 104 uint32_t d, const void *data, size_t sizeBytes, 110 void *data, size_t sizeBytes); 116 uint32_t h, void *data, size_t sizeBytes, 123 uint32_t d, void *data, size_t sizeBytes, 217 uint32_t z, const void *data, uint32_t cIdx, size_t sizeBytes); 222 uint32_t z, void *data, uint32_t cIdx, size_t sizeBytes);
|
D | rsovAllocation.cpp | 322 const void *data, size_t sizeBytes) { in rsovAllocationData1D() argument 341 const void *data, size_t sizeBytes, size_t stride) { in rsovAllocationData2D() argument 393 const void *data, size_t sizeBytes, size_t stride) { in rsovAllocationData3D() argument 420 size_t sizeBytes) { in rsovAllocationRead1D() argument 434 void *data, size_t sizeBytes, size_t stride) { in rsovAllocationRead2D() argument 463 void *data, size_t sizeBytes, size_t stride) { in rsovAllocationRead3D() argument 674 size_t sizeBytes) { in rsovAllocationElementData() argument 686 memcpy(ptr, data, sizeBytes); in rsovAllocationElementData() 691 uint32_t cIdx, size_t sizeBytes) { in rsovAllocationElementRead() argument 698 memcpy(data, ptr, sizeBytes); in rsovAllocationElementRead()
|
/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/core/java/android/content/pm/ |
D | PackageInstaller.java | 955 public long sizeBytes = -1; field in PackageInstaller.SessionParams 994 sizeBytes = source.readLong(); in SessionParams() 1024 public void setSize(long sizeBytes) { in setSize() argument 1025 this.sizeBytes = sizeBytes; in setSize() 1174 pw.printPair("sizeBytes", sizeBytes); in dump() 1198 dest.writeLong(sizeBytes); in writeToParcel() 1247 public long sizeBytes; field in PackageInstaller.SessionInfo 1270 sizeBytes = source.readLong(); in SessionInfo() 1408 dest.writeLong(sizeBytes); in writeToParcel()
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScript.java | 535 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 537 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument 540 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 543 …ata(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData() argument 544 …ElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData() argument 546 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData() 570 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 573 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 576 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 604 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/rs/support/java/src/android/support/v8/renderscript/ |
D | RenderScript.java | 461 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 463 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument 466 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 469 …AllocationElementData1D(long con,long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData1D() argument 470 …d void nAllocationElementData1D(long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData1D() argument 472 rsnAllocationElementData1D(mContext, id, xoff, mip, compIdx, d, sizeBytes); in nAllocationElementData1D() 503 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 506 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 509 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 538 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/cmds/pm/src/com/android/commands/pm/ |
D | Pm.java | 411 if (params.sessionParams.sizeBytes == -1 && !STDIN_PATH.equals(inPath)) { in runInstall() 435 if (inPath == null && params.sessionParams.sizeBytes == -1) { in runInstall() 439 if (doWriteSession(sessionId, inPath, params.sessionParams.sizeBytes, "base.apk", in runInstall() 480 long sizeBytes = -1; in runInstallWrite() local 485 sizeBytes = Long.parseLong(nextArg()); in runInstallWrite() 494 return doWriteSession(sessionId, path, sizeBytes, splitName, true /*logSuccess*/); in runInstallWrite() 560 final long sizeBytes = Long.parseLong(nextOptionData()); in makeInstallParams() local 561 if (sizeBytes <= 0) { in makeInstallParams() 564 sessionParams.setSize(sizeBytes); in makeInstallParams() 611 private int doWriteSession(int sessionId, String inPath, long sizeBytes, String splitName, in doWriteSession() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerShellCommand.java | 172 if (params.sessionParams.sizeBytes == -1 && !STDIN_PATH.equals(inPath)) { in setParamsSize() 203 if (inPath == null && params.sessionParams.sizeBytes == -1) { in runInstall() 207 if (doWriteSplit(sessionId, inPath, params.sessionParams.sizeBytes, "base.apk", in runInstall() 283 long sizeBytes = -1; in runInstallWrite() local 288 sizeBytes = Long.parseLong(getNextArg()); in runInstallWrite() 297 return doWriteSplit(sessionId, path, sizeBytes, splitName, true /*logSuccess*/); in runInstallWrite() 1193 final long sizeBytes = Long.parseLong(getNextArg()); in makeInstallParams() local 1194 if (sizeBytes <= 0) { in makeInstallParams() 1197 sessionParams.setSize(sizeBytes); in makeInstallParams() 1352 private int doWriteSplit(int sessionId, String inPath, long sizeBytes, String splitName, in doWriteSplit() argument [all …]
|
D | PackageInstallerService.java | 425 params.sizeBytes = readLongAttribute(in, ATTR_SIZE_BYTES); in readSessionLocked() 501 writeLongAttribute(out, ATTR_SIZE_BYTES, params.sizeBytes); in writeSessionLocked() 844 static void prepareExternalStageCid(String stageCid, long sizeBytes) throws IOException { in prepareExternalStageCid() argument 845 if (PackageHelper.createSdDir(sizeBytes, stageCid, PackageManagerService.getEncryptKey(), in prepareExternalStageCid()
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 167 final long sizeBytes; 170 sizeBytes = PackageHelper.calculateInstalledSize(pkg, isForwardLocked, abiOverride); 187 pkg.packageName, pkg.installLocation, sizeBytes, flags); 322 final long sizeBytes = PackageHelper.calculateInstalledSize(pkg, handle, in copyPackageToContainerInner() local 326 final String newMountPath = PackageHelper.createSdDir(sizeBytes, newCid, key, in copyPackageToContainerInner()
|
/frameworks/base/rs/jni/ |
D | android_renderscript_RenderScript.cpp | 317 int sizeBytes = mSize * 3; in copyWithPadding() local 321 memcpy(dst, src, sizeBytes); in copyWithPadding() 323 src += sizeBytes; in copyWithPadding() 329 int sizeBytes = mSize * 3; in copyWithUnPadding() local 333 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 334 dst += sizeBytes; in copyWithUnPadding() 1400 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, in nAllocationData1D() argument 1406 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, in nAllocationData1D() 1410 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D() 1416 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) in nAllocationElementData() argument [all …]
|
/frameworks/rs/support/jni/ |
D | android_renderscript_RenderScript.cpp | 321 int sizeBytes = mSize * 3; in copyWithPadding() local 325 memcpy(dst, src, sizeBytes); in copyWithPadding() 327 src += sizeBytes; in copyWithPadding() 333 int sizeBytes = mSize * 3; in copyWithUnPadding() local 337 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 338 dst += sizeBytes; in copyWithUnPadding() 1173 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, in nAllocationData1D() argument 1178 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, in nAllocationData1D() 1181 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D() 1187 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()
|