Home
last modified time | relevance | path

Searched refs:constraints (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/base/tools/aapt2/cmd/
DUtil_test.cpp39 #define EXPECT_CONFIG_EQ(constraints, config) \ argument
40 EXPECT_EQ(constraints.configs.size(), 1); \
41 EXPECT_EQ(*constraints.configs.begin(), config); \
42 constraints.configs.clear();
169 diagnostics, &path, &constraints)); in TEST()
173 EXPECT_CONFIG_EQ(constraints, expected_configuration); in TEST()
176 diagnostics, &path, &constraints)); in TEST()
180 EXPECT_CONFIG_EQ(constraints, expected_configuration); in TEST()
183 diagnostics, &path, &constraints)); in TEST()
188 EXPECT_CONFIG_EQ(constraints, expected_configuration); in TEST()
[all …]
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/
DSize.kt144 constraints: Constraints in measure()
149 constraints.constrain(targetConstraints) in measure()
155 constraints.minWidth.coerceAtMost(targetConstraints.maxWidth) in measure()
161 constraints.maxWidth.coerceAtLeast(targetConstraints.minWidth) in measure()
167 constraints.minHeight.coerceAtMost(targetConstraints.maxHeight) in measure()
173 constraints.maxHeight.coerceAtLeast(targetConstraints.minHeight) in measure()
191 val constraints = targetConstraints in minIntrinsicWidth() constant
192 return if (constraints.hasFixedWidth) { in minIntrinsicWidth()
193 constraints.maxWidth in minIntrinsicWidth()
195 constraints.constrainWidth(measurable.minIntrinsicWidth(height)) in minIntrinsicWidth()
[all …]
DPadding.kt102 constraints: Constraints in measure()
112 val placeable = measurable.measure(constraints.offset(-horizontal, -vertical)) in measure()
114 val width = constraints.constrainWidth(placeable.width + horizontal) in measure()
115 val height = constraints.constrainHeight(placeable.height + vertical) in measure()
DMeasureTracing.kt26 return layout { measurable, constraints -> in <lambda>() method
28 val placeable = measurable.measure(constraints) in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/
DGentleUpdateHelper.java87 public final InstallConstraints constraints; field in GentleUpdateHelper.PendingInstallConstraintsCheck
95 InstallConstraints constraints, in PendingInstallConstraintsCheck() argument
99 this.constraints = constraints; in PendingInstallConstraintsCheck()
121 pw.printPair("constraints notInCallRequired", constraints.isNotInCallRequired()); in dump()
123 pw.printPair("constraints deviceIdleRequired", constraints.isDeviceIdleRequired()); in dump()
126 constraints.isAppNotForegroundRequired()); in dump()
129 constraints.isAppNotInteractingRequired()); in dump()
132 constraints.isAppNotTopVisibleRequired()); in dump()
162 List<String> packageNames, InstallConstraints constraints, in checkInstallConstraints() argument
167 packageNames, constraints, resultFuture, timeoutMillis); in checkInstallConstraints()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DVariableDayDate.kt41 ) { measureables, constraints -> in <lambda>() method
49 val longerPlaceable = longerMeasurable.measure(constraints) in <lambda>()
50 val shorterPlaceable = shorterMeasurable.measure(constraints) in <lambda>()
55 longerPlaceable.width < constraints.maxWidth && in <lambda>()
56 longerPlaceable.height <= constraints.maxHeight -> longerPlaceable in <lambda>()
57 shorterPlaceable.width < constraints.maxWidth && in <lambda>()
58 shorterPlaceable.height <= constraints.maxHeight -> shorterPlaceable in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/blueprint/
DDefaultBlueprint.kt163 ) { measurables, constraints -> in <lambda>() method
173 constraints.copy( in <lambda>()
194 (constraints.maxHeight - lockIconBounds.bottom).coerceAtLeast(0) in <lambda>()
201 layout(constraints.maxWidth, constraints.maxHeight) { in <lambda>()
212 y = constraints.maxHeight - belowLockIconPlaceable.height, in <lambda>()
216 y = constraints.maxHeight - startShortcutPleaceable.height, in <lambda>()
219 x = constraints.maxWidth - endShortcutPleaceable.width, in <lambda>()
220 y = constraints.maxHeight - endShortcutPleaceable.height, in <lambda>()
223 x = (constraints.maxWidth - settingsMenuPlaceable.width) / 2, in <lambda>()
224 y = constraints.maxHeight - settingsMenuPlaceable.height, in <lambda>()
DShortcutsBesideUdfpsBlueprint.kt171 ) { measurables, constraints -> in <lambda>() method
181 constraints.copy( in <lambda>()
205 maxHeight = constraints.maxHeight - lockIconBounds.bottom in <lambda>()
210 layout(constraints.maxWidth, constraints.maxHeight) { in <lambda>()
226 (constraints.maxWidth - lockIconBounds.right) / 2 - in <lambda>()
232 y = constraints.maxHeight - belowLockIconPlaceable.height, in <lambda>()
235 x = (constraints.maxWidth - settingsMenuPlaceable.width) / 2, in <lambda>()
236 y = constraints.maxHeight - settingsMenuPlaceable.height, in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/volume/ui/composable/
DVolumeSliderContent.kt105 constraints: Constraints in measure()
110 .measure(constraints) in measure()
115 constraints.maxWidth in measure()
122 constraints.maxWidth * 2 in measure()
124 constraints.maxWidth in measure()
130 ?.measure(constraints.copy(maxWidth = fullLayoutWidth)) in measure()
145 return layout { measurable, constraints -> in Modifier() method
146 val placeable = measurable.measure(constraints) in Modifier()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/ui/composable/
DQSMediaMeasurePolicy.kt40 constraints: Constraints in measure()
45 val qsPlaceable = qsMeasurable.measure(constraints) in measure()
47 mediaMeasurable.measure(constraints.copy(maxWidth = constraints.maxWidth / 2)) in measure()
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DPhysics.kt129 val constraints = ArraySet<Constraint>(100) constant
133 fun add(c: Constraint) = constraints.add(c) in add()
134 fun remove(c: Constraint) = constraints.remove(c) in add()
140 open fun solveAll(dt: Float, constraints: ArraySet<Constraint>) { in solveAll()
141 constraints.forEach { it.solve(this, dt) } in solveAll()
161 val localConstraints = ArraySet(constraints) in step()
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp123 std::vector<SplitConstraints> constraints; in TEST() local
124 constraints.push_back(SplitConstraints{{test::ParseConfigOrDie("mdpi")}}); in TEST()
125 constraints.push_back(SplitConstraints{{test::ParseConfigOrDie("hdpi")}}); in TEST()
126 constraints.push_back(SplitConstraints{{test::ParseConfigOrDie("xhdpi")}}); in TEST()
128 TableSplitter splitter(constraints, TableSplitterOptions{}); in TEST()
214 std::vector<SplitConstraints> constraints; in TEST() local
215 constraints.push_back( in TEST()
217 constraints.push_back( in TEST()
220 TableSplitter splitter(constraints, TableSplitterOptions{}); in TEST()
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayModeControllerTest.cpp97 const hal::VsyncPeriodChangeConstraints constraints{ in expectModeSet() local
105 setActiveConfigWithConstraints(kHwcDisplayId, hwcModeId, constraints, _)) in expectModeSet()
108 return constraints; in expectModeSet()
184 const auto constraints = expectModeSet(modeRequest, timeline); in TEST_F() local
186 EXPECT_TRUE(mDmc.initiateModeChange(mDisplayId, std::move(modeRequest), constraints, timeline)); in TEST_F()
211 auto constraints = expectModeSet(modeRequest, timeline); in TEST_F() local
213 EXPECT_TRUE(mDmc.initiateModeChange(mDisplayId, std::move(modeRequest), constraints, timeline)); in TEST_F()
224 constraints = expectModeSet(modeRequest, timeline, kSubsequent); in TEST_F()
226 EXPECT_TRUE(mDmc.initiateModeChange(mDisplayId, std::move(modeRequest), constraints, timeline)); in TEST_F()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/
DClockProviderPlugin.kt124 fun applyConstraints(constraints: ConstraintSet): ConstraintSet in applyConstraints()
126 fun applyPreviewConstraints(constraints: ConstraintSet): ConstraintSet in applyConstraints()
136 override fun applyConstraints(constraints: ConstraintSet): ConstraintSet { in applyConstraints()
142 return constraints in applyConstraints()
145 override fun applyPreviewConstraints(constraints: ConstraintSet): ConstraintSet { in applyConstraints()
146 return constraints in applyConstraints()
/frameworks/wilhelm/src/itf/
DIPlaybackRate.cpp72 static SLresult IPlaybackRate_SetPropertyConstraints(SLPlaybackRateItf self, SLuint32 constraints) in IPlaybackRate_SetPropertyConstraints() argument
77 if (constraints & ~(SL_RATEPROP_SILENTAUDIO | SL_RATEPROP_STAGGEREDAUDIO | in IPlaybackRate_SetPropertyConstraints()
81 } else if (!(thiz->mCapabilities & constraints)) { in IPlaybackRate_SetPropertyConstraints()
91 constraints); in IPlaybackRate_SetPropertyConstraints()
99 thiz->mProperties = constraints; in IPlaybackRate_SetPropertyConstraints()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/dialog/ui/composable/
DAlertDialogContent.kt128 ) { measurables, constraints -> in AlertDialogButtons() method
129 check(constraints.hasBoundedWidth) { in AlertDialogButtons()
132 val maxWidth = constraints.maxWidth in AlertDialogButtons()
141 "positive" -> positive = measurable.measure(constraints) in AlertDialogButtons()
142 "negative" -> negative = measurable.measure(constraints) in AlertDialogButtons()
143 "neutral" -> neutral = measurable.measure(constraints) in AlertDialogButtons()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/grid/
DGrids.kt105 ) { measurables, constraints -> in Grid() method
135 if (constraints.maxWidth != Constraints.Infinity) { in Grid()
136 (constraints.maxWidth - totalHorizontalSpacingBetweenChildren) / columns in Grid()
141 if (constraints.maxHeight != Constraints.Infinity) { in Grid()
142 (constraints.maxHeight - totalVerticalSpacingBetweenChildren) / rows in Grid()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DCommunalContent.kt69 ) { measurables, constraints -> in <lambda>() method
74 constraints.copy( in <lambda>()
93 layout(constraints.maxWidth, constraints.maxHeight) { in <lambda>()
/frameworks/base/graphics/java/android/graphics/text/
DLineBreaker.java582 @NonNull ParagraphConstraints constraints, in computeLineBreaks() argument
591 constraints.mFirstWidth, in computeLineBreaks()
592 constraints.mFirstWidthLineCount, in computeLineBreaks()
593 constraints.mWidth, in computeLineBreaks()
594 constraints.mVariableTabStops, in computeLineBreaks()
595 constraints.mDefaultTabStop, in computeLineBreaks()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DJobStatus.java2188 public void addDynamicConstraints(int constraints) { in addDynamicConstraints() argument
2189 if ((constraints & CONSTRAINT_WITHIN_QUOTA) != 0) { in addDynamicConstraints()
2192 constraints &= ~CONSTRAINT_WITHIN_QUOTA; in addDynamicConstraints()
2199 constraints &= ~CONSTRAINT_CONNECTIVITY; in addDynamicConstraints()
2202 constraints &= ~CONSTRAINT_CONTENT_TRIGGER; in addDynamicConstraints()
2205 mDynamicConstraints |= constraints; in addDynamicConstraints()
2216 private void removeDynamicConstraints(int constraints) { in removeDynamicConstraints() argument
2217 mDynamicConstraints &= ~constraints; in removeDynamicConstraints()
2515 static void dumpConstraints(PrintWriter pw, int constraints) { in dumpConstraints() argument
2516 if ((constraints & CONSTRAINT_CHARGING) != 0) { in dumpConstraints()
[all …]
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/modifiers/
DSize.kt29 constraints -> in <lambda>() method
31 return@approachLayout measurable.measure(constraints).run { in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBar.kt503 ) { measurables, constraints -> in TopAppBarLayout() method
506 .measure(constraints.copy(minWidth = 0)) in TopAppBarLayout()
509 .measure(constraints.copy(minWidth = 0)) in TopAppBarLayout()
511 val maxTitleWidth = if (constraints.maxWidth == Constraints.Infinity) { in TopAppBarLayout()
512 constraints.maxWidth in TopAppBarLayout()
514 (constraints.maxWidth - navigationIconPlaceable.width - actionIconsPlaceable.width) in TopAppBarLayout()
519 .measure(constraints.copy(minWidth = 0, maxWidth = maxTitleWidth)) in TopAppBarLayout()
531 layout(constraints.maxWidth, layoutHeight) { in TopAppBarLayout()
558 x = constraints.maxWidth - actionIconsPlaceable.width, in TopAppBarLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/
DClockSection.kt128 fun constrainWeatherClockDateIconsBarrier(constraints: ConstraintSet) { in getTargetClockFace()
129 constraints.apply { in getTargetClockFace()
157 open fun applyDefaultConstraints(constraints: ConstraintSet) { in applyDefaultConstraints()
161 constraints.apply { in applyDefaultConstraints()
191 constrainWeatherClockDateIconsBarrier(constraints) in applyDefaultConstraints()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/dialog/
DSettingsAlterDialogContent.kt193 Layout(content) { measurables, constraints -> in measurables() method
208 placeable.width <= constraints.maxWidth in measurables()
231 val placeable = measurable.measure(constraints) in measurables()
247 val mainAxisLayoutSize = max(mainAxisSpace, constraints.minWidth) in measurables()
249 val crossAxisLayoutSize = max(crossAxisSpace, constraints.minHeight) in measurables()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/
DFooterActions.kt193 .layout { measurable, constraints -> in FooterActions() method
201 if (constraints.hasBoundedWidth) { in FooterActions()
202 constraints.copy(maxWidth = constraints.maxWidth + additionalWidth) in FooterActions()
204 constraints in FooterActions()
208 val width = constraints.constrainWidth(placeable.width - additionalWidth) in FooterActions()
209 val height = constraints.constrainHeight(placeable.height) in FooterActions()

1234