/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/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...] |
/frameworks/base/core/java/android/os/ |
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...] |
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);
|
/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...] |
/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/base/core/java/android/app/ |
IAlarmManager.aidl | 23 import android.os.WorkSource; 34 String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock);
|
/frameworks/base/services/core/java/com/android/server/power/ |
Notifier.java | 48 import android.os.WorkSource; 169 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) { 174 + ", workSource=" + workSource); 182 if (workSource != null) { 183 mBatteryStats.noteStartWakelockFromSource(workSource, ownerPid, tag, 198 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource, 202 + ", 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/base/services/core/java/com/android/server/location/ |
LocationProviderInterface.java | 27 import android.os.WorkSource; 39 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) {
|
PassiveProvider.java | 32 import android.os.WorkSource; 95 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/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/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/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/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/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
WifiScanningServiceImpl.java | 41 import android.os.WorkSource; 331 private static boolean isWorkSourceValid(WorkSource workSource) { 332 return workSource != null && workSource.size() > 0 && workSource.get(0) >= 0; 335 private WorkSource computeWorkSource(ClientInfo ci, WorkSource requestedWorkSource) { 339 // supplied WorkSource to allow future WorkSource combining [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
AppScanStats.java | 20 import android.os.WorkSource; 91 WorkSource workSource; // Used for BatteryStats 106 public AppScanStats(String name, WorkSource source, ContextMap map, GattService service) { 114 source = new WorkSource(Binder.getCallingUid(), appName); 116 workSource = source; 128 batteryStats.noteBleScanResults(workSource, 100); 170 batteryStats.noteBleScanStarted(workSource, isUnoptimized); 215 batteryStats.noteBleScanResults(workSource, scan.results % 100); 216 batteryStats.noteBleScanStopped(workSource, isUnoptimized) [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/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsPhoneBase.java | 26 import android.os.WorkSource; 150 public List<CellInfo> getAllCellInfo(WorkSource workSource) { 151 return getServiceStateTracker().getAllCellInfo(workSource); 155 public CellLocation getCellLocation(WorkSource workSource) {
|
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
WifiScanningServiceTest.java | 41 import android.os.WorkSource; 205 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { 208 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource); 214 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { 217 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource); 509 WorkSource workSource = new WorkSource(2292) [all...] |
/frameworks/base/core/java/android/bluetooth/ |
IBluetoothGatt.aidl | 31 import android.os.WorkSource; 46 void registerScanner(in IScannerCallback callback, in WorkSource workSource);
|