OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:isCharging
(Results
1 - 19
of
19
) sorted by null
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
JobPreconditions.java
42
public static boolean
isCharging
(Context context) {
46
return batteryManager.
isCharging
();
AutomaticStorageManagementJobService.java
122
return JobPreconditions.
isCharging
(context);
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
JobPreconditionsTest.java
92
when(mBatteryManager.
isCharging
()).thenReturn(true);
94
assertThat(JobPreconditions.
isCharging
(mContext)).isTrue();
99
when(mBatteryManager.
isCharging
()).thenReturn(false);
101
assertThat(JobPreconditions.
isCharging
(mContext)).isFalse();
AutomaticStorageManagementJobServiceTest.java
82
when(mBatteryManager.
isCharging
()).thenReturn(true);
118
when(mBatteryManager.
isCharging
()).thenReturn(false);
123
when(mBatteryManager.
isCharging
()).thenReturn(true);
/frameworks/base/core/java/android/os/
BatteryManager.java
167
* be retrieved with {@link #
isCharging
()}.
176
* be retrieved with {@link #
isCharging
()}.
245
public boolean
isCharging
() {
247
return mBatteryStats.
isCharging
();
/frameworks/base/services/core/java/com/android/server/storage/
DiskStatsLoggingService.java
60
if (!
isCharging
(this) || !isDumpsysTaskEnabled(getContentResolver())) {
108
private static boolean
isCharging
(Context context) {
112
return batteryManager.
isCharging
();
/frameworks/base/core/java/com/android/internal/app/
IBatteryStats.aidl
54
boolean
isCharging
();
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
ConnOnActivityStartTest.java
308
while (mBatteryManager.
isCharging
() && SystemClock.uptimeMillis() < endTime) {
311
assertFalse("Power should be disconnected", mBatteryManager.
isCharging
());
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
ChargingConstraintTestActivity.java
116
if (bm.
isCharging
()) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DeviceStateMonitor.java
80
* is going up (or the battery is fully charged). See BatteryManager.
isCharging
() for the
361
* See {@link android.os.BatteryManager#
isCharging
BatteryManager.
isCharging
()}.
366
return bm.
isCharging
();
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
LocationFragment.java
119
if (batteryManager != null && !batteryManager.
isCharging
()) {
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DiskStatsLoggingServiceTest.java
179
when(batteryManager.
isCharging
()).thenReturn(true);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
ConnectivityScreenOffTestActivity.java
169
if (!battMgr.
isCharging
()) {
/frameworks/base/services/core/java/com/android/server/am/
BatteryStatsService.java
400
public boolean
isCharging
() {
402
return mStats.
isCharging
();
[
all
...]
/frameworks/base/services/usage/java/com/android/server/usage/
UsageStatsService.java
274
setChargingState(getContext().getSystemService(BatteryManager.class).
isCharging
());
[
all
...]
/frameworks/base/core/java/com/android/internal/os/
BatteryStatsImpl.java
[
all
...]
/prebuilts/misc/common/robolectric/lib/
android-all-6.0.0_r1-robolectric-0.jar
/prebuilts/sdk/24/
android.jar
/prebuilts/sdk/25/
android.jar
Completed in 808 milliseconds