Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/os/
DWorkSourceTest.java19 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/
DIBatteryStats.aidl23 import android.os.WorkSource;
81 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStartWakelockFromSource()
83 void noteChangeWakelockFromSource(in WorkSource ws, int pid, String name, String histyoryName, in noteChangeWakelockFromSource()
84 int type, in WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource()
86 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource()
90 in WorkSource workSource); in noteLongPartialWakelockStartFromSource()
93 in WorkSource workSource); in noteLongPartialWakelockFinishFromSource()
97 void noteGpsChanged(in WorkSource oldSource, in WorkSource newSource); in noteGpsChanged()
113 void noteWifiRunning(in WorkSource ws); in noteWifiRunning()
114 void noteWifiRunningChanged(in WorkSource oldWs, in WorkSource newWs); in noteWifiRunningChanged()
[all …]
/frameworks/base/core/java/android/os/
DWorkSource.java26 public class WorkSource implements Parcelable { class
45 static final WorkSource sTmpWorkSource = new WorkSource(0);
50 static WorkSource sNewbWork;
55 static WorkSource sGoneWork;
60 public WorkSource() { in WorkSource() method in WorkSource
69 public WorkSource(WorkSource orig) { in WorkSource() method in WorkSource
103 public WorkSource(int uid) { in WorkSource() method in WorkSource
117 public WorkSource(int uid, @NonNull String packageName) { in WorkSource() method in WorkSource
126 WorkSource(Parcel in) { in WorkSource() method in WorkSource
255 if (o instanceof WorkSource) { in equals()
[all …]
DBatteryStatsManager.java223 public void reportWifiScanStartedFromSource(@NonNull WorkSource ws) { in reportWifiScanStartedFromSource()
237 public void reportWifiScanStoppedFromSource(@NonNull WorkSource ws) { in reportWifiScanStoppedFromSource()
252 public void reportWifiBatchedScanStartedFromSource(@NonNull WorkSource ws, in reportWifiBatchedScanStartedFromSource()
267 public void reportWifiBatchedScanStoppedFromSource(@NonNull WorkSource ws) { in reportWifiBatchedScanStoppedFromSource()
311 public void reportFullWifiLockAcquiredFromSource(@NonNull WorkSource ws) { in reportFullWifiLockAcquiredFromSource()
325 public void reportFullWifiLockReleasedFromSource(@NonNull WorkSource ws) { in reportFullWifiLockReleasedFromSource()
357 public void reportWifiMulticastEnabled(@NonNull WorkSource ws) { in reportWifiMulticastEnabled()
372 public void reportWifiMulticastDisabled(@NonNull WorkSource ws) { in reportWifiMulticastDisabled()
DIPowerManager.aidl22 import android.os.WorkSource;
33 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock()
47 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource()
/frameworks/base/location/java/com/android/internal/location/
DProviderRequest.java23 import android.os.WorkSource;
35 Collections.emptyList(), new WorkSource());
68 public final WorkSource workSource;
72 WorkSource workSource) { in ProviderRequest()
92 /* workSource= */ in.readTypedObject(WorkSource.CREATOR));
144 private WorkSource mWorkSource = new WorkSource();
186 public WorkSource getWorkSource() { in getWorkSource()
191 public Builder setWorkSource(WorkSource workSource) { in setWorkSource()
DILocationProvider.aidl20 import android.os.WorkSource;
36 oneway void setRequest(in ProviderRequest request, in WorkSource ws); in setRequest()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java27 import android.os.WorkSource;
28 import android.os.WorkSource.WorkChain;
188 public boolean acquireWifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) { in acquireWifiLock()
192 WorkSource newWorkSource = new WorkSource(ws); in acquireWifiLock()
243 public synchronized WorkSource createMergedWorkSource() { in createMergedWorkSource()
244 WorkSource mergedWS = new WorkSource(); in createMergedWorkSource()
257 public synchronized void updateWifiLockWorkSource(IBinder binder, WorkSource ws) { in updateWifiLockWorkSource()
268 WorkSource newWorkSource = new WorkSource(ws); in updateWifiLockWorkSource()
446 private void addWsToLlWatchList(WorkSource ws) { in addWsToLlWatchList()
463 private void removeWsFromLlWatchList(WorkSource ws) { in removeWsFromLlWatchList()
[all …]
DWifiMulticastLockManager.java23 import android.os.WorkSource;
154 mBatteryStats.reportWifiMulticastEnabled(new WorkSource(uid)); in acquireLock()
188 mBatteryStats.reportWifiMulticastDisabled(new WorkSource(uid)); in removeMulticasterLocked()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWorkSourceUtil.java19 import android.os.WorkSource;
33 public static Pair<int[], String[]> getUidsAndTagsForWs(WorkSource ws) { in getUidsAndTagsForWs()
42 final List<WorkSource.WorkChain> workChains = ws.getWorkChains(); in getUidsAndTagsForWs()
45 final WorkSource.WorkChain workChain = workChains.get(i); in getUidsAndTagsForWs()
/frameworks/base/wifi/java/android/net/wifi/rtt/
DIWifiRttManager.aidl19 import android.os.WorkSource;
31 in WorkSource workSource, in RangingRequest request, in IRttCallback callback); in startRanging()
32 void cancelRanging(in WorkSource workSource); in cancelRanging()
DWifiRttManager.java34 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/
DBatteryStatsNoteTest.java26 import android.os.WorkSource;
54 private static final WorkSource WS = new WorkSource(UID);
342 WorkSource ws = new WorkSource(); in testAlarmStartAndFinishLocked_workSource()
405 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid()
418 ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid()
438 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_workChain()
464 WorkSource ws = new WorkSource(); in testNoteGpsChanged()
467 bi.noteGpsChangedLocked(new WorkSource(), ws); in testNoteGpsChanged()
472 bi.noteGpsChangedLocked(ws, new WorkSource()); in testNoteGpsChanged()
488 WorkSource ws = new WorkSource(); in testNoteGpsChanged_workSource()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DTimeController.java32 import android.os.WorkSource;
135 WorkSource ws = deriveWorkSource(job.getSourceUid(), job.getSourcePackageName()); in maybeStartTrackingJobLocked()
338 private WorkSource deriveWorkSource(int uid, @Nullable String packageName) { in deriveWorkSource()
340 WorkSource ws = new WorkSource(); in deriveWorkSource()
346 return packageName == null ? new WorkSource(uid) : new WorkSource(uid, packageName); in deriveWorkSource()
360 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked()
366 private void maybeUpdateDeadlineAlarmLocked(long deadlineExpiredElapsed, WorkSource ws) { in maybeUpdateDeadlineAlarmLocked()
378 private void setDelayExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDelayExpiredAlarmLocked()
396 private void setDeadlineExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDeadlineExpiredAlarmLocked()
411 OnAlarmListener listener, long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRILRequest.java23 import android.os.WorkSource;
24 import android.os.WorkSource.WorkChain;
56 WorkSource mWorkSource;
125 public static RILRequest obtain(int request, Message result, WorkSource workSource) { in obtain()
148 public static RILRequest obtain(int request, Message result, WorkSource workSource, in obtain()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java30 import android.os.WorkSource;
65 WorkSource mWorkSource;
66 WorkSource mChainedWorkSource;
82 mWorkSource = new WorkSource(DEFAULT_TEST_UID_1); in setUp()
83 mChainedWorkSource = new WorkSource(); in setUp()
98 private void acquireWifiLockSuccessful(int lockMode, String tag, IBinder binder, WorkSource ws) in acquireWifiLockSuccessful()
129 inOrder.verify(mBatteryStats).reportFullWifiLockReleasedFromSource(any(WorkSource.class)); in releaseWifiLockSuccessful()
148 inOrder.verify(mBatteryStats).reportFullWifiLockReleasedFromSource(any(WorkSource.class)); in releaseLowLatencyWifiLockSuccessful()
213 WorkSource toReleaseWS = new WorkSource(DEFAULT_TEST_UID_1); in releaseLocksForOneCallerNotImpactOtherCallers()
214 WorkSource toKeepWS = new WorkSource(DEFAULT_TEST_UID_2); in releaseLocksForOneCallerNotImpactOtherCallers()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java40 import android.os.WorkSource;
488 public void noteWakupAlarm(String name, int uid, WorkSource workSource, String tag) { in noteWakupAlarm()
495 public void noteAlarmStart(String name, WorkSource workSource, int uid) { in noteAlarmStart()
502 public void noteAlarmFinish(String name, WorkSource workSource, int uid) { in noteAlarmFinish()
527 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, in noteStartWakelockFromSource()
536 public void noteChangeWakelockFromSource(WorkSource ws, int pid, String name, in noteChangeWakelockFromSource()
537 String historyName, int type, WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource()
546 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource()
564 WorkSource workSource) { in noteLongPartialWakelockStartFromSource()
581 WorkSource workSource) { in noteLongPartialWakelockFinishFromSource()
[all …]
/frameworks/base/core/java/android/app/
DIAlarmManager.aidl23 import android.os.WorkSource;
35 … String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock); in set()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java69 import android.os.WorkSource;
119 private WorkSource mDefaultWs = new WorkSource(mDefaultUid);
555 WorkSource oddWs = new WorkSource(mDefaultUid + 1); in testBinderDeathOfRangingApp()
578 WorkSource ws = new WorkSource(100); in testBinderDeathWithWorkSource()
621 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingFullMatch()
625 WorkSource worksourceCancel = new WorkSource(uid2); in testCancelRangingFullMatch()
671 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingPartialMatch()
674 WorkSource worksourceCancel = new WorkSource(uid1); in testCancelRangingPartialMatch()
1081 final WorkSource wsReq1 = new WorkSource(); in runTestRangingThrottleBackgroundWorkSources()
1082 final WorkSource wsReq2 = new WorkSource(); in runTestRangingThrottleBackgroundWorkSources()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java26 import android.os.WorkSource;
81 …public void acquireWakeLock(IBinder arg0, int arg1, String arg2, String arg2_5, WorkSource arg3, S… in acquireWakeLock()
168 …public void updateWakeLockWorkSource(IBinder arg0, WorkSource arg1, String arg2) throws RemoteExce… in updateWakeLockWorkSource()
/frameworks/base/location/java/android/location/
DLocationRequest.java30 import android.os.WorkSource;
173 private @Nullable WorkSource mWorkSource;
303 WorkSource workSource) { in LocationRequest()
647 public void setWorkSource(@Nullable WorkSource workSource) { in setWorkSource()
653 public @Nullable WorkSource getWorkSource() { in getWorkSource()
714 /* workSource= */ in.readTypedObject(WorkSource.CREATOR));
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java32 import android.os.WorkSource;
190 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { in startScanFromSource()
209 final WorkSource workSource, final ScanCallback callback) { in startScanFromSource()
214 final WorkSource workSource, final ScanCallback callback, in startScan()
361 private final WorkSource mWorkSource;
374 WorkSource workSource, ScanCallback scanCallback, in BleScanCallbackWrapper()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java36 import android.os.WorkSource;
78 private WorkSource mWorkSource;
152 mWorkSource = new WorkSource(); in FusedLocationProvider()
171 public void onSetRequest(ProviderRequestUnbundled request, WorkSource workSource) { in onSetRequest()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java34 import android.os.WorkSource;
133 new WorkSource()); in testNetworkRequest()
151 new WorkSource()); in testGpsRequest()
170 new WorkSource()); in testBypassRequest()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java51 import android.os.WorkSource;
52 import android.os.WorkSource.WorkChain;
389 WorkSource workSource, RangingRequest request, IRttCallback callback) in startRanging()
431 final WorkSource ws; in startRanging()
466 WorkSource sourceToUse = ws; in startRanging()
468 sourceToUse = new WorkSource(uid); in startRanging()
477 public void cancelRanging(WorkSource workSource) throws RemoteException { in cancelRanging()
482 final WorkSource ws = (workSource != null) ? workSource.withoutNames() : null; in cancelRanging()
610 private void cleanUpClientRequests(int uid, WorkSource workSource) { in cleanUpClientRequests()
678 private void queueRangingRequest(int uid, WorkSource workSource, IBinder binder, in queueRangingRequest()
[all …]

1234