Home
last modified time | relevance | path

Searched refs:WorkSource (Results 1 – 25 of 74) sorted by relevance

123

/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DWorkSourceTest.java95 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 DWorkSourceParcelTest.java89 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 DIBatteryStats.aidl25 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 DWorkSource.java49 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 DBatteryStatsManager.java269 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 DIPowerManager.aidl23 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 DWorkSource.aidl18 parcelable WorkSource cpp_header "android/WorkSource.h";
/aosp14/frameworks/base/location/java/android/location/provider/
H A DProviderRequest.java30 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 DBatteryStatsService.java1161 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 DAlarmHelper.java20 import android.os.WorkSource;
33 WorkSource workSource) { in setDelayedAlarm()
40 WorkSource workSource); in setDelayedAlarmInternal()
H A DSystemAlarmHelper.java25 import android.os.WorkSource;
44 WorkSource workSource) { in setDelayedAlarmInternal()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DWakelockPowerCalculatorTest.java25 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 DWifiPowerCalculatorTest.java34 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 DBatteryStatsBackgroundStatsTest.java23 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 DBatteryStatsNoteTest.java41 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 DLocationRequest.java39 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 DCallerIdentity.java24 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 DAlarmManager.java42 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 DIAlarmManager.aidl23 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 DFakeAlarmHelper.java20 import android.os.WorkSource;
41 WorkSource workSource) { in setDelayedAlarmInternal()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
H A DTimeController.java25 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 DProviderRequestUnbundled.java23 import android.os.WorkSource;
130 public @NonNull WorkSource getWorkSource() { in getWorkSource()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibrationThread.java27 import android.os.WorkSource;
234 WorkSource workSource = new WorkSource( in runCurrentVibrationWithWakeLock()
/aosp14/frameworks/base/core/tests/coretests/jni/
H A DNativeWorkSourceParcelTest.cpp59 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 DAlarm.java30 import android.os.WorkSource;
116 public final WorkSource workSource;
138 PendingIntent op, IAlarmListener rec, String listenerTag, WorkSource ws, int flags, in Alarm()

123