Home
last modified time | relevance | path

Searched refs:BatteryStatsManager (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateTracker.java19 import android.os.BatteryStatsManager;
36 private BatteryStatsManager mBatteryStatsManager;
38 public WifiStateTracker(BatteryStatsManager batteryStatsManager) { in WifiStateTracker()
57 int reportState = BatteryStatsManager.WIFI_STATE_OFF; in updateState()
61 reportState = BatteryStatsManager.WIFI_STATE_OFF_SCANNING; in updateState()
64 reportState = BatteryStatsManager.WIFI_STATE_ON_DISCONNECTED; in updateState()
67 reportState = BatteryStatsManager.WIFI_STATE_ON_CONNECTED_STA; in updateState()
70 reportState = BatteryStatsManager.WIFI_STATE_SOFT_AP; in updateState()
DSupplicantStateTracker.java24 import android.os.BatteryStatsManager;
49 private final BatteryStatsManager mBatteryStatsManager;
94 BatteryStatsManager batteryStatsManager, Handler t) { in SupplicantStateTracker()
179 supplState = BatteryStatsManager.WIFI_SUPPL_STATE_DISCONNECTED; in sendSupplicantStateChangedBroadcast()
182 supplState = BatteryStatsManager.WIFI_SUPPL_STATE_INTERFACE_DISABLED; in sendSupplicantStateChangedBroadcast()
185 supplState = BatteryStatsManager.WIFI_SUPPL_STATE_INACTIVE; in sendSupplicantStateChangedBroadcast()
188 supplState = BatteryStatsManager.WIFI_SUPPL_STATE_SCANNING; in sendSupplicantStateChangedBroadcast()
191 supplState = BatteryStatsManager.WIFI_SUPPL_STATE_AUTHENTICATING; in sendSupplicantStateChangedBroadcast()
194 supplState = BatteryStatsManager.WIFI_SUPPL_STATE_ASSOCIATING; in sendSupplicantStateChangedBroadcast()
197 supplState = BatteryStatsManager.WIFI_SUPPL_STATE_ASSOCIATED; in sendSupplicantStateChangedBroadcast()
[all …]
DWifiPowerMetrics.java18 import android.os.BatteryStatsManager;
37 private final BatteryStatsManager mBatteryStats;
39 public WifiPowerMetrics(BatteryStatsManager batteryStats) { in WifiPowerMetrics()
DWifiMulticastLockManager.java19 import android.os.BatteryStatsManager;
44 private final BatteryStatsManager mBatteryStats;
57 BatteryStatsManager batteryStats) { in WifiMulticastLockManager()
DActiveModeWarden.java31 import android.os.BatteryStatsManager;
72 private final BatteryStatsManager mBatteryStatsManager;
103 BatteryStatsManager batteryStatsManager, in ActiveModeWarden()
584 mBatteryStatsManager.reportWifiState(BatteryStatsManager.WIFI_STATE_OFF_SCANNING, null); in updateBatteryStatsScanModeActive()
DWifiLockManager.java22 import android.os.BatteryStatsManager;
60 private final BatteryStatsManager mBatteryStats;
86 WifiLockManager(Context context, BatteryStatsManager batteryStats, in WifiLockManager()
DWifiInjector.java32 import android.os.BatteryStatsManager;
86 private final BatteryStatsManager mBatteryStats;
198 mBatteryStats = context.getSystemService(BatteryStatsManager.class); in WifiInjector()
DClientModeImpl.java87 import android.os.BatteryStatsManager;
722 private final BatteryStatsManager mBatteryStatsManager;
750 BatteryStatsManager batteryStatsManager, in ClientModeImpl()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DModemPowerMetrics.java18 import android.os.BatteryStatsManager;
43 private BatteryStatsManager mBatteryStatsManager;
45 public ModemPowerMetrics(BatteryStatsManager batteryStatsManager) { in ModemPowerMetrics()
DTelephonyMetrics.java42 import android.os.BatteryStatsManager;
589 BatteryStatsManager batteryStatsManager = mContext == null ? null : in printAllMetrics()
590 (BatteryStatsManager) mContext.getSystemService(Context.BATTERY_STATS_SERVICE); in printAllMetrics()
751 BatteryStatsManager batteryStatsManager = mContext == null ? null : in buildProto()
752 (BatteryStatsManager) mContext.getSystemService(Context.BATTERY_STATS_SERVICE); in buildProto()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningService.java20 import android.os.BatteryStatsManager;
45 getContext().getSystemService(BatteryStatsManager.class), in WifiScanningService()
DWifiScanningServiceImpl.java37 import android.os.BatteryStatsManager;
395 private final BatteryStatsManager mBatteryStats;
405 BatteryStatsManager batteryStats, WifiInjector wifiInjector) { in WifiScanningServiceImpl()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiStateTrackerTest.java24 import android.os.BatteryStatsManager;
41 BatteryStatsManager mBatteryStats;
DWifiPowerMetricsTest.java21 import android.os.BatteryStatsManager;
44 BatteryStatsManager mBatteryStats;
DWifiMulticastLockManagerTest.java22 import android.os.BatteryStatsManager;
46 @Mock BatteryStatsManager mBatteryStats;
DSupplicantStateTrackerTest.java29 import android.os.BatteryStatsManager;
54 private @Mock BatteryStatsManager mBatteryStats;
DActiveModeWardenTest.java57 import android.os.BatteryStatsManager;
108 @Mock BatteryStatsManager mBatteryStats;
270 verify(mBatteryStats).reportWifiState(BatteryStatsManager.WIFI_STATE_OFF_SCANNING, null); in enterScanOnlyModeActiveState()
DWifiLockManagerTest.java26 import android.os.BatteryStatsManager;
62 @Mock BatteryStatsManager mBatteryStats;
DClientModeImplTest.java97 import android.os.BatteryStatsManager;
415 @Mock BatteryStatsManager mBatteryStatsManager;
/frameworks/base/core/java/android/os/
DBatteryStatsManager.java45 public final class BatteryStatsManager { class
159 public BatteryStatsManager(IBatteryStats batteryStats) { in BatteryStatsManager() method in BatteryStatsManager
DBatteryStats.java20 import static android.os.BatteryStatsManager.NUM_WIFI_STATES;
21 import static android.os.BatteryStatsManager.NUM_WIFI_SUPPL_STATES;
29 import android.os.BatteryStatsManager.WifiState;
30 import android.os.BatteryStatsManager.WifiSupplState;
/frameworks/base/core/java/android/os/connectivity/
DWifiBatteryStats.java19 import static android.os.BatteryStatsManager.NUM_WIFI_STATES;
20 import static android.os.BatteryStatsManager.NUM_WIFI_SUPPL_STATES;
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java139 import android.os.BatteryStatsManager;
1272 registerService(Context.BATTERY_STATS_SERVICE, BatteryStatsManager.class, in registerService()
1273 new CachedServiceFetcher<BatteryStatsManager>() { in registerService()
1275 public BatteryStatsManager createService(ContextImpl ctx) in registerService()
1279 return new BatteryStatsManager( in registerService()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java64 import android.os.BatteryStatsManager;
136 @Mock BatteryStatsManager mBatteryStats;
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java19 import static android.os.BatteryStatsManager.NUM_WIFI_STATES;
20 import static android.os.BatteryStatsManager.NUM_WIFI_SUPPL_STATES;

12