Home
last modified time | relevance | path

Searched refs:WorkSource (Results 1 – 25 of 85) 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 …]
DPowerManagerTest.java152 WorkSource workSource = new WorkSource(); in testWakeLockWithWorkChains()
153 WorkSource.WorkChain workChain = workSource.createWorkChain(); in testWakeLockWithWorkChains()
309 WorkSource ws = WorkSource.CREATOR.createFromParcel(wsParcel); in unparcelWorkSourceFromNativeAndVerify()
330 WorkSource ws = new WorkSource(); in parcelWorkSourceToNativeAndVerify()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl25 import android.os.WorkSource;
86 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStartWakelockFromSource()
88 void noteChangeWakelockFromSource(in WorkSource ws, int pid, String name, String histyoryName, in noteChangeWakelockFromSource()
89 int type, in WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource()
91 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource()
95 in WorkSource workSource); in noteLongPartialWakelockStartFromSource()
98 in WorkSource workSource); in noteLongPartialWakelockFinishFromSource()
102 void noteGpsChanged(in WorkSource oldSource, in WorkSource newSource); in noteGpsChanged()
118 void noteWifiRunning(in WorkSource ws); in noteWifiRunning()
119 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
102 public WorkSource(int uid) { in WorkSource() method in WorkSource
116 public WorkSource(int uid, @NonNull String packageName) { in WorkSource() method in WorkSource
125 WorkSource(Parcel in) { in WorkSource() method in WorkSource
251 if (o instanceof WorkSource) { in equals()
[all …]
DBatteryStatsManager.java268 public void reportWifiScanStartedFromSource(@NonNull WorkSource ws) { in reportWifiScanStartedFromSource()
282 public void reportWifiScanStoppedFromSource(@NonNull WorkSource ws) { in reportWifiScanStoppedFromSource()
297 public void reportWifiBatchedScanStartedFromSource(@NonNull WorkSource ws, in reportWifiBatchedScanStartedFromSource()
312 public void reportWifiBatchedScanStoppedFromSource(@NonNull WorkSource ws) { in reportWifiBatchedScanStoppedFromSource()
356 public void reportFullWifiLockAcquiredFromSource(@NonNull WorkSource ws) { in reportFullWifiLockAcquiredFromSource()
370 public void reportFullWifiLockReleasedFromSource(@NonNull WorkSource ws) { in reportFullWifiLockReleasedFromSource()
402 public void reportWifiMulticastEnabled(@NonNull WorkSource ws) { in reportWifiMulticastEnabled()
417 public void reportWifiMulticastDisabled(@NonNull WorkSource ws) { in reportWifiMulticastDisabled()
DIPowerManager.aidl23 import android.os.WorkSource;
29 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()
82 in WorkSource ws, String historyTag); in acquireWakeLockAsync()
/frameworks/base/location/java/android/location/provider/
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()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java59 import android.os.WorkSource;
933 public void noteWakupAlarm(final String name, final int uid, final WorkSource workSource, in noteWakupAlarm()
936 final WorkSource localWs = workSource != null ? new WorkSource(workSource) : null; in noteWakupAlarm()
949 public void noteAlarmStart(final String name, final WorkSource workSource, final int uid) { in noteAlarmStart()
951 final WorkSource localWs = workSource != null ? new WorkSource(workSource) : null; in noteAlarmStart()
963 public void noteAlarmFinish(final String name, final WorkSource workSource, final int uid) { in noteAlarmFinish()
965 final WorkSource localWs = workSource != null ? new WorkSource(workSource) : null; in noteAlarmFinish()
1007 public void noteStartWakelockFromSource(final WorkSource ws, final int pid, final String name, in noteStartWakelockFromSource()
1010 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteStartWakelockFromSource()
1023 public void noteChangeWakelockFromSource(final WorkSource ws, final int pid, final String name, in noteChangeWakelockFromSource()
[all …]
/frameworks/base/services/core/java/com/android/server/location/injector/
DAlarmHelper.java20 import android.os.WorkSource;
33 WorkSource workSource) { in setDelayedAlarm()
40 WorkSource workSource); in setDelayedAlarmInternal()
DSystemAlarmHelper.java25 import android.os.WorkSource;
44 WorkSource workSource) { in setDelayedAlarmInternal()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DTimeController.java27 import android.os.WorkSource;
120 WorkSource ws = deriveWorkSource(job.getSourceUid(), job.getSourcePackageName()); in maybeStartTrackingJobLocked()
319 private WorkSource deriveWorkSource(int uid, @Nullable String packageName) { in deriveWorkSource()
321 WorkSource ws = new WorkSource(); in deriveWorkSource()
327 return packageName == null ? new WorkSource(uid) : new WorkSource(uid, packageName); in deriveWorkSource()
341 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked()
347 private void maybeUpdateDeadlineAlarmLocked(long deadlineExpiredElapsed, WorkSource ws) { in maybeUpdateDeadlineAlarmLocked()
358 private void setDelayExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDelayExpiredAlarmLocked()
377 private void setDeadlineExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDeadlineExpiredAlarmLocked()
392 OnAlarmListener listener, long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked()
/frameworks/native/services/powermanager/include/android/
DWorkSource.h30 struct WorkSource : public android::Parcelable { struct
31 WorkSource(
39 bool operator == (const WorkSource &ws) const { argument
/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()
DCommandsInterface.java26 import android.os.WorkSource;
1594 Message message, WorkSource workSource) {} in setNrDualConnectivityState()
1599 default void isNrDualConnectivityEnabled(Message message, WorkSource workSource) {} in isNrDualConnectivityEnabled()
1609 default void setLocationUpdates(boolean enable, WorkSource workSource, Message response) {} in setLocationUpdates()
1989 default void getCellInfoList(Message result, WorkSource workSource) {} in getCellInfoList()
2007 default void setCellInfoListRate(int rateInMillis, Message response, WorkSource workSource){} in setCellInfoListRate()
2124 default void nvReadItem(int itemID, Message response, WorkSource workSource) {} in nvReadItem()
2136 WorkSource workSource) {} in nvWriteItem()
2301 default void getModemActivityInfo(Message result, WorkSource workSource) {} in getModemActivityInfo()
2311 Message result, WorkSource workSource) {} in setAllowedCarriers()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java26 import android.os.WorkSource;
56 private static final WorkSource WS = new WorkSource(UID);
346 WorkSource ws = new WorkSource(); in testAlarmStartAndFinishLocked_workSource()
409 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid()
422 ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid()
442 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_workChain()
468 WorkSource ws = new WorkSource(); in testNoteGpsChanged()
471 bi.noteGpsChangedLocked(new WorkSource(), ws); in testNoteGpsChanged()
476 bi.noteGpsChangedLocked(ws, new WorkSource()); in testNoteGpsChanged()
492 WorkSource ws = new WorkSource(); in testNoteGpsChanged_workSource()
[all …]
DWakelockPowerCalculatorTest.java25 import android.os.WorkSource;
52 batteryStats.noteStartWakeFromSourceLocked(new WorkSource(APP_UID), APP_PID, "awake", "", in testTimerBasedModel()
54 batteryStats.noteStopWakeFromSourceLocked(new WorkSource(APP_UID), APP_PID, "awake", "", in testTimerBasedModel()
DWifiPowerCalculatorTest.java29 import android.os.WorkSource;
150 batteryStats.noteWifiRunningLocked(new WorkSource(APP_UID), 3000, 3000); in setupTimerBasedModelTestNumbers()
151 batteryStats.noteWifiStoppedLocked(new WorkSource(APP_UID), 4000, 4000); in setupTimerBasedModelTestNumbers()
152 batteryStats.noteWifiRunningLocked(new WorkSource(Process.WIFI_UID), 1111, 2222); in setupTimerBasedModelTestNumbers()
153 batteryStats.noteWifiStoppedLocked(new WorkSource(Process.WIFI_UID), 3333, 4444); in setupTimerBasedModelTestNumbers()
/frameworks/native/services/powermanager/
DWorkSource.cpp25 status_t WorkSource::readFromParcel(const android::Parcel *parcel) { in readFromParcel()
38 status_t WorkSource::writeToParcel(android::Parcel *parcel) const { in writeToParcel()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java27 import android.os.WorkSource;
108 public void acquireWakeLock(IBinder arg0, int arg1, String arg2, String arg2_5, WorkSource arg3, in acquireWakeLock()
116 WorkSource arg3, String arg4) throws RemoteException { in acquireWakeLockAsync()
208 …public void updateWakeLockWorkSource(IBinder arg0, WorkSource arg1, String arg2) throws RemoteExce… in updateWakeLockWorkSource()
/frameworks/base/location/java/android/location/util/identity/
DCallerIdentity.java24 import android.os.WorkSource;
188 public WorkSource addToWorkSource(@Nullable WorkSource workSource) { in addToWorkSource()
190 return new WorkSource(mUid, mPackageName); in addToWorkSource()
/frameworks/base/location/java/android/location/
DLocationRequest.java36 import android.os.WorkSource;
200 private @Nullable WorkSource mWorkSource;
296 WorkSource workSource) { in LocationRequest()
743 public void setWorkSource(@Nullable WorkSource workSource) { in setWorkSource()
745 workSource = new WorkSource(); in setWorkSource()
759 public @NonNull WorkSource getWorkSource() { in getWorkSource()
782 /* workSource= */ in.readTypedObject(WorkSource.CREATOR));
928 @Nullable private WorkSource mWorkSource;
1196 public @NonNull Builder setWorkSource(@Nullable WorkSource workSource) { in setWorkSource()
1232 new WorkSource(mWorkSource)); in build()
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DIAlarmManager.aidl23 import android.os.WorkSource;
35 … String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock); in set()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeAlarmHelper.java20 import android.os.WorkSource;
41 WorkSource workSource) { in setDelayedAlarmInternal()
/frameworks/base/location/lib/java/com/android/location/provider/
DProviderRequestUnbundled.java23 import android.os.WorkSource;
130 public @NonNull WorkSource getWorkSource() { in getWorkSource()
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java38 import android.os.WorkSource;
208 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { in startScanFromSource()
233 final WorkSource workSource, final ScanCallback callback) { in startScanFromSource()
239 final WorkSource workSource, final ScanCallback callback, in startScan()
397 private final WorkSource mWorkSource;
410 WorkSource workSource, ScanCallback scanCallback, in BleScanCallbackWrapper()

1234