Lines Matching refs:rs
11 void testAllocationCreation(const sp<RS>& rs, const sp<const Element>& e, uint32_t nDims) {
12 Type::Builder tb(rs, e);
20 sp<Allocation> alloc = Allocation::createTyped(rs, t);
25 sp<RS> rs = new RS();
27 if (!rs->init("/system/bin")) {
34 sp<const Element> half = Element::F16(rs);
35 sp<const Element> half2 = Element::F16_2(rs);
36 sp<const Element> half3 = Element::F16_3(rs);
37 sp<const Element> half4 = Element::F16_4(rs);
40 testAllocationCreation(rs, half, nDims);
41 testAllocationCreation(rs, half2, nDims);
42 testAllocationCreation(rs, half3, nDims);
43 testAllocationCreation(rs, half4, nDims);