Lines Matching refs:usage
50 Allocation::Allocation(void *id, RenderScript *rs, sp<const Type> t, uint32_t usage) :
53 if ((usage & ~(RS_ALLOCATION_USAGE_SCRIPT |
60 ALOGE("Unknown usage specified.");
63 if ((usage & RS_ALLOCATION_USAGE_IO_INPUT) != 0) {
65 if ((usage & ~(RS_ALLOCATION_USAGE_IO_INPUT |
68 ALOGE("Invalid usage combination.");
73 mUsage = usage;
150 ALOGE("Source must be exactly one usage type.");
157 ALOGE("Can only send buffer if IO_OUTPUT usage specified.");
164 ALOGE("Can only send buffer if IO_OUTPUT usage specified.");
382 RsAllocationMipmapControl mips, uint32_t usage) {
383 void *id = rsAllocationCreateTyped(rs->mContext, type->getID(), mips, usage, 0);
388 return new Allocation(id, rs, type, usage);
392 RsAllocationMipmapControl mips, uint32_t usage, void *pointer) {
393 void *id = rsAllocationCreateTyped(rs->mContext, type->getID(), mips, usage, (uint32_t)pointer);
397 return new Allocation(id, rs, type, usage);
401 uint32_t usage) {
402 return createTyped(rs, type, RS_ALLOCATION_MIPMAP_NONE, usage);
406 size_t count, uint32_t usage) {
413 RS_ALLOCATION_MIPMAP_NONE, usage, 0);
417 return new Allocation(id, rs, t, usage);
446 int usage) {
450 Allocation alloc = createFromBitmap(rs, b, mips, usage);
465 int usage) {
470 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), allocArray.length, usage);