Home
last modified time | relevance | path

Searched refs:tip (Results 1 – 25 of 44) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DEarlyWarningTipTest.java67 final EarlyWarningTip tip = in testInfo_stateNew_displayPowerModeInfo() local
70 assertThat(tip.getTitle(mContext)).isEqualTo("Turn on Battery Saver"); in testInfo_stateNew_displayPowerModeInfo()
71 assertThat(tip.getSummary(mContext)).isEqualTo("Battery may run out earlier than usual"); in testInfo_stateNew_displayPowerModeInfo()
72 assertThat(tip.getIconId()).isEqualTo(R.drawable.ic_battery_status_bad_24dp); in testInfo_stateNew_displayPowerModeInfo()
73 assertThat(tip.getIconTintColorId()).isEqualTo(R.color.battery_bad_color_light); in testInfo_stateNew_displayPowerModeInfo()
78 final EarlyWarningTip tip = in testInfo_stateHandled_displayPowerModeHandledInfo() local
81 assertThat(tip.getTitle(mContext)).isEqualTo("Battery Saver is on"); in testInfo_stateHandled_displayPowerModeHandledInfo()
82 assertThat(tip.getSummary(mContext)).isEqualTo("Some features may be limited"); in testInfo_stateHandled_displayPowerModeHandledInfo()
83 assertThat(tip.getIconId()).isEqualTo(R.drawable.ic_battery_status_maybe_24dp); in testInfo_stateHandled_displayPowerModeHandledInfo()
84 assertThat(tip.getIconTintColorId()).isEqualTo(R.color.battery_maybe_color_light); in testInfo_stateHandled_displayPowerModeHandledInfo()
DBatteryTipTest.java126 public void updateState(BatteryTip tip) { in updateState() argument
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTip.java92 public void updateState(BatteryTip tip) { in updateState() argument
93 if (tip.mState == StateType.NEW) { in updateState()
96 mRestrictAppList = ((RestrictAppTip) tip).mRestrictAppList; in updateState()
98 } else if (mState == StateType.NEW && tip.mState == StateType.INVISIBLE) { in updateState()
103 mState = tip.getState(); in updateState()
104 mShowDialog = tip.shouldShowDialog(); in updateState()
105 mRestrictAppList = ((RestrictAppTip) tip).mRestrictAppList; in updateState()
DSmartBatteryTip.java55 public void updateState(BatteryTip tip) { in updateState() argument
56 mState = tip.mState; in updateState()
DUnrestrictAppTip.java67 public void updateState(BatteryTip tip) { in updateState() argument
68 mState = tip.mState; in updateState()
DSummaryTip.java68 public void updateState(BatteryTip tip) { in updateState() argument
69 mState = tip.mState; in updateState()
DEarlyWarningTip.java74 public void updateState(BatteryTip tip) { in updateState() argument
75 final EarlyWarningTip earlyWarningTip = (EarlyWarningTip) tip; in updateState()
DHighUsageTip.java78 public void updateState(BatteryTip tip) { in updateState() argument
79 mState = tip.mState; in updateState()
DBatteryTip.java136 public abstract void updateState(BatteryTip tip); in updateState() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/tips/
DRestrictAppTip.java92 public void updateState(BatteryTip tip) { in updateState() argument
93 if (tip.mState == StateType.NEW) { in updateState()
96 mRestrictAppList = ((RestrictAppTip) tip).mRestrictAppList; in updateState()
98 } else if (mState == StateType.NEW && tip.mState == StateType.INVISIBLE) { in updateState()
103 mState = tip.getState(); in updateState()
104 mShowDialog = tip.shouldShowDialog(); in updateState()
105 mRestrictAppList = ((RestrictAppTip) tip).mRestrictAppList; in updateState()
DSmartBatteryTip.java55 public void updateState(BatteryTip tip) { in updateState() argument
56 mState = tip.mState; in updateState()
DUnrestrictAppTip.java67 public void updateState(BatteryTip tip) { in updateState() argument
68 mState = tip.mState; in updateState()
DSummaryTip.java68 public void updateState(BatteryTip tip) { in updateState() argument
69 mState = tip.mState; in updateState()
DEarlyWarningTip.java74 public void updateState(BatteryTip tip) { in updateState() argument
75 final EarlyWarningTip earlyWarningTip = (EarlyWarningTip) tip; in updateState()
DHighUsageTip.java78 public void updateState(BatteryTip tip) { in updateState() argument
79 mState = tip.mState; in updateState()
DBatteryTip.java136 public abstract void updateState(BatteryTip tip); in updateState() argument
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DUnrestrictAppAction.java37 public UnrestrictAppAction(Context context, UnrestrictAppTip tip) { in UnrestrictAppAction() argument
39 mUnRestrictAppTip = tip; in UnrestrictAppAction()
DOpenRestrictAppFragmentAction.java43 RestrictAppTip tip) { in OpenRestrictAppFragmentAction() argument
46 mRestrictAppTip = tip; in OpenRestrictAppFragmentAction()
DRestrictAppAction.java44 public RestrictAppAction(Context context, RestrictAppTip tip) { in RestrictAppAction() argument
46 mRestrictAppTip = tip; in RestrictAppAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/
DUnrestrictAppAction.java37 public UnrestrictAppAction(Context context, UnrestrictAppTip tip) { in UnrestrictAppAction() argument
39 mUnRestrictAppTip = tip; in UnrestrictAppAction()
DOpenRestrictAppFragmentAction.java43 RestrictAppTip tip) { in OpenRestrictAppFragmentAction() argument
46 mRestrictAppTip = tip; in OpenRestrictAppFragmentAction()
DRestrictAppAction.java44 public RestrictAppAction(Context context, RestrictAppTip tip) { in RestrictAppAction() argument
46 mRestrictAppTip = tip; in RestrictAppAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBackgroundActivityPreferenceController.java142 BatteryTip tip = restricted in showDialog() local
146 final BatteryTipDialogFragment dialogFragment = BatteryTipDialogFragment.newInstance(tip, in showDialog()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBackgroundActivityPreferenceController.java142 BatteryTip tip = restricted in showDialog() local
146 final BatteryTipDialogFragment dialogFragment = BatteryTipDialogFragment.newInstance(tip, in showDialog()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1530 private static byte[] arpReply(byte[] sip, byte[] tip) { in arpReply() argument
1535 put(packet, ARP_TARGET_IP_ADDRESS_OFFSET, tip); in arpReply()
1539 private static byte[] arpRequestBroadcast(byte[] tip) { in arpRequestBroadcast() argument
1544 put(packet, ARP_TARGET_IP_ADDRESS_OFFSET, tip); in arpRequestBroadcast()
1746 private static byte[] ipv6TcpPacket(byte[] sip, byte[] tip, int sport, in ipv6TcpPacket() argument
1752 put(packet, IPV6_DEST_ADDR_OFFSET, tip); in ipv6TcpPacket()

12