Searched defs:ref (Results 1 - 25 of 84) sorted by relevance

1234

/frameworks/base/tools/aapt2/
H A DValueVisitor_test.cpp32 void Visit(Reference* ref) override { visited = ref; }
41 void Visit(Reference* ref) override { visited_refs.push_back(ref); }
50 Reference ref(ResourceName{"android", ResourceType::kAttr, "foo"});
52 ref.Accept(&visitor);
54 EXPECT_EQ(visitor.visited, &ref);
75 std::unique_ptr<Reference> ref = test::BuildReference("android:color/white"); local
76 EXPECT_NE(ValueCast<Reference>(ref.get()), nullptr);
H A DResourceUtils_test.cpp151 Maybe<Reference> ref = local
153 AAPT_ASSERT_TRUE(ref);
154 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooName);
156 ref = ResourceUtils::ParseStyleParentReference("@style/foo", &err_str);
157 AAPT_ASSERT_TRUE(ref);
158 EXPECT_EQ(ref.value().name.value(), kStyleFooName);
160 ref =
162 AAPT_ASSERT_TRUE(ref);
163 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooName);
165 ref
[all...]
H A DStringPool_test.cpp34 StringPool::Ref ref = pool.MakeRef("wut"); local
35 EXPECT_EQ(*ref, "wut");
41 StringPool::Ref ref = pool.MakeRef("wut"); local
44 EXPECT_EQ(*ref, "wut");
51 StringPool::Ref ref = pool.MakeRef("wut"); local
54 EXPECT_EQ(*ref, "wut");
62 StringPool::Ref ref = pool.MakeRef("z"); local
66 EXPECT_EQ(0u, ref.index());
76 StringPool::Ref ref = pool.MakeRef("wut"); local
77 EXPECT_EQ(*ref, "wu
96 StringPool::Ref ref = pool.MakeRef("z"); local
126 StringPool::Ref ref = pool.MakeRef("z"); local
148 StringPool::StyleRef ref = pool.MakeRef(str); local
163 StringPool::Ref ref = pool.MakeRef("android"); local
[all...]
/frameworks/base/tools/aapt2/link/
H A DReferenceLinker_test.cpp56 Reference* ref = test::GetValue<Reference>(table.get(), "com.app.test:string/foo"); local
57 ASSERT_NE(nullptr, ref);
58 AAPT_ASSERT_TRUE(ref->id);
59 EXPECT_EQ(ResourceId(0x7f020001), ref->id.value());
61 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/bar");
62 ASSERT_NE(nullptr, ref);
63 AAPT_ASSERT_TRUE(ref->id);
64 EXPECT_EQ(ResourceId(0x7f020002), ref->id.value());
66 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/baz");
67 ASSERT_NE(nullptr, ref);
[all...]
/frameworks/compile/mclinker/unittests/
H A DFragmentRefTest.cpp52 FragmentRef* ref = FragmentRef::Create(*frag, 0x0); local
58 ASSERT_EQ(frag, ref->frag());
60 static_cast<RegionFragment*>(ref->frag())->getRegion().data()[0]);
62 static_cast<RegionFragment*>(ref->frag())->getRegion().size());
63 // ASSERT_EQ('H', ref->deref()[0]);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dsad_mb_offset.h27 __inline int32 sad_mb_offset3(UChar *ref, UChar *blk, Int lx, Int dmin) argument
29 __inline int32 sad_mb_offset2(UChar *ref, UChar *blk, Int lx, Int dmin)
31 __inline int32 sad_mb_offset1(UChar *ref, UChar *blk, Int lx, Int dmin)
40 ref -= NUMBER; /* bic ref, ref, #3 */
41 ref -= lx;
53 x10 = *((uint32*)(ref += lx)); /* D C B A */
54 x11 = *((uint32*)(ref + 4)); /* H G F E */
55 x12 = *((uint32*)(ref
130 sad_mb_offset3(UChar *ref, UChar *blk, Int lx, Int dmin, int32 x8) argument
144 BIC ref, ref, #3; local
223 sad_mb_offset3(UChar *ref, UChar *blk, Int lx, Int dmin) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/
H A Dh264bsd_interpolate_mid_hor.s35 ref RN 0 ;// pointer to current position in reference image label
83 LDR x_3_1, [ref, #-8]
85 LDR x_7_5, [ref, #-4]
101 LDR x_3_1, [ref], #4
132 LDR x_7_5, [ref], #4
155 SMLABB ref, count, mult_20_01, ref ;// +width
156 SBC ref, ref, tmp3, LSR #16 ;// -(partWidth-1)-1
H A Dh264bsd_interpolate_hor_half.s33 ref RN 0 label
125 ADD ref,sp,#0x28 ;// ref = p1
134 ADD ref, ref, tmp2 ;// ref += y0*width+x0
135 ADD ref, ref, #8 ;// ref = ref
[all...]
H A Dh264bsd_interpolate_hor_quarter.s33 ref RN 0 label
127 ADD ref,sp,#0x28 ;// ref = p1
136 ADD ref, ref, tmp2 ;// ref += y0*width+x0
137 ADD ref, ref, #8 ;// ref = ref
[all...]
H A Dh264bsd_interpolate_ver_half.s33 ref RN 0 label
126 ADD ref,sp,#0x28 ;// ref = p1
135 ADD ref, ref, tmp6 ;// ref += y0*width+x0
150 LDR tmp1, [ref], width ;// |a4|a3|a2|a1|
151 LDR tmp2, [ref], width ;// |c4|c3|c2|c1|
152 LDR tmp3, [ref], width ;// |g4|g3|g2|g1|
153 LDR tmp4, [ref], widt
[all...]
H A Dh264bsd_interpolate_ver_quarter.s32 ref RN 0 label
125 ADD ref,sp,#0x28 ;// ref = p1
134 ADD ref, ref, tmp6 ;// ref += y0*width+x0
151 LDR tmp1, [ref], width ;// |a4|a3|a2|a1|
152 LDR tmp2, [ref], width ;// |c4|c3|c2|c1|
153 LDR tmp3, [ref], width ;// |g4|g3|g2|g1|
154 LDR tmp4, [ref], widt
[all...]
H A Dh264bsd_interpolate_chroma_hor.s34 ref RN 0 label
78 ;// u8 *ref, : 0xc4
121 LDR ref, [sp, #0xc4] ;// ref
124 MLA ref, height, width, ref ;// ref += width * height;
132 ADD ref, sp, #0x1c ;// ref = block
133 STR ref, [s
[all...]
H A Dh264bsd_interpolate_chroma_hor_ver.s35 ref RN 0 label
79 ;// u8 *ref, : 0xc4
126 LDR ref, [sp, #0xc4] ;// ref
129 MLA ref, height, width, ref ;// ref += width * height;
137 ADD ref, sp, #0x1c ;// ref = block
138 STR ref, [s
[all...]
H A Dh264bsd_interpolate_chroma_ver.s33 ref RN 0 label
77 ;// u8 *ref, : 0xc4
120 LDR ref, [sp, #0xc4] ;// ref
123 MLA ref, height, width, ref ;// ref += width * height;
131 ADD ref, sp, #0x1c ;// ref = block
132 STR ref, [s
[all...]
H A Dh264bsd_interpolate_hor_ver_quarter.s34 ref RN 0 label
134 ADD ref,sp,#0x28 ;// ref = p1
145 ADD ref, ref, tmp5 ;// ref += y0*width+x0
146 STR ref, [sp, #0x1e4] ;// store "ref" for vertical filtering
147 AND tmp6, tmp6, #2 ;// calculate ref for horizontal filter
150 MLA ref, tmp
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
H A Dh264bsdFillRow7.s26 ref RN 0 label
63 LDRB tmp1, [ref,#0]
85 ; LDR tmp2, [ref], #4
89 ; LDR tmp2, [ref], #4
93 ; LDR tmp2, [ref], #4
97 ; LDR tmp2, [ref], #4
101 ; LDR tmp2, [ref],#4
105 ; LDR tmp2, [ref],#4
109 ; LDR tmp2, [ref],#4
113 ; LDR tmp2, [ref],#
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
H A Dh264bsdFillRow7.S26 #define ref r0 define
44 void h264bsdFillRow7(const u8 * ref, u8 * fill, i32 left, i32 center,
54 LDRB tmp1, [ref,#0]
77 VLD1.8 {qTmp0, qTmp1}, [ref]!
83 VLD1.8 {dTmp0,dTmp1,dTmp2}, [ref]!
85 LDR tmp2, [ref], #4
90 VLD1.8 {dTmp0,dTmp1,dTmp2}, [ref]!
95 VLD1.8 {qTmp0}, [ref]!
97 LDR tmp2, [ref], #4
102 VLD1.8 {qTmp0}, [ref]!
[all...]
/frameworks/base/libs/hwui/
H A DResourceCache.cpp34 ResourceReference* ref = mCache->valueAt(i); local
35 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p",
38 i, ref->refCount, ref->destroyed, ref->resourceType);
71 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr; local
72 if (ref == nullptr || mCache->size() == 0) {
73 ref = new ResourceReference(resourceType);
74 mCache->add(resource, ref);
76 ref
90 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr; local
112 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr; local
134 deleteResourceReferenceLocked(const void* resource, ResourceReference* ref) argument
[all...]
/frameworks/native/libs/vr/libpdx_uds/
H A Dclient_channel_factory.cpp149 int ref = response.ret_code; local
150 if (ref < 0 || static_cast<size_t>(ref) > response.file_descriptors.size())
153 LocalHandle event_fd = std::move(response.file_descriptors[ref]);
/frameworks/base/tools/aapt2/compile/
H A DInlineXmlFormatParser.cpp66 Maybe<Reference> ref = ResourceUtils::ParseXmlAttributeName(attr->value); variable
67 if (!ref) {
74 const ResourceName& name = ref.value().name.value();
93 pkg.private_namespace || ref.value().private_reference;
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.h99 const Symbol* FindByReference(const Reference& ref);
159 const Reference& ref) {
160 if (ref.name) {
161 return FindByName(ref.name.value());
162 } else if (ref.id) {
163 return FindById(ref.id.value());
200 const Reference& ref) override;
158 FindByReference( const Reference& ref) argument
/frameworks/base/tools/aapt2/proto/
H A DProtoHelpers.cpp39 StringPool::Ref ref = src_pool->MakeRef(source.path); local
40 out_pb_source->set_path_idx(static_cast<uint32_t>(ref.index()));
/frameworks/base/tools/aapt2/test/
H A DCommon.h52 ResourceNameRef ref; local
53 CHECK(ResourceUtils::ParseResourceName(str, &ref)) << "invalid resource name";
54 return ref.ToResourceName();
/frameworks/rs/
H A DrsObjectBase.cpp89 ALOGV("ObjectBase %p incU ref %i, %i", this, mUserRefCount, mSysRefCount);
96 ALOGV("ObjectBase %p incS ref %i, %i", this, mUserRefCount, mSysRefCount);
107 bool ObjectBase::checkDelete(const ObjectBase *ref) { argument
108 if (!ref) {
114 // the ref counts. At this point we should be the only thread
116 if (ref->mUserRefCount || ref->mSysRefCount) {
121 ref->remove();
124 ref->preDestroy();
126 delete ref;
[all...]
H A DrsObjectBase.h107 ObjectBaseRef(const ObjectBaseRef &ref) { argument
108 mRef = ref.get();
114 ObjectBaseRef(T *ref) { // NOLINT, implicit argument
115 mRef = ref;
117 ref->incSysRef();
121 ObjectBaseRef & operator= (const ObjectBaseRef &ref) { argument
122 if (&ref != this) {
123 set(ref);
132 void set(T *ref) { argument
133 if (mRef != ref) {
142 set(const ObjectBaseRef &ref) argument
[all...]

Completed in 225 milliseconds

1234