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

1234

/frameworks/base/tools/aapt2/link/
H A DReferenceLinker_test.cpp50 Reference* ref = test::getValue<Reference>(table.get(), u"@com.app.test:string/foo"); local
51 ASSERT_NE(ref, nullptr);
52 AAPT_ASSERT_TRUE(ref->id);
53 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020001));
55 ref = test::getValue<Reference>(table.get(), u"@com.app.test:string/bar");
56 ASSERT_NE(ref, nullptr);
57 AAPT_ASSERT_TRUE(ref->id);
58 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020002));
60 ref = test::getValue<Reference>(table.get(), u"@com.app.test:string/baz");
61 ASSERT_NE(ref, nullpt
[all...]
H A DXmlReferenceLinker_test.cpp103 Reference* ref = valueCast<Reference>(xmlAttr->compiledValue.get()); local
104 ASSERT_NE(ref, nullptr);
105 AAPT_ASSERT_TRUE(ref->name);
106 EXPECT_EQ(ref->name.value(), test::parseNameOrDie(u"@color/green")); // Make sure the name
108 AAPT_ASSERT_TRUE(ref->id);
109 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020000));
187 Reference* ref = valueCast<Reference>(xmlAttr->compiledValue.get()); local
188 ASSERT_NE(ref, nullptr);
189 AAPT_ASSERT_TRUE(ref->name);
190 AAPT_ASSERT_TRUE(ref
215 Reference* ref = valueCast<Reference>(xmlAttr->compiledValue.get()); local
254 Reference* ref = valueCast<Reference>(xmlAttr->compiledValue.get()); local
[all...]
/frameworks/base/tools/aapt2/
H A DValueVisitor_test.cpp32 void visit(Reference* ref) override {
33 visited = ref;
43 void visit(Reference* ref) override {
44 visitedRefs.push_back(ref);
54 Reference ref(ResourceName{u"android", ResourceType::kAttr, u"foo"});
56 ref.accept(&visitor);
58 EXPECT_EQ(visitor.visited, &ref);
77 std::unique_ptr<Reference> ref = test::buildReference(u"@android:color/white"); local
78 EXPECT_NE(valueCast<Reference>(ref.get()), nullptr);
H A DResourceUtils_test.cpp157 Maybe<Reference> ref = ResourceUtils::parseStyleParentReference(u"@android:style/foo", &errStr); local
158 AAPT_ASSERT_TRUE(ref);
159 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooName);
161 ref = ResourceUtils::parseStyleParentReference(u"@style/foo", &errStr);
162 AAPT_ASSERT_TRUE(ref);
163 EXPECT_EQ(ref.value().name.value(), kStyleFooName);
165 ref = ResourceUtils::parseStyleParentReference(u"?android:style/foo", &errStr);
166 AAPT_ASSERT_TRUE(ref);
167 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooName);
169 ref
[all...]
H A DStringPool_test.cpp28 StringPool::Ref ref = pool.makeRef(u"wut"); local
29 EXPECT_EQ(*ref, u"wut");
35 StringPool::Ref ref = pool.makeRef(u"wut"); local
38 EXPECT_EQ(*ref, u"wut");
45 StringPool::Ref ref = pool.makeRef(u"wut"); local
48 EXPECT_EQ(*ref, u"wut");
56 StringPool::Ref ref = pool.makeRef(u"z"); local
60 EXPECT_EQ(0u, ref.getIndex());
70 StringPool::Ref ref = pool.makeRef(u"wut"); local
71 EXPECT_EQ(*ref,
90 StringPool::Ref ref = pool.makeRef(u"z"); local
121 StringPool::Ref ref = pool.makeRef(u"z"); local
148 StringPool::StyleRef ref = pool.makeRef(str); local
163 StringPool::Ref ref = pool.makeRef(u"android"); local
[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/avc/enc/src/
H A Dsad_mb_offset.h24 __inline int32 sad_mb_offset3(uint8 *ref, uint8 *blk, int lx, int dmin) argument
26 __inline int32 sad_mb_offset2(uint8 *ref, uint8 *blk, int lx, int dmin)
28 __inline int32 sad_mb_offset1(uint8 *ref, uint8 *blk, int lx, int dmin)
37 ref -= NUMBER; /* bic ref, ref, #3 */
38 ref -= lx;
50 x10 = *((uint32*)(ref += lx)); /* D C B A */
51 x11 = *((uint32*)(ref + 4)); /* H G F E */
52 x12 = *((uint32*)(ref
127 sad_mb_offset3(uint8 *ref, uint8 *blk, int lx, int dmin, int32 x8) argument
148 BIC ref, ref, #3; local
219 sad_mb_offset3(uint8 *ref, uint8 *blk, int lx, int dmin) argument
[all...]
H A Dsad.cpp45 int AVCSAD_Macroblock_C(uint8 *ref,uint8 *blk,int dmin,int lx,void *extra_info)
46 int AVCSAD_MB_HTFM_Collect(uint8 *ref,uint8 *blk,int dmin,int lx,void *extra_info)
47 int AVCSAD_MB_HTFM(uint8 *ref,uint8 *blk,int dmin,int lx,void *extra_info)
54 Purpose: Compute SAD 16x16 between blk and ref.
62 int AVCSAD_Macroblock_C(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info) argument
72 x10 = simd_sad_mb(ref, blk, dmin, lx);
90 int AVCAVCSAD_MB_HTFM_Collect(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info) argument
112 p1 = ref + offsetRef[i];
195 int AVCSAD_MB_HTFM(uint8 *ref, uint8 *blk, int dmin_lx, void *extra_info) argument
215 p1 = ref
[all...]
H A Dsad_inline.h79 __inline int32 simd_sad_mb(uint8 *ref, uint8 *blk, int dmin, int lx) argument
85 x8 = (intptr_t)ref & 0x3;
98 ref -= lx;
105 x10 = *((uint32*)(ref += lx));
106 x11 = *((uint32*)(ref + 4));
124 x10 = *((uint32*)(ref + 8));
125 x11 = *((uint32*)(ref + 12));
160 return sad_mb_offset3(ref, blk, lx, dmin);
164 return sad_mb_offset2(ref, blk, lx, dmin);
168 return sad_mb_offset1(ref, bl
254 simd_sad_mb(uint8 *ref, uint8 *blk, int dmin, int lx) argument
263 MOVS x8, ref, lsl #31 ; local
428 simd_sad_mb(uint8 *ref, uint8 *blk, int dmin, int lx) argument
[all...]
/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/core/java/android/net/
H A DConnectivityMetricsEvent.java90 public Reference(long ref) { argument
91 this.mValue = ref;
/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/base/tools/aapt2/process/
H A DSymbolTable.h95 const Symbol* findByReference(const Reference& ref);
122 virtual std::unique_ptr<SymbolTable::Symbol> findByReference(const Reference& ref) { argument
123 if (ref.name) {
124 return findByName(ref.name.value());
125 } else if (ref.id) {
126 return findById(ref.id.value());
162 std::unique_ptr<SymbolTable::Symbol> findByReference(const Reference& ref) override;
/frameworks/base/tools/aapt2/test/
H A DCommon.h66 ResourceNameRef ref; local
67 bool result = ResourceUtils::tryParseReference(str, &ref);
69 return ref.toResourceName();

Completed in 347 milliseconds

1234