/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 56 WorkSource mWorkSource; field in WifiLockManagerTest 65 mWorkSource = new WorkSource(DEFAULT_TEST_UID_1); in setUp() 109 mWifiLockManager.acquireWifiLock(WIFI_LOCK_MODE_INVALID, "", mBinder, mWorkSource); in acquireWifiLockShouldThrowExceptionOnInivalidLockMode() 121 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed() 134 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource); in secondCallToAcquireWifiLockWithSameBinderShouldFail() 137 WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource)); in secondCallToAcquireWifiLockWithSameBinderShouldFail() 149 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource); in releaseWifiLockShouldSucceed() 198 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in checkForProperValueForGetStrongestLockMode() 202 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource); in checkForProperValueForGetStrongestLockMode() 206 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource); in checkForProperValueForGetStrongestLockMode() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLockManager.java | 156 mBatteryStats.noteFullWifiLockReleasedFromSource(wl.mWorkSource); in updateWifiLockWorkSource() 157 wl.mWorkSource = newWorkSource; in updateWifiLockWorkSource() 158 mBatteryStats.noteFullWifiLockAcquiredFromSource(wl.mWorkSource); in updateWifiLockWorkSource() 191 mBatteryStats.noteFullWifiLockAcquiredFromSource(lock.mWorkSource); in addLock() 233 mBatteryStats.noteFullWifiLockReleasedFromSource(wifiLock.mWorkSource); in releaseLock() 290 WorkSource mWorkSource; field in WifiLockManager.WifiLock 297 mWorkSource = ws; in WifiLock() 306 return mWorkSource; in getWorkSource()
|
/frameworks/base/core/java/android/os/ |
D | PowerManager.java | 1139 private WorkSource mWorkSource; field in PowerManager.WakeLock 1232 mService.acquireWakeLock(mToken, mFlags, mTag, mPackageName, mWorkSource, in acquireLocked() 1315 changed = mWorkSource != null; in setWorkSource() 1316 mWorkSource = null; in setWorkSource() 1317 } else if (mWorkSource == null) { in setWorkSource() 1319 mWorkSource = new WorkSource(ws); in setWorkSource() 1321 changed = mWorkSource.diff(ws); in setWorkSource() 1323 mWorkSource.set(ws); in setWorkSource() 1329 mService.updateWakeLockWorkSource(mToken, mWorkSource, mHistoryTag); in setWorkSource()
|
/frameworks/base/location/java/android/location/ |
D | LocationRequest.java | 151 private WorkSource mWorkSource = null; field in LocationRequest 244 mWorkSource = src.mWorkSource; in LocationRequest() 522 mWorkSource = workSource; in setWorkSource() 528 return mWorkSource; in getWorkSource() 627 parcel.writeParcelable(mWorkSource, 0); in writeToParcel()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiManager.java | 2189 private WorkSource mWorkSource; 2215 mService.acquireWifiLock(mBinder, mLockType, mTag, mWorkSource); 2296 mWorkSource = null; 2299 if (mWorkSource == null) { 2300 changed = mWorkSource != null; 2301 mWorkSource = new WorkSource(ws); 2303 changed = mWorkSource.diff(ws); 2305 mWorkSource.set(ws); 2311 mService.updateWifiLockWorkSource(mBinder, mWorkSource);
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | BluetoothLeScanner.java | 275 private final WorkSource mWorkSource; field in BluetoothLeScanner.BleScanCallbackWrapper 292 mWorkSource = workSource; in BleScanCallbackWrapper() 368 mWorkSource, mResultStorages, in onClientRegistered()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 922 if (wakeLock.mWorkSource != null && wakeLock.mWorkSource.getName(0) != null) { in applyWakeLockFlagsOnAcquireLocked() 923 opPackageName = wakeLock.mWorkSource.getName(0); in applyWakeLockFlagsOnAcquireLocked() 924 opUid = wakeLock.mWorkSource.get(0); in applyWakeLockFlagsOnAcquireLocked() 927 opUid = wakeLock.mWorkSource != null ? wakeLock.mWorkSource.get(0) in applyWakeLockFlagsOnAcquireLocked() 1039 wakeLock.mOwnerUid, wakeLock.mOwnerPid, wakeLock.mWorkSource, in notifyWakeLockAcquiredLocked() 1064 wakeLock.mWorkSource, wakeLock.mHistoryTag); in notifyWakeLockLongStartedLocked() 1072 wakeLock.mWorkSource, wakeLock.mHistoryTag); in notifyWakeLockLongFinishedLocked() 1080 wakeLock.mOwnerUid, wakeLock.mOwnerPid, wakeLock.mWorkSource, in notifyWakeLockChangingLocked() 1097 wakeLock.mWorkSource, wakeLock.mHistoryTag); in notifyWakeLockReleasedLocked() 3121 public WorkSource mWorkSource; field in PowerManagerService.WakeLock [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationManagerService.java | 648 final WorkSource mWorkSource; // WorkSource for battery blame, or null to assign to caller. field in LocationManagerService.Receiver 677 mWorkSource = workSource; in Receiver() 1447 if (record.mReceiver.mWorkSource != null in applyRequirementsLocked() 1448 && record.mReceiver.mWorkSource.size() > 0 in applyRequirementsLocked() 1449 && record.mReceiver.mWorkSource.getName(0) != null) { in applyRequirementsLocked() 1452 worksource.add(record.mReceiver.mWorkSource); in applyRequirementsLocked()
|
D | AlarmManagerService.java | 833 final WorkSource mWorkSource; field in AlarmManagerService.InFlight 845 mWorkSource = workSource; in InFlight() 2879 if (inflight.mWorkSource != null && inflight.mWorkSource.size() > 0) { in updateStatsLocked() 2880 for (int wi=0; wi<inflight.mWorkSource.size(); wi++) { in updateStatsLocked() 2882 … inflight.mPendingIntent, inflight.mWorkSource.get(wi), inflight.mTag); in updateStatsLocked() 2911 setWakelockWorkSource(inFlight.mPendingIntent, inFlight.mWorkSource, in updateTrackingLocked()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssLocationProvider.java | 349 private WorkSource mWorkSource = null; field in GnssLocationProvider 1216 mWorkSource = source; in handleSetRequest() 1222 if (mProviderRequest == null || mWorkSource == null) { in updateRequirements() 1245 updateClientUids(mWorkSource); in updateRequirements()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WifiScanningServiceImpl.java | 1885 private final WorkSource mWorkSource; field in WifiScanningServiceImpl.ClientInfo 1892 mWorkSource = new WorkSource(uid); in ClientInfo() 1937 mBatteryStats.noteWifiBatchedScanStartedFromSource(mWorkSource, csph); in reportBatchedScanStart() 1948 mBatteryStats.noteWifiBatchedScanStoppedFromSource(mWorkSource); in reportBatchedScanStop()
|