Home
last modified time | relevance | path

Searched refs:WorkSource (Results 1 – 25 of 95) 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
43 static final WorkSource sTmpWorkSource = new WorkSource(0);
48 static WorkSource sNewbWork;
53 static WorkSource sGoneWork;
58 public WorkSource() { in WorkSource() method in WorkSource
67 public WorkSource(WorkSource orig) { in WorkSource() method in WorkSource
96 public WorkSource(int uid) { in WorkSource() method in WorkSource
104 public WorkSource(int uid, String name) { in WorkSource() method in WorkSource
115 WorkSource(Parcel in) { in WorkSource() method in WorkSource
213 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()
189 WorkSource newWorkSource = new WorkSource(ws); in acquireWifiLock()
241 public synchronized WorkSource createMergedWorkSource() { in createMergedWorkSource()
242 WorkSource mergedWS = new WorkSource(); in createMergedWorkSource()
255 public synchronized void updateWifiLockWorkSource(IBinder binder, WorkSource ws) { in updateWifiLockWorkSource()
266 WorkSource newWorkSource = new WorkSource(ws); in updateWifiLockWorkSource()
444 private void addWsToLlWatchList(WorkSource ws) { in addWsToLlWatchList()
461 private void removeWsFromLlWatchList(WorkSource ws) { in removeWsFromLlWatchList()
[all …]
/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/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/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/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()
350 private WorkSource deriveWorkSource(int uid, @Nullable String packageName) { in deriveWorkSource()
352 WorkSource ws = new WorkSource(); in deriveWorkSource()
358 return packageName == null ? new WorkSource(uid) : new WorkSource(uid, packageName); in deriveWorkSource()
372 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked()
378 private void maybeUpdateDeadlineAlarmLocked(long deadlineExpiredElapsed, WorkSource ws) { in maybeUpdateDeadlineAlarmLocked()
390 private void setDelayExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDelayExpiredAlarmLocked()
408 private void setDeadlineExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDeadlineExpiredAlarmLocked()
423 OnAlarmListener listener, 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()
217 WorkSource toReleaseWS = new WorkSource(DEFAULT_TEST_UID_1); in releaseLocksForOneCallerNotImpactOtherCallers()
218 WorkSource toKeepWS = new WorkSource(DEFAULT_TEST_UID_2); in releaseLocksForOneCallerNotImpactOtherCallers()
277 WorkSource checkMWS = mWifiLockManager.createMergedWorkSource(); in createMergedWorkSourceShouldSucceed()
[all …]
/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/base/location/java/com/android/internal/location/
DILocationProvider.aidl20 import android.os.WorkSource;
36 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/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/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/
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()
DPassiveProvider.java23 import android.os.WorkSource;
56 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/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java32 import android.os.WorkSource;
193 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { in startScanFromSource()
212 final WorkSource workSource, final ScanCallback callback) { in startScanFromSource()
217 final WorkSource workSource, final ScanCallback callback, in startScan()
364 private final WorkSource mWorkSource;
377 WorkSource workSource, ScanCallback scanCallback, in BleScanCallbackWrapper()
/frameworks/base/location/java/android/location/
DLocationRequest.java30 import android.os.WorkSource;
167 private WorkSource mWorkSource = null;
599 public void setWorkSource(@Nullable WorkSource workSource) { in setWorkSource()
605 public @Nullable WorkSource getWorkSource() { in getWorkSource()
686 WorkSource workSource = in.readParcelable(null);
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationProviderBase.java30 import android.os.WorkSource;
247 protected abstract void onSetRequest(ProviderRequestUnbundled request, WorkSource source); in onSetRequest()
330 public void setRequest(ProviderRequest request, WorkSource ws) { in setRequest()
/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