Home
last modified time | relevance | path

Searched refs:TipType (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/
DBatteryTip.java53 @IntDef({TipType.SUMMARY,
54 TipType.BATTERY_SAVER,
55 TipType.HIGH_DEVICE_USAGE,
56 TipType.SMART_BATTERY_MANAGER,
57 TipType.APP_RESTRICTION,
58 TipType.REDUCED_BATTERY,
59 TipType.LOW_BATTERY,
60 TipType.REMOVE_APP_RESTRICTION,
61 TipType.BATTERY_DEFENDER})
62 public @interface TipType { annotation in BatteryTip
[all …]
DRestrictAppTip.java42 super(TipType.APP_RESTRICTION, state, state == StateType.NEW /* showDialog */); in RestrictAppTip()
48 super(TipType.APP_RESTRICTION, state, state == StateType.NEW /* showDialog */); in RestrictAppTip()
DSmartBatteryTip.java32 super(TipType.SMART_BATTERY_MANAGER, state, false /* showDialog */); in SmartBatteryTip()
DLowBatteryTip.java34 mType = TipType.LOW_BATTERY; in LowBatteryTip()
DBatteryDefenderTip.java32 super(TipType.BATTERY_DEFENDER, state, false /* showDialog */); in BatteryDefenderTip()
DUnrestrictAppTip.java35 super(TipType.REMOVE_APP_RESTRICTION, state, true /* showDialog */); in UnrestrictAppTip()
DSummaryTip.java37 super(TipType.SUMMARY, state, true /* showDialog */); in SummaryTip()
DEarlyWarningTip.java33 super(TipType.BATTERY_SAVER, state, false /* showDialog */); in EarlyWarningTip()
DHighUsageTip.java42 super(TipType.HIGH_DEVICE_USAGE, appList.isEmpty() ? StateType.INVISIBLE : StateType.NEW, in HighUsageTip()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtils.java97 case BatteryTip.TipType.SMART_BATTERY_MANAGER: in getActionForBatteryTip()
99 case BatteryTip.TipType.BATTERY_SAVER: in getActionForBatteryTip()
100 case BatteryTip.TipType.LOW_BATTERY: in getActionForBatteryTip()
102 case BatteryTip.TipType.APP_RESTRICTION: in getActionForBatteryTip()
108 case BatteryTip.TipType.REMOVE_APP_RESTRICTION: in getActionForBatteryTip()
110 case BatteryTip.TipType.BATTERY_DEFENDER: in getActionForBatteryTip()
DBatteryTipDialogFragment.java79 case BatteryTip.TipType.SUMMARY: in onCreateDialog()
84 case BatteryTip.TipType.HIGH_DEVICE_USAGE: in onCreateDialog()
99 case BatteryTip.TipType.APP_RESTRICTION: in onCreateDialog()
130 case BatteryTip.TipType.REMOVE_APP_RESTRICTION: in onCreateDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoaderTest.java53 BatteryTip.TipType.BATTERY_SAVER,
54 BatteryTip.TipType.LOW_BATTERY,
55 BatteryTip.TipType.BATTERY_DEFENDER,
56 BatteryTip.TipType.HIGH_DEVICE_USAGE,
57 BatteryTip.TipType.SMART_BATTERY_MANAGER};
DBatteryTipPreferenceControllerTest.java18 import static com.android.settings.fuelgauge.batterytip.tips.BatteryTip.TipType
146 BatteryTip.TipType.SUMMARY); in testGetCurrentBatteryTip_tipsVisible_returnTips()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBatteryFixSlice.java74 UNIMPORTANT_BATTERY_TIPS.put(BatteryTip.TipType.SUMMARY, in UNIMPORTANT_BATTERY_TIPS.put()
76 UNIMPORTANT_BATTERY_TIPS.put(BatteryTip.TipType.HIGH_DEVICE_USAGE, in UNIMPORTANT_BATTERY_TIPS.put()
78 UNIMPORTANT_BATTERY_TIPS.put(BatteryTip.TipType.BATTERY_SAVER, in UNIMPORTANT_BATTERY_TIPS.put()
195 final int type = prefs.getInt(KEY_CURRENT_TIPS_TYPE, BatteryTip.TipType.SUMMARY); in isBatteryTipAvailableFromCache()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DUnrestrictAppTipTest.java53 assertThat(parcelTip.getType()).isEqualTo(BatteryTip.TipType.REMOVE_APP_RESTRICTION); in testParcelable()
DHighUsageTipTest.java77 assertThat(parcelTip.getType()).isEqualTo(BatteryTip.TipType.HIGH_DEVICE_USAGE); in testParcelable()
DBatteryTipTest.java103 super(TipType.SUMMARY, StateType.NEW, true); in TestBatteryTip()
DRestrictAppTipTest.java119 assertThat(parcelTip.getType()).isEqualTo(BatteryTip.TipType.APP_RESTRICTION); in parcelable()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceController.java129 && mBatteryTip.getType() == BatteryTip.TipType.LOW_BATTERY) { in generateLabel()