/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | sad_mb_offset.h | 27 __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 …]
|
D | sad_halfpel.cpp | 64 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 …]
|
D | sad_inline.h | 82 __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 …]
|
D | mp4enc_lib.h | 144 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/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | TrackedGarbage.java | 23 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 …]
|
D | WeakIdentityHashMap.java | 19 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/rs/ |
D | rsObjectBase.h | 107 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 …]
|
D | rsObjectBase.cpp | 107 bool ObjectBase::checkDelete(const ObjectBase *ref) { in checkDelete() argument 108 if (!ref) { in checkDelete() 116 if (ref->mUserRefCount || ref->mSysRefCount) { in checkDelete() 121 ref->remove(); in checkDelete() 124 ref->preDestroy(); in checkDelete() 126 delete ref; in checkDelete()
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils_test.cpp | 144 Maybe<Reference> ref = ResourceUtils::ParseStyleParentReference("@android:style/foo", &err_str); in TEST() local 145 ASSERT_TRUE(ref); in TEST() 146 EXPECT_THAT(ref.value().name, Eq(make_value(kAndroidStyleFooName))); in TEST() 148 ref = ResourceUtils::ParseStyleParentReference("@style/foo", &err_str); in TEST() 149 ASSERT_TRUE(ref); in TEST() 150 EXPECT_THAT(ref.value().name, Eq(make_value(kStyleFooName))); in TEST() 152 ref = ResourceUtils::ParseStyleParentReference("?android:style/foo", &err_str); in TEST() 153 ASSERT_TRUE(ref); in TEST() 154 EXPECT_THAT(ref.value().name, Eq(make_value(kAndroidStyleFooName))); in TEST() 156 ref = ResourceUtils::ParseStyleParentReference("?style/foo", &err_str); in TEST() [all …]
|
D | ValueVisitor_test.cpp | 32 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/base/core/java/android/view/accessibility/ |
D | WeakSparseArray.java | 21 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/native/services/surfaceflinger/tests/fakehwc/ |
D | FakeComposerUtils.cpp | 70 bool valuesMatch(::testing::AssertionResult& message, const T& ref, const T& val, in valuesMatch() argument 72 if (ref != val) { in valuesMatch() 73 message = message << "Expected " << name << ":" << ref << ", got:" << val << "."; in valuesMatch() 79 ::testing::AssertionResult rectsAreSame(const RenderState& ref, const RenderState& val) { in rectsAreSame() argument 88 passes &= valuesMatch(message, ref.mDisplayFrame, val.mDisplayFrame, "display frame"); in rectsAreSame() 89 passes &= valuesMatch(message, ref.mPlaneAlpha, val.mPlaneAlpha, "alpha"); in rectsAreSame() 90 passes &= valuesMatch(message, ref.mSwapCount, val.mSwapCount, "swap count"); in rectsAreSame() 91 passes &= valuesMatch(message, ref.mSourceCrop, val.mSourceCrop, "source crop"); in rectsAreSame() 99 ::testing::AssertionResult framesAreSame(const std::vector<RenderState>& ref, in framesAreSame() argument 103 if (ref.size() != val.size()) { in framesAreSame() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_object.h | 64 egl_object_t* ref; variable 70 explicit LocalRef(egl_display_t const* display, T o) : ref(nullptr) { in LocalRef() 73 ref = native; in LocalRef() 77 return static_cast<N*>(ref); in get() 88 egl_object_t::LocalRef<N, T>::LocalRef(egl_object_t* rhs) : ref(rhs) { in LocalRef() 89 if (ref) { in LocalRef() 90 ref->incRef(); in LocalRef() 96 if (ref) { in ~LocalRef() 97 ref->destroy(); in ~LocalRef() 103 if (ref) { in acquire() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | ReferenceLinker.cpp | 59 void Visit(Reference* ref) override { in Visit() argument 60 if (!ReferenceLinker::LinkReference(callsite_, ref, context_, symbols_, package_decls_)) { in Visit() 178 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible() argument 180 if (symbol.is_public || ref.private_reference) { in IsSymbolVisible() 184 if (ref.name) { in IsSymbolVisible() 185 const ResourceName& name = ref.name.value(); in IsSymbolVisible() 196 if (ref.id && symbol.id) { in IsSymbolVisible() 197 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible() 271 void ReferenceLinker::WriteResourceName(const Reference& ref, const CallSite& callsite, in WriteResourceName() argument 274 if (!ref.name) { in WriteResourceName() [all …]
|
D | ReferenceLinker_test.cpp | 59 Reference* ref = test::GetValue<Reference>(table.get(), "com.app.test:string/foo"); in TEST() local 60 ASSERT_THAT(ref, NotNull()); in TEST() 61 ASSERT_TRUE(ref->id); in TEST() 62 EXPECT_EQ(ResourceId(0x7f020001), ref->id.value()); in TEST() 64 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/bar"); in TEST() 65 ASSERT_THAT(ref, NotNull()); in TEST() 66 ASSERT_TRUE(ref->id); in TEST() 67 EXPECT_EQ(ResourceId(0x7f020002), ref->id.value()); in TEST() 69 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/baz"); in TEST() 70 ASSERT_THAT(ref, NotNull()); in TEST() [all …]
|
/frameworks/base/core/java/android/security/net/config/ |
D | NetworkSecurityConfig.java | 83 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in getTrustAnchors() 84 Set<TrustAnchor> anchors = ref.getTrustAnchors(); in getTrustAnchors() 122 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in findTrustAnchorBySubjectAndPublicKey() 123 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert); in findTrustAnchorBySubjectAndPublicKey() 133 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in findTrustAnchorByIssuerAndSignature() 134 TrustAnchor anchor = ref.findByIssuerAndSignature(cert); in findTrustAnchorByIssuerAndSignature() 145 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in findAllCertificatesByIssuerAndSignature() 146 certs.addAll(ref.findAllCertificatesByIssuerAndSignature(cert)); in findAllCertificatesByIssuerAndSignature() 154 for (CertificatesEntryRef ref : mCertificatesEntryRefs) { in handleTrustStorageUpdate() 155 ref.handleTrustStorageUpdate(); in handleTrustStorageUpdate() [all …]
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | JavaRef.h | 32 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/ |
D | ReferenceTestUtils.java | 21 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/servicestests/src/com/android/server/display/color/ |
D | AppSaturationControllerTest.java | 41 import java.lang.ref.WeakReference; 71 final WeakReference<ColorTransformController> ref = new WeakReference<>( in addColorTransformController_appliesExistingSaturation() local 74 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in addColorTransformController_appliesExistingSaturation() 81 final WeakReference<ColorTransformController> ref = new WeakReference<>( in setSaturationLevel_resetToDefault() local 83 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_resetToDefault() 98 final WeakReference<ColorTransformController> ref = new WeakReference<>( in setSaturationLevel_updateLevel() local 100 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_updateLevel()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuBuilder.java | 43 import java.lang.ref.WeakReference; 255 for (WeakReference<MenuPresenter> ref : mPresenters) { in removeMenuPresenter() 256 final MenuPresenter item = ref.get(); in removeMenuPresenter() 258 mPresenters.remove(ref); in removeMenuPresenter() 267 for (WeakReference<MenuPresenter> ref : mPresenters) { in dispatchPresenterUpdate() 268 final MenuPresenter presenter = ref.get(); in dispatchPresenterUpdate() 270 mPresenters.remove(ref); in dispatchPresenterUpdate() 289 for (WeakReference<MenuPresenter> ref : mPresenters) { in dispatchSubMenuSelected() 290 final MenuPresenter presenter = ref.get(); in dispatchSubMenuSelected() 292 mPresenters.remove(ref); in dispatchSubMenuSelected() [all …]
|
/frameworks/multidex/library/test/src/androidx/multidex/ |
D | ZipUtilTest.java | 94 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/native/libs/vr/libpdx_uds/ |
D | service_framework_tests.cpp | 147 ChannelReference ref = 0; in HandleMessage() local 148 if (!message.ReadAll(&ref, sizeof(ref))) in HandleMessage() 151 const Status<int> ret = message.CheckChannel<TestChannel>(ref, nullptr); in HandleMessage() 157 ChannelReference ref = 0; in HandleMessage() local 158 if (!message.ReadAll(&ref, sizeof(ref))) in HandleMessage() 162 message.CheckChannel<TestChannel>(ref, &channel); in HandleMessage() 173 ChannelReference ref = 0; in HandleMessage() local 174 if (!message.ReadAll(&ref, sizeof(ref))) in HandleMessage() 178 other_service_.get(), ref, nullptr); in HandleMessage() 304 ChannelReference ref = trans.PushChannelHandle(channel).get(); in CheckChannelIdArgument() local [all …]
|
/frameworks/av/media/codec2/components/vorbis/ |
D | C2SoftVorbisDec.cpp | 206 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() 368 ogg_reference ref; in process() local 369 ref.buffer = &buf; in process() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | FragmentRefTest.cpp | 52 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/libstagefright/codecs/vorbis/dec/ |
D | SoftVorbis.cpp | 298 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) { in makeBitReader() argument 304 ref->buffer = buf; in makeBitReader() 305 ref->begin = 0; in makeBitReader() 306 ref->length = size; in makeBitReader() 307 ref->next = NULL; in makeBitReader() 309 oggpack_readinit(bits, ref); in makeBitReader() 381 ogg_reference ref; in onQueueFilled() local 384 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits); in onQueueFilled() 490 ogg_reference ref; in onQueueFilled() local 491 ref.buffer = &buf; in onQueueFilled() [all …]
|