Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/android/os/
DWorkSourceTest.java26 import android.os.WorkSource.WorkChain;
110 WorkSource ws1 = new WorkSource(); in testDiff_workChains()
113 WorkSource ws2 = new WorkSource(); in testDiff_workChains()
124 WorkSource ws1 = new WorkSource(); in testEquals_workChains()
128 WorkSource ws2 = new WorkSource(); in testEquals_workChains()
139 WorkSource ws3 = new WorkSource(); in testEquals_workChains()
151 WorkSource ws1 = new WorkSource(); in testEquals_workChains_nullEmptyAreEquivalent()
156 WorkSource ws2 = new WorkSource(); in testEquals_workChains_nullEmptyAreEquivalent()
167 WorkSource ws = new WorkSource(); in testWorkSourceParcelling()
180 WorkSource unparcelled = WorkSource.CREATOR.createFromParcel(p); in testWorkSourceParcelling()
[all …]
DWorkSourceParcelTest.java100 WorkSource ws = WorkSource.CREATOR.createFromParcel(wsParcel); in unparcelWorkSourceFromNativeAndVerify()
127 WorkSource ws = new WorkSource(); in parcelWorkSourceToNativeAndVerify()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl26 import android.os.WorkSource;
118 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStartWakelockFromSource()
121 void noteChangeWakelockFromSource(in WorkSource ws, int pid, String name, String histyoryName, in noteChangeWakelockFromSource()
122 int type, in WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource()
125 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, String historyName, in noteStopWakelockFromSource()
131 in WorkSource workSource); in noteLongPartialWakelockStartFromSource()
136 in WorkSource workSource); in noteLongPartialWakelockFinishFromSource()
143 void noteGpsChanged(in WorkSource oldSource, in WorkSource newSource); in noteGpsChanged()
176 void noteWifiRunning(in WorkSource ws); in noteWifiRunning()
178 void noteWifiRunningChanged(in WorkSource oldWs, in WorkSource newWs); in noteWifiRunningChanged()
[all …]
/frameworks/base/core/java/android/os/
DWorkSource.java27 public class WorkSource implements Parcelable { class
50 static final WorkSource sTmpWorkSource = new WorkSource(0);
55 static WorkSource sNewbWork;
60 static WorkSource sGoneWork;
65 public WorkSource() { in WorkSource() method in WorkSource
74 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
133 …in.readParcelableList(mChains, WorkChain.class.getClassLoader(), android.os.WorkSource.WorkChain.c… in WorkSource()
[all …]
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()
550 public void reportBleScanStarted(@NonNull WorkSource ws, boolean isUnoptimized) { in reportBleScanStarted()
565 public void reportBleScanStopped(@NonNull WorkSource ws, boolean isUnoptimized) { in reportBleScanStopped()
[all …]
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()
125 in WorkSource ws, String historyTag); in acquireWakeLockAsync()
/frameworks/base/location/java/android/location/
DGnssMeasurementRequest.java29 import android.os.WorkSource;
55 private WorkSource mWorkSource;
60 int intervalMillis, WorkSource workSource) { in GnssMeasurementRequest()
128 public @NonNull WorkSource getWorkSource() { in getWorkSource()
142 /* workSource= */ parcel.readTypedObject(WorkSource.CREATOR));
219 private WorkSource mWorkSource;
307 public @NonNull Builder setWorkSource(@Nullable WorkSource workSource) { in setWorkSource()
316 mIntervalMillis, new WorkSource(mWorkSource)); in build()
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()
/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/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/native/services/powermanager/include/android/
DWorkSource.h30 struct WorkSource : public android::Parcelable { struct
31 WorkSource(
39 bool operator == (const WorkSource &ws) const { argument
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java81 import android.os.WorkSource;
1287 public void noteWakupAlarm(final String name, final int uid, final WorkSource workSource, in noteWakupAlarm()
1290 final WorkSource localWs = workSource != null ? new WorkSource(workSource) : null; in noteWakupAlarm()
1303 public void noteAlarmStart(final String name, final WorkSource workSource, final int uid) { in noteAlarmStart()
1305 final WorkSource localWs = workSource != null ? new WorkSource(workSource) : null; in noteAlarmStart()
1317 public void noteAlarmFinish(final String name, final WorkSource workSource, final int uid) { in noteAlarmFinish()
1319 final WorkSource localWs = workSource != null ? new WorkSource(workSource) : null; in noteAlarmFinish()
1369 public void noteStartWakelockFromSource(final WorkSource ws, final int pid, final String name, in noteStartWakelockFromSource()
1373 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteStartWakelockFromSource()
1388 public void noteChangeWakelockFromSource(final WorkSource ws, final int pid, final String name, in noteChangeWakelockFromSource()
[all …]
/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.java27 import android.os.WorkSource;
1564 Message message, WorkSource workSource) {} in setNrDualConnectivityState()
1569 default void isNrDualConnectivityEnabled(Message message, WorkSource workSource) {} in isNrDualConnectivityEnabled()
1575 default void setVoNrEnabled(boolean enabled, Message message, WorkSource workSource) {} in setVoNrEnabled()
1580 default void isVoNrEnabled(Message message, WorkSource workSource) {} in isVoNrEnabled()
1590 default void setLocationUpdates(boolean enable, WorkSource workSource, Message response) {} in setLocationUpdates()
1955 default void getCellInfoList(Message result, WorkSource workSource) {} in getCellInfoList()
1973 default void setCellInfoListRate(int rateInMillis, Message response, WorkSource workSource){} in setCellInfoListRate()
2092 default void nvReadItem(int itemID, Message response, WorkSource workSource) {} in nvReadItem()
2104 WorkSource workSource) {} in nvWriteItem()
[all …]
/frameworks/native/services/powermanager/tests/
DWorkSourceTest.cpp34 os::WorkSource ws{uids, names}; in TEST()
40 os::WorkSource otherWs; in TEST()
/frameworks/native/services/powermanager/
DWorkSource.cpp25 status_t WorkSource::readFromParcel(const android::Parcel *parcel) { in readFromParcel()
45 status_t WorkSource::writeToParcel(android::Parcel *parcel) const { in writeToParcel()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DWakelockPowerCalculatorTest.java25 import android.os.WorkSource;
61 batteryStats.noteStartWakeFromSourceLocked(new WorkSource(APP_UID), APP_PID, "awake", in testTimerBasedModel()
63 batteryStats.noteStopWakeFromSourceLocked(new WorkSource(APP_UID), APP_PID, "awake", in testTimerBasedModel()
/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()
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()
/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/java/android/location/util/identity/
DCallerIdentity.java24 import android.os.WorkSource;
213 public WorkSource addToWorkSource(@Nullable WorkSource workSource) { in addToWorkSource()
215 return new WorkSource(mUid, mPackageName); in addToWorkSource()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java28 import android.os.WorkSource;
127 public void acquireWakeLock(IBinder arg0, int arg1, String arg2, String arg2_5, WorkSource arg3, in acquireWakeLock()
135 WorkSource arg3, String arg4) throws RemoteException { in acquireWakeLockAsync()
233 …public void updateWakeLockWorkSource(IBinder arg0, WorkSource arg1, String arg2) throws RemoteExce… in updateWakeLockWorkSource()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DTimeController.java25 import android.os.WorkSource;
116 WorkSource ws = in maybeStartTrackingJobLocked()
331 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked()
337 private void maybeUpdateDeadlineAlarmLocked(long deadlineExpiredElapsed, WorkSource ws) { in maybeUpdateDeadlineAlarmLocked()
348 private void setDelayExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDelayExpiredAlarmLocked()
367 private void setDeadlineExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDeadlineExpiredAlarmLocked()
382 OnAlarmListener listener, long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked()
/frameworks/base/location/lib/java/com/android/location/provider/
DProviderRequestUnbundled.java23 import android.os.WorkSource;
130 public @NonNull WorkSource getWorkSource() { in getWorkSource()

12345