Searched defs:sizeBytes (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
H A DKeyStoreCryptoOperationUtils.java98 static byte[] getRandomBytesToMixIntoKeystoreRng(SecureRandom rng, int sizeBytes) { argument
99 if (sizeBytes <= 0) {
105 byte[] result = new byte[sizeBytes];
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DByteArrayRingBuffer.java89 private void pruneToSize(int sizeBytes) { argument
92 while (i < mArrayList.size() && newBytesUsed > sizeBytes) {
/frameworks/base/core/java/android/text/format/
H A DFormatter.java74 * @param sizeBytes size value to be formatted, in bytes
77 public static String formatFileSize(@Nullable Context context, long sizeBytes) { argument
81 final BytesResult res = formatBytes(context.getResources(), sizeBytes, 0);
90 public static String formatShortFileSize(@Nullable Context context, long sizeBytes) { argument
94 final BytesResult res = formatBytes(context.getResources(), sizeBytes, FLAG_SHORTER);
100 public static BytesResult formatBytes(Resources res, long sizeBytes, int flags) { argument
101 final boolean isNegative = (sizeBytes < 0);
102 float result = isNegative ? -sizeBytes : sizeBytes;
/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java87 public static String createSdDir(long sizeBytes, String cid, String sdEncKey, int uid, argument
90 final int sizeMb = (int) ((sizeBytes + MB_IN_BYTES) / MB_IN_BYTES) + 1;
113 public static boolean resizeSdDir(long sizeBytes, String cid, String sdEncKey) { argument
115 final int sizeMb = (int) ((sizeBytes + MB_IN_BYTES) / MB_IN_BYTES) + 1;
350 int installLocation, long sizeBytes) throws IOException {
363 final boolean fitsOnInternal = fitsOnInternal(context, sizeBytes);
371 if (availBytes >= sizeBytes) {
425 public static boolean fitsOnInternal(Context context, long sizeBytes) { argument
428 return (sizeBytes <= storage.getStorageBytesUntilLow(target));
431 public static boolean fitsOnExternal(Context context, long sizeBytes) { argument
349 resolveInstallVolume(Context context, String packageName, int installLocation, long sizeBytes) argument
443 resolveInstallLocation(Context context, String packageName, int installLocation, long sizeBytes, int installFlags) argument
[all...]
/frameworks/rs/cpp/
H A DAllocation.cpp194 int sizeBytes = mSize * 3; local
198 memcpy(dst, src, sizeBytes);
200 src += sizeBytes;
206 int sizeBytes = mSize * 3; local
210 memcpy(dst, src, sizeBytes);
211 dst += sizeBytes;
/frameworks/base/cmds/pm/src/com/android/commands/pm/
H A DPm.java370 if (inPath == null && params.sessionParams.sizeBytes == 0) {
374 if (doWriteSession(sessionId, inPath, params.sessionParams.sizeBytes, "base.apk",
413 long sizeBytes = -1;
418 sizeBytes = Long.parseLong(nextArg());
427 return doWriteSession(sessionId, path, sizeBytes, splitName, true /*logSuccess*/);
530 private int doWriteSession(int sessionId, String inPath, long sizeBytes, String splitName, argument
537 sizeBytes = file.length();
553 in = new SizedInputStream(System.in, sizeBytes);
555 out = session.openWrite(splitName, 0, sizeBytes);
564 if (info.sizeBytes >
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerShellCommand.java145 if (inPath == null && params.sessionParams.sizeBytes == 0) {
149 if (doWriteSplit(sessionId, inPath, params.sessionParams.sizeBytes, "base.apk",
225 long sizeBytes = -1;
230 sizeBytes = Long.parseLong(getNextArg());
239 return doWriteSplit(sessionId, path, sizeBytes, splitName, true /*logSuccess*/);
1146 private int doWriteSplit(int sessionId, String inPath, long sizeBytes, String splitName, argument
1154 sizeBytes = file.length();
1170 in = new SizedInputStream(getRawInputStream(), sizeBytes);
1172 out = session.openWrite(splitName, 0, sizeBytes);
1181 if (info.sizeBytes >
[all...]
H A DPackageInstallerService.java137 private static final String ATTR_SIZE_BYTES = "sizeBytes";
399 params.sizeBytes = readLongAttribute(in, ATTR_SIZE_BYTES);
474 writeLongAttribute(out, ATTR_SIZE_BYTES, params.sizeBytes);
624 if (!PackageHelper.fitsOnInternal(mContext, params.sizeBytes)) {
629 if (!PackageHelper.fitsOnExternal(mContext, params.sizeBytes)) {
648 params.appPackageName, params.installLocation, params.sizeBytes);
811 static void prepareExternalStageCid(String stageCid, long sizeBytes) throws IOException { argument
812 if (PackageHelper.createSdDir(sizeBytes, stageCid, PackageManagerService.getEncryptKey(),
/frameworks/base/core/java/android/content/pm/
H A DPackageInstaller.java884 public long sizeBytes = -1; field in class:PackageInstaller.SessionParams
922 sizeBytes = source.readLong();
952 public void setSize(long sizeBytes) { argument
953 this.sizeBytes = sizeBytes;
1074 pw.printPair("sizeBytes", sizeBytes);
1097 dest.writeLong(sizeBytes);
1144 public long sizeBytes; field in class:PackageInstaller.SessionInfo
1166 sizeBytes
[all...]
/frameworks/rs/driver/
H A DrsdAllocation.cpp872 const void *data, size_t sizeBytes) {
892 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) {
956 size_t sizeBytes, size_t stride) {
993 void *data, size_t sizeBytes) {
1005 uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) {
1035 uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) {
1156 const void *data, uint32_t cIdx, size_t sizeBytes) {
1169 memcpy(ptr, data, sizeBytes);
1175 void *data, uint32_t cIdx, size_t sizeBytes) {
1183 memcpy(data, ptr, sizeBytes);
870 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument
890 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) argument
952 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument
991 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument
1003 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument
1032 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument
1154 rsdAllocationElementData(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, uint32_t z, const void *data, uint32_t cIdx, size_t sizeBytes) argument
1173 rsdAllocationElementRead(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, uint32_t z, void *data, uint32_t cIdx, size_t sizeBytes) argument
[all...]
/frameworks/rs/
H A DrsAllocation.cpp193 uint32_t count, const void *data, size_t sizeBytes) {
196 if ((count * eSize) != sizeBytes) {
199 (count * eSize), sizeBytes);
205 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes);
210 uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) {
211 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride);
217 uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) {
218 rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride);
223 uint32_t count, void *data, size_t sizeBytes) {
226 if ((count * eSize) != sizeBytes) {
192 data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
209 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) argument
215 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument
222 read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument
238 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument
256 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument
268 elementData(Context *rsc, uint32_t x, uint32_t y, uint32_t z, const void *data, uint32_t cIdx, size_t sizeBytes) argument
303 elementRead(Context *rsc, uint32_t x, uint32_t y, uint32_t z, void *data, uint32_t cIdx, size_t sizeBytes) argument
716 rsi_AllocationCopyToBitmap(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) argument
723 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
729 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument
735 rsi_AllocationElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t z, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument
741 rsi_Allocation2DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) argument
747 rsi_Allocation3DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument
754 rsi_AllocationRead(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) argument
803 rsi_AllocationCreateFromBitmap(Context *rsc, RsType vtype, RsAllocationMipmapControl mipmaps, const void *data, size_t sizeBytes, uint32_t usages) argument
825 rsi_AllocationCubeCreateFromBitmap(Context *rsc, RsType vtype, RsAllocationMipmapControl mipmaps, const void *data, size_t sizeBytes, uint32_t usages) argument
937 rsi_Allocation1DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument
943 rsi_AllocationElementRead(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t z, uint32_t lod, void *data, size_t sizeBytes, size_t eoff) argument
949 rsi_Allocation2DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument
956 rsi_Allocation3DRead(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument
[all...]
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp321 int sizeBytes = mSize * 3; local
325 memcpy(dst, src, sizeBytes);
327 src += sizeBytes;
333 int sizeBytes = mSize * 3; local
337 memcpy(dst, src, sizeBytes);
338 dst += sizeBytes;
1160 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize,
1164 LOG_API("nAllocation1DData, con(%p), adapter(%p), offset(%i), count(%i), sizeBytes(%i), "
1165 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes,
1168 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
1159 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1173 nAllocationElementData1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1206 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, jint w, jint h, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1245 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1294 nAllocationRead1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1326 nAllocationRead2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, jint w, jint h, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
[all...]
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp6731 bool ResTable::getIdmapInfo(const void* idmap, size_t sizeBytes, argument
6737 if (!assertIdmapHeader(map, sizeBytes)) {
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java535 native void rsnAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, argument
537 synchronized void nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, argument
540 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding);
543 native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes); argument
544 synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) { argument
546 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes);
570 int w, int h, Object d, int sizeBytes, int dt,
573 int w, int h, Object d, int sizeBytes, Element.DataType dt,
576 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePadding);
604 int w, int h, int depth, Object d, int sizeBytes, in
569 rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
572 nAllocationData2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
603 rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
606 nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
620 rsnAllocationRead1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
622 nAllocationRead1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
628 rsnAllocationElementRead(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) argument
630 nAllocationElementRead(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) argument
636 rsnAllocationRead2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
639 nAllocationRead2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
646 rsnAllocationRead3D(long con, long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
649 nAllocationRead3D(long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
[all...]
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp318 int sizeBytes = mSize * 3; local
322 memcpy(dst, src, sizeBytes);
324 src += sizeBytes;
330 int sizeBytes = mSize * 3; local
334 memcpy(dst, src, sizeBytes);
335 dst += sizeBytes;
1388 jint count, jobject data, jint sizeBytes, jint dataType, jint mSize,
1393 ALOGD("nAllocation1DData, con(%p), adapter(%p), offset(%i), count(%i), sizeBytes(%i), "
1394 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes,
1398 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
1387 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1402 nAllocationElementData(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1426 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, jint w, jint h, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1471 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1529 nAllocationRead1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, jint count, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1544 nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, jint yoff, jint zoff, jint lod, jint compIdx, jbyteArray data, jint sizeBytes) argument
1567 nAllocationRead2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face, jint w, jint h, jobject data, jint sizeBytes, jint dataType, jint mSize, jboolean usePadding) argument
1584 nAllocationRead3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod, jint w, jint h, jint d, jobject data, int sizeBytes, int dataType, jint mSize, jboolean usePadding) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java461 native void rsnAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, argument
463 synchronized void nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, argument
466 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding);
469 native void rsnAllocationElementData1D(long con,long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes); argument
470 synchronized void nAllocationElementData1D(long id, int xoff, int mip, int compIdx, byte[] d, int sizeBytes) { argument
472 rsnAllocationElementData1D(mContext, id, xoff, mip, compIdx, d, sizeBytes);
475 native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes);
476 synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compIdx, byte[] d, int sizeBytes) {
478 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes);
503 int w, int h, Object d, int sizeBytes, in
502 rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
505 nAllocationData2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
537 rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
540 nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
554 rsnAllocationRead1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
556 nAllocationRead1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
572 rsnAllocationRead2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument
575 nAllocationRead2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument
[all...]

Completed in 6365 milliseconds