Home
last modified time | relevance | path

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

12

/aosp12/frameworks/rs/
H A DrsAllocation.cpp198 if ((count * eSize) != sizeBytes) { in data()
202 (count * eSize), sizeBytes); in data()
229 if ((count * eSize) != sizeBytes) { in read()
233 (count * eSize), sizeBytes); in read()
249 if ((lineSize * h) != sizeBytes) { in read()
252 (lineSize * h), sizeBytes); in read()
297 if (sizeBytes != e->getSizeBytes() * elemArraySize) { in elementData()
330 if (sizeBytes != e->getSizeBytes() * elemArraySize) { in elementRead()
686 a->data(rsc, xoff, lod, count, data, sizeBytes); in rsi_Allocation1DData()
692 a->elementData(rsc, x, 0, 0, data, eoff, sizeBytes); in rsi_Allocation1DElementData()
[all …]
H A 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);
H A DrsHidlAdaptation.cpp439 _bitmap.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in AllocationCreateFromBitmap()
453 _bitmap.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in AllocationCubeCreateFromBitmap()
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()
572 _data.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in Allocation1DElementData()
583 _data.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in AllocationElementData()
595 _data.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in Allocation2DData()
606 _data.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), sizeBytes); in Allocation3DData()
622 GetIContextHandle(context)->allocationRead(_allocation, data, sizeBytes); in AllocationRead()
[all …]
H A 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);
/aosp12/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java146 params.sizeBytes = sizeBytes; in resolveInstallVolume()
163 params.sizeBytes, testableInterface); in resolveInstallVolume()
175 if (params.sizeBytes <= availBytes) { in checkFitOnVolume()
180 return params.sizeBytes <= availBytes + cacheClearable; in checkFitOnVolume()
281 if (bestCandidateAvailBytes >= params.sizeBytes) { in resolveInstallVolume()
301 if (params.sizeBytes <= allocateableBytes) { in fitsOnInternal()
314 return (params.sizeBytes > 0) && !primary.isEmulated() in fitsOnExternal()
325 params.sizeBytes = sizeBytes; in resolveInstallLocation()
447 long sizeBytes = 0; in calculateInstalledSize() local
452 sizeBytes += codeFile.length(); in calculateInstalledSize()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/utils/
H A DFileSizeFormatter.java54 @Nullable Context context, long sizeBytes, int suffix, long mult) { in formatFileSize() argument
59 formatBytes(context.getResources(), sizeBytes, suffix, mult); in formatFileSize()
80 Resources res, long sizeBytes, int suffix, long mult) { in formatBytes() argument
81 final boolean isNegative = (sizeBytes < 0); in formatBytes()
82 float result = isNegative ? -sizeBytes : sizeBytes; in formatBytes()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/
H A DFileSizeFormatter.java57 @NonNull Context context, long sizeBytes, int suffix, long mult) { in formatFileSize() argument
59 formatBytes(context.getResources(), sizeBytes, suffix, mult); in formatFileSize()
80 Resources res, long sizeBytes, int suffix, long mult) { in formatBytes() argument
81 boolean isNegative = (sizeBytes < 0); in formatBytes()
82 float result = isNegative ? -sizeBytes : sizeBytes; in formatBytes()
/aosp12/frameworks/base/core/java/android/text/format/
H A DFormatter.java95 public static String formatFileSize(@Nullable Context context, long sizeBytes) { in formatFileSize() argument
96 return formatFileSize(context, sizeBytes, FLAG_SI_UNITS); in formatFileSize()
100 public static String formatFileSize(@Nullable Context context, long sizeBytes, int flags) { in formatFileSize() argument
104 final BytesResult res = formatBytes(context.getResources(), sizeBytes, flags); in formatFileSize()
113 public static String formatShortFileSize(@Nullable Context context, long sizeBytes) { in formatShortFileSize() argument
117 final BytesResult res = formatBytes(context.getResources(), sizeBytes, in formatShortFileSize()
125 public static BytesResult formatBytes(Resources res, long sizeBytes, int flags) { in formatBytes() argument
127 final boolean isNegative = (sizeBytes < 0); in formatBytes()
128 float result = isNegative ? -sizeBytes : sizeBytes; in formatBytes()
/aosp12/frameworks/rs/driver/
H A 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);
/aosp12/frameworks/base/apex/blobstore/framework/java/android/app/blob/
H A 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()
/aosp12/frameworks/av/media/libaaudio/tests/
H A 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()
/aosp12/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java552 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
610 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument
616 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, in nAllocationData3D()
627 int sizeBytes, int dt, int mSize, boolean usePadding); in rsnAllocationRead1D() argument
635 int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementRead() argument
637 int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementRead() argument
639 rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementRead()
643 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationRead2D() argument
[all …]
H A DAllocation.java1482 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() local
1488 sizeBytes = dataSize; in copy2DRangeFromUnchecked()
1490 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked()
1759 int sizeBytes = arrayLen * dt.mSize; in copy3DRangeFromUnchecked() local
1765 sizeBytes = dataSize; in copy3DRangeFromUnchecked()
1767 if (dataSize > sizeBytes) { in copy3DRangeFromUnchecked()
2401 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeToUnchecked() local
2407 sizeBytes = dataSize; in copy2DRangeToUnchecked()
2409 if (dataSize > sizeBytes) { in copy2DRangeToUnchecked()
2604 sizeBytes = dataSize; in copy3DRangeToUnchecked()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/development/storage/
H A DSharedDataUtils.java43 static String formatSize(long sizeBytes) { in formatSize() argument
44 final double sizeInMb = sizeBytes / (1024.0 * 1024.0); in formatSize()
/aosp12/frameworks/base/keystore/java/android/security/keystore2/
H A DKeyStoreCryptoOperationUtils.java163 static byte[] getRandomBytesToMixIntoKeystoreRng(SecureRandom rng, int sizeBytes) { in getRandomBytesToMixIntoKeystoreRng() argument
164 if (sizeBytes <= 0) { in getRandomBytesToMixIntoKeystoreRng()
170 byte[] result = new byte[sizeBytes]; in getRandomBytesToMixIntoKeystoreRng()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A DByteArrayRingBuffer.java89 private void pruneToSize(int sizeBytes) { in pruneToSize() argument
92 while (i < mArrayList.size() && newBytesUsed > sizeBytes) { in pruneToSize()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/testing/
H A DRandomInputStream.java39 public RandomInputStream(Random random, int sizeBytes) { in RandomInputStream() argument
41 mSizeBytes = sizeBytes; in RandomInputStream()
/aosp12/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/
H A DStorageInfo.java81 public StorageInfo.Builder setSizeBytes(long sizeBytes) { in setSizeBytes() argument
82 mSizeBytes = sizeBytes; in setSizeBytes()
/aosp12/frameworks/rs/support/java/src/androidx/renderscript/
H A DRenderScript.java483 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D()
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
555 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument
561 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, in nAllocationData3D()
572 int sizeBytes, int dt, int mSize, boolean usePadding); in rsnAllocationRead1D() argument
574 … int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) { in nAllocationRead1D() argument
576 rsnAllocationRead1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationRead1D()
590 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationRead2D() argument
[all …]
H A DAllocation.java1456 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()
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()
2298 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeToUnchecked() local
2304 sizeBytes = dataSize; in copy2DRangeToUnchecked()
[all …]
/aosp12/hardware/google/av/media/eco/include/eco/
H A DECOUtils.h113 int32_t sizeBytes) in SimpleEncodedFrameData()
118 mFrameSizeBytes(sizeBytes) {} in SimpleEncodedFrameData()
/aosp12/hardware/interfaces/renderscript/1.0/default/
H A DContext.h66 Return<void> allocationCopyToBitmap(Allocation allocation, Ptr data, Size sizeBytes) override;
72 Return<void> allocationRead(Allocation allocation, Ptr data, Size sizeBytes) override;
73 …cation allocation, uint32_t xoff, uint32_t lod, uint32_t count, Ptr data, Size sizeBytes) override;
74 …ation, uint32_t x, uint32_t y, uint32_t z, uint32_t lod, Ptr data, Size sizeBytes, Size compIdx) o…
75 …lod, AllocationCubemapFace face, uint32_t w, uint32_t h, Ptr data, Size sizeBytes, Size stride) ov…
76 … zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, Ptr data, Size sizeBytes, Size stride) ov…
/aosp12/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
H A DInstallInstalling.java316 long sizeBytes = file.length(); in doInBackground() local
318 .openWrite("PackageInstaller", 0, sizeBytes)) { in doInBackground() argument
334 if (sizeBytes > 0) { in doInBackground()
335 float fraction = ((float) numRead / (float) sizeBytes); in doInBackground()
/aosp12/frameworks/base/core/java/android/content/pm/
H A DPackageInstaller.java1591 public long sizeBytes = -1; field in PackageInstaller.SessionParams
1655 sizeBytes = source.readLong(); in SessionParams()
1688 ret.sizeBytes = sizeBytes; in copy()
1750 public void setSize(long sizeBytes) { in setSize() argument
1751 this.sizeBytes = sizeBytes; in setSize()
2182 pw.printPair("sizeBytes", sizeBytes); in dump()
2217 dest.writeLong(sizeBytes); in writeToParcel()
2350 public long sizeBytes; field in PackageInstaller.SessionInfo
2431 sizeBytes = source.readLong(); in SessionInfo()
2623 return sizeBytes; in getSize()
[all …]
/aosp12/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp318 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()
1409 sizeBytes); in nAllocationElementData()
1418 lod, ptr, sizeBytes, compIdx); in nAllocationElementData()
1478 lod, w, h, d, sizeBytes); in nAllocationData3D()
1551 sizeBytes); in nAllocationElementRead()
[all …]

12