/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/view/layout/blueprints/ |
D | DefaultKeyguardBlueprintTest.kt | 109 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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
D | BaseShortcutSection.kt | 16 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 19 constraintLayout.removeView(R.id.start_button) in removeViews() 20 constraintLayout.removeView(R.id.end_button) in removeViews() 23 protected fun addLeftShortcut(constraintLayout: ConstraintLayout) { in addLeftShortcut() 25 constraintLayout.resources.getDimensionPixelSize( in addLeftShortcut() 29 LaunchableImageView(constraintLayout.context, null).apply { in addLeftShortcut() 47 constraintLayout.addView(view) in addLeftShortcut() 50 protected fun addRightShortcut(constraintLayout: ConstraintLayout) { in addRightShortcut() 51 if (constraintLayout.findViewById<View>(R.id.end_button) != null) return in addRightShortcut() 54 constraintLayout.resources.getDimensionPixelSize( in addRightShortcut() [all …]
|
D | DefaultStatusBarSection.kt | 50 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 60 LayoutInflater.from(constraintLayout.context) in addViews() 61 .inflate(R.layout.keyguard_status_bar, constraintLayout, false) in addViews() 64 constraintLayout.addView(view) in addViews() 67 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 73 constraintLayout.findViewById<KeyguardStatusBarView>(statusBarViewId) ?: return in bindData() 98 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 99 constraintLayout.removeView(statusBarViewId) in removeViews()
|
D | DefaultUdfpsAccessibilityOverlaySection.kt | 43 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 44 cachedConstraintLayout = constraintLayout in addViews() 45 constraintLayout.addView(UdfpsAccessibilityOverlay(context).apply { id = viewId }) in addViews() 48 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 50 constraintLayout.findViewById(viewId)!!, in bindData() 82 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 83 constraintLayout.removeView(viewId) in removeViews()
|
D | AccessibilityActionsSection.kt | 45 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 49 val view = View(constraintLayout.context).apply { id = R.id.accessibility_actions_view } in addViews() 50 constraintLayout.addView(view) in addViews() 53 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 59 constraintLayout.requireViewById(R.id.accessibility_actions_view), in bindData() 97 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 100 constraintLayout.removeView(R.id.accessibility_actions_view) in removeViews()
|
D | KeyguardSliceViewSection.kt | 36 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 40 constraintLayout.findViewById<View?>(R.id.keyguard_slice_view)?.let { in addViews() 42 constraintLayout.addView(it) in addViews() 46 override fun bindData(constraintLayout: ConstraintLayout) {} in bindData() 83 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 87 constraintLayout.removeView(R.id.keyguard_slice_view) in removeViews()
|
D | SmartspaceSection.kt | 68 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 71 smartspaceView = smartspaceController.buildAndConnectView(constraintLayout) in addViews() 72 weatherView = smartspaceController.buildAndConnectWeatherView(constraintLayout) in addViews() 74 smartspaceController.buildAndConnectDateView(constraintLayout) as ViewGroup in addViews() 76 constraintLayout.addView(smartspaceView) in addViews() 78 constraintLayout.addView(dateWeatherView) in addViews() 96 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 100 constraintLayout, in bindData() 179 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 184 if (it.parent == constraintLayout) { in removeViews() [all …]
|
D | DefaultIndicationAreaSection.kt | 44 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 47 constraintLayout.addView(view) in addViews() 51 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 55 constraintLayout.requireViewById(R.id.keyguard_indication_area), in bindData() 88 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 90 constraintLayout.removeView(indicationAreaViewId) in removeViews()
|
D | AodBurnInSection.kt | 49 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 54 constraintLayout.addView(emptyView) in addViews() 61 constraintLayout.addView(burnInLayer) in addViews() 64 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 84 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 86 constraintLayout.removeView(R.id.burn_in_layer) in removeViews()
|
D | DefaultSettingsPopupMenuSection.kt | 58 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()
|
D | DefaultStatusViewSection.kt | 60 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 71 .inflate(R.layout.keyguard_status_view, constraintLayout, false) in addViews() 82 constraintLayout.addView(keyguardStatusView) in addViews() 85 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 87 constraintLayout.findViewById<KeyguardStatusView?>(R.id.keyguard_status_view)?.let { in bindData() 123 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 124 constraintLayout.removeView(statusViewId) in removeViews()
|
D | DefaultShortcutsSection.kt | 60 override fun addViews(constraintLayout: ConstraintLayout) { in <lambda>() 62 addLeftShortcut(constraintLayout) in <lambda>() 63 addRightShortcut(constraintLayout) in <lambda>() 65 constraintLayout in <lambda>() 80 override fun bindData(constraintLayout: ConstraintLayout) { in <lambda>() 84 constraintLayout.requireViewById(R.id.start_button), in <lambda>() 94 constraintLayout.requireViewById(R.id.end_button), in <lambda>()
|
D | SplitShadeMediaSection.kt | 48 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 69 constraintLayout.addView(mediaFrame) in addViews() 73 override fun bindData(constraintLayout: ConstraintLayout) {} in bindData() 89 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 94 constraintLayout.removeView(mediaContainerId) in removeViews()
|
D | NotificationStackScrollLayoutSection.kt | 68 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 81 constraintLayout.addView(view) in addViews() 84 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 97 override fun removeViews(constraintLayout: ConstraintLayout) { in removeViews() 100 constraintLayout.removeView(placeHolderId) in removeViews()
|
D | AlignShortcutsToUdfpsSection.kt | 51 override fun addViews(constraintLayout: ConstraintLayout) { in addViews() 53 addLeftShortcut(constraintLayout) in addViews() 54 addRightShortcut(constraintLayout) in addViews() 58 override fun bindData(constraintLayout: ConstraintLayout) { in bindData() 62 constraintLayout.requireViewById(R.id.start_button), in bindData() 72 constraintLayout.requireViewById(R.id.end_button), in bindData()
|
D | SplitShadeGuidelines.kt | 28 override fun addViews(constraintLayout: ConstraintLayout) {} in addViews() 30 override fun bindData(constraintLayout: ConstraintLayout) {} in bindData() 41 override fun removeViews(constraintLayout: ConstraintLayout) {} in removeViews()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/ |
D | KeyguardBlueprint.kt | 38 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()
|
D | KeyguardSection.kt | 28 abstract fun addViews(constraintLayout: ConstraintLayout) in <lambda>() 30 abstract fun bindData(constraintLayout: ConstraintLayout) in <lambda>() 34 abstract fun removeViews(constraintLayout: ConstraintLayout) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
D | KeyguardBlueprintViewBinder.kt | 42 constraintLayout: ConstraintLayout, in <lambda>() 47 constraintLayout.repeatWhenAttached { in <lambda>() 78 viewModel.runTransition(constraintLayout, transition, config) { in <lambda>() 81 constraintLayout, in <lambda>() 88 clone(constraintLayout) in <lambda>() 97 cs.applyTo(constraintLayout) in <lambda>() 107 constraintLayout, in <lambda>() 111 blueprint.rebuildViews(constraintLayout, config.rebuildSections) in <lambda>() 115 clone(constraintLayout) in <lambda>() 119 cs.applyTo(constraintLayout) in <lambda>()
|
D | KeyguardSmartspaceViewBinder.kt | 113 constraintLayout: ConstraintLayout, in <lambda>() 116 val burnInLayer = constraintLayout.requireViewById<Layer>(R.id.burn_in_layer) in <lambda>() 123 constraintLayout.requireViewById<View>(sharedR.id.date_smartspace_view) in <lambda>() 130 constraintLayout: ConstraintLayout, in <lambda>() 133 val burnInLayer = constraintLayout.requireViewById<Layer>(R.id.burn_in_layer) in <lambda>() 140 constraintLayout.requireViewById<View>(sharedR.id.date_smartspace_view) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/ui/view/layout/sections/ |
D | CommunalTutorialIndicatorSection.kt | 49 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()
|
D | DefaultCommunalHubSection.kt | 10 override fun addViews(constraintLayout: ConstraintLayout) {} in addViews() 12 override fun bindData(constraintLayout: ConstraintLayout) {} in bindData() 16 override fun removeViews(constraintLayout: ConstraintLayout) {} in removeViews()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
D | SmartspaceSectionTest.kt | 63 private lateinit var constraintLayout: ConstraintLayout variable in com.android.systemui.keyguard.ui.view.layout.sections.SmartspaceSectionTest 84 constraintLayout = ConstraintLayout(mContext) in setup() 101 val constraintLayout = ConstraintLayout(mContext) in testAddViews_notSmartspaceEnabled() constant 102 underTest.addViews(constraintLayout) in testAddViews_notSmartspaceEnabled() 111 underTest.addViews(constraintLayout) in testAddViews_smartspaceEnabled_dateWeatherDecoupled() 112 assert(smartspaceView.parent == constraintLayout) in testAddViews_smartspaceEnabled_dateWeatherDecoupled() 114 assert(dateView.parent == constraintLayout) in testAddViews_smartspaceEnabled_dateWeatherDecoupled() 120 underTest.addViews(constraintLayout) in testAddViews_smartspaceEnabled_notDateWeatherDecoupled() 121 assert(smartspaceView.parent == constraintLayout) in testAddViews_smartspaceEnabled_notDateWeatherDecoupled() 129 underTest.addViews(constraintLayout) in testConstraintsWhenNotHasCustomWeatherDataDisplay() [all …]
|
D | DefaultIndicationAreaSectionTest.kt | 60 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()
|
D | DefaultDeviceEntrySectionTest.kt | 94 val constraintLayout = ConstraintLayout(context, null) in addViewsConditionally_migrateFlagOn() constant 95 underTest.addViews(constraintLayout) in addViewsConditionally_migrateFlagOn() 96 assertThat(constraintLayout.childCount).isGreaterThan(0) in addViewsConditionally_migrateFlagOn() 103 val constraintLayout = ConstraintLayout(context, null) in addViewsConditionally_migrateAndRefactorFlagsOn() constant 104 underTest.addViews(constraintLayout) in addViewsConditionally_migrateAndRefactorFlagsOn() 105 assertThat(constraintLayout.childCount).isGreaterThan(0) in addViewsConditionally_migrateAndRefactorFlagsOn() 113 val constraintLayout = ConstraintLayout(context, null) in addViewsConditionally_migrateFlagOff() constant 114 underTest.addViews(constraintLayout) in addViewsConditionally_migrateFlagOff() 115 assertThat(constraintLayout.childCount).isEqualTo(0) in addViewsConditionally_migrateFlagOff()
|