/frameworks/av/media/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 …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils_test.cpp | 121 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 Maybe<Reference> ref = ResourceUtils::ParseStyleParentReference("@android:style/foo", &err_str); in TEST() local 159 ASSERT_TRUE(ref); in TEST() 160 EXPECT_THAT(ref.value().name, Eq(make_value(kAndroidStyleFooName))); in TEST() 162 ref = ResourceUtils::ParseStyleParentReference("@style/foo", &err_str); in TEST() 163 ASSERT_TRUE(ref); in TEST() 164 EXPECT_THAT(ref.value().name, Eq(make_value(kStyleFooName))); in TEST() 166 ref = ResourceUtils::ParseStyleParentReference("?android: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 | 74 bool valuesMatch(::testing::AssertionResult& message, const T& ref, const T& val, in valuesMatch() argument 76 if (ref != val) { in valuesMatch() 77 message = message << "Expected " << name << ":" << ref << ", got:" << val << "."; in valuesMatch() 83 ::testing::AssertionResult rectsAreSame(const RenderState& ref, const RenderState& val) { in rectsAreSame() argument 92 passes &= valuesMatch(message, ref.mDisplayFrame, val.mDisplayFrame, "display frame"); in rectsAreSame() 93 passes &= valuesMatch(message, ref.mPlaneAlpha, val.mPlaneAlpha, "alpha"); in rectsAreSame() 94 passes &= valuesMatch(message, ref.mSwapCount, val.mSwapCount, "swap count"); in rectsAreSame() 95 passes &= valuesMatch(message, ref.mSourceCrop, val.mSourceCrop, "source crop"); in rectsAreSame() 103 ::testing::AssertionResult framesAreSame(const std::vector<RenderState>& ref, in framesAreSame() argument 107 if (ref.size() != val.size()) { in framesAreSame() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_object.h | 59 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/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/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/tests/servicestests/src/com/android/server/display/color/ |
D | AppSaturationControllerTest.java | 41 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/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/native/libs/ftl/ |
D | small_map_test.cpp | 43 std::string& ref = *opt; in TEST() local 44 EXPECT_TRUE(ref.empty()); in TEST() 45 ref = "xyz"; in TEST() 102 const auto ref = map.find('d').value_or(std::cref(d)); in TEST() local 103 EXPECT_EQ(ref.get(), 'D'); in TEST() 113 const auto ref = map.find('d').value_or(std::ref(d)); in TEST() local 114 ref.get() = 'D'; in TEST()
|
/frameworks/av/media/codec2/components/tests/ |
D | C2SoftCodecTest.cpp | 84 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/base/tools/aapt2/link/ |
D | ReferenceLinker.cpp | 43 LoggingResourceName(const Reference& ref, const CallSite& callsite, in LoggingResourceName() 45 : ref_(ref), callsite_(callsite), decls_(decls) { in LoggingResourceName() 82 if (auto ref = ValueCast<Reference>(linked_item_ptr)) { in TransformDerived() local 83 return std::unique_ptr<Reference>(ref); in TransformDerived() 227 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible() argument 229 if (symbol.is_public || ref.private_reference) { in IsSymbolVisible() 233 if (ref.name) { in IsSymbolVisible() 234 const ResourceName& name = ref.name.value(); in IsSymbolVisible() 245 if (ref.id && symbol.id) { in IsSymbolVisible() 246 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible() [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() 372 ogg_reference ref; in process() local 373 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/base/core/java/com/android/internal/view/menu/ |
D | MenuBuilder.java | 44 import java.lang.ref.WeakReference; 256 for (WeakReference<MenuPresenter> ref : mPresenters) { in removeMenuPresenter() 257 final MenuPresenter item = ref.get(); in removeMenuPresenter() 259 mPresenters.remove(ref); in removeMenuPresenter() 268 for (WeakReference<MenuPresenter> ref : mPresenters) { in dispatchPresenterUpdate() 269 final MenuPresenter presenter = ref.get(); in dispatchPresenterUpdate() 271 mPresenters.remove(ref); in dispatchPresenterUpdate() 290 for (WeakReference<MenuPresenter> ref : mPresenters) { in dispatchSubMenuSelected() 291 final MenuPresenter presenter = ref.get(); in dispatchSubMenuSelected() 293 mPresenters.remove(ref); in dispatchSubMenuSelected() [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | TestUtils.java | 19 import java.lang.ref.WeakReference; 25 WeakReference ref = new WeakReference<>(obj); in gc() local 28 while (ref.get() != null) { in gc()
|