/frameworks/base/core/java/android/os/ |
WorkSource.aidl | 18 parcelable WorkSource;
|
WorkSource.java | 12 public class WorkSource implements Parcelable { 13 static final String TAG = "WorkSource"; 22 * The WorkSource object itself is not thread safe, but we need to 25 static final WorkSource sTmpWorkSource = new WorkSource(0); 29 static WorkSource sNewbWork; 33 static WorkSource sGoneWork; 38 public WorkSource() { 43 * Create a new WorkSource that is a copy of an existing one. 44 * If <var>orig</var> is null, an empty WorkSource is created [all...] |
IPowerManager.aidl | 20 import android.os.WorkSource; 31 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, 39 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag);
|
PowerManager.java | [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 | 22 import android.os.WorkSource; 26 private Constructor<WorkSource> mConstructWS; 42 mConstructWS = WorkSource.class.getConstructor(new Class[] { int.class }); 43 mAddUid = WorkSource.class.getMethod("add", new Class[] { int.class }); 44 mAddUidName = WorkSource.class.getMethod("add", new Class[] { int.class, String.class }); 45 mAddReturningNewbs = WorkSource.class.getMethod("addReturningNewbs", new Class[] { WorkSource.class }); 46 mSetReturningDiffs = WorkSource.class.getMethod("setReturningDiffs", new Class[] { WorkSource.class }); 47 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 | 27 import android.os.WorkSource; 53 private WorkSource mWorksource = new WorkSource(); 104 WorkSource source; 199 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 | 29 import android.os.WorkSource; 594 PendingIntent operation, WorkSource workSource) { 596 null, workSource, null); 600 * Direct callback version of {@link #set(int, long, long, long, PendingIntent, WorkSource)}. 610 String tag, OnAlarmListener listener, Handler targetHandler, WorkSource workSource) { 612 targetHandler, workSource, null); 616 * Direct callback version of {@link #set(int, long, long, long, PendingIntent, WorkSource)}. 627 OnAlarmListener listener, Handler targetHandler, 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 | 28 import android.os.WorkSource; 56 WorkSource mWorkSource; 65 mWorkSource = new WorkSource(DEFAULT_TEST_UID_1); 70 private void acquireWifiLockSuccessful(int lockMode, String tag, IBinder binder, WorkSource ws) 90 inOrder.verify(mBatteryStats).noteFullWifiLockReleasedFromSource(any(WorkSource.class)); 163 WorkSource toReleaseWS = new WorkSource(DEFAULT_TEST_UID_1); 164 WorkSource toKeepWS = new WorkSource(DEFAULT_TEST_UID_2); 211 * 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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgePowerManager.java | 22 import android.os.WorkSource; 52 public void acquireWakeLock(IBinder arg0, int arg1, String arg2, String arg2_5, WorkSource arg3, String arg4) 129 public void updateWakeLockWorkSource(IBinder arg0, WorkSource arg1, String arg2) throws RemoteException {
|
/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) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
ScanClient.java | 22 import android.os.WorkSource; 48 WorkSource workSource; 74 List<ScanFilter> filters, WorkSource workSource, 76 this(appIf, isServer, new UUID[0], settings, filters, workSource, storages); 80 List<ScanFilter> filters, WorkSource workSource, 87 this.workSource = workSource; [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
IWifiManager.aidl | 32 import android.os.WorkSource; 80 void startScan(in ScanSettings requested, in WorkSource ws); 112 boolean acquireWifiLock(IBinder lock, int lockType, String tag, in WorkSource ws); 114 void updateWifiLockWorkSource(IBinder lock, in WorkSource ws);
|
/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/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/core/java/android/bluetooth/le/ |
BluetoothLeScanner.java | 32 import android.os.WorkSource; 120 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for 128 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { 129 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); 138 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for 147 final WorkSource workSource, final ScanCallback callback) [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
BatteryStatsService.java | 44 import android.os.WorkSource; 460 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, 469 public void noteChangeWakelockFromSource(WorkSource ws, int pid, String name, 470 String historyName, int type, WorkSource newWs, int newPid, String newName, 479 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, String historyName, 744 public void noteWifiRunning(WorkSource ws) { 751 public void noteWifiRunningChanged(WorkSource oldWs, WorkSource newWs) { 758 public void noteWifiStopped(WorkSource ws) { 828 public void noteFullWifiLockAcquiredFromSource(WorkSource ws) [all...] |
/frameworks/base/services/core/java/com/android/server/power/ |
Notifier.java | 47 import android.os.WorkSource; 168 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) { 173 + ", workSource=" + workSource); 181 if (workSource != null) { 182 mBatteryStats.noteStartWakelockFromSource(workSource, ownerPid, tag, 197 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource, 201 + ", workSource=" + workSource) [all...] |