Searched refs:earlyWarningTip (Results 1 – 2 of 2) sorted by relevance
66 final EarlyWarningTip earlyWarningTip = (EarlyWarningTip) tip; in updateState() local67 if (earlyWarningTip.mState == StateType.NEW) { in updateState()70 } else if (earlyWarningTip.mPowerSaveModeOn) { in updateState()74 mState = earlyWarningTip.getState(); in updateState()76 mPowerSaveModeOn = earlyWarningTip.mPowerSaveModeOn; in updateState()
98 final EarlyWarningTip earlyWarningTip = new EarlyWarningTip(BatteryTip.StateType.INVISIBLE, in testUpdate_turnOnLowPowerModeExplicitly_typeStillInvisible() local103 earlyWarningTip.updateState(nextTip); in testUpdate_turnOnLowPowerModeExplicitly_typeStillInvisible()105 assertThat(earlyWarningTip.getState()).isEqualTo(BatteryTip.StateType.INVISIBLE); in testUpdate_turnOnLowPowerModeExplicitly_typeStillInvisible()110 final EarlyWarningTip earlyWarningTip = new EarlyWarningTip(BatteryTip.StateType.HANDLED, in testUpdate_turnOffLowPowerModeExplicitly_typeBecomeInvisible() local115 earlyWarningTip.updateState(nextTip); in testUpdate_turnOffLowPowerModeExplicitly_typeBecomeInvisible()117 assertThat(earlyWarningTip.getState()).isEqualTo(BatteryTip.StateType.INVISIBLE); in testUpdate_turnOffLowPowerModeExplicitly_typeBecomeInvisible()