/frameworks/base/libs/hwui/jni/ |
D | Region.cpp | 37 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in GetSkRegion() local 38 SkASSERT(region != NULL); in GetSkRegion() 39 return region; in GetSkRegion() 47 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_destructor() local 48 SkASSERT(region); in Region_destructor() 49 delete region; in Region_destructor() 77 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_getBounds() local 78 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds); in Region_getBounds() 79 bool result = !region->isEmpty(); in Region_getBounds() 84 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_getBoundaryPath() local [all …]
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/splitscreen/ |
D | EnterSystemSplitTest.kt | 119 .plus(rightAELayerRegion.region) in secondaryAppWindowBecomesVisible() 120 .plus(secondaryAppLayerRegion.region) in secondaryAppWindowBecomesVisible() 121 .plus(systemDivider.region) in secondaryAppWindowBecomesVisible() 124 .that(leftAELayerRegion.region.height) in secondaryAppWindowBecomesVisible() 125 .isEqual(rightAELayerRegion.region.height) in secondaryAppWindowBecomesVisible() 127 .that(rightAELayerRegion.region.height) in secondaryAppWindowBecomesVisible() 128 .isEqual(secondaryAppLayerRegion.region.height) in secondaryAppWindowBecomesVisible() 132 leftAELayerRegion.region.width - rightAELayerRegion.region.width)) in secondaryAppWindowBecomesVisible() 135 .that(Math.abs(secondaryAppLayerRegion.region.width - in secondaryAppWindowBecomesVisible() 136 2 * rightAELayerRegion.region.width)) in secondaryAppWindowBecomesVisible() [all …]
|
/frameworks/native/libs/ui/include/ui/ |
D | BlurRegion.h | 70 size_t operator()(const android::BlurRegion& region) const { 71 return android::hashCombine(region.blurRadius, region.cornerRadiusTL, region.cornerRadiusTR, 72 region.cornerRadiusBL, region.cornerRadiusBR, region.alpha, 73 region.left, region.top, region.right, region.bottom);
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/layoutchange/ |
D | HorizontalSplitChangeRatioTest.kt | 110 .that(topLayerRegion.region.height).isEqual(bottomLayerRegion.region.height) in secondaryActivityAdjustsHeightRuntime() 112 .that(topLayerRegion.region.width).isEqual(bottomLayerRegion.region.width) in secondaryActivityAdjustsHeightRuntime() 113 topLayerRegion.notOverlaps(bottomLayerRegion.region) in secondaryActivityAdjustsHeightRuntime() 115 topLayerRegion.plus(bottomLayerRegion.region).coversExactly(startDisplayBounds) in secondaryActivityAdjustsHeightRuntime() 126 .that(topLayerRegion.region.height).isLower(bottomLayerRegion.region.height) in secondaryActivityAdjustsHeightRuntime() 129 topLayerRegion.region.height / 0.3f - in secondaryActivityAdjustsHeightRuntime() 130 bottomLayerRegion.region.height / 0.7f) in secondaryActivityAdjustsHeightRuntime() 133 .that(topLayerRegion.region.width).isEqual(bottomLayerRegion.region.width) in secondaryActivityAdjustsHeightRuntime() 134 topLayerRegion.notOverlaps(bottomLayerRegion.region) in secondaryActivityAdjustsHeightRuntime() 136 topLayerRegion.plus(bottomLayerRegion.region).coversExactly(startDisplayBounds) in secondaryActivityAdjustsHeightRuntime()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/rotation/ |
D | RotateSplitNoChangeTest.kt | 92 .that(leftLayerRegion.region.height) in <lambda>() 93 .isEqual(rightLayerRegion.region.height) in <lambda>() 95 .that(leftLayerRegion.region.width) in <lambda>() 96 .isEqual(rightLayerRegion.region.width) in <lambda>() 97 leftLayerRegion.notOverlaps(rightLayerRegion.region) in <lambda>() 99 leftLayerRegion.plus(rightLayerRegion.region).coversExactly(display.layerStackSpace) in <lambda>() 115 .that(leftLayerRegion.region.height) in <lambda>() 116 .isEqual(rightLayerRegion.region.height) in <lambda>() 118 .that(leftLayerRegion.region.width) in <lambda>() 119 .isEqual(rightLayerRegion.region.width) in <lambda>() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | ShaderProgram.java | 171 public void setSourceRegion(Quad region) { in setSourceRegion() argument 172 setSourceRegion(region.p0.x, region.p0.y, in setSourceRegion() 173 region.p1.x, region.p1.y, in setSourceRegion() 174 region.p2.x, region.p2.y, in setSourceRegion() 175 region.p3.x, region.p3.y); in setSourceRegion() 178 public void setTargetRegion(Quad region) { in setTargetRegion() argument 179 setTargetRegion(region.p0.x, region.p0.y, in setTargetRegion() 180 region.p1.x, region.p1.y, in setTargetRegion() 181 region.p2.x, region.p2.y, in setTargetRegion() 182 region.p3.x, region.p3.y); in setTargetRegion()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/open/ |
D | OpenTrampolineActivityTest.kt | 23 import android.tools.common.flicker.subject.region.RegionSubject 152 .MAIN_ACTIVITY_COMPONENT).region, in mainActivityWindowGoesFromFullscreenToSplit() 158 .SECONDARY_ACTIVITY_COMPONENT).region, in mainActivityWindowGoesFromFullscreenToSplit() 161 .that(mainActivityRegion.region.height) in mainActivityWindowGoesFromFullscreenToSplit() 162 .isEqual(secondaryActivityRegion.region.height) in mainActivityWindowGoesFromFullscreenToSplit() 164 .that(mainActivityRegion.region.width) in mainActivityWindowGoesFromFullscreenToSplit() 165 .isEqual(secondaryActivityRegion.region.width) in mainActivityWindowGoesFromFullscreenToSplit() 167 .plus(secondaryActivityRegion.region) in mainActivityWindowGoesFromFullscreenToSplit() 196 .that(leftLayerRegion.region.height) in mainActivityLayerGoesFromFullscreenToSplit() 197 .isEqual(rightLayerRegion.region.height) in mainActivityLayerGoesFromFullscreenToSplit() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | LayerFECompositionState.cpp | 83 for (const auto& region : blurRegions) { in dump() local 88 region.blurRadius, region.cornerRadiusTL, region.cornerRadiusTR, in dump() 89 region.cornerRadiusBL, region.cornerRadiusBR, region.alpha, in dump() 90 region.left, region.top, region.right, region.bottom); in dump()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/rtl/ |
D | RTLStartSecondaryWithPlaceholderTest.kt | 130 mainActivityRegion.notOverlaps(secondaryActivityRegion.region) in assertWMRTLBeforeTransition() 133 .that(mainActivityRegion.region.bounds.left) in assertWMRTLBeforeTransition() 134 .isEqual(secondaryActivityRegion.region.bounds.right) in assertWMRTLBeforeTransition() 147 mainActivityRegion.notOverlaps(secondaryActivityRegion.region) in assertLayerRTLBeforeTransition() 150 .that(mainActivityRegion.region.bounds.left) in assertLayerRTLBeforeTransition() 151 .isEqual(secondaryActivityRegion.region.bounds.right) in assertLayerRTLBeforeTransition() 167 mainActivityRegion.notOverlaps(secondaryActivityRegion.region) in assertWMRTLAfterTransition() 170 .that(mainActivityRegion.region.bounds.left) in assertWMRTLAfterTransition() 171 .isEqual(secondaryActivityRegion.region.bounds.right) in assertWMRTLAfterTransition() 187 mainActivityRegion.notOverlaps(secondaryActivityRegion.region) in assertLayerRTLAfterTransition() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | Locale_test.cpp | 54 const char* region) { in TestLanguageRegion() argument 76 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != in TestLanguageRegion() 79 << "expected " << region << " but got " in TestLanguageRegion() 80 << std::string(lv.region, sizeof(lv.region)) << "."; in TestLanguageRegion()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/pip/ |
D | SecondaryActivityEnterPipTest.kt | 83 .that(leftLayerRegion.region.height).isEqual(rightLayerRegion.region.height) in <lambda>() 85 .that(leftLayerRegion.region.width).isEqual(rightLayerRegion.region.width) in <lambda>() 86 leftLayerRegion.notOverlaps(rightLayerRegion.region) in <lambda>() 87 leftLayerRegion.plus(rightLayerRegion.region).coversExactly(startDisplayBounds) in <lambda>() 142 .that(pipWindowRegion.region.height) in <lambda>() 145 .that(pipWindowRegion.region.width).isLower(startDisplayBounds.width) in <lambda>() 161 current.screenBounds.isToTheRightBottom(previous.screenBounds.region, 3) in <lambda>() 162 current.screenBounds.notBiggerThan(previous.screenBounds.region) in <lambda>() 169 .that(pipRegion.region.height) in <lambda>() 172 .that(pipRegion.region.width).isLower(startDisplayBounds.width) in <lambda>()
|
/frameworks/native/libs/ui/include_private/ui/ |
D | RegionHelper.h | 46 struct region { struct 51 inline region(const region& rhs) in region() function 53 inline region(RECT const* _r, size_t _c) : rects(_r), count(_c), dx(), dy() {} in region() function 54 inline region(RECT const* _r, size_t _c, TYPE _dx, TYPE _dy) in region() argument 66 inline region_operator(uint32_t op, const region& lhs, const region& rhs) in region_operator() 147 region lhs; 148 region rhs; 151 inline Spanner(const region& _lhs, const region& _rhs) : lhs(_lhs), rhs(_rhs) { in Spanner() 178 static inline void advance(region& reg, TYPE& aTop, TYPE& aBottom) { in advance() 201 region lhs; [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Region.java | 67 public Region(@NonNull Region region) { in Region() argument 69 nativeSetRegion(mNativeRegion, region.mNativeRegion); in Region() 94 public boolean set(@NonNull Region region) { in set() argument 95 nativeSetRegion(mNativeRegion, region.mNativeRegion); in set() 284 public boolean op(@NonNull Region region, @NonNull Op op) { in op() argument 285 return op(this, region, op); in op() 292 public boolean op(@NonNull Rect rect, @NonNull Region region, @NonNull Op op) { in op() argument 293 return nativeOp(mNativeRegion, rect, region.mNativeRegion, in op() 318 Region region = sPool.acquire(); in obtain() local 319 return (region != null) ? region : new Region(); in obtain() [all …]
|
/frameworks/av/media/libshmem/ |
D | Android.bp | 11 name: "shared-file-region-aidl", 33 "shared-file-region-aidl-cpp", 38 "shared-file-region-aidl-cpp", 55 "shared-file-region-aidl-cpp", 58 "shared-file-region-aidl-cpp", 76 "shared-file-region-aidl-cpp",
|
/frameworks/base/libs/androidfw/ |
D | LocaleData.cpp | 31 inline uint32_t packLocale(const char* language, const char* region) { in packLocale() argument 33 (((uint8_t) region[0]) << 8u) | ((uint8_t) region[1]); in packLocale() 201 void localeDataComputeScript(char out[4], const char* language, const char* region) { in localeDataComputeScript() argument 206 uint32_t lookup_key = packLocale(language, region); in localeDataComputeScript() 210 if (region[0] != '\0') { in localeDataComputeScript() 234 bool localeDataIsCloseToUsEnglish(const char* region) { in localeDataIsCloseToUsEnglish() argument 235 const uint32_t locale = packLocale(ENGLISH_CHARS, region); in localeDataIsCloseToUsEnglish()
|
/frameworks/compile/mclinker/unittests/ |
D | FragmentRefTest.cpp | 50 llvm::StringRef region = area->request(0, 4096); variable 51 RegionFragment* frag = new RegionFragment(region); 54 ASSERT_EQ('H', region.data()[0]); 55 ASSERT_TRUE(4096 == region.size());
|
D | MCRegionFragmentTest.cpp | 46 MemoryRegion* region = area->request(0, 4096); in TEST_F() local 47 MCRegionFragment* frag = new MCRegionFragment(*region); in TEST_F() 61 MemoryRegion* region = area->request(0, 4096); in TEST_F() local 62 llvm::MCFragment* frag = new MCRegionFragment(*region); in TEST_F()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | ZoomRatioMapper.cpp | 350 for (auto region : kMeteringRegionsToCorrect) { in separateZoomFromCropLocked() local 351 entry = metadata->find(region); in separateZoomFromCropLocked() 388 for (auto region : kMeteringRegionsToCorrect) { in combineZoomAndCropLocked() local 389 entry = metadata->find(region); in combineZoomAndCropLocked() 455 void ZoomRatioMapper::scaleRegion(int32_t* region, float scaleRatio, in scaleRegion() argument 458 scaleCoordinates(region, 1, scaleRatio, true /*clamp*/, arrayWidth, in scaleRegion() 462 region[2] -= 1; in scaleRegion() 463 region[3] -= 1; in scaleRegion() 464 scaleCoordinates(region + 2, 1, scaleRatio, true /*clamp*/, arrayWidth, in scaleRegion() 466 region[2] += 1; in scaleRegion() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | RegionUtils.java | 56 public static void forEachRect(Region region, Consumer<Rect> rectConsumer) { in forEachRect() argument 57 final RegionIterator it = new RegionIterator(region); in forEachRect() 72 public static void forEachRectReverse(Region region, Consumer<Rect> rectConsumer) { in forEachRectReverse() argument 73 final RegionIterator it = new RegionIterator(region); in forEachRectReverse()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | PerimeterPathGuide.java | 146 for (RegionAttributes region : mRegions) { in getPerimeterPx() 147 total += region.absoluteLength; in getPerimeterPx() 163 public float getCoord(Region region, float progress) { in getCoord() argument 164 RegionAttributes regionAttributes = mRegions[region.ordinal()]; in getCoord() 172 public float getRegionCenter(Region region) { in getRegionCenter() argument 173 return getCoord(region, 0.5f); in getRegionCenter() 179 public float getRegionWidth(Region region) { in getRegionWidth() argument 180 return mRegions[region.ordinal()].normalizedLength; in getRegionWidth() 382 for (Region region : Region.values()) { in getRegionForPoint() 383 if (coord <= mRegions[region.ordinal()].endCoordinate) { in getRegionForPoint() [all …]
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Palette.java | 329 Rect region = mRegion; in generate() local 330 if (bitmap != mBitmap && region != null) { in generate() 334 region.left = (int) Math.floor(region.left * scale); in generate() 335 region.top = (int) Math.floor(region.top * scale); in generate() 336 region.right = Math.min((int) Math.ceil(region.right * scale), in generate() 338 region.bottom = Math.min((int) Math.ceil(region.bottom * scale), in generate()
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFObjectReader.cpp | 71 llvm::StringRef region = in isMyFormat() local 74 const char* ELF_hdr = region.begin(); in isMyFormat() 100 llvm::StringRef region = in readHeader() local 102 const char* ELF_hdr = region.begin(); in readHeader() 137 llvm::StringRef region = pInput.memArea()->request( in readSections() local 140 reinterpret_cast<const llvm::ELF::Elf32_Word*>(region.begin()); in readSections() 142 size_t size = region.size() / sizeof(llvm::ELF::Elf32_Word); in readSections() 314 llvm::StringRef region = mem->request(offset, size); in readRelocations() local 319 if (!m_pELFReader->readRela(pInput, **rs, region)) { in readRelocations() 325 if (!m_pELFReader->readRel(pInput, **rs, region)) { in readRelocations()
|
/frameworks/base/core/java/android/util/apk/ |
D | ByteBufferDataSource.java | 56 ByteBuffer region; in feedIntoDataDigester() local 61 region = mBuf.slice(); in feedIntoDataDigester() 64 md.consume(region); in feedIntoDataDigester()
|
/frameworks/native/services/surfaceflinger/ |
D | LayerProtoHelper.cpp | 52 void LayerProtoHelper::writeToProto(const Region& region, in writeToProto() argument 54 if (region.isEmpty()) { in writeToProto() 58 writeToProto(region, getRegionProto()); in writeToProto() 61 void LayerProtoHelper::writeToProto(const Region& region, RegionProto* regionProto) { in writeToProto() argument 62 if (region.isEmpty()) { in writeToProto() 66 Region::const_iterator head = region.begin(); in writeToProto() 67 Region::const_iterator const tail = region.end(); in writeToProto() 228 void LayerProtoHelper::writeToProto(const android::BlurRegion region, BlurRegion* proto) { in writeToProto() argument 229 proto->set_blur_radius(region.blurRadius); in writeToProto() 230 proto->set_corner_radius_tl(region.cornerRadiusTL); in writeToProto() [all …]
|
/frameworks/base/libs/hwui/apex/include/android/graphics/ |
D | region.h | 39 ANDROID_API ARegionIterator* ARegionIterator_acquireIterator(JNIEnv* env, jobject region); 60 RegionIterator(JNIEnv* env, jobject region) in RegionIterator() argument 61 : mIterator(ARegionIterator_acquireIterator(env, region)) {} in RegionIterator()
|