/frameworks/base/core/java/android/os/ |
WorkSource.aidl | 18 parcelable WorkSource;
|
IPowerManager.aidl | 20 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);
|
WorkSource.java | 14 public class WorkSource implements 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() { 45 * Create a new WorkSource that is a copy of an existing one. 46 * If <var>orig</var> is null, an empty WorkSource is created [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
IBatteryStats.aidl | 24 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 ws) [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
WorkSourceTest.java | 24 import android.os.WorkSource; 28 private Constructor<WorkSource> mConstructWS; 44 mConstructWS = WorkSource.class.getConstructor(new Class[] { int.class }); 45 mAddUid = WorkSource.class.getMethod("add", new Class[] { int.class }); 46 mAddUidName = WorkSource.class.getMethod("add", new Class[] { int.class, String.class }); 47 mAddReturningNewbs = WorkSource.class.getMethod("addReturningNewbs", new Class[] { WorkSource.class }); 48 mSetReturningDiffs = WorkSource.class.getMethod("setReturningDiffs", new Class[] { WorkSource.class }); 49 mStripNames = WorkSource.class.getMethod("stripNames", new Class[] { }) [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
LocationProviderInterface.java | 27 import android.os.WorkSource; 39 public void setRequest(ProviderRequest request, WorkSource source);
|
PassiveProvider.java | 32 import android.os.WorkSource; 95 public void setRequest(ProviderRequest request, WorkSource source) {
|
LocationProviderProxy.java | 28 import android.os.WorkSource; 55 private WorkSource mWorksource = new WorkSource(); 106 WorkSource source; 201 public void setRequest(ProviderRequest request, WorkSource source) {
|
MockProvider.java | 24 import android.os.WorkSource; 155 public void setRequest(ProviderRequest request, WorkSource source) { }
|
/frameworks/base/core/java/android/app/ |
IAlarmManager.aidl | 23 import android.os.WorkSource; 34 String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock);
|
AlarmManager.java | 32 import android.os.WorkSource; 602 long intervalMillis, PendingIntent operation, WorkSource workSource) { 604 null, workSource, null); 608 * Direct callback version of {@link #set(int, long, long, long, PendingIntent, WorkSource)}. 619 WorkSource workSource) { 621 targetHandler, workSource, null); 625 * Direct callback version of {@link #set(int, long, long, long, PendingIntent, WorkSource)}. 638 WorkSource workSource) [all...] |
/frameworks/base/location/java/com/android/internal/location/ |
ILocationProvider.aidl | 22 import android.os.WorkSource; 37 void setRequest(in ProviderRequest request, in WorkSource ws);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiLockManagerTest.java | 27 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 holding WorkSources for all active locks [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiLockManager.java | 24 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 ws) [all...] |
/external/libchrome/base/message_loop/ |
message_pump_glib.cc | 87 struct WorkSource : public GSource { 93 *timeout_ms = static_cast<WorkSource*>(source)->pump->HandlePrepare(); 102 return static_cast<WorkSource*>(source)->pump->HandleCheck(); 109 static_cast<WorkSource*>(source)->pump->HandleDispatch(); 197 work_source_ = g_source_new(&WorkSourceFuncs, sizeof(WorkSource)); 198 static_cast<WorkSource*>(work_source_)->pump = this;
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
FusedLocationProvider.java | 38 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/ |
LocationProviderBase.java | 31 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/ |
BridgePowerManager.java | 24 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/ |
IWifiManager.aidl | 38 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/ |
LocationRequest.java | 23 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) { 522 mWorkSource = workSource; 527 public WorkSource getWorkSource() { 602 WorkSource workSource = in.readParcelable(null) [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
BatteryStatsService.java | 38 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 ws) [all...] |
/frameworks/base/core/java/android/bluetooth/le/ |
BluetoothLeScanner.java | 33 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) { 178 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); 187 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for 196 final WorkSource workSource, final ScanCallback callback) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
PhoneInternalInterface.java | 23 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){} [all...] |