Home
last modified time | relevance | path

Searched refs:cardPreference (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/
DBatteryDefenderTip.java82 var cardPreference = castToTipCardPreferenceSafely(preference); in updatePreference() local
83 if (cardPreference == null) { in updatePreference()
88 cardPreference.setSelectable(false); in updatePreference()
89 cardPreference.setIconResId(getIconId()); in updatePreference()
90 cardPreference.setPrimaryButtonText(context.getString(R.string.learn_more)); in updatePreference()
91 cardPreference.setPrimaryButtonAction( in updatePreference()
106 cardPreference.setPrimaryButtonVisibility(true); in updatePreference()
107 cardPreference.setPrimaryButtonContentDescription( in updatePreference()
111 cardPreference.setSecondaryButtonText( in updatePreference()
113 cardPreference.setSecondaryButtonAction( in updatePreference()
[all …]
DIncompatibleChargerTip.java76 final var cardPreference = castToTipCardPreferenceSafely(preference); in updatePreference() local
77 if (cardPreference == null) { in updatePreference()
82 cardPreference.setSelectable(false); in updatePreference()
83 cardPreference.enableDismiss(false); in updatePreference()
84 cardPreference.setIconResId(getIconId()); in updatePreference()
85 cardPreference.setPrimaryButtonText(context.getString(R.string.learn_more)); in updatePreference()
86 cardPreference.setPrimaryButtonAction( in updatePreference()
101 cardPreference.setPrimaryButtonVisibility(true); in updatePreference()
102 cardPreference.setPrimaryButtonContentDescription( in updatePreference()
104 cardPreference.buildContent(); in updatePreference()
DBatteryTip.java169 final TipCardPreference cardPreference = castToTipCardPreferenceSafely(preference); in updatePreference() local
170 if (cardPreference != null) { in updatePreference()
171 cardPreference.resetLayoutState(); in updatePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DBatteryTipTest.java90 var cardPreference = new TipCardPreference(mContext); in updatePreference_resetLayoutState() local
91 cardPreference.setPrimaryButtonVisibility(true); in updatePreference_resetLayoutState()
92 cardPreference.setSecondaryButtonVisibility(true); in updatePreference_resetLayoutState()
94 mBatteryTip.updatePreference(cardPreference); in updatePreference_resetLayoutState()
96 assertThat(cardPreference.getPrimaryButtonVisibility()).isFalse(); in updatePreference_resetLayoutState()
97 assertThat(cardPreference.getSecondaryButtonVisibility()).isFalse(); in updatePreference_resetLayoutState()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/widget/
DTipCardPreferenceTest.kt181 val cardPreference = in resetLayoutState_shouldRemoveThePrimaryButton() constant
189 cardPreference.resetLayoutState() in resetLayoutState_shouldRemoveThePrimaryButton()
190 composeTestRule.setContent { cardPreference.Content() } in resetLayoutState_shouldRemoveThePrimaryButton()
198 val cardPreference = in resetLayoutState_shouldRemoveTheSecondaryButton() constant
206 cardPreference.resetLayoutState() in resetLayoutState_shouldRemoveTheSecondaryButton()
207 composeTestRule.setContent { cardPreference.Content() } in resetLayoutState_shouldRemoveTheSecondaryButton()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DCardPreferenceTest.java57 CardPreference cardPreference = new CardPreference(context); in newACardPreference_layoutResourceShouldBeCardPreferenceLayout() local
58 assertThat(cardPreference.getLayoutResource()).isEqualTo(R.layout.card_preference_layout); in newACardPreference_layoutResourceShouldBeCardPreferenceLayout()