Home
last modified time | relevance | path

Searched refs:WorkSource (Results 1 – 25 of 87) 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.aidl24 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.java24 public class WorkSource implements Parcelable { class
42 static final WorkSource sTmpWorkSource = new WorkSource(0);
46 static WorkSource sNewbWork;
50 static WorkSource sGoneWork;
55 public WorkSource() { in WorkSource() method in WorkSource
64 public WorkSource(WorkSource orig) { in WorkSource() method in WorkSource
92 public WorkSource(int uid) { in WorkSource() method in WorkSource
100 public WorkSource(int uid, String name) { in WorkSource() method in WorkSource
111 WorkSource(Parcel in) { in WorkSource() method in WorkSource
206 if (o instanceof WorkSource) { in equals()
[all …]
DStatsLogEventWrapper.java46 WorkSource mWorkSource = null;
75 public void setWorkSource(WorkSource ws) { in setWorkSource()
142 ArrayList<android.os.WorkSource.WorkChain> workChains = mWorkSource.getWorkChains(); in writeToParcel()
146 android.os.WorkSource.WorkChain wc = workChains.get(i); in writeToParcel()
216 mWorkSource = new WorkSource(); in readFromParcel()
218 android.os.WorkSource.WorkChain workChain = mWorkSource.createWorkChain(); in readFromParcel()
DIPowerManager.aidl22 import android.os.WorkSource;
33 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock()
42 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java26 import android.os.WorkSource;
27 import android.os.WorkSource.WorkChain;
185 public boolean acquireWifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) { in acquireWifiLock()
193 WorkSource newWorkSource = new WorkSource(ws); in acquireWifiLock()
245 public synchronized WorkSource createMergedWorkSource() { in createMergedWorkSource()
246 WorkSource mergedWS = new WorkSource(); in createMergedWorkSource()
259 public synchronized void updateWifiLockWorkSource(IBinder binder, WorkSource ws) { in updateWifiLockWorkSource()
270 WorkSource newWorkSource = new WorkSource(ws); in updateWifiLockWorkSource()
442 private void addWsToLlWatchList(WorkSource ws) { in addWsToLlWatchList()
459 private void removeWsFromLlWatchList(WorkSource ws) { in removeWsFromLlWatchList()
[all …]
/frameworks/base/wifi/java/android/net/wifi/rtt/
DIWifiRttManager.aidl19 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()
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/config/
Dhiddenapi-greylist-max-p.txt44 Landroid/os/WorkSource;->sGoneWork:Landroid/os/WorkSource;
45 Landroid/os/WorkSource;->sNewbWork:Landroid/os/WorkSource;
46 Landroid/os/WorkSource;->sTmpWorkSource:Landroid/os/WorkSource;
47 Landroid/os/WorkSource;->updateLocked(Landroid/os/WorkSource;ZZ)Z
/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java32 import android.os.WorkSource;
135 WorkSource ws = deriveWorkSource(job.getSourceUid(), job.getSourcePackageName()); in maybeStartTrackingJobLocked()
351 private WorkSource deriveWorkSource(int uid, @Nullable String packageName) { in deriveWorkSource()
353 WorkSource ws = new WorkSource(); in deriveWorkSource()
359 return packageName == null ? new WorkSource(uid) : new WorkSource(uid, packageName); in deriveWorkSource()
373 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked()
379 private void maybeUpdateDeadlineAlarmLocked(long deadlineExpiredElapsed, WorkSource ws) { in maybeUpdateDeadlineAlarmLocked()
390 private void setDelayExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDelayExpiredAlarmLocked()
405 private void setDeadlineExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDeadlineExpiredAlarmLocked()
420 long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java29 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()
133 inOrder.verify(mBatteryStats).noteFullWifiLockReleasedFromSource(any(WorkSource.class)); in releaseWifiLockSuccessful()
228 WorkSource toReleaseWS = new WorkSource(DEFAULT_TEST_UID_1); in releaseLocksForOneCallerNotImpactOtherCallers()
229 WorkSource toKeepWS = new WorkSource(DEFAULT_TEST_UID_2); in releaseLocksForOneCallerNotImpactOtherCallers()
288 WorkSource checkMWS = mWifiLockManager.createMergedWorkSource(); in createMergedWorkSourceShouldSucceed()
[all …]
/frameworks/base/location/java/com/android/internal/location/
DILocationProvider.aidl20 import android.os.WorkSource;
34 oneway void setRequest(in ProviderRequest request, in WorkSource ws); in setRequest()
/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/base/services/core/java/com/android/server/am/
DBatteryStatsService.java43 import android.os.WorkSource;
499 public void noteWakupAlarm(String name, int uid, WorkSource workSource, String tag) { in noteWakupAlarm()
506 public void noteAlarmStart(String name, WorkSource workSource, int uid) { in noteAlarmStart()
513 public void noteAlarmFinish(String name, WorkSource workSource, int uid) { in noteAlarmFinish()
538 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, in noteStartWakelockFromSource()
547 public void noteChangeWakelockFromSource(WorkSource ws, int pid, String name, in noteChangeWakelockFromSource()
548 String historyName, int type, WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource()
557 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource()
575 WorkSource workSource) { in noteLongPartialWakelockStartFromSource()
592 WorkSource workSource) { in noteLongPartialWakelockFinishFromSource()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRILRequest.java23 import android.os.WorkSource;
24 import android.os.WorkSource.WorkChain;
55 WorkSource mWorkSource;
122 public static RILRequest obtain(int request, Message result, WorkSource workSource) { in obtain()
/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()
148 …public void updateWakeLockWorkSource(IBinder arg0, WorkSource arg1, String arg2) throws RemoteExce… in updateWakeLockWorkSource()
/frameworks/base/services/core/java/com/android/server/location/
DPassiveProvider.java23 import android.os.WorkSource;
56 public void setRequest(ProviderRequest request, WorkSource source) { in setRequest()
DLocationProviderProxy.java29 import android.os.WorkSource;
97 private WorkSource mWorkSource;
141 mWorkSource = new WorkSource(); in LocationProviderProxy()
171 public void setRequest(ProviderRequest request, WorkSource source) { in setRequest()
DAbstractLocationProvider.java23 import android.os.WorkSource;
118 public abstract void setRequest(ProviderRequest request, WorkSource source); in setRequest()
DMockProvider.java24 import android.os.WorkSource;
88 public void setRequest(ProviderRequest request, WorkSource source) {} in setRequest()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java69 import android.os.WorkSource;
114 private WorkSource mDefaultWs = new WorkSource(mDefaultUid);
537 WorkSource oddWs = new WorkSource(mDefaultUid + 1); in testBinderDeathOfRangingApp()
559 WorkSource ws = new WorkSource(100); in testBinderDeathWithWorkSource()
602 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingFullMatch()
606 WorkSource worksourceCancel = new WorkSource(uid2); in testCancelRangingFullMatch()
651 WorkSource worksourceRequest = new WorkSource(uid1); in testCancelRangingPartialMatch()
654 WorkSource worksourceCancel = new WorkSource(uid1); in testCancelRangingPartialMatch()
1058 final WorkSource wsReq1 = new WorkSource(); in runTestRangingThrottleBackgroundWorkSources()
1059 final WorkSource wsReq2 = new WorkSource(); in runTestRangingThrottleBackgroundWorkSources()
[all …]
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java29 import android.os.WorkSource;
240 protected abstract void onSetRequest(ProviderRequestUnbundled request, WorkSource source); in onSetRequest()
323 public void setRequest(ProviderRequest request, WorkSource ws) { in setRequest()
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java33 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()
354 private final WorkSource mWorkSource;
367 WorkSource workSource, ScanCallback scanCallback, in BleScanCallbackWrapper()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java27 import android.os.WorkSource;
77 public void onSetRequest(ProviderRequestUnbundled request, WorkSource source) { in onSetRequest()

1234