Lines Matching defs:Allocation

25 #include "Allocation.h"
30 void * Allocation::getIDSafe() const {
37 void Allocation::updateCacheInfo(sp<const Type> t) {
50 Allocation::Allocation(void *id, RenderScript *rs, sp<const Type> t, uint32_t usage) :
80 void Allocation::validateIsInt32() {
88 void Allocation::validateIsInt16() {
96 void Allocation::validateIsInt8() {
104 void Allocation::validateIsFloat32() {
112 void Allocation::validateIsObject() {
129 void Allocation::updateFromNative() {
142 void Allocation::syncAll(RsAllocationUsageType srcLocation) {
155 void Allocation::ioSendOutput() {
162 void Allocation::ioGetInput() {
187 void Allocation::setFromFieldPacker(int xoff, FieldPacker fp) {
223 void Allocation::generateMipmaps() {
227 void Allocation::copy1DRangeFromUnchecked(uint32_t off, size_t count, const void *data,
246 void Allocation::copy1DRangeFrom(uint32_t off, size_t count, const int32_t *d, size_t dataLen) {
251 void Allocation::copy1DRangeFrom(uint32_t off, size_t count, const int16_t *d, size_t dataLen) {
256 void Allocation::copy1DRangeFrom(uint32_t off, size_t count, const int8_t *d, size_t dataLen) {
261 void Allocation::copy1DRangeFrom(uint32_t off, size_t count, const float *d, size_t dataLen) {
266 void Allocation::copy1DRangeFrom(uint32_t off, size_t count, const Allocation *data,
275 void Allocation::validate2DRange(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h) {
285 void Allocation::copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
292 void Allocation::copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
299 void Allocation::copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
306 void Allocation::copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
313 void Allocation::copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
314 const Allocation *data, size_t dataLen,
381 android::sp<Allocation> Allocation::createTyped(RenderScript *rs, sp<const Type> type,
385 ALOGE("Allocation creation failed.");
388 return new Allocation(id, rs, type, usage);
391 android::sp<Allocation> Allocation::createTyped(RenderScript *rs, sp<const Type> type,
395 ALOGE("Allocation creation failed.");
397 return new Allocation(id, rs, type, usage);
400 android::sp<Allocation> Allocation::createTyped(RenderScript *rs, sp<const Type> type,
405 android::sp<Allocation> Allocation::createSized(RenderScript *rs, sp<const Element> e,
415 ALOGE("Allocation creation failed.");
417 return new Allocation(id, rs, t, usage);
424 throw new RSInvalidStateException("Allocation is not a surface texture.");
434 throw new RSInvalidStateException("Allocation is not USAGE_IO_OUTPUT.");
442 static Allocation createFromBitmapResource(RenderScript rs,
450 Allocation alloc = createFromBitmap(rs, b, mips, usage);
455 static Allocation createFromBitmapResource(RenderScript rs,
463 static Allocation createFromString(RenderScript rs,
470 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), allocArray.length, usage);