Home
last modified time | relevance | path

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

/frameworks/base/libs/rs/
DrsAllocation.cpp74 uint32_t count, const void *data, uint32_t sizeBytes) { in data() argument
77 if ((count * eSize) != sizeBytes) { in data()
79 (count * eSize), sizeBytes); in data()
84 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data()
89 uint32_t w, uint32_t h, const void *data, uint32_t sizeBytes) { in data() argument
95 if ((lineSize * h) != sizeBytes) { in data()
96 LOGE("Allocation size mismatch, expected %i, got %i", (lineSize * h), sizeBytes); in data()
101 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); in data()
107 uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes) { in data() argument
111 uint32_t cIdx, uint32_t sizeBytes) { in elementData() argument
[all …]
DrsAllocation.h83 …a(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, uint32_t sizeBytes);
85 uint32_t w, uint32_t h, const void *data, uint32_t sizeBytes);
87 uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes);
90 const void *data, uint32_t elementOff, uint32_t sizeBytes);
92 const void *data, uint32_t elementOff, uint32_t sizeBytes);
Drs_hal.h120 const void *data, uint32_t sizeBytes);
124 const void *data, uint32_t sizeBytes);
128 uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes);
152 const void *data, uint32_t elementOff, uint32_t sizeBytes);
154 const void *data, uint32_t elementOff, uint32_t sizeBytes);
/frameworks/base/graphics/java/android/renderscript/
DRenderScript.java280 …ive void rsnAllocationData1D(int con, int id, int off, int mip, int count, int[] d, int sizeBytes); in rsnAllocationData1D() argument
281 … synchronized void nAllocationData1D(int id, int off, int mip, int count, int[] d, int sizeBytes) { in nAllocationData1D() argument
283 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes); in nAllocationData1D()
285 …e void rsnAllocationData1D(int con, int id, int off, int mip, int count, short[] d, int sizeBytes); in rsnAllocationData1D() argument
286 …ynchronized void nAllocationData1D(int id, int off, int mip, int count, short[] d, int sizeBytes) { in nAllocationData1D() argument
288 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes); in nAllocationData1D()
290 …ve void rsnAllocationData1D(int con, int id, int off, int mip, int count, byte[] d, int sizeBytes); in rsnAllocationData1D() argument
291 …synchronized void nAllocationData1D(int id, int off, int mip, int count, byte[] d, int sizeBytes) { in nAllocationData1D() argument
293 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes); in nAllocationData1D()
295 …e void rsnAllocationData1D(int con, int id, int off, int mip, int count, float[] d, int sizeBytes); in rsnAllocationData1D() argument
[all …]
/frameworks/base/libs/rs/driver/
DrsdAllocation.h74 const void *data, uint32_t sizeBytes);
79 const void *data, uint32_t sizeBytes);
84 uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes);
110 const void *data, uint32_t elementOff, uint32_t sizeBytes);
114 const void *data, uint32_t elementOff, uint32_t sizeBytes);
DrsdAllocation.cpp375 const void *data, uint32_t sizeBytes) { in rsdAllocationData1D() argument
394 uint32_t w, uint32_t h, const void *data, uint32_t sizeBytes) { in rsdAllocationData2D() argument
424 uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes) { in rsdAllocationData3D() argument
497 const void *data, uint32_t cIdx, uint32_t sizeBytes) { in rsdAllocationElementData1D() argument
512 memcpy(ptr, data, sizeBytes); in rsdAllocationElementData1D()
518 const void *data, uint32_t cIdx, uint32_t sizeBytes) { in rsdAllocationElementData2D() argument
533 memcpy(ptr, data, sizeBytes); in rsdAllocationElementData2D()
/frameworks/base/graphics/jni/
Dandroid_renderscript_RenderScript.cpp518 …_this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) in nAllocationData1D_i() argument
521 …(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes); in nAllocationData1D_i()
523 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_i()
528 …his, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) in nAllocationData1D_s() argument
531 …(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes); in nAllocationData1D_s()
533 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_s()
538 …this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) in nAllocationData1D_b() argument
541 …(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes); in nAllocationData1D_b()
543 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); in nAllocationData1D_b()
548 …his, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) in nAllocationData1D_f() argument
[all …]
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java564 long sizeBytes = apkFile.length(); in calculateContainerSize() local
565 if (sizeBytes == 0 && !apkFile.exists()) { in calculateContainerSize()
571 sizeBytes += NativeLibraryHelper.sumNativeBinariesLI(apkFile); in calculateContainerSize()
573 int sizeMb = (int) (sizeBytes >> 20); in calculateContainerSize()
574 if ((sizeBytes - (sizeMb * 1024 * 1024)) > 0) { in calculateContainerSize()
/frameworks/base/libs/utils/
DResourceTypes.cpp221 static bool assertIdmapHeader(const uint32_t* map, size_t sizeBytes) in assertIdmapHeader() argument
223 if (sizeBytes < ResTable::IDMAP_HEADER_SIZE_BYTES) { in assertIdmapHeader()
224 LOGW("idmap assertion failed: size=%d bytes\n", sizeBytes); in assertIdmapHeader()
235 static status_t idmapLookup(const uint32_t* map, size_t sizeBytes, uint32_t key, uint32_t* outValue) in idmapLookup() argument
238 if (!assertIdmapHeader(map, sizeBytes)) { in idmapLookup()
243 const size_t size = (sizeBytes - ResTable::IDMAP_HEADER_SIZE_BYTES) / sizeof(uint32_t); in idmapLookup()
4433 bool ResTable::getIdmapInfo(const void* idmap, size_t sizeBytes, in getIdmapInfo() argument
4437 if (!assertIdmapHeader(map, sizeBytes)) { in getIdmapInfo()