/frameworks/base/libs/hwui/tests/unit/ |
D | RenderPropertiesTests.cpp | 29 RenderProperties props; in TEST() local 32 props.setLeftTopRightBottom(0, 0, 100, 100); in TEST() 33 ASSERT_TRUE(props.fitsOnLayer()); in TEST() 34 props.setLeftTopRightBottom(100, 2000, 300, 4000); in TEST() 35 ASSERT_TRUE(props.fitsOnLayer()); in TEST() 36 props.setLeftTopRightBottom(-10, -10, 510, 512); in TEST() 37 ASSERT_TRUE(props.fitsOnLayer()); in TEST() 40 props.setLeftTopRightBottom(0, 0, maxTextureSize + 1, maxTextureSize + 1); in TEST() 41 ASSERT_FALSE(props.fitsOnLayer()); in TEST() 44 props.setLeftTopRightBottom(0, 0, 100, 0); in TEST() [all …]
|
D | RenderNodeDrawableTests.cpp | 44 TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() argument 71 [expectedDrawOrder, z](RenderProperties& props, SkiaRecordingCanvas& canvas) { in drawOrderedNode() argument 73 props.setTranslationZ(z); in drawOrderedNode() 80 std::function<void(RenderProperties& props, SkiaRecordingCanvas& canvas)> setup) { in drawOrderedNode() argument 83 [expectedDrawOrder, setup](RenderProperties& props, SkiaRecordingCanvas& canvas) { in drawOrderedNode() argument 86 setup(props, canvas); in drawOrderedNode() 108 auto parent = TestUtils::createSkiaNode(0, 0, 100, 100, [](RenderProperties& props, in TEST() 148 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& recorder) { in TEST() argument 194 0, 0, 400, 800, [](RenderProperties& props, SkiaRecordingCanvas& recorder) { in TEST() argument 658 auto nodeA = TestUtils::createSkiaNode(0, 0, 100, 100, [](RenderProperties& props, in RENDERTHREAD_TEST() [all …]
|
D | RenderNodeTests.cpp | 42 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() argument 46 [&child](RenderProperties& props, Canvas& canvas) { in TEST() argument 69 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() argument 73 [&child](RenderProperties& props, Canvas& canvas) { in TEST() argument 131 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() argument 135 [&child](RenderProperties& props, Canvas& canvas) { in TEST() argument 139 [&child](RenderProperties& props, Canvas& canvas) { in TEST() argument 247 auto node = TestUtils::createNode(0, 0, 200, 400, [&](RenderProperties& props, Canvas& canvas) { in TEST() argument 280 TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in RENDERTHREAD_TEST() argument 304 TestUtils::createNode(0, 0, 200, 400, [&](RenderProperties& props, Canvas& canvas) { in RENDERTHREAD_TEST() argument
|
D | SkiaPipelineTests.cpp | 44 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& redCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 64 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& redCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 97 0, 0, 2, 2, [](RenderProperties& props, SkiaRecordingCanvas& bottomHalfGreenCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 124 0, 0, 2, 2, [](RenderProperties& props, SkiaRecordingCanvas& redCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 146 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& redCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 157 0, 0, 2, 2, [](RenderProperties& props, SkiaRecordingCanvas& blueCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 191 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 302 [&transparentPaint](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 310 [&transparentPaint](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument 317 [&transparentPaint](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | MagnifierAnimation.cpp | 40 0, 0, width, height, [&](RenderProperties& props, Canvas& canvas) { in createContent() argument 50 100, 100, 500, 300, [&](RenderProperties& props, Canvas& canvas) { in createContent() argument 51 props.setElevation(dp(16)); in createContent() 52 props.mutableOutline().setRoundRect(0, 0, props.getWidth(), props.getHeight(), in createContent() 54 props.mutableOutline().setShouldClip(true); in createContent() 56 (float)magnifier->height(), 0, 0, (float)props.getWidth(), in createContent() 57 (float)props.getHeight(), nullptr); in createContent()
|
D | RoundRectClippingAnimation.cpp | 37 x, y, x + mSize, y + mSize, [&](RenderProperties& props, Canvas& canvas) { in createContent() argument 39 props.mutableOutline().setRoundRect(0, 0, props.getWidth(), in createContent() 40 props.getHeight(), mSize * .25, 1); in createContent() 41 props.mutableOutline().setShouldClip(true); in createContent()
|
D | TvApp.cpp | 98 [this, width, height, color](RenderProperties& props, Canvas& canvas) { in createBitmapNode() argument 109 [bitmap](RenderProperties& props, Canvas& canvas) { in createSharedBitmapNode() argument 117 [text, text2](RenderProperties& props, Canvas& canvas) { in createInfoNode() argument 135 [color](RenderProperties& props, Canvas& canvas) { in createColorNode() argument 149 RenderProperties& props, in createCard() 152 props.setElevation(dp(16)); in createCard() 153 props.setScaleX(1.2); in createCard() 154 props.setScaleY(1.2); in createCard() 156 props.mutableOutline().setRoundRect(0, 0, width, height, roundedCornerRadius(), 1); in createCard() 157 props.mutableOutline().setShouldClip(true); in createCard()
|
D | ShadowShaderAnimation.cpp | 56 [width, height](RenderProperties& props, Canvas& canvas) { in createCard() argument 57 props.setElevation(1000); in createCard() 64 props.mutableOutline().setRoundRect(0, 0, width, height, 0, in createCard() 66 props.mutableOutline().setShouldClip(false); in createCard()
|
D | ShadowGridAnimation.cpp | 56 [width, height](RenderProperties& props, Canvas& canvas) { in createCard() argument 57 props.setElevation(dp(16)); in createCard() 58 props.mutableOutline().setRoundRect(0, 0, width, height, in createCard() 60 props.mutableOutline().setShouldClip(true); in createCard()
|
D | ShadowGrid2Animation.cpp | 56 [width, height](RenderProperties& props, Canvas& canvas) { in createCard() argument 57 props.setElevation(dp(16)); in createCard() 58 props.mutableOutline().setRoundRect(0, 0, width, height, in createCard() 60 props.mutableOutline().setShouldClip(true); in createCard()
|
D | RecentsAnimation.cpp | 72 [&thumb, width, height](RenderProperties& props, Canvas& canvas) { in createCard() argument 73 props.setElevation(dp(16)); in createCard() 74 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1); in createCard() 75 props.mutableOutline().setShouldClip(true); in createCard()
|
D | ClippingAnimation.cpp | 32 card = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in createContent() argument 54 props.mutateLayerProperties().setType(LayerType::RenderLayer); in createContent() 55 props.setAlpha(0.9f); in createContent()
|
D | HwLayerSizeAnimation.cpp | 32 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent() argument 33 props.mutateLayerProperties().setType(LayerType::RenderLayer); in createContent()
|
D | HwLayerAnimation.cpp | 31 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent() argument 32 props.mutateLayerProperties().setType(LayerType::RenderLayer); in createContent()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.h | 173 std::function<void(RenderProperties& props, Canvas& canvas)> setup) { in createNode() argument 175 RenderProperties& props = node->mutateStagingProperties(); in createNode() local 176 props.setLeftTopRightBottom(left, top, right, bottom); in createNode() 179 Canvas::create_recording_canvas(props.getWidth(), props.getHeight())); in createNode() 180 setup(props, *canvas.get()); in createNode() 190 std::function<void(RenderProperties& props, RecordingCanvasType& canvas)> setup) { in createNode() argument 192 RenderProperties& props = node->mutateStagingProperties(); in createNode() local 193 props.setLeftTopRightBottom(left, top, right, bottom); in createNode() 195 RecordingCanvasType canvas(props.getWidth(), props.getHeight()); in createNode() 196 setup(props, canvas); in createNode() [all …]
|
/frameworks/base/libs/hwui/ |
D | DamageAccumulator.cpp | 140 static inline void mapRect(const RenderProperties& props, const SkRect& in, SkRect* out) { in mapRect() argument 142 const SkMatrix* transform = props.getTransformMatrix(); in mapRect() 154 temp.offset(props.getLeft(), props.getTop()); in mapRect() 197 const RenderProperties& props = frame->renderNode->properties(); in applyRenderNodeTransform() local 198 if (props.getAlpha() <= 0) { in applyRenderNodeTransform() 203 if (props.getClipDamageToBounds() && !frame->pendingDirty.isEmpty()) { in applyRenderNodeTransform() 204 if (!frame->pendingDirty.intersect(0, 0, props.getWidth(), props.getHeight())) { in applyRenderNodeTransform() 210 mapRect(props, frame->pendingDirty, &mHead->pendingDirty); in applyRenderNodeTransform() 213 if (props.getProjectBackwards() && !frame->pendingDirty.isEmpty()) { in applyRenderNodeTransform()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | PasswordSlotManager.java | 157 final Properties props = new Properties(); in loadSlotMap() local 158 props.load(stream); in loadSlotMap() 159 for (String slotString : props.stringPropertyNames()) { in loadSlotMap() 161 final String owner = props.getProperty(slotString); in loadSlotMap() 195 final Properties props = new Properties(); in saveSlotMap() local 197 props.setProperty(entry.getKey().toString(), entry.getValue()); in saveSlotMap() 199 props.store(stream, ""); in saveSlotMap()
|
/frameworks/base/tools/aapt2/tools/ |
D | extract_unicode_properties.py | 38 def extract_unicode_properties(f, props, chars_out): argument 46 if prop_type_str in props: 49 prop_type = props[prop_type_str] 91 props = {"XID_Start": 1, "XID_Continue": 2} variable 95 extract_unicode_properties(f, props, char_props)
|
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
D | ViewDumpParser.java | 56 Map<Short, Object> props = mViews.get(0); in getFirstView() local 57 Object name = getProperty(props, "__name__"); in getFirstView() 58 Object hash = getProperty(props, "__hash__"); in getFirstView() 67 private Object getProperty(Map<Short, Object> props, String key) { in getProperty() argument 68 return props.get(mIds.get(key)); in getProperty()
|
/frameworks/native/vulkan/libvulkan/ |
D | layers_extensions.cpp | 244 const VkLayerProperties& props = properties[i]; in EnumerateLayers() local 247 layer.properties = props; in EnumerateLayers() 253 enumerate_instance_extensions(props.layerName, &count, nullptr); in EnumerateLayers() 258 props.layerName, path_.c_str(), result); in EnumerateLayers() 264 props.layerName, &count, layer.instance_extensions.data()); in EnumerateLayers() 269 props.layerName, path_.c_str(), result); in EnumerateLayers() 276 if (memcmp(&props, &dev_props, sizeof(props)) == 0) { in EnumerateLayers() 284 VK_NULL_HANDLE, props.layerName, &count, nullptr); in EnumerateLayers() 289 props.layerName, path_.c_str(), result); in EnumerateLayers() 295 VK_NULL_HANDLE, props.layerName, &count, in EnumerateLayers() [all …]
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson_unittest.cc | 84 VkImageFormatProperties props = {}; in main() local 85 json = VkJsonImageFormatPropertiesToJson(props); in main() 92 EXPECT(!memcmp(&props, &props2, sizeof(props))); in main()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | ICalendar.java | 139 ArrayList<Property> props = mPropsMap.get(name); in addProperty() local 140 if (props == null) { in addProperty() 141 props = new ArrayList<Property>(); in addProperty() 142 mPropsMap.put(name, props); in addProperty() 144 props.add(prop); in addProperty() 172 List<Property> props = mPropsMap.get(name); in getFirstProperty() local 173 if (props == null || props.size() == 0) { in getFirstProperty() 176 return props.get(0); in getFirstProperty()
|
/frameworks/rs/ |
D | rsContext.cpp | 171 if (props.mLogTimes) { in timerPrint() 237 rsc->props.mLogTimes = getProp("debug.rs.profile") != 0; in threadProc() 238 rsc->props.mLogScripts = getProp("debug.rs.script") != 0; in threadProc() 239 rsc->props.mLogShaders = getProp("debug.rs.shader") != 0; in threadProc() 240 rsc->props.mLogShadersAttr = getProp("debug.rs.shader.attributes") != 0; in threadProc() 241 rsc->props.mLogShadersUniforms = getProp("debug.rs.shader.uniforms") != 0; in threadProc() 242 rsc->props.mLogVisual = getProp("debug.rs.visual") != 0; in threadProc() 243 rsc->props.mLogReduce = getProp("debug.rs.reduce"); in threadProc() 244 rsc->props.mDebugReduceSplitAccum = getProp("debug.rs.reduce-split-accum") != 0; in threadProc() 245 rsc->props.mDebugMaxThreads = getProp("debug.rs.max-threads"); in threadProc() [all …]
|
D | rsThreadIO.cpp | 121 if (con->props.mLogTimes) { in playCoreCommands() 142 if (con->props.mLogTimes) { in playCoreCommands() 154 if (con->props.mLogTimes) { in playCoreCommands()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaPipeline.cpp | 169 SkSurfaceProps props(0, kUnknown_SkPixelGeometry); in createOrUpdateLayer() local 173 this->getSurfaceOrigin(), &props)); in createOrUpdateLayer() 327 auto& props = node.properties(); in nodeBounds() local 328 return Rect(props.getLeft(), props.getTop(), props.getRight(), props.getBottom()); in nodeBounds()
|