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

123

/frameworks/base/services/core/jni/BroadcastRadio/
H A DJavaRef.h32 JavaRef<T> make_javaref(JNIEnv *env, T ref) { argument
33 return JavaRef<T>(ref, [env](T ref) {
34 if (env && ref) {
35 env->DeleteLocalRef(ref);
/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.cpp143 Maybe<Reference> ref = ResourceUtils::ParseStyleParentReference("@android:style/foo", &err_str); local
144 ASSERT_TRUE(ref);
145 EXPECT_THAT(ref.value().name, Eq(make_value(kAndroidStyleFooName)));
147 ref = ResourceUtils::ParseStyleParentReference("@style/foo", &err_str);
148 ASSERT_TRUE(ref);
149 EXPECT_THAT(ref.value().name, Eq(make_value(kStyleFooName)));
151 ref = ResourceUtils::ParseStyleParentReference("?android:style/foo", &err_str);
152 ASSERT_TRUE(ref);
153 EXPECT_THAT(ref.value().name, Eq(make_value(kAndroidStyleFooName)));
155 ref
[all...]
H A DStringPool_test.cpp39 StringPool::Ref ref = pool.MakeRef("wut"); local
40 EXPECT_THAT(*ref, Eq("wut"));
163 StringPool::StyleRef ref = pool.MakeRef(StyleString{{"android"}, {Span{{"b"}, 2, 6}}}); local
164 EXPECT_THAT(ref.index(), Eq(0u));
165 EXPECT_THAT(ref->value, Eq("android"));
166 ASSERT_THAT(ref->spans.size(), Eq(1u));
168 const StringPool::Span& span = ref->spans.front();
177 StringPool::Ref ref = pool.MakeRef("android"); local
182 EXPECT_THAT(ref.index(), Ne(style_ref.index()));
/frameworks/base/tools/aapt2/link/
H A DReferenceLinker_test.cpp59 Reference* ref = test::GetValue<Reference>(table.get(), "com.app.test:string/foo"); local
60 ASSERT_THAT(ref, NotNull());
61 ASSERT_TRUE(ref->id);
62 EXPECT_EQ(ResourceId(0x7f020001), ref->id.value());
64 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/bar");
65 ASSERT_THAT(ref, NotNull());
66 ASSERT_TRUE(ref->id);
67 EXPECT_EQ(ResourceId(0x7f020002), ref->id.value());
69 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/baz");
70 ASSERT_THAT(ref, NotNul
[all...]
H A DReferenceLinker.cpp58 void Visit(Reference* ref) override {
59 if (!ReferenceLinker::LinkReference(callsite_, ref, context_, symbols_, package_decls_)) {
177 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, argument
179 if (symbol.is_public || ref.private_reference) {
183 if (ref.name) {
184 const ResourceName& name = ref.name.value();
195 if (ref.id && symbol.id) {
196 return ref.id.value().package_id() == symbol.id.value().package_id();
270 void ReferenceLinker::WriteResourceName(const Reference& ref, const CallSite& callsite, argument
273 if (!ref
293 WriteAttributeName(const Reference& ref, const CallSite& callsite, const xml::IPackageDeclStack* decls, DiagMessage* out_msg) argument
[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...]
H A Dsad.cpp47 Int SAD_Macroblock_C(UChar *ref,UChar *blk,Int dmin,Int lx,void *extra_info)
48 Int SAD_MB_HTFM_Collect(UChar *ref,UChar *blk,Int dmin,Int lx,void *extra_info)
49 Int SAD_MB_HTFM(UChar *ref,UChar *blk,Int dmin,Int lx,void *extra_info)
50 Int SAD_Block_C(UChar *ref,UChar *blk,Int dmin,Int lx,void *extra_info)
51 Int SAD_Blk_PADDING(UChar *ref,UChar *cur,Int dmin,Int lx,void *extra_info)
52 Int SAD_MB_PADDING(UChar *ref,UChar *cur,Int dmin,Int lx,void *extra_info)
53 Int SAD_MB_PAD1(UChar *ref,UChar *cur,Int dmin,Int lx,Int *rep);
54 Int SAD_MB_PADDING_HTFM_Collect(UChar *ref,UChar *cur,Int dmin,Int lx,void *extra_info)
55 Int SAD_MB_PADDING_HTFM(UChar *ref,UChar *cur,Int dmin,Int lx,void *vptr)
64 Int SAD_MB_PAD1(UChar *ref, UCha
78 SAD_Macroblock_C(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info) argument
106 SAD_MB_HTFM_Collect(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info) argument
208 SAD_MB_HTFM(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info) argument
314 SAD_Block_C(UChar *ref, UChar *blk, Int dmin, Int lx, void *) argument
[all...]
H A Dsad_halfpel.cpp19 Int HalfPel1_SAD_MB(UChar *ref,UChar *blk,Int dmin,Int width,Int ih,Int jh)
20 Int HalfPel2_SAD_MB(UChar *ref,UChar *blk,Int dmin,Int width)
21 Int HalfPel1_SAD_Blk(UChar *ref,UChar *blk,Int dmin,Int width,Int ih,Int jh)
22 Int HalfPel2_SAD_Blk(UChar *ref,UChar *blk,Int dmin,Int width)
24 Int SAD_MB_HalfPel_C(UChar *ref,UChar *blk,Int dmin,Int width,Int rx,Int xh,Int yh,void *extra_info)
25 Int SAD_MB_HP_HTFM_Collect(UChar *ref,UChar *blk,Int dmin,Int width,Int rx,Int xh,Int yh,void *extra_info)
26 Int SAD_MB_HP_HTFM(UChar *ref,UChar *blk,Int dmin,Int width,Int rx,Int xh,Int yh,void *extra_info)
27 Int SAD_Blk_HalfPel_C(UChar *ref,UChar *blk,Int dmin,Int width,Int rx,Int xh,Int yh,void *extra_info)
59 Purpose: Compute SAD 16x16 between blk and ref in halfpel
64 Int HalfPel1_SAD_MB(UChar *ref, UCha argument
96 HalfPel2_SAD_MB(UChar *ref, UChar *blk, Int dmin, Int width) argument
138 HalfPel1_SAD_Blk(UChar *ref, UChar *blk, Int dmin, Int width, Int ih, Int jh) argument
170 HalfPel2_SAD_Blk(UChar *ref, UChar *blk, Int dmin, Int width) argument
221 SAD_MB_HalfPel_Cxhyh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
262 SAD_MB_HalfPel_Cyh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
298 SAD_MB_HalfPel_Cxh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
335 SAD_MB_HP_HTFM_Collectxhyh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
414 SAD_MB_HP_HTFM_Collectyh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
492 SAD_MB_HP_HTFM_Collectxh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
569 SAD_MB_HP_HTFMxhyh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
637 SAD_MB_HP_HTFMyh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
703 SAD_MB_HP_HTFMxh(UChar *ref, UChar *blk, Int dmin_rx, void *extra_info) argument
780 SAD_Blk_HalfPel_C(UChar *ref, UChar *blk, Int dmin, Int width, Int rx, Int xh, Int yh, void *extra_info) argument
[all...]
H A Dsad_inline.h82 __inline int32 simd_sad_mb(UChar *ref, UChar *blk, Int dmin, Int lx) argument
88 x8 = (uintptr_t)ref & 0x3;
101 ref -= lx;
108 x10 = *((uint32*)(ref += lx));
109 x11 = *((uint32*)(ref + 4));
127 x10 = *((uint32*)(ref + 8));
128 x11 = *((uint32*)(ref + 12));
163 return sad_mb_offset3(ref, blk, lx, dmin);
167 return sad_mb_offset2(ref, blk, lx, dmin);
171 return sad_mb_offset1(ref, bl
257 simd_sad_mb(UChar *ref, UChar *blk, Int dmin, Int lx) argument
266 MOVS x8, ref, lsl #31 ; local
446 simd_sad_mb(UChar *ref, UChar *blk, Int dmin, Int lx) argument
[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", i, mCache->keyAt(i),
38 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...]
H A DDisplayList.h110 void ref(VirtualLightRefBase* prop) { referenceHolders.push_back(prop); } function in class:android::uirenderer::DisplayList
/frameworks/native/services/surfaceflinger/tests/fakehwc/
H A DFakeComposerUtils.cpp70 bool valuesMatch(::testing::AssertionResult& message, const T& ref, const T& val, argument
72 if (ref != val) {
73 message = message << "Expected " << name << ":" << ref << ", got:" << val << ".";
79 ::testing::AssertionResult rectsAreSame(const RenderState& ref, const RenderState& val) { argument
88 passes &= valuesMatch(message, ref.mDisplayFrame, val.mDisplayFrame, "display frame");
89 passes &= valuesMatch(message, ref.mPlaneAlpha, val.mPlaneAlpha, "alpha");
90 passes &= valuesMatch(message, ref.mSwapCount, val.mSwapCount, "swap count");
91 passes &= valuesMatch(message, ref.mSourceCrop, val.mSourceCrop, "source crop");
99 ::testing::AssertionResult framesAreSame(const std::vector<RenderState>& ref, argument
103 if (ref
[all...]
/frameworks/base/tools/aapt2/compile/
H A DInlineXmlFormatParser.cpp59 Maybe<Reference> ref = ResourceUtils::ParseXmlAttributeName(attr->value); variable
60 if (!ref) {
67 const ResourceName& name = ref.value().name.value();
77 const bool private_namespace = pkg.private_namespace || ref.value().private_reference;
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.h100 const Symbol* FindByReference(const Reference& ref);
160 const Reference& ref) {
161 if (ref.name) {
162 return FindByName(ref.name.value());
163 } else if (ref.id) {
164 return FindById(ref.id.value());
202 const Reference& ref) override;
159 FindByReference( const Reference& ref) argument
H A DSymbolTable.cpp138 const SymbolTable::Symbol* SymbolTable::FindByReference(const Reference& ref) { argument
147 if (ref.id) {
148 symbol = FindById(ref.id.value());
151 if (ref.name && !symbol) {
152 symbol = FindByName(ref.name.value());
388 const Reference& ref) {
390 if (ref.id) {
391 return FindById(ref.id.value());
392 } else if (ref.name) {
393 return FindByName(ref
387 FindByReference( const Reference& ref) argument
[all...]
/frameworks/base/tools/aapt2/test/
H A DCommon.h43 ResourceNameRef ref; local
44 CHECK(ResourceUtils::ParseResourceName(str, &ref)) << "invalid resource name: " << str;
45 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...]
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
H A DSGEMMTest.java81 private boolean testWithTolerance(float[] out, float[] ref) { argument
83 float l2NormRef = calcL2Norm(ref);
87 float err = out[i] - ref[i];
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp298 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) {
304 ref->buffer = buf;
305 ref->begin = 0;
306 ref->length = size;
307 ref->next = NULL;
309 oggpack_readinit(bits, ref);
378 ogg_reference ref; local
381 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits);
462 ogg_reference ref; local
463 ref
296 makeBitReader( const void *data, size_t size, ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) argument
[all...]
/frameworks/base/core/java/android/security/net/config/
H A DNetworkSecurityConfig.java59 // multiple entry refs by returning the certificate from the first entry ref.
83 for (CertificatesEntryRef ref : mCertificatesEntryRefs) {
84 Set<TrustAnchor> anchors = ref.getTrustAnchors();
122 for (CertificatesEntryRef ref : mCertificatesEntryRefs) {
123 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert);
133 for (CertificatesEntryRef ref : mCertificatesEntryRefs) {
134 TrustAnchor anchor = ref.findByIssuerAndSignature(cert);
145 for (CertificatesEntryRef ref : mCertificatesEntryRefs) {
146 certs.addAll(ref.findAllCertificatesByIssuerAndSignature(cert));
154 for (CertificatesEntryRef ref
282 addCertificatesEntryRef(CertificatesEntryRef ref) argument
[all...]
/frameworks/base/tools/aapt2/format/binary/
H A DXmlFlattener.cpp71 StringPool::Ref ref; member in struct:aapt::__anon1177::XmlFlattenerVisitor::StringFlattenDest
185 void AddString(const StringPool::Ref& ref, android::ResStringPool_ref* dest) { argument
186 string_refs.push_back(StringFlattenDest{ref, dest});
335 ref_entry.dest->index = util::HostToDevice32(ref_entry.ref.index());
/frameworks/base/tools/aapt2/java/
H A DProguardRules.cpp66 auto ref = ValueCast<Reference>(attr.compiled_value.get()); variable
67 if (ref) {
68 AddReference(node->line_number, ref);
86 void AddReference(size_t line_number, Reference* ref) { argument
87 if (ref && ref->name) {
88 ResourceName ref_name = ref->name.value();

Completed in 8348 milliseconds

123