Searched refs:WorkSource (Results 1 - 25 of 69) sorted by relevance

123

/frameworks/base/core/java/android/os/
H A DWorkSource.aidl18 parcelable WorkSource;
H A DIPowerManager.aidl20 import android.os.WorkSource;
32 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws,
40 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag);
H A DWorkSource.java14 public class WorkSource implements Parcelable { class in inherits:Parcelable
15 static final String TAG = "WorkSource";
24 * The WorkSource object itself is not thread safe, but we need to
27 static final WorkSource sTmpWorkSource = new WorkSource(0);
31 static WorkSource sNewbWork;
35 static WorkSource sGoneWork;
40 public WorkSource() { method in class:WorkSource
45 * Create a new WorkSource that is a copy of an existing one.
46 * If <var>orig</var> is null, an empty WorkSource i
48 public WorkSource(WorkSource orig) { method in class:WorkSource
64 public WorkSource(int uid) { method in class:WorkSource
71 public WorkSource(int uid, String name) { method in class:WorkSource
80 WorkSource(Parcel in) { method in class:WorkSource
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl24 import android.os.WorkSource;
75 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, String historyName,
77 void noteChangeWakelockFromSource(in WorkSource ws, int pid, String name, String histyoryName,
78 int type, in WorkSource newWs, int newPid, String newName,
80 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, String historyName,
103 void noteWifiRunning(in WorkSource ws);
104 void noteWifiRunningChanged(in WorkSource oldWs, in WorkSource newWs);
105 void noteWifiStopped(in WorkSource ws);
115 void noteFullWifiLockAcquiredFromSource(in WorkSource w
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationProviderInterface.java27 import android.os.WorkSource;
39 public void setRequest(ProviderRequest request, WorkSource source);
H A DPassiveProvider.java32 import android.os.WorkSource;
95 public void setRequest(ProviderRequest request, WorkSource source) {
H A DLocationProviderProxy.java28 import android.os.WorkSource;
55 private WorkSource mWorksource = new WorkSource();
106 WorkSource source;
201 public void setRequest(ProviderRequest request, WorkSource source) {
H A DMockProvider.java24 import android.os.WorkSource;
155 public void setRequest(ProviderRequest request, WorkSource source) { }
/frameworks/base/core/java/android/app/
H A DIAlarmManager.aidl23 import android.os.WorkSource;
34 String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock);
H A DAlarmManager.java32 import android.os.WorkSource;
602 long intervalMillis, PendingIntent operation, WorkSource workSource) {
608 * Direct callback version of {@link #set(int, long, long, long, PendingIntent, WorkSource)}.
619 WorkSource workSource) {
625 * Direct callback version of {@link #set(int, long, long, long, PendingIntent, WorkSource)}.
638 WorkSource workSource) {
645 String listenerTag, Handler targetHandler, WorkSource workSource,
/frameworks/base/location/java/com/android/internal/location/
H A DILocationProvider.aidl22 import android.os.WorkSource;
37 void setRequest(in ProviderRequest request, in WorkSource ws);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiLockManagerTest.java27 import android.os.WorkSource;
55 WorkSource mWorkSource;
64 mWorkSource = new WorkSource(DEFAULT_TEST_UID_1);
69 private void acquireWifiLockSuccessful(int lockMode, String tag, IBinder binder, WorkSource ws)
89 inOrder.verify(mBatteryStats).noteFullWifiLockReleasedFromSource(any(WorkSource.class));
162 WorkSource toReleaseWS = new WorkSource(DEFAULT_TEST_UID_1);
163 WorkSource toKeepWS = new WorkSource(DEFAULT_TEST_UID_2);
210 * We should be able to create a merged WorkSource holdin
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiLockManager.java24 import android.os.WorkSource;
65 * @param ws WorkSource of the calling app
69 public boolean acquireWifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) {
75 ws = new WorkSource(Binder.getCallingUid());
119 * Method to create a WorkSource containing all active WifiLock WorkSources.
121 public synchronized WorkSource createMergedWorkSource() {
122 WorkSource mergedWS = new WorkSource();
133 * @param ws WorkSource to add to the existing WifiLock(s).
135 public synchronized void updateWifiLockWorkSource(IBinder binder, WorkSource w
[all...]
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
H A DFusedLocationProvider.java38 import android.os.WorkSource;
56 public WorkSource source;
57 public RequestWrapper(ProviderRequestUnbundled request, WorkSource source) {
116 public void onSetRequest(ProviderRequestUnbundled request, WorkSource source) {
/frameworks/base/location/lib/java/com/android/location/provider/
H A DLocationProviderBase.java31 import android.os.WorkSource;
88 public void setRequest(ProviderRequest request, WorkSource ws) {
166 public abstract void onSetRequest(ProviderRequestUnbundled request, WorkSource source);
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgePowerManager.java24 import android.os.WorkSource;
58 public void acquireWakeLock(IBinder arg0, int arg1, String arg2, String arg2_5, WorkSource arg3, String arg4)
135 public void updateWakeLockWorkSource(IBinder arg0, WorkSource arg1, String arg2) throws RemoteException {
/frameworks/base/wifi/java/android/net/wifi/
H A DIWifiManager.aidl38 import android.os.WorkSource;
87 void startScan(in ScanSettings requested, in WorkSource ws, in String packageName);
115 boolean acquireWifiLock(IBinder lock, int lockType, String tag, in WorkSource ws);
117 void updateWifiLockWorkSource(IBinder lock, in WorkSource ws);
/frameworks/base/location/java/android/location/
H A DLocationRequest.java23 import android.os.WorkSource;
151 private WorkSource mWorkSource = null;
511 * Sets the WorkSource to use for power blaming of this location request.
517 * @param workSource WorkSource defining power blame for this location request.
521 public void setWorkSource(WorkSource workSource) {
527 public WorkSource getWorkSource() {
602 WorkSource workSource = in.readParcelable(null);
/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java38 import android.os.WorkSource;
449 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name,
458 public void noteChangeWakelockFromSource(WorkSource ws, int pid, String name,
459 String historyName, int type, WorkSource newWs, int newPid, String newName,
468 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, String historyName,
741 public void noteWifiRunning(WorkSource ws) {
748 public void noteWifiRunningChanged(WorkSource oldWs, WorkSource newWs) {
755 public void noteWifiStopped(WorkSource ws) {
825 public void noteFullWifiLockAcquiredFromSource(WorkSource w
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeScanner.java33 import android.os.WorkSource;
169 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for
177 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) {
187 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for
196 final WorkSource workSource, final ScanCallback callback) {
201 final WorkSource workSource, final ScanCallback callback,
346 private final WorkSource mWorkSource;
359 WorkSource workSource, ScanCallback scanCallback,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneInternalInterface.java23 import android.os.WorkSource;
212 * @param workSource calling WorkSource
214 CellLocation getCellLocation(WorkSource workSource);
682 * @param workSource calling WorkSource
684 default void getNeighboringCids(Message response, WorkSource workSource){}
/frameworks/base/services/core/java/com/android/server/power/
H A DNotifier.java48 import android.os.WorkSource;
169 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) {
198 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource,
219 public void onLongPartialWakeLockFinish(String tag, int ownerUid, WorkSource workSource,
244 int ownerUid, int ownerPid, WorkSource workSource, String historyTag,
246 int newOwnerPid, WorkSource newWorkSource, String newHistoryTag) {
279 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) {
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsNoteTest.java24 import android.os.WorkSource;
49 private static final WorkSource WS = new WorkSource(UID);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DWifiScanningServiceImpl.java41 import android.os.WorkSource;
331 private static boolean isWorkSourceValid(WorkSource workSource) {
335 private WorkSource computeWorkSource(ClientInfo ci, WorkSource requestedWorkSource) {
339 // supplied WorkSource to allow future WorkSource combining.
347 WorkSource callingWorkSource = new WorkSource(ci.getUid());
352 return new WorkSource();
359 final WorkSource workSourc
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DWifiScanningServiceTest.java41 import android.os.WorkSource;
205 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) {
214 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) {
509 WorkSource workSource = new WorkSource(2292);
653 WorkSource workSource = new WorkSource(Binder.getCallingUid()); // don't explicitly set
928 WorkSource workSource1 = new WorkSource(1121);
934 WorkSource workSource
[all...]

Completed in 484 milliseconds

123