Home
last modified time | relevance | path

Searched refs:RestrictAppTip (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTipTest.java62 private RestrictAppTip mNewBatteryTip;
63 private RestrictAppTip mHandledBatteryTip;
64 private RestrictAppTip mInvisibleBatteryTip;
104 mNewBatteryTip = new RestrictAppTip(BatteryTip.StateType.NEW, mUsageAppList); in setUp()
105 mHandledBatteryTip = new RestrictAppTip(BatteryTip.StateType.HANDLED, mUsageAppList); in setUp()
107 new RestrictAppTip(BatteryTip.StateType.INVISIBLE, new ArrayList<>()); in setUp()
122 final RestrictAppTip parcelTip = new RestrictAppTip(parcel); in parcelable()
143 mHandledBatteryTip = new RestrictAppTip(BatteryTip.StateType.HANDLED, mUsageAppList); in getTitle_moreAppsHandled_showHandledTitle()
164 mHandledBatteryTip = new RestrictAppTip(BatteryTip.StateType.HANDLED, mUsageAppList); in getSummary_moreAppsHandled_showHandledSummary()
205 final BatteryTip batteryTip = new RestrictAppTip(BatteryTip.StateType.NEW, appInfos); in sanityCheck_appUninstalled_stateInvisible()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTip.java38 public class RestrictAppTip extends BatteryTip { class
41 public RestrictAppTip(@StateType int state, List<AppInfo> restrictApps) { in RestrictAppTip() method in RestrictAppTip
47 public RestrictAppTip(@StateType int state, AppInfo appInfo) { in RestrictAppTip() method in RestrictAppTip
55 RestrictAppTip(Parcel in) { in RestrictAppTip() method in RestrictAppTip
107 mRestrictAppList = ((RestrictAppTip) tip).mRestrictAppList; in updateState()
116 mRestrictAppList = ((RestrictAppTip) tip).mRestrictAppList; in updateState()
185 return new RestrictAppTip(in);
189 return new RestrictAppTip[size];
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java36 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
71 private RestrictAppTip mRestrictedOneAppTip;
72 private RestrictAppTip mRestrictTwoAppsTip;
110 new RestrictAppTip(BatteryTip.StateType.NEW, new ArrayList<>(restrictApps)); in setUp()
113 new RestrictAppTip(BatteryTip.StateType.NEW, new ArrayList<>(restrictApps)); in setUp()
199 final RestrictAppTip restrictSixAppsTip = in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
200 new RestrictAppTip(BatteryTip.StateType.NEW, appInfos); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
DBatteryTipUtilsTest.java32 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
50 private RestrictAppTip mRestrictAppTip;
61 mRestrictAppTip = spy(new RestrictAppTip(BatteryTip.StateType.NEW, new ArrayList<>())); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DOpenRestrictAppFragmentAction.java28 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
35 private final RestrictAppTip mRestrictAppTip;
40 InstrumentedPreferenceFragment fragment, RestrictAppTip tip) { in OpenRestrictAppFragmentAction()
DRestrictAppAction.java30 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
36 private RestrictAppTip mRestrictAppTip;
40 public RestrictAppAction(Context context, RestrictAppTip tip) { in RestrictAppAction()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtils.java39 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
101 return new OpenRestrictAppFragmentAction(fragment, (RestrictAppTip) batteryTip); in getActionForBatteryTip()
103 return new RestrictAppAction(settingsActivity, (RestrictAppTip) batteryTip); in getActionForBatteryTip()
DBatteryTipDialogFragment.java43 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
101 final RestrictAppTip restrictAppTip = (RestrictAppTip) mBatteryTip; in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedAppDetails.java45 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
194 final boolean isRestricted = batteryTip instanceof RestrictAppTip; in onBatteryTipHandled()
196 appInfo = ((RestrictAppTip) batteryTip).getRestrictAppList().get(0); in onBatteryTipHandled()
213 ? new RestrictAppTip(BatteryTip.StateType.NEW, appInfo) in createDialogFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/
DOpenRestrictAppFragmentActionTest.java31 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
83 mFragment, new RestrictAppTip(BatteryTip.StateType.HANDLED, mAppInfos)); in setUp()
DRestrictAppActionTest.java27 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
77 new RestrictAppTip(BatteryTip.StateType.NEW, mAppInfos)); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java47 import com.android.settings.fuelgauge.batterytip.tips.RestrictAppTip;
190 final RestrictAppTip restrictAppTip = in onBatteryTipHandled_restrict_setChecked()
191 new RestrictAppTip(BatteryTip.StateType.NEW, mAppInfo); in onBatteryTipHandled_restrict_setChecked()