Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/libs/hwui/tests/unit/
DRenderPropertiesTests.cpp29 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 …]
DRenderNodeDrawableTests.cpp45 TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() argument
72 [expectedDrawOrder, z](RenderProperties& props, SkiaRecordingCanvas& canvas) { in drawOrderedNode() argument
74 props.setTranslationZ(z); in drawOrderedNode()
81 std::function<void(RenderProperties& props, SkiaRecordingCanvas& canvas)> setup) { in drawOrderedNode() argument
84 [expectedDrawOrder, setup](RenderProperties& props, SkiaRecordingCanvas& canvas) { in drawOrderedNode() argument
87 setup(props, canvas); in drawOrderedNode()
109 auto parent = TestUtils::createSkiaNode(0, 0, 100, 100, [](RenderProperties& props, in TEST()
149 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& recorder) { in TEST() argument
195 0, 0, 400, 800, [](RenderProperties& props, SkiaRecordingCanvas& recorder) { in TEST() argument
659 auto nodeA = TestUtils::createSkiaNode(0, 0, 100, 100, [](RenderProperties& props, in RENDERTHREAD_TEST()
[all …]
DRenderNodeTests.cpp42 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
DSkiaPipelineTests.cpp46 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& redCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
66 0, 0, 2, 2, [](RenderProperties& props, SkiaRecordingCanvas& bottomHalfGreenCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
93 0, 0, 2, 2, [](RenderProperties& props, SkiaRecordingCanvas& redCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
115 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& redCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
126 0, 0, 2, 2, [](RenderProperties& props, SkiaRecordingCanvas& blueCanvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
160 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
271 [&transparentPaint](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
279 [&transparentPaint](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
286 [&transparentPaint](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
316 [](RenderProperties& props, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_SKIA_PIPELINE_TEST() argument
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DMagnifierAnimation.cpp40 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()
DRoundRectClippingAnimation.cpp37 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()
DShadowShaderAnimation.cpp56 [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()
DTvApp.cpp98 [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()
DShadowGridAnimation.cpp56 [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()
DShadowGrid2Animation.cpp56 [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()
DRecentsAnimation.cpp72 [&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()
DClippingAnimation.cpp32 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()
DHwLayerSizeAnimation.cpp32 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent() argument
33 props.mutateLayerProperties().setType(LayerType::RenderLayer); in createContent()
DHwLayerAnimation.cpp31 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/
DDamageAccumulator.cpp153 static inline void mapRect(const RenderProperties& props, const SkRect& in, SkRect* out) { in mapRect() argument
156 applyMatrix(props.getTransformMatrix(), &temp); in mapRect()
157 if (props.getStaticMatrix()) { in mapRect()
158 applyMatrix(props.getStaticMatrix(), &temp); in mapRect()
159 } else if (props.getAnimationMatrix()) { in mapRect()
160 applyMatrix(props.getAnimationMatrix(), &temp); in mapRect()
162 temp.offset(props.getLeft(), props.getTop()); in mapRect()
205 const RenderProperties& props = frame->renderNode->properties(); in applyRenderNodeTransform() local
206 if (props.getAlpha() <= 0) { in applyRenderNodeTransform()
211 if (props.getClipDamageToBounds() && !frame->pendingDirty.isEmpty()) { in applyRenderNodeTransform()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DDeviceConfigProxyFake.java107 Properties props = propsForNamespaceAndName(namespace, name); in getBoolean() local
108 if (props != null) { in getBoolean()
109 return props.getBoolean(name, defaultValue); in getBoolean()
117 Properties props = propsForNamespaceAndName(namespace, name); in getInt() local
118 if (props != null) { in getInt()
119 return props.getInt(name, defaultValue); in getInt()
127 Properties props = propsForNamespaceAndName(namespace, name); in getLong() local
128 if (props != null) { in getLong()
129 return props.getLong(name, defaultValue); in getLong()
142 Properties props = propsForNamespaceAndName(namespace, name); in getString() local
[all …]
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h174 std::function<void(RenderProperties& props, Canvas& canvas)> setup) { in createNode() argument
176 RenderProperties& props = node->mutateStagingProperties(); in createNode() local
177 props.setLeftTopRightBottom(left, top, right, bottom); in createNode()
180 Canvas::create_recording_canvas(props.getWidth(), props.getHeight())); in createNode()
181 setup(props, *canvas.get()); in createNode()
191 std::function<void(RenderProperties& props, RecordingCanvasType& canvas)> setup) { in createNode() argument
193 RenderProperties& props = node->mutateStagingProperties(); in createNode() local
194 props.setLeftTopRightBottom(left, top, right, bottom); in createNode()
196 RecordingCanvasType canvas(props.getWidth(), props.getHeight()); in createNode()
197 setup(props, canvas); in createNode()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DPasswordSlotManager.java157 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/
Dextract_unicode_properties.py38 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/
DViewDumpParser.java56 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/
Dlayers_extensions.cpp243 const VkLayerProperties& props = properties[i]; in EnumerateLayers() local
246 layer.properties = props; in EnumerateLayers()
252 enumerate_instance_extensions(props.layerName, &count, nullptr); in EnumerateLayers()
257 props.layerName, path_.c_str(), result); in EnumerateLayers()
263 props.layerName, &count, layer.instance_extensions.data()); in EnumerateLayers()
268 props.layerName, path_.c_str(), result); in EnumerateLayers()
275 if (memcmp(&props, &dev_props, sizeof(props)) == 0) { in EnumerateLayers()
283 VK_NULL_HANDLE, props.layerName, &count, nullptr); in EnumerateLayers()
288 props.layerName, path_.c_str(), result); in EnumerateLayers()
294 VK_NULL_HANDLE, props.layerName, &count, in EnumerateLayers()
[all …]
Dapi.cpp1291 const VkExtensionProperties* props = in EnumerateInstanceExtensionProperties() local
1297 std::copy(props, props + *pPropertyCount, pProperties); in EnumerateInstanceExtensionProperties()
1313 const VkExtensionProperties* props = in EnumerateInstanceExtensionProperties() local
1317 if (extensionNames.emplace(props[i].extensionName).second) { in EnumerateInstanceExtensionProperties()
1318 properties.push_back(props[i]); in EnumerateInstanceExtensionProperties()
1332 std::vector<VkExtensionProperties> props(count); in EnumerateInstanceExtensionProperties() local
1334 nullptr, &count, props.data()); in EnumerateInstanceExtensionProperties()
1335 for (auto prop : props) { in EnumerateInstanceExtensionProperties()
1392 const VkExtensionProperties* props = in EnumerateDeviceExtensionProperties() local
1398 std::copy(props, props + *pPropertyCount, pProperties); in EnumerateDeviceExtensionProperties()
[all …]
/frameworks/native/vulkan/vkjson/
Dvkjson_unittest.cc84 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/
DICalendar.java139 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/
DrsContext.cpp171 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 …]

1234