Home
last modified time | relevance | path

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

123456

/frameworks/base/api/
Dapi.go184 props := genruleProps{}
185 props.Name = proptools.StringPtr(moduleName)
186 props.Tools = []string{"metalava"}
187 props.Out = []string{filename}
188 props.Cmd = proptools.StringPtr(metalavaCmd + "$(in) --out $(out)")
189 props.Srcs = append([]string{txt.BaseTxt}, createSrcs(txt.Modules, txt.ModuleTag)...)
191 props.Dists = []android.Dist{
204 props.Visibility = []string{"//visibility:public"}
205 ctx.CreateModule(genrule.GenRuleFactory, &props)
232 props := fgProps{}
[all …]
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DHardwareProperties.cpp35 HardwareProperties props; in createHardwareProperties() local
38 props.left = absMtPositionX.minValue; in createHardwareProperties()
39 props.right = absMtPositionX.maxValue; in createHardwareProperties()
40 props.res_x = absMtPositionX.resolution; in createHardwareProperties()
44 props.top = absMtPositionY.minValue; in createHardwareProperties()
45 props.bottom = absMtPositionY.maxValue; in createHardwareProperties()
46 props.res_y = absMtPositionY.resolution; in createHardwareProperties()
50 props.orientation_minimum = absMtOrientation.minValue; in createHardwareProperties()
51 props.orientation_maximum = absMtOrientation.maxValue; in createHardwareProperties()
55 props.max_finger_cnt = absMtSlot.maxValue - absMtSlot.minValue + 1; in createHardwareProperties()
[all …]
/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.cpp48 TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() argument
75 [expectedDrawOrder, z](RenderProperties& props, SkiaRecordingCanvas& canvas) { in drawOrderedNode() argument
77 props.setTranslationZ(z); in drawOrderedNode()
84 std::function<void(RenderProperties& props, SkiaRecordingCanvas& canvas)> setup) { in drawOrderedNode() argument
87 [expectedDrawOrder, setup](RenderProperties& props, SkiaRecordingCanvas& canvas) { in drawOrderedNode() argument
90 setup(props, canvas); in drawOrderedNode()
112 auto parent = TestUtils::createSkiaNode(0, 0, 100, 100, [](RenderProperties& props, in TEST()
152 0, 0, 1, 1, [](RenderProperties& props, SkiaRecordingCanvas& recorder) { in TEST() argument
198 0, 0, 400, 800, [](RenderProperties& props, SkiaRecordingCanvas& recorder) { in TEST() argument
662 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
236 auto node = TestUtils::createNode(0, 0, 200, 400, [&](RenderProperties& props, Canvas& canvas) { in TEST() argument
283 TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in RENDERTHREAD_TEST() argument
307 TestUtils::createNode(0, 0, 200, 400, [&](RenderProperties& props, Canvas& canvas) { in RENDERTHREAD_TEST() argument
[all …]
/frameworks/base/libs/hwui/
DDamageAccumulator.cpp157 static inline void mapRect(const RenderProperties& props, const SkRect& in, SkRect* out) { in mapRect() argument
161 const StretchEffect& stretch = props.layerProperties().getStretchEffect(); in mapRect()
163 applyMatrix(stretch.makeLinearStretch(props.getWidth(), props.getHeight()), &temp); in mapRect()
166 applyMatrix(props.getTransformMatrix(), &temp); in mapRect()
167 if (props.getStaticMatrix()) { in mapRect()
168 applyMatrix(props.getStaticMatrix(), &temp); in mapRect()
169 } else if (props.getAnimationMatrix()) { in mapRect()
170 applyMatrix(props.getAnimationMatrix(), &temp); in mapRect()
172 temp.offset(props.getLeft(), props.getTop()); in mapRect()
215 const RenderProperties& props = frame->renderNode->properties(); in applyRenderNodeTransform() local
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
DDeviceConfigProxyFake.java99 Properties props = propsForNamespaceAndName(namespace, name); in getBoolean() local
100 if (props != null) { in getBoolean()
101 return props.getBoolean(name, defaultValue); in getBoolean()
109 Properties props = propsForNamespaceAndName(namespace, name); in getInt() local
110 if (props != null) { in getInt()
111 return props.getInt(name, defaultValue); in getInt()
119 Properties props = propsForNamespaceAndName(namespace, name); in getLong() local
120 if (props != null) { in getLong()
121 return props.getLong(name, defaultValue); in getLong()
134 Properties props = propsForNamespaceAndName(namespace, name); in getString() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/
DFingerprintPropertyRepository.kt83 private val props: StateFlow<FingerprintSensorPropertiesInternal> = constant in com.android.systemui.biometrics.data.repository.FingerprintPropertyRepositoryImpl
116 override val sensorId: Flow<Int> = props.map { it.sensorId } in <lambda>()
118 override val strength: Flow<SensorStrength> = props.map { it.sensorStrength.toSensorStrength() } in <lambda>()
121 props
126 initialValue = props.value.sensorType.toSensorType(),
130 props.map { in <lambda>()
138 props
140 .onStart { emit(props.value != UNINITIALIZED_PROPS) }, in <lambda>()
141 sensorId.map {}.onStart { if (props.value != UNINITIALIZED_PROPS) emit(Unit) }, in <lambda>()
144 .onStart { if (props.value != UNINITIALIZED_PROPS) emit(Unit) }, in <lambda>()
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DMagnifierAnimation.cpp78 0, 0, width, height, [&](RenderProperties& props, Canvas& canvas) { in createContent() argument
88 100, 100, 500, 300, [&](RenderProperties& props, Canvas& canvas) { in createContent() argument
89 props.setElevation(dp(16)); in createContent()
90 props.mutableOutline().setRoundRect(0, 0, props.getWidth(), props.getHeight(), in createContent()
92 props.mutableOutline().setShouldClip(true); in createContent()
94 (float)magnifier->height(), 0, 0, (float)props.getWidth(), in createContent()
95 (float)props.getHeight(), nullptr); in createContent()
DRoundRectClippingAnimation.cpp42 x, y, x + mSize, y + mSize, [&](RenderProperties& props, Canvas& canvas) { in createContent() argument
44 props.mutableOutline().setRoundRect(0, 0, props.getWidth(), in createContent()
45 props.getHeight(), mSize * .25, 1); in createContent()
46 props.mutableOutline().setShouldClip(true); in createContent()
DShadowShaderAnimation.cpp58 [width, height](RenderProperties& props, Canvas& canvas) { in createCard() argument
59 props.setElevation(1000); in createCard()
66 props.mutableOutline().setRoundRect(0, 0, width, height, 0, in createCard()
68 props.mutableOutline().setShouldClip(false); in createCard()
DTvApp.cpp103 [this, width, height, color](RenderProperties& props, Canvas& canvas) { in createBitmapNode() argument
114 [bitmap](RenderProperties& props, Canvas& canvas) { in createSharedBitmapNode() argument
122 [text, text2](RenderProperties& props, Canvas& canvas) { in createInfoNode() argument
140 [color](RenderProperties& props, Canvas& canvas) { in createColorNode() argument
154 RenderProperties& props, in createCard()
157 props.setElevation(dp(16)); in createCard()
158 props.setScaleX(1.2); in createCard()
159 props.setScaleY(1.2); in createCard()
161 props.mutableOutline().setRoundRect(0, 0, width, height, roundedCornerRadius(), 1); in createCard()
162 props.mutableOutline().setShouldClip(true); in createCard()
DShadowGrid2Animation.cpp58 [width, height](RenderProperties& props, Canvas& canvas) { in createCard() argument
59 props.setElevation(dp(16)); in createCard()
60 props.mutableOutline().setRoundRect(0, 0, width, height, in createCard()
62 props.mutableOutline().setShouldClip(true); in createCard()
DShadowGridAnimation.cpp58 [width, height](RenderProperties& props, Canvas& canvas) { in createCard() argument
59 props.setElevation(dp(16)); in createCard()
60 props.mutableOutline().setRoundRect(0, 0, width, height, in createCard()
62 props.mutableOutline().setShouldClip(true); in createCard()
DStretchyListViewAnimation.cpp131 void createListItem(RenderProperties& props, Canvas& canvas, int cardId, int itemWidth, in createListItem() argument
179 [this, id](RenderProperties& props, Canvas& canvas) { in createContent() argument
180 createListItem(props, canvas, id, mItemWidth, in createContent()
186 [this](RenderProperties& props, Canvas& canvas) { in createContent() argument
204 auto& props = mListView->mutateStagingProperties(); in doFrame() local
205 auto& stretch = props.mutateLayerProperties().mutableStretchEffect(); in doFrame()
211 static_cast<float>(props.getWidth()), in doFrame()
212 static_cast<float>(props.getHeight())}); in doFrame()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h156 std::function<void(RenderProperties& props, Canvas& canvas)> setup) { in createNode() argument
158 RenderProperties& props = node->mutateStagingProperties(); in createNode() local
159 props.setLeftTopRightBottom(left, top, right, bottom); in createNode()
162 Canvas::create_recording_canvas(props.getWidth(), props.getHeight())); in createNode()
163 setup(props, *canvas.get()); in createNode()
173 std::function<void(RenderProperties& props, RecordingCanvasType& canvas)> setup) { in createNode() argument
175 RenderProperties& props = node->mutateStagingProperties(); in createNode() local
176 props.setLeftTopRightBottom(left, top, right, bottom); in createNode()
178 RecordingCanvasType canvas(props.getWidth(), props.getHeight()); in createNode()
179 setup(props, canvas); in createNode()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintServiceRegistry.java55 @NonNull FingerprintSensorPropertiesInternal props) { in registerService() argument
57 Utils.propertyStrengthToAuthenticatorStrength(props.sensorStrength); in registerService()
59 service.registerAuthenticator(props.sensorId, TYPE_FINGERPRINT, strength, in registerService()
60 new FingerprintAuthenticator(mService, props.sensorId)); in registerService()
62 Slog.e(TAG, "Remote exception when registering sensorId: " + props.sensorId); in registerService()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceServiceRegistry.java55 @NonNull FaceSensorPropertiesInternal props) { in registerService() argument
57 Utils.propertyStrengthToAuthenticatorStrength(props.sensorStrength); in registerService()
59 service.registerAuthenticator(props.sensorId, TYPE_FACE, strength, in registerService()
60 new FaceAuthenticator(mService, props.sensorId)); in registerService()
62 Slog.e(TAG, "Remote exception when registering sensorId: " + props.sensorId); in registerService()
/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/services/core/java/com/android/server/locksettings/
DPasswordSlotManager.java151 final Properties props = new Properties(); in loadSlotMap() local
152 props.load(stream); in loadSlotMap()
153 for (String slotString : props.stringPropertyNames()) { in loadSlotMap()
155 final String owner = props.getProperty(slotString); in loadSlotMap()
189 final Properties props = new Properties(); in saveSlotMap() local
191 props.setProperty(entry.getKey().toString(), entry.getValue()); in saveSlotMap()
193 props.store(stream, ""); in saveSlotMap()
/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/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/
DGestureHelper.java193 private boolean nonPrimaryPointerDown(@NonNull PointerProperties[] props, in nonPrimaryPointerDown() argument
196 if (props.length != coords.length || coords.length < 2) { in nonPrimaryPointerDown()
203 + (index << MotionEvent.ACTION_POINTER_INDEX_SHIFT), coords.length, props, coords); in nonPrimaryPointerDown()
208 private boolean movePointers(@NonNull PointerProperties[] props, in movePointers() argument
211 if (props.length != coords.length || coords.length != endPoints.length) { in movePointers()
243 coords.length, props, coords); in movePointers()
265 private boolean nonPrimaryPointerUp(@NonNull PointerProperties[] props, in nonPrimaryPointerUp() argument
268 if (props.length != coords.length || coords.length < 2) { in nonPrimaryPointerUp()
275 + (index << MotionEvent.ACTION_POINTER_INDEX_SHIFT), coords.length, props, coords); in nonPrimaryPointerUp()
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp260 const VkLayerProperties& props = properties[i]; in EnumerateLayers() local
263 layer.properties = props; in EnumerateLayers()
269 enumerate_instance_extensions(props.layerName, &count, nullptr); in EnumerateLayers()
274 props.layerName, path_.c_str(), result); in EnumerateLayers()
280 props.layerName, &count, layer.instance_extensions.data()); in EnumerateLayers()
285 props.layerName, path_.c_str(), result); in EnumerateLayers()
292 if (memcmp(&props, &dev_props, sizeof(props)) == 0) { in EnumerateLayers()
300 VK_NULL_HANDLE, props.layerName, &count, nullptr); in EnumerateLayers()
305 props.layerName, path_.c_str(), result); in EnumerateLayers()
311 VK_NULL_HANDLE, props.layerName, &count, in EnumerateLayers()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserTypeTest.java226 final UserProperties props = type.getDefaultUserPropertiesReference(); in testUserTypeBuilder_defaults() local
227 assertNotNull(props); in testUserTypeBuilder_defaults()
228 assertFalse(props.getStartWithParent()); in testUserTypeBuilder_defaults()
229 assertFalse(props.getUseParentsContacts()); in testUserTypeBuilder_defaults()
231 props.getCrossProfileIntentFilterAccessControl()); in testUserTypeBuilder_defaults()
232 assertEquals(UserProperties.SHOW_IN_LAUNCHER_WITH_PARENT, props.getShowInLauncher()); in testUserTypeBuilder_defaults()
234 props.getCrossProfileIntentResolutionStrategy()); in testUserTypeBuilder_defaults()
235 assertFalse(props.isMediaSharedWithParent()); in testUserTypeBuilder_defaults()
236 assertFalse(props.isCredentialShareableWithParent()); in testUserTypeBuilder_defaults()
237 assertFalse(props.getDeleteAppWithParent()); in testUserTypeBuilder_defaults()
[all …]
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintSensorConfigurations.java170 SensorProps[] props = mSensorPropsMap.get(instance); in getSensorPropForInstance() local
173 if (props != null) { in getSensorPropForInstance()
174 return props; in getSensorPropForInstance()
182 props = fp.getSensorProps(); in getSensorPropForInstance()
189 return props; in getSensorPropForInstance()

123456