Home
last modified time | relevance | path

Searched refs:sizeBytes (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/rs/
DrsAllocation.cpp195 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 …]
DrsAllocation.h132 …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);
DrsHidlAdaptation.cpp434 … 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 …]
Drs_hal.h246 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/
DPackageHelper.java144 int installLocation, long sizeBytes, TestableInterface testInterface) in resolveInstallVolume() argument
149 params.sizeBytes = sizeBytes; in resolveInstallVolume()
166 params.sizeBytes, testableInterface); in resolveInstallVolume()
178 if (params.sizeBytes <= availBytes) { in checkFitOnVolume()
183 return params.sizeBytes <= availBytes + cacheClearable; in checkFitOnVolume()
284 if (bestCandidateAvailBytes >= params.sizeBytes) { in resolveInstallVolume()
304 if (params.sizeBytes <= allocateableBytes) { in fitsOnInternal()
311 return params.sizeBytes <= allocateableBytes + cacheClearable; in fitsOnInternal()
317 return (params.sizeBytes > 0) && !primary.isEmulated() in fitsOnExternal()
319 && params.sizeBytes <= storage.getStorageBytesUntilLow(primary.getPathFile()); in fitsOnExternal()
[all …]
/frameworks/base/core/java/android/text/format/
DFormatter.java94 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/
DrsdAllocation.h113 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);
DrsdAllocation.cpp830 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/apex/blobstore/framework/java/android/app/blob/
DBlobInfo.java42 public BlobInfo(long id, long expiryTimeMs, CharSequence label, long sizeBytes, in BlobInfo() argument
47 mSizeBytes = sizeBytes; in BlobInfo()
103 private static String formatBlobSize(long sizeBytes) { in formatBlobSize() argument
105 sizeBytes, FLAG_IEC_UNITS); in formatBlobSize()
/frameworks/base/keystore/java/android/security/keystore/
DKeyStoreCryptoOperationUtils.java98 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/
Dtest_block_adapter.cpp82 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/
DByteArrayRingBuffer.java89 private void pruneToSize(int sizeBytes) { in pruneToSize() argument
92 while (i < mArrayList.size() && newBytesUsed > sizeBytes) { in pruneToSize()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/testing/
DRandomInputStream.java39 public RandomInputStream(Random random, int sizeBytes) { in RandomInputStream() argument
41 mSizeBytes = sizeBytes; in RandomInputStream()
/frameworks/base/rs/java/android/renderscript/
DRenderScript.java536 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument
538 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument
541 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D()
544 …ata(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData() argument
545 …ElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData() argument
547 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData()
571 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument
574 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument
577 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D()
605 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument
[all …]
DAllocation.java1478 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/
DDexMetadataHelper.java61 long sizeBytes = 0; in getPackageDexMetadataSize() local
64 sizeBytes += new File(dexMetadata).length(); in getPackageDexMetadataSize()
66 return sizeBytes; in getPackageDexMetadataSize()
/frameworks/rs/support/java/src/androidx/renderscript/
DRenderScript.java473 …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 …]
DAllocation.java1451 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/core/java/android/content/pm/
DPackageInstaller.java1471 public long sizeBytes = -1; field in PackageInstaller.SessionParams
1532 sizeBytes = source.readLong(); in SessionParams()
1563 ret.sizeBytes = sizeBytes; in copy()
1624 public void setSize(long sizeBytes) { in setSize() argument
1625 this.sizeBytes = sizeBytes; in setSize()
1989 pw.printPair("sizeBytes", sizeBytes); in dump()
2022 dest.writeLong(sizeBytes); in writeToParcel()
2132 public long sizeBytes; field in PackageInstaller.SessionInfo
2208 sizeBytes = source.readLong(); in SessionInfo()
2391 return sizeBytes; in getSize()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallInstalling.java351 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/
Dandroid_renderscript_RenderScript.cpp319 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()
1388 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, in nAllocationData1D() argument
1394 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, in nAllocationData1D()
1398 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D()
1404 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) in nAllocationElementData() argument
[all …]
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp323 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/
DAllocation.cpp194 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/
DPackageManagerShellCommand.java508 if (params.sessionParams.sizeBytes != -1 || STDIN_PATH.equals(inPaths.get(0))) { in setParamsSize()
1263 if (fromStdIn && params.sessionParams.sizeBytes == -1) { in doRunInstall()
1291 if (doAddFiles(sessionId, args, params.sessionParams.sizeBytes, isApex) in doRunInstall()
1296 if (doWriteSplits(sessionId, args, params.sessionParams.sizeBytes, isApex) in doRunInstall()
1422 long sizeBytes = -1; in runInstallWrite() local
1427 sizeBytes = Long.parseLong(getNextArg()); in runInstallWrite()
1436 return doWriteSplit(sessionId, path, sizeBytes, splitName, true /*logSuccess*/); in runInstallWrite()
2804 final long sizeBytes = Long.parseLong(getNextArg()); in makeInstallParams() local
2805 if (sizeBytes <= 0) { in makeInstallParams()
2808 sessionParams.setSize(sizeBytes); in makeInstallParams()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java267 assertEquals(expected.sizeBytes, actual.sizeBytes); in assertSessionParamsEquivalent()

12