Searched refs:cardPreference (Results 1 – 6 of 6) sorted by relevance
82 var cardPreference = castToTipCardPreferenceSafely(preference); in updatePreference() local83 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 …]
76 final var cardPreference = castToTipCardPreferenceSafely(preference); in updatePreference() local77 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()
169 final TipCardPreference cardPreference = castToTipCardPreferenceSafely(preference); in updatePreference() local170 if (cardPreference != null) { in updatePreference()171 cardPreference.resetLayoutState(); in updatePreference()
90 var cardPreference = new TipCardPreference(mContext); in updatePreference_resetLayoutState() local91 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()
181 val cardPreference = in resetLayoutState_shouldRemoveThePrimaryButton() constant189 cardPreference.resetLayoutState() in resetLayoutState_shouldRemoveThePrimaryButton()190 composeTestRule.setContent { cardPreference.Content() } in resetLayoutState_shouldRemoveThePrimaryButton()198 val cardPreference = in resetLayoutState_shouldRemoveTheSecondaryButton() constant206 cardPreference.resetLayoutState() in resetLayoutState_shouldRemoveTheSecondaryButton()207 composeTestRule.setContent { cardPreference.Content() } in resetLayoutState_shouldRemoveTheSecondaryButton()
57 CardPreference cardPreference = new CardPreference(context); in newACardPreference_layoutResourceShouldBeCardPreferenceLayout() local58 assertThat(cardPreference.getLayoutResource()).isEqualTo(R.layout.card_preference_layout); in newACardPreference_layoutResourceShouldBeCardPreferenceLayout()