Searched refs:mCardPreference (Results 1 – 3 of 3) sorted by relevance
74 private CardPreference mCardPreference; field in BatteryTipPreferenceControllerTest85 mCardPreference = spy(new CardPreference(mContext)); in setUp()87 doReturn(mCardPreference).when(mPreferenceScreen).findPreference(KEY_PREF); in setUp()96 mBatteryTipPreferenceController.mCardPreference = mCardPreference; in setUp()104 assertThat(mCardPreference.isVisible()).isFalse(); in testDisplayPreference_isInvisible()111 assertThat(mCardPreference.isVisible()).isTrue(); in testUpdateBatteryTips_tipsStateNew_isVisible()118 assertThat(mCardPreference.isVisible()).isFalse(); in testUpdateBatteryTips_tipsStateInvisible_isInvisible()156 controller.mCardPreference = mCardPreference; in testSaveAndRestore()160 assertOnlyContainsSummaryTip(mCardPreference); in testSaveAndRestore()184 mBatteryTipPreferenceController.handlePreferenceTreeClick(mCardPreference); in testHandlePreferenceTreeClick_noDialog_invokeCallback()
58 CardPreference mCardPreference; field in BatteryTipPreferenceController91 mCardPreference = screen.findPreference(getPreferenceKey()); in displayPreference()94 mCardPreference.setVisible(false); in displayPreference()110 mCardPreference.setVisible(false); in updateBatteryTips()115 mCardPreference.setVisible(true); in updateBatteryTips()116 batteryTip.updatePreference(mCardPreference); in updateBatteryTips()117 mBatteryTipMap.put(mCardPreference.getKey(), batteryTip); in updateBatteryTips()
35 private CardPreference mCardPreference; field in CardPreferenceTest41 mCardPreference = new CardPreference(mContext); in setUp()46 assertThat(mCardPreference.getLayoutResource()).isEqualTo(R.layout.card_preference_layout); in getLayoutResource()