Searched refs:batteryManager (Results 1 – 3 of 3) sorted by relevance
84 final BatteryManagerInternal batteryManager = in queryIsCharging() local86 if (batteryManager == null) { in queryIsCharging()91 return batteryManager.getPlugType() != OsProtoEnums.BATTERY_PLUGGED_NONE; in queryIsCharging()
109 BatteryManager batteryManager = in isCharging() local111 if (batteryManager != null) { in isCharging()112 return batteryManager.isCharging(); in isCharging()
180 BatteryManager batteryManager = mock(BatteryManager.class); in testDontCrashOnRun() local181 when(batteryManager.isCharging()).thenReturn(true); in testDontCrashOnRun()182 doReturn(batteryManager).when(service).getSystemService(Context.BATTERY_SERVICE); in testDontCrashOnRun()