/frameworks/rs/ |
D | rsAllocation.cpp | 183 uint32_t count, const void *data, size_t sizeBytes) { in data() argument 186 if ((count * eSize) != sizeBytes) { in data() 189 (count * eSize), sizeBytes); in data() 195 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data() 200 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) { in data() argument 201 …rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in data() 207 … uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) { in data() argument 208 …rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in data() 213 uint32_t count, void *data, size_t sizeBytes) { in read() argument 216 if ((count * eSize) != sizeBytes) { in read() [all …]
|
D | rsAllocation.h | 129 …ata(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes); 131 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride); 133 … uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride); 135 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 137 uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride); 139 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride); 142 const void *data, uint32_t elementOff, size_t sizeBytes); 145 void *data, uint32_t elementOff, size_t sizeBytes);
|
D | rsAdapter.cpp | 40 void Adapter1D::data(Context *rsc, uint32_t x, uint32_t count, const void *data, size_t sizeBytes) { in data() argument 41 mAllocation->data(rsc, x, mY, mLOD, mFace, count, 1, data, sizeBytes, 0); in data() 112 const void *data, size_t sizeBytes) { in data() argument 113 mAllocation->data(rsc, x, y, mLOD, mFace, w, h, data, sizeBytes, 0); in data()
|
D | rs_hal.h | 217 const void *data, size_t sizeBytes); 221 const void *data, size_t sizeBytes, size_t stride); 224 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, 229 void *data, size_t sizeBytes); 233 void *data, size_t sizeBytes, size_t stride); 236 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, 268 const void *data, uint32_t elementOff, size_t sizeBytes); 271 void *data, uint32_t elementOff, size_t sizeBytes);
|
D | rsAdapter.h | 47 void data(Context *rsc, uint32_t xoff, uint32_t count, const void *data, size_t sizeBytes); 80 const void *data, size_t sizeBytes);
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 84 public static String createSdDir(long sizeBytes, String cid, String sdEncKey, int uid, in createSdDir() argument 87 final int sizeMb = (int) ((sizeBytes + MB_IN_BYTES) / MB_IN_BYTES) + 1; in createSdDir() 110 public static boolean resizeSdDir(long sizeBytes, String cid, String sdEncKey) { in resizeSdDir() argument 112 final int sizeMb = (int) ((sizeBytes + MB_IN_BYTES) / MB_IN_BYTES) + 1; in resizeSdDir() 347 int installLocation, long sizeBytes) throws IOException { in resolveInstallVolume() argument 358 final boolean fitsOnInternal = fitsOnInternal(context, sizeBytes); in resolveInstallVolume() 366 if (availBytes >= sizeBytes) { in resolveInstallVolume() 411 public static boolean fitsOnInternal(Context context, long sizeBytes) { in fitsOnInternal() argument 414 return (sizeBytes <= storage.getStorageBytesUntilLow(target)); in fitsOnInternal() 417 public static boolean fitsOnExternal(Context context, long sizeBytes) { in fitsOnExternal() argument [all …]
|
/frameworks/rs/driver/ |
D | rsdAllocation.h | 110 const void *data, size_t sizeBytes); 115 const void *data, size_t sizeBytes, size_t stride); 119 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, 125 void *data, size_t sizeBytes); 130 void *data, size_t sizeBytes, size_t stride); 134 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, 167 const void *data, uint32_t elementOff, size_t sizeBytes); 172 void *data, uint32_t elementOff, size_t sizeBytes);
|
D | rsdAllocation.cpp | 845 const void *data, size_t sizeBytes) { in rsdAllocationData1D() argument 865 … uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) { in rsdAllocationData2D() argument 927 size_t sizeBytes, size_t stride) { in rsdAllocationData3D() argument 964 void *data, size_t sizeBytes) { in rsdAllocationRead1D() argument 976 … uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) { in rsdAllocationRead2D() argument 1006 … uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) { in rsdAllocationRead3D() argument 1127 const void *data, uint32_t cIdx, size_t sizeBytes) { in rsdAllocationElementData() argument 1140 memcpy(ptr, data, sizeBytes); in rsdAllocationElementData() 1146 void *data, uint32_t cIdx, size_t sizeBytes) { in rsdAllocationElementRead() argument 1154 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/base/core/java/android/text/format/ |
D | Formatter.java | 77 public static String formatFileSize(@Nullable Context context, long sizeBytes) { in formatFileSize() argument 81 final BytesResult res = formatBytes(context.getResources(), sizeBytes, 0); in formatFileSize() 90 public static String formatShortFileSize(@Nullable Context context, long sizeBytes) { in formatShortFileSize() argument 94 final BytesResult res = formatBytes(context.getResources(), sizeBytes, FLAG_SHORTER); in formatShortFileSize() 100 public static BytesResult formatBytes(Resources res, long sizeBytes, int flags) { in formatBytes() argument 101 float result = sizeBytes; in formatBytes()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInstaller.java | 877 public long sizeBytes = -1; field in PackageInstaller.SessionParams 913 sizeBytes = source.readLong(); in SessionParams() 942 public void setSize(long sizeBytes) { in setSize() argument 943 this.sizeBytes = sizeBytes; in setSize() 1029 pw.printPair("sizeBytes", sizeBytes); in dump() 1051 dest.writeLong(sizeBytes); in writeToParcel() 1097 public long sizeBytes; field in PackageInstaller.SessionInfo 1119 sizeBytes = source.readLong(); in SessionInfo() 1237 dest.writeLong(sizeBytes); in writeToParcel()
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScript.java | 509 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 511 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument 514 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 517 …ata(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData() argument 518 …ElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData() argument 520 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData() 544 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 547 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 550 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 578 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument [all …]
|
D | Allocation.java | 1115 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() local 1117 if (dataSize / 4 * 3 > sizeBytes) { in copy2DRangeFromUnchecked() 1121 sizeBytes = dataSize; in copy2DRangeFromUnchecked() 1123 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked() 1128 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local 1308 int sizeBytes = arrayLen * dt.mSize; in copy3DRangeFromUnchecked() local 1310 if (dataSize / 4 * 3 > sizeBytes) { in copy3DRangeFromUnchecked() 1314 sizeBytes = dataSize; in copy3DRangeFromUnchecked() 1316 if (dataSize > sizeBytes) { in copy3DRangeFromUnchecked() 1321 array, sizeBytes, dt, in copy3DRangeFromUnchecked() local [all …]
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | Allocation.java | 1056 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() local 1058 if (dataSize / 4 * 3 > sizeBytes) { in copy2DRangeFromUnchecked() 1062 sizeBytes = dataSize; in copy2DRangeFromUnchecked() 1064 if (dataSize > sizeBytes) { in copy2DRangeFromUnchecked() 1069 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local 1223 int sizeBytes = arrayLen * dt.mSize; in copy3DRangeFromUnchecked() local 1225 if (dataSize / 4 * 3 > sizeBytes) { in copy3DRangeFromUnchecked() 1229 sizeBytes = dataSize; in copy3DRangeFromUnchecked() 1231 if (dataSize > sizeBytes) { in copy3DRangeFromUnchecked() 1236 array, sizeBytes, dt, in copy3DRangeFromUnchecked() local [all …]
|
D | RenderScript.java | 452 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 454 …d nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataTyp… in nAllocationData1D() argument 457 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 460 …AllocationElementData1D(long con,long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes); in rsnAllocationElementData1D() argument 461 …d void nAllocationElementData1D(long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes) { in nAllocationElementData1D() argument 463 rsnAllocationElementData1D(mContext, id, xoff, mip, compIdx, d, sizeBytes); in nAllocationElementData1D() 494 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 497 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 500 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 529 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument [all …]
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 166 final long sizeBytes; 169 sizeBytes = PackageHelper.calculateInstalledSize(pkg, isForwardLocked, abiOverride); 190 pkg.packageName, pkg.installLocation, sizeBytes, flags); 319 final long sizeBytes = PackageHelper.calculateInstalledSize(pkg, handle, in copyPackageToContainerInner() local 323 final String newMountPath = PackageHelper.createSdDir(sizeBytes, newCid, key, in copyPackageToContainerInner()
|
/frameworks/base/rs/jni/ |
D | android_renderscript_RenderScript.cpp | 293 int sizeBytes = mSize * 3; in copyWithPadding() local 297 memcpy(dst, src, sizeBytes); in copyWithPadding() 299 src += sizeBytes; in copyWithPadding() 305 int sizeBytes = mSize * 3; in copyWithUnPadding() local 309 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 310 dst += sizeBytes; in copyWithUnPadding() 1289 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, in nAllocationData1D() argument 1295 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, in nAllocationData1D() 1299 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D() 1305 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) in nAllocationElementData() argument [all …]
|
/frameworks/support/v8/renderscript/jni/ |
D | android_renderscript_RenderScript.cpp | 311 int sizeBytes = mSize * 3; in copyWithPadding() local 315 memcpy(dst, src, sizeBytes); in copyWithPadding() 317 src += sizeBytes; in copyWithPadding() 323 int sizeBytes = mSize * 3; in copyWithUnPadding() local 327 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 328 dst += sizeBytes; in copyWithUnPadding() 1168 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, in nAllocationData1D() argument 1173 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, in nAllocationData1D() 1176 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D() 1182 jint lod, jint compIdx, jbyteArray data, jint sizeBytes) in nAllocationElementData1D() argument [all …]
|
/frameworks/rs/cpp/ |
D | Allocation.cpp | 195 int sizeBytes = mSize * 3; in copyWithPadding() local 199 memcpy(dst, src, sizeBytes); in copyWithPadding() 201 src += sizeBytes; in copyWithPadding() 207 int sizeBytes = mSize * 3; in copyWithUnPadding() local 211 memcpy(dst, src, sizeBytes); in copyWithUnPadding() 212 dst += sizeBytes; in copyWithUnPadding()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerService.java | 403 params.sizeBytes = readLongAttribute(in, ATTR_SIZE_BYTES); in readSessionLocked() 476 writeLongAttribute(out, ATTR_SIZE_BYTES, params.sizeBytes); in writeSessionLocked() 625 if (!PackageHelper.fitsOnInternal(mContext, params.sizeBytes)) { in createSessionInternal() 630 if (!PackageHelper.fitsOnExternal(mContext, params.sizeBytes)) { in createSessionInternal() 649 params.appPackageName, params.installLocation, params.sizeBytes); in createSessionInternal() 807 static void prepareExternalStageCid(String stageCid, long sizeBytes) throws IOException { in prepareExternalStageCid() argument 808 if (PackageHelper.createSdDir(sizeBytes, stageCid, PackageManagerService.getEncryptKey(), in prepareExternalStageCid()
|
D | PackageInstallerSession.java | 248 info.sizeBytes = params.sizeBytes; in generateInfo() 976 prepareExternalStageCid(stageCid, params.sizeBytes); in open()
|
D | PackageManagerService.java | 10851 final long sizeBytes = mContainerService.calculateInstalledSize( in handleStartCopy() local 10854 if (mInstaller.freeCache(null, sizeBytes + lowThreshold) >= 0) { in handleStartCopy() 16361 final long sizeBytes; in movePackageInternal() local 16363 sizeBytes = stats.codeSize + stats.dataSize; in movePackageInternal() 16365 sizeBytes = stats.codeSize; in movePackageInternal() 16368 if (sizeBytes > storage.getStorageBytesUntilLow(measurePath)) { in movePackageInternal() 16429 ((deltaFreeBytes * 80) / sizeBytes), 0, 80); in movePackageInternal()
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
D | Pm.java | 1237 long sizeBytes = -1; in runInstallWrite() local 1242 sizeBytes = Long.parseLong(nextOptionData()); in runInstallWrite() 1257 sizeBytes = file.length(); in runInstallWrite() 1272 in = new SizedInputStream(System.in, sizeBytes); in runInstallWrite() 1274 out = session.openWrite(splitName, 0, sizeBytes); in runInstallWrite() 1283 if (info.sizeBytes > 0) { in runInstallWrite() 1284 final float fraction = ((float) c / (float) info.sizeBytes); in runInstallWrite()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 6515 bool ResTable::getIdmapInfo(const void* idmap, size_t sizeBytes, in getIdmapInfo() argument 6521 if (!assertIdmapHeader(map, sizeBytes)) { in getIdmapInfo()
|