Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 519) sorted by relevance

12345678910>>...21

/frameworks/av/media/module/codecs/m4v_h263/enc/src/
Dsad_mb_offset.h27 __inline int32 sad_mb_offset3(UChar *ref, UChar *blk, Int lx, Int dmin) in sad_mb_offset3() argument
29 __inline int32 sad_mb_offset2(UChar *ref, UChar *blk, Int lx, Int dmin) in sad_mb_offset3()
31 __inline int32 sad_mb_offset1(UChar *ref, UChar *blk, Int lx, Int dmin) in sad_mb_offset3()
40 ref -= NUMBER; /* bic ref, ref, #3 */ in sad_mb_offset3()
41 ref -= lx; in sad_mb_offset3()
53 x10 = *((uint32*)(ref += lx)); /* D C B A */ in sad_mb_offset3()
54 x11 = *((uint32*)(ref + 4)); /* H G F E */ in sad_mb_offset3()
55 x12 = *((uint32*)(ref + 8)); /* L K J I */ in sad_mb_offset3()
79 x10 = *((uint32*)(ref + 8)); /* D C B A */ in sad_mb_offset3()
80 x11 = *((uint32*)(ref + 12)); /* H G F E */ in sad_mb_offset3()
[all …]
Dsad_halfpel.cpp64 Int HalfPel1_SAD_MB(UChar *ref, UChar *blk, Int dmin, Int width, Int ih, Int jh) in HalfPel1_SAD_MB() argument
73 p1 = ref; in HalfPel1_SAD_MB()
74 if (ih) p2 = ref + 1; in HalfPel1_SAD_MB()
75 else p2 = ref + width; in HalfPel1_SAD_MB()
96 Int HalfPel2_SAD_MB(UChar *ref, UChar *blk, Int dmin, Int width) in HalfPel2_SAD_MB() argument
103 p1 = ref; in HalfPel2_SAD_MB()
104 p2 = ref + 1; in HalfPel2_SAD_MB()
105 p3 = ref + width; in HalfPel2_SAD_MB()
106 p4 = ref + width + 1; in HalfPel2_SAD_MB()
138 Int HalfPel1_SAD_Blk(UChar *ref, UChar *blk, Int dmin, Int width, Int ih, Int jh) in HalfPel1_SAD_Blk() argument
[all …]
Dsad_inline.h82 __inline int32 simd_sad_mb(UChar *ref, UChar *blk, Int dmin, Int lx) in simd_sad_mb() argument
88 x8 = (uintptr_t)ref & 0x3; in simd_sad_mb()
101 ref -= lx; in simd_sad_mb()
108 x10 = *((uint32*)(ref += lx)); in simd_sad_mb()
109 x11 = *((uint32*)(ref + 4)); in simd_sad_mb()
127 x10 = *((uint32*)(ref + 8)); in simd_sad_mb()
128 x11 = *((uint32*)(ref + 12)); in simd_sad_mb()
163 return sad_mb_offset3(ref, blk, lx, dmin); in simd_sad_mb()
167 return sad_mb_offset2(ref, blk, lx, dmin); in simd_sad_mb()
171 return sad_mb_offset1(ref, blk, lx, dmin); in simd_sad_mb()
[all …]
Dmp4enc_lib.h144 Int SAD_MB_HalfPel_Cxhyh(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info);
145 Int SAD_MB_HalfPel_Cyh(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info);
146 Int SAD_MB_HalfPel_Cxh(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info);
147 Int SAD_MB_HalfPel_MMX(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info);
148 Int SAD_MB_HalfPel_SSE(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info);
149 …Int SAD_Blk_HalfPel_C(UChar *ref, UChar *blk, Int dmin, Int lx, Int rx, Int xh, Int yh, void *extr…
150 Int SAD_Blk_HalfPel_MMX(UChar *ref, UChar *blk, Int dmin, Int lx, void *extra_info);
151 Int SAD_Blk_HalfPel_SSE(UChar *ref, UChar *blk, Int dmin, Int lx, void *extra_info);
152 Int SAD_Macroblock_C(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info);
153 Int SAD_Macroblock_MMX(UChar *ref, UChar *blk, Int dmin_lx, void *extra_info);
[all …]
/frameworks/rs/
DrsObjectBase.h107 ObjectBaseRef(const ObjectBaseRef &ref) { in ObjectBaseRef() argument
108 mRef = ref.get(); in ObjectBaseRef()
114 ObjectBaseRef(T *ref) { // NOLINT, implicit in ObjectBaseRef() argument
115 mRef = ref; in ObjectBaseRef()
117 ref->incSysRef(); in ObjectBaseRef()
121 ObjectBaseRef & operator= (const ObjectBaseRef &ref) {
122 if (&ref != this) {
123 set(ref);
132 void set(T *ref) { in set() argument
133 if (mRef != ref) { in set()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DTrackedGarbage.java23 import java.lang.ref.Reference;
24 import java.lang.ref.ReferenceQueue;
25 import java.lang.ref.WeakReference;
55 Reference<?> ref; in cleanUp() local
56 while ((ref = mRefQueue.poll()) != null) { in cleanUp()
57 mGarbage.remove(ref); in cleanUp()
91 for (LeakReference ref : mGarbage) { in dump()
92 acc.put(ref.clazz, acc.getOrDefault(ref.clazz, 0) + 1); in dump()
93 if (isOld(ref.createdUptimeMillis, now)) { in dump()
94 accOld.put(ref.clazz, accOld.getOrDefault(ref.clazz, 0) + 1); in dump()
[all …]
DWeakIdentityHashMap.java19 import java.lang.ref.Reference;
20 import java.lang.ref.ReferenceQueue;
21 import java.lang.ref.WeakReference;
36 Reference<?> ref; in cleanUp() local
37 while ((ref = mRefQueue.poll()) != null) { in cleanUp()
38 mMap.remove(ref); in cleanUp()
/frameworks/base/core/java/android/view/accessibility/
DWeakSparseArray.java21 import java.lang.ref.Reference;
22 import java.lang.ref.ReferenceQueue;
23 import java.lang.ref.WeakReference;
43 WeakReferenceWithId<E> ref = mSparseArray.get(key); in get() local
44 return ref != null ? ref.get() : null; in get()
48 for (Reference ref = mRefQueue.poll(); ref != null; ref = mRefQueue.poll()) { in removeUnreachableValues()
49 mSparseArray.remove(((WeakReferenceWithId) ref).mId); in removeUnreachableValues()
/frameworks/base/tools/aapt2/
DResourceUtils_test.cpp121 Reference* ref = ValueCast<Reference>(item.get()); in TEST() local
122 EXPECT_TRUE(ref->is_dynamic); in TEST()
123 EXPECT_EQ(ref->id.value().id, 0x01); in TEST()
158 std::optional<Reference> ref = in TEST() local
160 ASSERT_TRUE(ref); in TEST()
161 EXPECT_THAT(ref.value().name, Eq(kAndroidStyleFooName)); in TEST()
163 ref = ResourceUtils::ParseStyleParentReference("@style/foo", &err_str); in TEST()
164 ASSERT_TRUE(ref); in TEST()
165 EXPECT_THAT(ref.value().name, Eq(kStyleFooName)); in TEST()
167 ref = ResourceUtils::ParseStyleParentReference("?android:style/foo", &err_str); in TEST()
[all …]
DValueVisitor_test.cpp32 void Visit(Reference* ref) override { visited = ref; } in Visit()
41 void Visit(Reference* ref) override { visited_refs.push_back(ref); } in Visit()
50 Reference ref(ResourceName{"android", ResourceType::kAttr, "foo"}); in TEST() local
52 ref.Accept(&visitor); in TEST()
54 EXPECT_EQ(visitor.visited, &ref); in TEST()
75 std::unique_ptr<Reference> ref = test::BuildReference("android:color/white"); in TEST() local
76 EXPECT_NE(ValueCast<Reference>(ref.get()), nullptr); in TEST()
/frameworks/native/opengl/libs/EGL/
Degl_object.h59 egl_object_t* ref; variable
66 explicit LocalRef(egl_display_t const* display, T o) : ref(nullptr) { in LocalRef()
69 ref = native; in LocalRef()
72 inline N* get() { return static_cast<N*>(ref); } in get()
82 egl_object_t::LocalRef<N, T>::LocalRef(egl_object_t* rhs) : ref(rhs) { in LocalRef()
83 if (ref) { in LocalRef()
84 ref->incRef(); in LocalRef()
90 if (ref) { in ~LocalRef()
91 ref->destroy(); in ~LocalRef()
97 if (ref) { in acquire()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DRecursiveStringArrayResourceResolver.java92 final String ref; in resolve() local
94 ref = string.substring(IMPORT_PREFIX.length()); in resolve()
96 ref = null; in resolve()
99 if (ref == null) { in resolve()
101 } else if (!runningCache.contains(ref)) { in resolve()
102 final var next = resolveImport(runningCache, pkg, ref); in resolve()
127 String ref) { in resolveImport() argument
128 final var chunks = ref.split(SEPARATOR, 2); in resolveImport()
/frameworks/base/services/core/jni/BroadcastRadio/
DJavaRef.h32 JavaRef<T> make_javaref(JNIEnv *env, T ref) { in make_javaref() argument
33 return JavaRef<T>(ref, [env](T ref) { in make_javaref()
34 if (env && ref) { in make_javaref()
35 env->DeleteLocalRef(ref); in make_javaref()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java21 import java.lang.ref.Reference;
22 import java.lang.ref.ReferenceQueue;
23 import java.lang.ref.WeakReference;
33 Reference<?> ref = new WeakReference<>(o, q); in createCollectionWaiter() local
40 if (q.remove(5_000) == ref) { in createCollectionWaiter()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/
DAppSaturationControllerTest.java41 import java.lang.ref.WeakReference;
73 final WeakReference<ColorTransformController> ref = new WeakReference<>( in addColorTransformController_appliesExistingSaturation() local
79 .addColorTransformController(TEST_AFFECTED_PACKAGE_NAME, mUserId, ref); in addColorTransformController_appliesExistingSaturation()
86 final WeakReference<ColorTransformController> ref = new WeakReference<>( in setSaturationLevel_resetToDefault() local
89 .addColorTransformController(TEST_AFFECTED_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_resetToDefault()
108 final WeakReference<ColorTransformController> ref = new WeakReference<>( in setSaturationLevel_updateLevel() local
111 .addColorTransformController(TEST_AFFECTED_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_updateLevel()
135 final WeakReference<ColorTransformController> ref = new WeakReference<>( in setSaturationLevel_multipleCallers_appliesStrongest() local
138 .addColorTransformController(TEST_AFFECTED_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_multipleCallers_appliesStrongest()
157 final WeakReference<ColorTransformController> ref = new WeakReference<>( in setSaturationLevel_multipleCallers_removingOneDoesNotAffectTheOther() local
[all …]
/frameworks/base/core/java/android/security/net/config/
DNetworkSecurityConfig.java91 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in getTrustAnchors()
92 Set<TrustAnchor> anchors = ref.getTrustAnchors(); in getTrustAnchors()
135 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in findTrustAnchorBySubjectAndPublicKey()
136 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert); in findTrustAnchorBySubjectAndPublicKey()
146 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in findTrustAnchorByIssuerAndSignature()
147 TrustAnchor anchor = ref.findByIssuerAndSignature(cert); in findTrustAnchorByIssuerAndSignature()
158 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in findAllCertificatesByIssuerAndSignature()
159 certs.addAll(ref.findAllCertificatesByIssuerAndSignature(cert)); in findAllCertificatesByIssuerAndSignature()
167 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in handleTrustStorageUpdate()
168 ref.handleTrustStorageUpdate(); in handleTrustStorageUpdate()
[all …]
/frameworks/native/libs/ftl/
Dsmall_map_test.cpp49 std::string& ref = *opt; in TEST() local
50 EXPECT_TRUE(ref.empty()); in TEST()
51 ref = "xyz"; in TEST()
162 const auto ref = map.get('d').value_or(std::cref(d)); in TEST() local
163 EXPECT_EQ(ref.get(), 'D'); in TEST()
173 const auto ref = map.get('d').value_or(std::ref(d)); in TEST() local
174 ref.get() = 'D'; in TEST()
273 const auto ref = map.get(2).transform([](const String& s) { return s.str[0]; }); in TYPED_TEST() local
274 ASSERT_TRUE(ref); in TYPED_TEST()
277 const auto it = map.try_replace(2, 1u, static_cast<char>(std::tolower(*ref))); in TYPED_TEST()
[all …]
/frameworks/base/tests/BinderLeakTest/java/com/android/test/binder/
DBinderTest.java37 import java.lang.ref.PhantomReference;
38 import java.lang.ref.ReferenceQueue;
55 PhantomReference<FooHolder> ref = new PhantomReference<>(holder, refQueue); in testDeathRecipientLeaksOrNot() local
77 assertEquals(ref, refQueue.poll()); in testDeathRecipientLeaksOrNot()
102 assertNotEquals(ref, refQueue.poll()); in testDeathRecipientLeaksOrNot()
143 PhantomReference<Object> ref = new PhantomReference<>(obj, refQueue); in forceGc() local
145 while (refQueue.poll() != ref) { in forceGc()
DMyService.java24 import java.lang.ref.PhantomReference;
25 import java.lang.ref.ReferenceQueue;
57 PhantomReference<Object> ref = new PhantomReference<>(obj, refQueue); in forceGc() local
59 while (refQueue.poll() != ref) { in forceGc()
/frameworks/av/media/codec2/components/tests/
DC2SoftCodecTest.cpp84 ASSERT_EQ(validValueInfos[0].values.range.max.ref<uint32_t>(), 1920) in TEST_F()
86 ASSERT_EQ(validValueInfos[1].values.range.max.ref<uint32_t>(), 1920) in TEST_F()
88 ASSERT_EQ(validValueInfos[0].values.range.min.ref<uint32_t>(), 2) in TEST_F()
90 ASSERT_EQ(validValueInfos[1].values.range.min.ref<uint32_t>(), 2) in TEST_F()
92 ASSERT_EQ(validValueInfos[0].values.range.step.ref<uint32_t>(), 2) in TEST_F()
94 ASSERT_EQ(validValueInfos[1].values.range.step.ref<uint32_t>(), 2) in TEST_F()
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java94 Enumeration<? extends ZipEntry> ref = zip.entries(); in testCrcRange() local
95 while (ref.hasMoreElements()) { in testCrcRange()
96 ZipEntry refEntry = ref.nextElement(); in testCrcRange()
114 Enumeration<? extends ZipEntry> ref = zip.entries(); in testCrcValue() local
116 while (ref.hasMoreElements()) { in testCrcValue()
117 ZipEntry refEntry = ref.nextElement(); in testCrcValue()
144 Enumeration<? extends ZipEntry> ref = zip.entries(); in testInvalidCrcValue() local
146 while (ref.hasMoreElements()) { in testInvalidCrcValue()
147 ZipEntry refEntry = ref.nextElement(); in testInvalidCrcValue()
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp42 LoggingResourceName(const Reference& ref, const CallSite& callsite, in LoggingResourceName()
44 : ref_(ref), callsite_(callsite), decls_(decls) { in LoggingResourceName()
81 if (auto ref = ValueCast<Reference>(linked_item_ptr)) { in TransformDerived() local
82 return std::unique_ptr<Reference>(ref); in TransformDerived()
226 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible() argument
228 if (symbol.is_public || ref.private_reference) { in IsSymbolVisible()
232 if (ref.name) { in IsSymbolVisible()
233 const ResourceName& name = ref.name.value(); in IsSymbolVisible()
244 if (ref.id && symbol.id) { in IsSymbolVisible()
245 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible()
[all …]
/frameworks/base/packages/SettingsLib/Spa/gradle/
Dlibs.versions.toml26 dexmaker-mockito = { module = "com.linkedin.dexmaker:dexmaker-mockito", version.ref = "dexmaker-moc…
27 truth = { module = "com.google.truth:truth", version.ref = "truth" }
30 android-application = { id = "com.android.application", version.ref = "agp" }
31 android-library = { id = "com.android.library", version.ref = "agp" }
32 kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
/frameworks/compile/mclinker/unittests/
DFragmentRefTest.cpp52 FragmentRef* ref = FragmentRef::Create(*frag, 0x0); variable
58 ASSERT_EQ(frag, ref->frag());
60 static_cast<RegionFragment*>(ref->frag())->getRegion().data()[0]);
62 static_cast<RegionFragment*>(ref->frag())->getRegion().size());
/frameworks/av/media/codec2/components/vorbis/
DC2SoftVorbisDec.cpp206 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) { in makeBitReader() argument
212 ref->buffer = buf; in makeBitReader()
213 ref->begin = 0; in makeBitReader()
214 ref->length = size; in makeBitReader()
215 ref->next = nullptr; in makeBitReader()
217 oggpack_readinit(bits, ref); in makeBitReader()
276 ogg_reference ref; in process() local
280 makeBitReader((const uint8_t *)data + 7, inSize - 7, &buf, &ref, &bits); in process()
372 ogg_reference ref; in process() local
373 ref.buffer = &buf; in process()
[all …]

12345678910>>...21