/frameworks/base/core/tests/coretests/src/android/os/ |
D | WorkSourceTest.java | 19 import android.os.WorkSource.WorkChain; 95 WorkSource ws1 = new WorkSource(); in testDiff_workChains() 98 WorkSource ws2 = new WorkSource(); in testDiff_workChains() 108 WorkSource ws1 = new WorkSource(); in testEquals_workChains() 112 WorkSource ws2 = new WorkSource(); in testEquals_workChains() 123 WorkSource ws3 = new WorkSource(); in testEquals_workChains() 134 WorkSource ws1 = new WorkSource(); in testEquals_workChains_nullEmptyAreEquivalent() 139 WorkSource ws2 = new WorkSource(); in testEquals_workChains_nullEmptyAreEquivalent() 149 WorkSource ws = new WorkSource(); in testWorkSourceParcelling() 162 WorkSource unparcelled = WorkSource.CREATOR.createFromParcel(p); in testWorkSourceParcelling() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IBatteryStats.aidl | 24 import android.os.WorkSource; 78 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStartWakelockFromSource() 80 void noteChangeWakelockFromSource(in WorkSource ws, int pid, String name, String histyoryName, in noteChangeWakelockFromSource() 81 int type, in WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource() 83 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource() 87 in WorkSource workSource); in noteLongPartialWakelockStartFromSource() 90 in WorkSource workSource); in noteLongPartialWakelockFinishFromSource() 94 void noteGpsChanged(in WorkSource oldSource, in WorkSource newSource); in noteGpsChanged() 110 void noteWifiRunning(in WorkSource ws); in noteWifiRunning() 111 void noteWifiRunningChanged(in WorkSource oldWs, in WorkSource newWs); in noteWifiRunningChanged() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 27 import android.os.WorkSource; 55 WorkSource mWorkSource; 56 WorkSource mChainedWorkSource; 65 mWorkSource = new WorkSource(DEFAULT_TEST_UID_1); in setUp() 66 mChainedWorkSource = new WorkSource(); in setUp() 75 private void acquireWifiLockSuccessful(int lockMode, String tag, IBinder binder, WorkSource ws) in acquireWifiLockSuccessful() 95 inOrder.verify(mBatteryStats).noteFullWifiLockReleasedFromSource(any(WorkSource.class)); in releaseWifiLockSuccessful() 168 WorkSource toReleaseWS = new WorkSource(DEFAULT_TEST_UID_1); in releaseLocksForOneCallerNotImpactOtherCallers() 169 WorkSource toKeepWS = new WorkSource(DEFAULT_TEST_UID_2); in releaseLocksForOneCallerNotImpactOtherCallers() 225 WorkSource checkMWS = mWifiLockManager.createMergedWorkSource(); in createMergedWorkSourceShouldSucceed() [all …]
|
/frameworks/base/core/java/android/os/ |
D | WorkSource.java | 22 public class WorkSource implements Parcelable { class 37 static final WorkSource sTmpWorkSource = new WorkSource(0); 41 static WorkSource sNewbWork; 45 static WorkSource sGoneWork; 50 public WorkSource() { in WorkSource() method in WorkSource 59 public WorkSource(WorkSource orig) { in WorkSource() method in WorkSource 86 public WorkSource(int uid) { in WorkSource() method in WorkSource 94 public WorkSource(int uid, String name) { in WorkSource() method in WorkSource 104 WorkSource(Parcel in) { in WorkSource() method in WorkSource 181 if (o instanceof WorkSource) { in equals() [all …]
|
D | IPowerManager.aidl | 20 import android.os.WorkSource; 32 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock() 40 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLockManager.java | 24 import android.os.WorkSource; 69 public boolean acquireWifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) { in acquireWifiLock() 75 ws = new WorkSource(Binder.getCallingUid()); in acquireWifiLock() 121 public synchronized WorkSource createMergedWorkSource() { in createMergedWorkSource() 122 WorkSource mergedWS = new WorkSource(); in createMergedWorkSource() 135 public synchronized void updateWifiLockWorkSource(IBinder binder, WorkSource ws) { in updateWifiLockWorkSource() 146 WorkSource newWorkSource; in updateWifiLockWorkSource() 148 newWorkSource = new WorkSource(Binder.getCallingUid()); in updateWifiLockWorkSource() 151 newWorkSource = new WorkSource(ws); in updateWifiLockWorkSource() 299 WorkSource mWorkSource; [all …]
|
/frameworks/base/wifi/java/android/net/wifi/rtt/ |
D | IWifiRttManager.aidl | 19 import android.os.WorkSource; 30 void startRanging(in IBinder binder, in String callingPackage, in WorkSource workSource, in startRanging() 32 void cancelRanging(in WorkSource workSource); in cancelRanging()
|
D | WifiRttManager.java | 34 import android.os.WorkSource; 133 public void startRanging(@Nullable WorkSource workSource, @NonNull RangingRequest request, in startRanging() 179 public void cancelRanging(@Nullable WorkSource workSource) { in cancelRanging()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 27 import android.os.WorkSource; 55 private static final WorkSource WS = new WorkSource(UID); 343 WorkSource ws = new WorkSource(); in testAlarmStartAndFinishLocked_workSource() 406 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid() 419 ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid() 439 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_workChain() 465 WorkSource ws = new WorkSource(); in testNoteGpsChanged() 468 bi.noteGpsChangedLocked(new WorkSource(), ws); in testNoteGpsChanged() 473 bi.noteGpsChangedLocked(ws, new WorkSource()); in testNoteGpsChanged() 489 WorkSource ws = new WorkSource(); in testNoteGpsChanged_workSource() [all …]
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 27 import android.os.WorkSource; 71 mChainedAttributionEnabled = WorkSource.isChainedBatteryAttributionEnabled(mContext); in TimeController() 244 private WorkSource deriveWorkSource(int uid, @Nullable String packageName) { in deriveWorkSource() 246 WorkSource ws = new WorkSource(); in deriveWorkSource() 252 return packageName == null ? new WorkSource(uid) : new WorkSource(uid, packageName); in deriveWorkSource() 266 WorkSource ws) { in maybeUpdateAlarmsLocked() 280 private void setDelayExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDelayExpiredAlarmLocked() 292 private void setDeadlineExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDeadlineExpiredAlarmLocked() 308 long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked()
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusedLocationProvider.java | 38 import android.os.WorkSource; 56 public WorkSource source; 57 public RequestWrapper(ProviderRequestUnbundled request, WorkSource source) { in RequestWrapper() 116 public void onSetRequest(ProviderRequestUnbundled request, WorkSource source) { in onSetRequest()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 42 import android.os.WorkSource; 479 public void noteWakupAlarm(String name, int uid, WorkSource workSource, String tag) { in noteWakupAlarm() 486 public void noteAlarmStart(String name, WorkSource workSource, int uid) { in noteAlarmStart() 493 public void noteAlarmFinish(String name, WorkSource workSource, int uid) { in noteAlarmFinish() 518 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, in noteStartWakelockFromSource() 527 public void noteChangeWakelockFromSource(WorkSource ws, int pid, String name, in noteChangeWakelockFromSource() 528 String historyName, int type, WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource() 537 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource() 555 WorkSource workSource) { in noteLongPartialWakelockStartFromSource() 572 WorkSource workSource) { in noteLongPartialWakelockFinishFromSource() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RILRequest.java | 22 import android.os.WorkSource; 23 import android.os.WorkSource.WorkChain; 51 WorkSource mWorkSource; 116 public static RILRequest obtain(int request, Message result, WorkSource workSource) { in obtain()
|
/frameworks/base/location/java/com/android/internal/location/ |
D | ILocationProvider.aidl | 22 import android.os.WorkSource; 37 void setRequest(in ProviderRequest request, in WorkSource ws); in setRequest()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePowerManager.java | 24 import android.os.WorkSource; 58 …public void acquireWakeLock(IBinder arg0, int arg1, String arg2, String arg2_5, WorkSource arg3, S… in acquireWakeLock() 125 …public void updateWakeLockWorkSource(IBinder arg0, WorkSource arg1, String arg2) throws RemoteExce… in updateWakeLockWorkSource()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationProviderInterface.java | 27 import android.os.WorkSource; 39 public void setRequest(ProviderRequest request, WorkSource source); in setRequest()
|
D | LocationProviderProxy.java | 29 import android.os.WorkSource; 56 private WorkSource mWorksource = new WorkSource(); 103 WorkSource source; 207 public void setRequest(ProviderRequest request, WorkSource source) { in setRequest()
|
D | PassiveProvider.java | 32 import android.os.WorkSource; 95 public void setRequest(ProviderRequest request, WorkSource source) { in setRequest()
|
/frameworks/base/core/java/android/app/ |
D | IAlarmManager.aidl | 23 import android.os.WorkSource; 34 … String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock); in set()
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | LocationProviderBase.java | 31 import android.os.WorkSource; 89 public void setRequest(ProviderRequest request, WorkSource ws) { in setRequest() 167 public abstract void onSetRequest(ProviderRequestUnbundled request, WorkSource source); in onSetRequest()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 69 import android.os.WorkSource; 110 private WorkSource mDefaultWs = new WorkSource(mDefaultUid); 530 WorkSource oddWs = new WorkSource(mDefaultUid + 1); in testBinderDeathOfRangingApp() 552 WorkSource ws = new WorkSource(100); in testBinderDeathWithWorkSource() 595 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingFullMatch() 599 WorkSource worksourceCancel = new WorkSource(uid2); in testCancelRangingFullMatch() 644 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingPartialMatch() 647 WorkSource worksourceCancel = new WorkSource(uid1); in testCancelRangingPartialMatch() 1051 final WorkSource wsReq1 = new WorkSource(); in runTestRangingThrottleBackgroundWorkSources() 1052 final WorkSource wsReq2 = new WorkSource(); in runTestRangingThrottleBackgroundWorkSources() [all …]
|
/frameworks/base/location/java/android/location/ |
D | LocationRequest.java | 23 import android.os.WorkSource; 151 private WorkSource mWorkSource = null; 560 public void setWorkSource(WorkSource workSource) { in setWorkSource() 566 public WorkSource getWorkSource() { in getWorkSource() 642 WorkSource workSource = in.readParcelable(null);
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | BluetoothLeScanner.java | 33 import android.os.WorkSource; 183 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { in startScanFromSource() 202 final WorkSource workSource, final ScanCallback callback) { in startScanFromSource() 207 final WorkSource workSource, final ScanCallback callback, in startScan() 352 private final WorkSource mWorkSource; 365 WorkSource workSource, ScanCallback scanCallback, in BleScanCallbackWrapper()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | IWifiManager.aidl | 37 import android.os.WorkSource; 116 boolean acquireWifiLock(IBinder lock, int lockType, String tag, in WorkSource ws); in acquireWifiLock() 118 void updateWifiLockWorkSource(IBinder lock, in WorkSource ws); in updateWifiLockWorkSource()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 46 import android.os.WorkSource; 196 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) { in onWakeLockAcquired() 224 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource, in onLongPartialWakeLockStart() 242 public void onLongPartialWakeLockFinish(String tag, int ownerUid, WorkSource workSource, in onLongPartialWakeLockFinish() 264 int ownerUid, int ownerPid, WorkSource workSource, String historyTag, in onWakeLockChanging() 266 int newOwnerPid, WorkSource newWorkSource, String newHistoryTag) { in onWakeLockChanging() 299 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) { in onWakeLockReleased()
|