Home
last modified time | relevance | path

Searched refs:constraintLayout (Results 1 – 25 of 176) sorted by relevance

12345678

/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/view/layout/blueprints/
H A DDefaultKeyguardBlueprintTest.kt109 val constraintLayout = ConstraintLayout(context, null) in replaceViews() constant
110 underTest.replaceViews(constraintLayout) in replaceViews()
111 underTest.sections.forEach { verify(it)?.addViews(constraintLayout) } in replaceViews()
124 val constraintLayout = ConstraintLayout(context, null) in replaceViews_withPrevBlueprint() constant
125 underTest.replaceViews(constraintLayout, prevBlueprint) in replaceViews_withPrevBlueprint()
128 verify(it, never()).addViews(constraintLayout) in replaceViews_withPrevBlueprint()
129 verify(it, never()).removeViews(constraintLayout) in replaceViews_withPrevBlueprint()
132 verify(addedSection).addViews(constraintLayout) in replaceViews_withPrevBlueprint()
133 verify(removedSection).removeViews(constraintLayout) in replaceViews_withPrevBlueprint()
146 val constraintLayout = ConstraintLayout(context, null) in replaceViews_withPrevBlueprint_withRebuildTargets() constant
[all …]
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/
H A DBaseShortcutSection.kt16 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
21 constraintLayout.removeView(R.id.start_button) in removeViews()
22 constraintLayout.removeView(R.id.end_button) in removeViews()
25 protected fun addLeftShortcut(constraintLayout: ConstraintLayout) { in addLeftShortcut()
27 constraintLayout.resources.getDimensionPixelSize( in addLeftShortcut()
31 LaunchableImageView(constraintLayout.context, null).apply { in addLeftShortcut()
49 constraintLayout.addView(view) in addLeftShortcut()
52 protected fun addRightShortcut(constraintLayout: ConstraintLayout) { in addRightShortcut()
53 if (constraintLayout.findViewById<View>(R.id.end_button) != null) return in addRightShortcut()
56 constraintLayout.resources.getDimensionPixelSize( in addRightShortcut()
[all …]
H A DSmartspaceSection.kt72 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
75 smartspaceView = smartspaceController.buildAndConnectView(constraintLayout) in addViews()
76 weatherView = smartspaceController.buildAndConnectWeatherView(constraintLayout) in addViews()
78 smartspaceController.buildAndConnectDateView(constraintLayout) as ViewGroup in addViews()
80 constraintLayout.addView(smartspaceView) in addViews()
82 constraintLayout.addView(dateWeatherView) in addViews()
100 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
106 constraintLayout, in bindData()
184 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
189 if (it.parent == constraintLayout) { in removeViews()
[all …]
H A DDefaultStatusBarSection.kt51 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
61 LayoutInflater.from(constraintLayout.context) in addViews()
62 .inflate(R.layout.keyguard_status_bar, constraintLayout, false) in addViews()
65 constraintLayout.addView(view) in addViews()
68 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
74 constraintLayout.findViewById<KeyguardStatusBarView>(statusBarViewId) ?: return in bindData()
99 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
100 constraintLayout.removeView(statusBarViewId) in removeViews()
H A DDefaultSettingsPopupMenuSection.kt58 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
63 LayoutInflater.from(constraintLayout.context) in addViews()
64 .inflate(R.layout.keyguard_settings_popup_menu, constraintLayout, false) in addViews()
70 constraintLayout.addView(view) in addViews()
73 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
77 constraintLayout.requireViewById<View>(R.id.keyguard_settings_button), in bindData()
112 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
114 constraintLayout.removeView(R.id.keyguard_settings_button) in removeViews()
H A DDefaultUdfpsAccessibilityOverlaySection.kt44 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
45 cachedConstraintLayout = constraintLayout in addViews()
46 constraintLayout.addView(UdfpsAccessibilityOverlay(context).apply { id = viewId }) in addViews()
49 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
51 constraintLayout.findViewById(viewId)!!, in bindData()
83 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
84 constraintLayout.removeView(viewId) in removeViews()
H A DAccessibilityActionsSection.kt47 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
51 val view = View(constraintLayout.context).apply { id = R.id.accessibility_actions_view } in addViews()
52 constraintLayout.addView(view) in addViews()
55 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
61 constraintLayout.requireViewById(R.id.accessibility_actions_view), in bindData()
99 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
102 constraintLayout.removeView(R.id.accessibility_actions_view) in removeViews()
H A DDefaultStatusViewSection.kt61 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
72 .inflate(R.layout.keyguard_status_view, constraintLayout, false) in addViews()
83 constraintLayout.addView(keyguardStatusView) in addViews()
86 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
88 constraintLayout.findViewById<KeyguardStatusView?>(R.id.keyguard_status_view)?.let { in bindData()
124 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
125 constraintLayout.removeView(statusViewId) in removeViews()
H A DKeyguardSliceViewSection.kt37 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
41 constraintLayout.findViewById<View?>(R.id.keyguard_slice_view)?.let { in addViews()
43 constraintLayout.addView(it) in addViews()
47 override fun bindData(constraintLayout: ConstraintLayout) {} in bindData()
84 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
88 constraintLayout.removeView(R.id.keyguard_slice_view) in removeViews()
H A DDefaultIndicationAreaSection.kt45 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
48 constraintLayout.addView(view) in addViews()
52 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
56 constraintLayout.requireViewById(R.id.keyguard_indication_area), in bindData()
89 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
91 constraintLayout.removeView(indicationAreaViewId) in removeViews()
H A DAodBurnInSection.kt52 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
60 constraintLayout.addView(emptyView) in addViews()
67 constraintLayout.addView(burnInLayer) in addViews()
70 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
90 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
92 constraintLayout.removeView(R.id.burn_in_layer) in removeViews()
H A DDefaultShortcutsSection.kt62 override fun addViews(constraintLayout: ConstraintLayout) { in <lambda>()
64 addLeftShortcut(constraintLayout) in <lambda>()
65 addRightShortcut(constraintLayout) in <lambda>()
67 constraintLayout in <lambda>()
82 override fun bindData(constraintLayout: ConstraintLayout) { in <lambda>()
87 constraintLayout.requireViewById(R.id.start_button), in <lambda>()
96 constraintLayout.requireViewById(R.id.end_button), in <lambda>()
H A DNotificationStackScrollLayoutSection.kt64 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
77 constraintLayout.addView(view) in addViews()
80 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
93 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
96 constraintLayout.removeView(placeHolderId) in removeViews()
H A DSplitShadeMediaSection.kt50 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
71 constraintLayout.addView(mediaFrame) in addViews()
75 override fun bindData(constraintLayout: ConstraintLayout) {} in bindData()
91 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
96 constraintLayout.removeView(mediaContainerId) in removeViews()
H A DDefaultDeviceEntrySection.kt78 override fun addViews(constraintLayout: ConstraintLayout) { in <lambda>()
91 constraintLayout.addView(view) in <lambda>()
94 override fun bindData(constraintLayout: ConstraintLayout) { in <lambda>()
95 constraintLayout.findViewById<DeviceEntryIconView?>(deviceEntryIconViewId)?.let { in <lambda>()
160 override fun removeViews(constraintLayout: ConstraintLayout) { in <lambda>()
161 constraintLayout.removeView(deviceEntryIconViewId) in <lambda>()
H A DAodNotificationIconsSection.kt64 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
80 constraintLayout.addView(nic) in addViews()
83 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
134 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
135 constraintLayout.removeView(nicId) in removeViews()
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/view/layout/sections/
H A DSmartspaceSectionTest.kt66 private lateinit var constraintLayout: ConstraintLayout variable in com.android.systemui.keyguard.ui.view.layout.sections.SmartspaceSectionTest
87 constraintLayout = ConstraintLayout(mContext) in setup()
105 val constraintLayout = ConstraintLayout(mContext) in testAddViews_notSmartspaceEnabled() constant
106 underTest.addViews(constraintLayout) in testAddViews_notSmartspaceEnabled()
115 underTest.addViews(constraintLayout) in testAddViews_smartspaceEnabled_dateWeatherDecoupled()
116 assert(smartspaceView.parent == constraintLayout) in testAddViews_smartspaceEnabled_dateWeatherDecoupled()
118 assert(dateView.parent == constraintLayout) in testAddViews_smartspaceEnabled_dateWeatherDecoupled()
124 underTest.addViews(constraintLayout) in testAddViews_smartspaceEnabled_notDateWeatherDecoupled()
125 assert(smartspaceView.parent == constraintLayout) in testAddViews_smartspaceEnabled_notDateWeatherDecoupled()
132 underTest.addViews(constraintLayout) in testConstraintsWhenShadeLayoutIsNotWide()
[all …]
H A DDefaultIndicationAreaSectionTest.kt60 val constraintLayout = ConstraintLayout(context, null) in addViewsConditionally() constant
61 underTest.addViews(constraintLayout) in addViewsConditionally()
62 assertThat(constraintLayout.childCount).isGreaterThan(0) in addViewsConditionally()
68 val constraintLayout = ConstraintLayout(context, null) in addViewsConditionally_migrateFlagOff() constant
69 underTest.addViews(constraintLayout) in addViewsConditionally_migrateFlagOff()
70 assertThat(constraintLayout.childCount).isEqualTo(0) in addViewsConditionally_migrateFlagOff()
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
H A DKeyguardBlueprintViewBinder.kt42 constraintLayout: ConstraintLayout, in <lambda>()
47 constraintLayout.repeatWhenAttached { in <lambda>()
75 viewModel.runTransition(constraintLayout, transition, config) { in <lambda>()
78 constraintLayout, in <lambda>()
85 clone(constraintLayout) in <lambda>()
94 cs.applyTo(constraintLayout) in <lambda>()
104 constraintLayout, in <lambda>()
109 blueprint.rebuildViews(constraintLayout, config.rebuildSections) in <lambda>()
113 clone(constraintLayout) in <lambda>()
117 cs.applyTo(constraintLayout) in <lambda>()
H A DKeyguardSmartspaceViewBinder.kt114 constraintLayout: ConstraintLayout, in <lambda>()
117 val burnInLayer = constraintLayout.requireViewById<Layer>(R.id.burn_in_layer) in <lambda>()
124 constraintLayout.requireViewById<View>(sharedR.id.date_smartspace_view) in <lambda>()
131 constraintLayout: ConstraintLayout, in <lambda>()
134 val burnInLayer = constraintLayout.requireViewById<Layer>(R.id.burn_in_layer) in <lambda>()
141 constraintLayout.requireViewById<View>(sharedR.id.date_smartspace_view) in <lambda>()
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
H A DKeyguardBlueprint.kt38 constraintLayout: ConstraintLayout, in replaceViews()
46 prevSections.subtract(skipSections).forEach { it.removeViews(constraintLayout) } in replaceViews()
48 it.addViews(constraintLayout) in replaceViews()
50 it.bindData(constraintLayout) in replaceViews()
58 constraintLayout: ConstraintLayout, in rebuildViews()
67 rebuildSections.forEach { it.removeViews(constraintLayout) } in rebuildViews()
69 it.addViews(constraintLayout) in rebuildViews()
71 it.bindData(constraintLayout) in rebuildViews()
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/ui/view/layout/sections/
H A DCommunalTutorialIndicatorSection.kt49 override fun addViews(constraintLayout: ConstraintLayout) { in addViews()
54 constraintLayout.resources.getDimensionPixelSize( in addViews()
58 TextView(constraintLayout.context).apply { in addViews()
75 text = constraintLayout.context.getString(R.string.communal_tutorial_indicator_text) in addViews()
78 constraintLayout.addView(view) in addViews()
81 override fun bindData(constraintLayout: ConstraintLayout) { in bindData()
87 constraintLayout.requireViewById(R.id.communal_tutorial_indicator), in bindData()
127 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews()
129 constraintLayout.removeView(R.id.communal_tutorial_indicator) in removeViews()
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/view/layout/sections/
H A DDefaultDeviceEntrySectionTest.kt93 val constraintLayout = ConstraintLayout(context, null) in addViewsConditionally_migrateFlagOn() constant
94 underTest.addViews(constraintLayout) in addViewsConditionally_migrateFlagOn()
95 assertThat(constraintLayout.childCount).isGreaterThan(0) in addViewsConditionally_migrateFlagOn()
101 val constraintLayout = ConstraintLayout(context, null) in addViewsConditionally_migrateAndRefactorFlagsOn() constant
102 underTest.addViews(constraintLayout) in addViewsConditionally_migrateAndRefactorFlagsOn()
103 assertThat(constraintLayout.childCount).isGreaterThan(0) in addViewsConditionally_migrateAndRefactorFlagsOn()
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/
H A DKeyguardBlueprintViewModel.kt92 constraintLayout: ConstraintLayout, in runTransition()
106 constraintLayout, in runTransition()
114 constraintLayout: ConstraintLayout, in runTransition()
155 TransitionManager.endTransitions(constraintLayout) in runTransition()
158 TransitionManager.beginDelayedTransition(constraintLayout, transition) in runTransition()
/aosp_15_r20/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsRecyclerView.java374 private void constraintTextViewsVertically(ConstraintLayout constraintLayout, in constraintTextViewsVertically() argument
377 chain.clone(constraintLayout); in constraintTextViewsVertically()
387 chain.connect(currentView.getId(), ConstraintSet.START, constraintLayout.getId(), in constraintTextViewsVertically()
389 chain.connect(currentView.getId(), ConstraintSet.END, constraintLayout.getId(), in constraintTextViewsVertically()
395 chain.createVerticalChain(constraintLayout.getId(), ConstraintSet.TOP, in constraintTextViewsVertically()
396 constraintLayout.getId(), ConstraintSet.BOTTOM, viewIds, weights, in constraintTextViewsVertically()
398 chain.applyTo(constraintLayout); in constraintTextViewsVertically()

12345678