Home
last modified time | relevance | path

Searched refs:BatteryState (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryState.java34 public class BatteryState { class
60 public BatteryState( in BatteryState() method in BatteryState
119 public static BatteryState create(ContentValues contentValues) { in create()
120 Builder builder = BatteryState.newBuilder(); in create()
222 public BatteryState build() { in build()
223 return new BatteryState( in build()
DBatteryStateDao.java34 void insert(BatteryState state); in insert()
38 void insertAll(List<BatteryState> states); in insertAll()
50 List<BatteryState> getAllAfter(long timestamp); in getAllAfter()
DBatteryStateDatabase.java32 BatteryState.class,
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/
DStylusUsiHeaderController.java20 import android.hardware.BatteryState;
86 BatteryState batteryState = mInputDevice.getBatteryState(); in refresh()
111 private boolean isValidBatteryState(BatteryState batteryState) { in isValidBatteryState()
129 @NonNull BatteryState batteryState) { in onBatteryStateChanged()
DStylusDeviceUpdater.java20 import android.hardware.BatteryState;
63 BatteryState mLastBatteryState;
137 @NonNull BatteryState batteryState) { in onBatteryStateChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryStateTest.java70 BatteryState state = create(mBatteryInformation); in testBuilder_returnsExpectedResult()
83 private static BatteryState create(BatteryInformation batteryInformation) { in create()
84 return BatteryState.newBuilder() in create()
DBatteryStateDaoTest.java75 final List<BatteryState> states = mBatteryStateDao.getAllAfter(TIMESTAMP1); in insertAll_normalFlow_expectedBehavior()
127 final List<BatteryState> states = mBatteryStateDao.getAllAfter(0); in clearAllBefore_normalFlow_expectedBehavior()
160 private static void assertBatteryState(BatteryState state, long timestamp, String packageName) { in assertBatteryState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/
DStylusDeviceUpdaterTest.java33 import android.hardware.BatteryState;
233 BatteryState batteryState = mock(BatteryState.class); in onBatteryStateChanged_detectsValidUsi()
246 BatteryState batteryState = mock(BatteryState.class); in onBatteryStateChanged_detectsInvalidUsi_batteryNotPresent()
DStylusUsiHeaderControllerTest.java26 import android.hardware.BatteryState;
60 private BatteryState mBatteryState;
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DBatteryTestUtils.java46 import com.android.settings.fuelgauge.batteryusage.db.BatteryState;
142 final BatteryState state = in insertDataToBatteryStateTable()
143 new BatteryState( in insertDataToBatteryStateTable()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DLogUtils.java36 import com.android.settings.fuelgauge.batteryusage.db.BatteryState;
99 final List<BatteryState> stateList = in dumpBatteryStateDatabaseHist()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageContentProvider.java35 import com.android.settings.fuelgauge.batteryusage.db.BatteryState;
167 mBatteryStateDao.insert(BatteryState.create(contentValues)); in insert()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageContentProviderTest.java33 import com.android.settings.fuelgauge.batteryusage.db.BatteryState;
311 final List<BatteryState> states = in insert_batteryState_returnsExpectedResult()
345 final List<BatteryState> states = in insert_partialFieldsContentValues_returnsExpectedResult()