Home
last modified time | relevance | path

Searched refs:Modifier (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/
DExampleFeature.kt35 import androidx.compose.ui.Modifier
46 fun ExampleFeature(text: String, modifier: Modifier = Modifier) { in ExampleFeature()
52 Spacer(Modifier.size(16.dp)) in ExampleFeature()
58 Spacer(Modifier.size(16.dp)) in ExampleFeature()
66 private fun CounterTile(text: String, modifier: Modifier = Modifier) { in CounterTile()
74 Modifier.clickable { count++ }.padding(16.dp), in CounterTile()
83 private fun MaxWidthTile(maxWidth: Dp, modifier: Modifier = Modifier) { in MaxWidthTile()
91 Modifier.padding(16.dp) in MaxWidthTile()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/
DFooterActions.kt47 import androidx.compose.ui.Modifier in <lambda>()
88 modifier: Modifier = Modifier, in <lambda>()
133 Modifier.background( in <lambda>()
179 Spacer(Modifier.weight(1f)) in <lambda>()
182 security?.let { SecurityButton(it, Modifier.weight(1f)) } in <lambda>()
184 userSwitcher?.let { IconButton(it, Modifier.sysuiResTag("multi_user_switch")) } in <lambda>()
185 IconButton(viewModel.settings, Modifier.sysuiResTag("settings_button_container")) in <lambda>()
186 viewModel.power?.let { IconButton(it, Modifier.sysuiResTag("pm_lite")) } in <lambda>()
195 modifier: Modifier = Modifier, in SecurityButton()
223 Modifier.weight(1f), in ForegroundServicesButton()
[all …]
/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/
DIndexableProcessor.java40 import javax.lang.model.element.Modifier;
82 Modifier.PRIVATE, Modifier.FINAL) in process()
87 .addModifiers(Modifier.PUBLIC) in process()
93 .addModifiers(Modifier.PUBLIC); in process()
95 .addModifiers(Modifier.PUBLIC); in process()
97 .addModifiers(Modifier.PUBLIC); in process()
99 .addModifiers(Modifier.PUBLIC); in process()
101 .addModifiers(Modifier.PUBLIC); in process()
103 .addModifiers(Modifier.PUBLIC); in process()
144 .addModifiers(Modifier.PUBLIC) in process()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/people/ui/compose/
DPeopleScreenEmpty.kt38 import androidx.compose.ui.Modifier
52 Modifier.fillMaxSize().padding(PeopleSpacePadding), in PeopleScreenEmpty()
61 Spacer(Modifier.height(50.dp)) in PeopleScreenEmpty()
69 Spacer(Modifier.weight(1f)) in PeopleScreenEmpty()
71 Spacer(Modifier.weight(1f)) in PeopleScreenEmpty()
76 Modifier.fillMaxWidth().defaultMinSize(minHeight = 56.dp), in PeopleScreenEmpty()
97 Modifier.padding(vertical = 20.dp, horizontal = 16.dp), in ExampleTile()
105 Modifier.size(40.dp), in ExampleTile()
107 Spacer(Modifier.height(2.dp)) in ExampleTile()
116 Spacer(Modifier.width(24.dp)) in ExampleTile()
DPeopleScreen.kt43 import androidx.compose.ui.Modifier in <lambda>()
98 modifier = Modifier.fillMaxSize(), in <lambda>()
115 Modifier.sysuiResTag("top_level_with_conversations"), in PeopleScreenWithConversations()
118 Modifier.fillMaxWidth().padding(PeopleSpacePadding), in PeopleScreenWithConversations()
127 Spacer(Modifier.height(24.dp)) in PeopleScreenWithConversations()
131 Modifier.padding(horizontal = 24.dp), in PeopleScreenWithConversations()
138 Modifier.fillMaxWidth().sysuiResTag("scroll_view"), in PeopleScreenWithConversations()
154 item { Spacer(Modifier.height(35.dp)) } in PeopleScreenWithConversations()
171 Modifier.padding(start = 16.dp), in LazyListScope()
176 Spacer(Modifier.height(10.dp)) in LazyListScope()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/
DEconomicPolicy.java21 import static com.android.server.tare.Modifier.COST_MODIFIER_CHARGING;
22 import static com.android.server.tare.Modifier.COST_MODIFIER_DEVICE_IDLE;
23 import static com.android.server.tare.Modifier.COST_MODIFIER_POWER_SAVE_MODE;
24 import static com.android.server.tare.Modifier.COST_MODIFIER_PROCESS_STATE;
25 import static com.android.server.tare.Modifier.NUM_COST_MODIFIERS;
168 private static final Modifier[] COST_MODIFIER_BY_INDEX = new Modifier[NUM_COST_MODIFIERS];
179 final Modifier modifier = COST_MODIFIER_BY_INDEX[i]; in setup()
189 final Modifier modifier = COST_MODIFIER_BY_INDEX[i]; in tearDown()
250 final Modifier modifier = getModifier(costModifier); in getCostOfAction()
264 private static void initModifier(@Modifier.CostModifier final int modifierId, in initModifier()
[all …]
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
DPlatformButtons.kt28 import androidx.compose.ui.Modifier
35 modifier: Modifier = Modifier, in PlatformButton()
53 modifier: Modifier = Modifier, in PlatformOutlinedButton()
72 modifier: Modifier = Modifier, in PlatformTextButton()
/frameworks/base/tools/xmlpersistence/src/main/kotlin/
DGenerator.kt32 import javax.lang.model.element.Modifier
70 .addModifiers(Modifier.PUBLIC, Modifier.FINAL) in generate()
90 FieldSpec.builder(atomicFileType, "mFile", Modifier.PRIVATE, Modifier.FINAL) in generateFileField()
103 .addModifiers(Modifier.PUBLIC) in generateFileField()
129 .addModifiers(Modifier.PUBLIC) in generateFileField()
160 .addModifiers(Modifier.PRIVATE, Modifier.STATIC) in generateParseMethod()
197 .addModifiers(Modifier.PRIVATE, Modifier.STATIC) in generateParseClassMethod()
363 addModifiers(Modifier.PUBLIC) in generateWriteMethod()
396 .addModifiers(Modifier.PRIVATE, Modifier.STATIC) in generateSerializeMethod()
419 .addModifiers(Modifier.PRIVATE, Modifier.STATIC) in generateSerializeClassMethod()
[all …]
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/
DExpandable.kt50 import androidx.compose.ui.Modifier in <lambda>()
117 modifier: Modifier = Modifier, in <lambda>()
161 modifier: Modifier = Modifier, in Expandable()
185 Modifier.defaultMinSize(minWidth = minSize, minHeight = minSize), in Expandable()
197 fun Modifier.updateExpandableSize(): Modifier { in Expandable() method
220 Modifier.minimumInteractiveComponentSize() in Expandable()
222 Modifier in Expandable()
268 Modifier.clickable(interactionSource, indication = null) { in Expandable()
274 Modifier.clip(shape).clickable { onClick(controller.expandable) } in Expandable()
277 Modifier in Expandable()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/compose/modifiers/
DSysuiTestTag.kt20 import androidx.compose.ui.Modifier
30 fun Modifier.sysuiResTag(resId: String): Modifier { in sysuiResTag() method
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/
DIcon.kt22 import androidx.compose.ui.Modifier
37 modifier: Modifier = Modifier, in Icon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DInterpolatorsAndroidXTest.kt21 import java.lang.reflect.Modifier
49 .filter { Modifier.isPublic(it.modifiers) } in getPublicMethods()
54 fields.filter { Modifier.isPublic(it.modifiers) }.map { it.name }.toSet() in getPublicFields()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/pager/
DPager.kt35 import androidx.compose.ui.Modifier in <lambda>()
108 modifier: Modifier = Modifier, in HorizontalPager()
155 modifier: Modifier = Modifier, in VerticalPager()
184 modifier: Modifier, in Pager()
239 Modifier in Pager()
267 Modifier in Pager()
/frameworks/base/core/java/android/util/
DDebugUtils.java26 import java.lang.reflect.Modifier;
226 if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers) in valueToString()
251 if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers) in flagsToString()
297 if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers) in constantToString()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
DTestDelegates.java24 import java.lang.reflect.Modifier;
105 if ((originalMethod.getModifiers() & Modifier.STATIC) == 0) { in compare()
116 (originalClass.getModifiers() & Modifier.STATIC) == 0) { in compare()
148 if ((delegateMethod.getModifiers() & Modifier.STATIC) != Modifier.STATIC) { in compare()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/
DPadding.kt19 import androidx.compose.ui.Modifier
44 fun Modifier.padding( in padding() method
69 fun Modifier.padding( in padding() method
72 ): Modifier { in padding()
DSize.kt20 import androidx.compose.ui.Modifier in <lambda>()
47 fun Modifier.width(width: Density.() -> Int) = in <lambda>() method
62 fun Modifier.height(height: Density.() -> Int) = in Modifier() method
77 fun Modifier.size(width: Density.() -> Int, height: Density.() -> Int) = in size() method
/frameworks/base/core/java/com/android/internal/util/
DMessageUtils.java24 import java.lang.reflect.Modifier;
68 if (!Modifier.isStatic(modifiers) | !Modifier.isFinal(modifiers)) { in findMessageNames()
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
DInspectionCompanionGenerator.java45 import javax.lang.model.element.Modifier;
151 .addModifiers(Modifier.PUBLIC, Modifier.FINAL) in generateTypeSpec()
158 .builder(TypeName.BOOLEAN, "mPropertiesMapped", Modifier.PRIVATE) in generateTypeSpec()
188 .builder(TypeName.INT, memberName, Modifier.PRIVATE) in generateIdFieldSpecs()
222 .addModifiers(Modifier.PUBLIC) in generateMapProperties()
431 .addModifiers(Modifier.PUBLIC) in generateReadProperties()
/frameworks/base/test-runner/src/android/test/
DActivityTestCase.java22 import java.lang.reflect.Modifier;
71 && (field.getModifiers() & Modifier.FINAL) == 0) { in scrubClass()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DDeferStaticInitializerClassAdapter.java23 import java.lang.reflect.Modifier;
39 access |= Modifier.PUBLIC; in visitMethod()
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
DEfficientStringsChecker.java57 import javax.lang.model.element.Modifier;
88 not(allOf(hasModifier(Modifier.STATIC), hasModifier(Modifier.FINAL)))),
90 not(allOf(hasModifier(Modifier.STATIC), hasModifier(Modifier.FINAL)))),
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestGrouping.java27 import java.lang.reflect.Modifier;
192 && Modifier.isPublic(modifiers) in apply()
193 && !Modifier.isAbstract(modifiers) in apply()
205 if (Modifier.isPublic(constructor.getModifiers())) { in hasValidConstructor()
/frameworks/base/core/java/com/android/internal/os/
DBinderTransactionNameResolver.java25 import java.lang.reflect.Modifier;
77 || !Modifier.isStatic(method.getModifiers())) { in getMethodName()
/frameworks/base/test-base/src/junit/framework/
DTestCase.java5 import java.lang.reflect.Modifier;
163 if (!Modifier.isPublic(runMethod.getModifiers())) { in runTest()

1234