OSDN Git Service

Add test for anomaly detection in P
authorLei Yu <jackqdyulei@google.com>
Wed, 4 Apr 2018 19:16:18 +0000 (12:16 -0700)
committerLei Yu <jackqdyulei@google.com>
Fri, 6 Apr 2018 17:49:36 +0000 (10:49 -0700)
commit9553855af4f6532c2499309f5c6318c01f4b4ace
treec9497c7f6ab16f610aa8c06b9d86313b6cca5bac
parent78e2cad8b1e022380706ca0173ad9a64a214050b
Add test for anomaly detection in P

Lot of tests have been added already, this CL adds the missing tests
after robolectric upgrade.

Also add UID_NULL check in AnomalyDetectionJobService. It is almost
impossible to happen however we better catch it.

Bug: 73172999
Test: RunSettingsRoboTests
Change-Id: I950537efb166b0900393df1321ca64151b43e906
src/com/android/settings/fuelgauge/batterytip/AnomalyConfigReceiver.java
src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionJobService.java
tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionJobServiceTest.java