Move anomaly code to BatteryTipUtils
Then we could reuse it across settings. Bug: 74529048 Test: robo test that cover each components still pass Change-Id: Ied0bbc6e6a1dca9628c2c084c3284ffab2f85160
This commit is contained in:
@@ -93,6 +93,7 @@ public class RestrictAppDetectorTest {
|
||||
AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UNRESTRICTED_UID,
|
||||
UNRESTRICTED_PACKAGE_NAME);
|
||||
|
||||
BatteryDatabaseManager.setUpForTest(mBatteryDatabaseManager);
|
||||
doReturn(mPackageManager).when(mContext).getPackageManager();
|
||||
doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(any(),
|
||||
anyInt());
|
||||
|
Reference in New Issue
Block a user