/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | WorkSourceTest.java | 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() 168 WorkSource ws1 = new WorkSource(); in testSet_workChains() 197 WorkSource ws = new WorkSource(); in testSet_nullWorkChain() [all …]
|
H A D | WorkSourceParcelTest.java | 89 WorkSource ws = WorkSource.CREATOR.createFromParcel(wsParcel); in unparcelWorkSourceFromNativeAndVerify() 116 WorkSource ws = new WorkSource(); in parcelWorkSourceToNativeAndVerify()
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | IBatteryStats.aidl | 25 import android.os.WorkSource; 125 in WorkSource workSource); in noteLongPartialWakelockStartFromSource() 130 in WorkSource workSource); in noteLongPartialWakelockFinishFromSource() 137 void noteGpsChanged(in WorkSource oldSource, in WorkSource newSource); in noteGpsChanged() 169 void noteWifiRunning(in WorkSource ws); in noteWifiRunning() 171 void noteWifiRunningChanged(in WorkSource oldWs, in WorkSource newWs); in noteWifiRunningChanged() 173 void noteWifiStopped(in WorkSource ws); in noteWifiStopped() 193 void noteFullWifiLockAcquiredFromSource(in WorkSource ws); in noteFullWifiLockAcquiredFromSource() 195 void noteFullWifiLockReleasedFromSource(in WorkSource ws); in noteFullWifiLockReleasedFromSource() 197 void noteWifiScanStartedFromSource(in WorkSource ws); in noteWifiScanStartedFromSource() [all …]
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | WorkSource.java | 49 static final WorkSource sTmpWorkSource = new WorkSource(0); 64 public WorkSource() { in WorkSource() method in WorkSource 73 public WorkSource(WorkSource orig) { in WorkSource() method in WorkSource 124 WorkSource(Parcel in) { in WorkSource() method in WorkSource 251 WorkSource other = (WorkSource) o; in equals() 393 public WorkSource[] setReturningDiffs(WorkSource other) { in setReturningDiffs() 399 WorkSource[] diffs = new WorkSource[2]; in setReturningDiffs() 448 final WorkSource copy = new WorkSource(this); in withoutNames() 461 public WorkSource addReturningNewbs(WorkSource other) { in addReturningNewbs() 696 private static WorkSource addWork(WorkSource cur, int newUid) { in addWork() [all …]
|
H A D | BatteryStatsManager.java | 269 public void reportWifiScanStartedFromSource(@NonNull WorkSource ws) { in reportWifiScanStartedFromSource() 283 public void reportWifiScanStoppedFromSource(@NonNull WorkSource ws) { in reportWifiScanStoppedFromSource() 298 public void reportWifiBatchedScanStartedFromSource(@NonNull WorkSource ws, in reportWifiBatchedScanStartedFromSource() 313 public void reportWifiBatchedScanStoppedFromSource(@NonNull WorkSource ws) { in reportWifiBatchedScanStoppedFromSource() 391 public void reportFullWifiLockAcquiredFromSource(@NonNull WorkSource ws) { in reportFullWifiLockAcquiredFromSource() 405 public void reportFullWifiLockReleasedFromSource(@NonNull WorkSource ws) { in reportFullWifiLockReleasedFromSource() 437 public void reportWifiMulticastEnabled(@NonNull WorkSource ws) { in reportWifiMulticastEnabled() 452 public void reportWifiMulticastDisabled(@NonNull WorkSource ws) { in reportWifiMulticastDisabled() 548 public void reportBleScanStarted(@NonNull WorkSource ws, boolean isUnoptimized) { in reportBleScanStarted() 563 public void reportBleScanStopped(@NonNull WorkSource ws, boolean isUnoptimized) { in reportBleScanStopped() [all …]
|
H A D | IPowerManager.aidl | 23 import android.os.WorkSource; 30 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock() 43 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource() 124 in WorkSource ws, String historyTag); in acquireWakeLockAsync()
|
H A D | WorkSource.aidl | 18 parcelable WorkSource cpp_header "android/WorkSource.h";
|
/aosp14/frameworks/base/location/java/android/location/provider/ |
H A D | ProviderRequest.java | 30 import android.os.WorkSource; 53 new WorkSource()); 61 private final WorkSource mWorkSource; 84 @NonNull WorkSource workSource) { in ProviderRequest() 170 public @NonNull WorkSource getWorkSource() { in getWorkSource() 188 /* workSource= */ in.readTypedObject(WorkSource.CREATOR)); 292 private WorkSource mWorkSource = new WorkSource(); 360 public @NonNull Builder setWorkSource(@NonNull WorkSource workSource) { in setWorkSource()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BatteryStatsService.java | 1161 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteStartWakelockFromSource() 1182 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteChangeWakelockFromSource() 1203 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteStopWakelockFromSource() 1919 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiRunning() 1962 final WorkSource localWs = ws != null ? new WorkSource(ws) : ws; in noteWifiStopped() 2125 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteFullWifiLockAcquiredFromSource() 2143 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteFullWifiLockReleasedFromSource() 2161 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiScanStartedFromSource() 2178 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiScanStoppedFromSource() 2195 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiBatchedScanStartedFromSource() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/ |
H A D | AlarmHelper.java | 20 import android.os.WorkSource; 33 WorkSource workSource) { in setDelayedAlarm() 40 WorkSource workSource); in setDelayedAlarmInternal()
|
H A D | SystemAlarmHelper.java | 25 import android.os.WorkSource; 44 WorkSource workSource) { in setDelayedAlarmInternal()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | WakelockPowerCalculatorTest.java | 25 import android.os.WorkSource; 54 batteryStats.noteStartWakeFromSourceLocked(new WorkSource(APP_UID), APP_PID, "awake", "", in testTimerBasedModel() 56 batteryStats.noteStopWakeFromSourceLocked(new WorkSource(APP_UID), APP_PID, "awake", "", in testTimerBasedModel()
|
H A D | WifiPowerCalculatorTest.java | 34 import android.os.WorkSource; 283 batteryStats.noteWifiRunningLocked(new WorkSource(APP_UID), 3000, 3000); in setupTimerBasedModelTestNumbers() 284 batteryStats.noteWifiStoppedLocked(new WorkSource(APP_UID), 4000, 4000); in setupTimerBasedModelTestNumbers() 285 batteryStats.noteWifiRunningLocked(new WorkSource(Process.WIFI_UID), 1111, 2222); in setupTimerBasedModelTestNumbers() 286 batteryStats.noteWifiStoppedLocked(new WorkSource(Process.WIFI_UID), 3333, 4444); in setupTimerBasedModelTestNumbers()
|
H A D | BatteryStatsBackgroundStatsTest.java | 23 import android.os.WorkSource; 199 doTestAppBluetoothScanInternal(new WorkSource(UID)); in testAppBluetoothScan() 204 WorkSource ws = new WorkSource(); in testAppBluetoothScan_workChain() 209 private void doTestAppBluetoothScanInternal(WorkSource ws) throws Exception { in doTestAppBluetoothScanInternal()
|
H A D | BatteryStatsNoteTest.java | 41 import android.os.WorkSource; 84 private static final WorkSource WS = new WorkSource(UID); 164 WorkSource.WorkChain isolatedWorkChain = new WorkSource.WorkChain(); in testNoteStartWakeLocked_isolatedUid() 204 WorkSource.WorkChain isolatedWorkChain = new WorkSource.WorkChain(); in testNoteStartWakeLocked_isolatedUidRace() 250 WorkSource.WorkChain isolatedWorkChain = new WorkSource.WorkChain(); in testNoteLongPartialWakelockStart_isolatedUid() 303 WorkSource.WorkChain isolatedWorkChain = new WorkSource.WorkChain(); in testNoteLongPartialWakelockStart_isolatedUidRace() 968 WorkSource ws = new WorkSource(); in testAlarmStartAndFinishLocked_workSource() 1032 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid() 1065 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_workChain() 1091 WorkSource ws = new WorkSource(); in testNoteGpsChanged() [all …]
|
/aosp14/frameworks/base/location/java/android/location/ |
H A D | LocationRequest.java | 39 import android.os.WorkSource; 199 private @Nullable WorkSource mWorkSource; 293 WorkSource workSource) { in LocationRequest() 740 public void setWorkSource(@Nullable WorkSource workSource) { in setWorkSource() 742 workSource = new WorkSource(); in setWorkSource() 756 public @NonNull WorkSource getWorkSource() { in getWorkSource() 779 /* workSource= */ in.readTypedObject(WorkSource.CREATOR)); 925 @Nullable private WorkSource mWorkSource; 1195 public @NonNull Builder setWorkSource(@Nullable WorkSource workSource) { in setWorkSource() 1231 new WorkSource(mWorkSource)); in build()
|
/aosp14/frameworks/base/location/java/android/location/util/identity/ |
H A D | CallerIdentity.java | 24 import android.os.WorkSource; 213 public WorkSource addToWorkSource(@Nullable WorkSource workSource) { in addToWorkSource() 215 return new WorkSource(mUid, mPackageName); in addToWorkSource()
|
/aosp14/frameworks/base/apex/jobscheduler/framework/java/android/app/ |
H A D | AlarmManager.java | 42 import android.os.WorkSource; 705 @Nullable String tag, @NonNull Executor executor, @Nullable WorkSource workSource, in setWindow() 921 @Nullable WorkSource workSource) { in set() 939 @Nullable Handler targetHandler, @Nullable WorkSource workSource) { in set() 950 private static String makeTag(long triggerMillis, WorkSource ws) { in makeTag() 987 @Nullable WorkSource workSource) { in set() 1029 @NonNull Executor executor, @NonNull WorkSource workSource, in setExact() 1041 String listenerTag, Handler targetHandler, WorkSource workSource, in setImpl() 1050 String listenerTag, Executor targetExecutor, WorkSource workSource, in setImpl() 1344 @Nullable String tag, @NonNull Executor executor, @Nullable WorkSource workSource, in setExactAndAllowWhileIdle()
|
H A D | IAlarmManager.aidl | 23 import android.os.WorkSource; 35 … String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock); in set()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | FakeAlarmHelper.java | 20 import android.os.WorkSource; 41 WorkSource workSource) { in setDelayedAlarmInternal()
|
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
H A D | TimeController.java | 25 import android.os.WorkSource; 120 WorkSource ws = in maybeStartTrackingJobLocked() 335 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked() 341 private void maybeUpdateDeadlineAlarmLocked(long deadlineExpiredElapsed, WorkSource ws) { in maybeUpdateDeadlineAlarmLocked() 352 private void setDelayExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDelayExpiredAlarmLocked() 371 private void setDeadlineExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDeadlineExpiredAlarmLocked() 386 OnAlarmListener listener, long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked()
|
/aosp14/frameworks/base/location/lib/java/com/android/location/provider/ |
H A D | ProviderRequestUnbundled.java | 23 import android.os.WorkSource; 130 public @NonNull WorkSource getWorkSource() { in getWorkSource()
|
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/ |
H A D | VibrationThread.java | 27 import android.os.WorkSource; 234 WorkSource workSource = new WorkSource( in runCurrentVibrationWithWakeLock()
|
/aosp14/frameworks/base/core/tests/coretests/jni/ |
H A D | NativeWorkSourceParcelTest.cpp | 59 WorkSource ws = WorkSource(uids, names); in nativeObtainWorkSourceParcel() 76 WorkSource ws = {}; in nativeUnparcelAndVerifyWorkSource()
|
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
H A D | Alarm.java | 30 import android.os.WorkSource; 116 public final WorkSource workSource; 138 PendingIntent op, IAlarmListener rec, String listenerTag, WorkSource ws, int flags, in Alarm()
|