/frameworks/base/core/java/android/bluetooth/le/ |
H A D | BluetoothLeScanner.java | 164 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for 172 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { argument 173 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); 182 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for 191 final WorkSource workSource, final ScanCallback callback) { 192 startScan(filters, settings, workSource, callback, null, null); 196 final WorkSource workSource, final ScanCallback callback, 233 settings, workSource, callback, resultStorages); 352 WorkSource workSource, ScanCallback scanCallback, 357 mWorkSource = workSource; 190 startScanFromSource(List<ScanFilter> filters, ScanSettings settings, final WorkSource workSource, final ScanCallback callback) argument 195 startScan(List<ScanFilter> filters, ScanSettings settings, final WorkSource workSource, final ScanCallback callback, final PendingIntent callbackIntent, List<List<ResultStorageDescriptor>> resultStorages) argument 350 BleScanCallbackWrapper(IBluetoothGatt bluetoothGatt, List<ScanFilter> filters, ScanSettings settings, WorkSource workSource, ScanCallback scanCallback, List<List<ResultStorageDescriptor>> resultStorages) argument [all...] |
/frameworks/base/location/java/android/location/ |
H A D | LocationRequest.java | 517 * @param workSource WorkSource defining power blame for this location request. 521 public void setWorkSource(WorkSource workSource) { argument 522 mWorkSource = workSource; 602 WorkSource workSource = in.readParcelable(null); 603 if (workSource != null) request.setWorkSource(workSource);
|
/frameworks/base/core/java/android/app/ |
H A D | AlarmManager.java | 602 long intervalMillis, PendingIntent operation, WorkSource workSource) { 604 null, workSource, null); 619 WorkSource workSource) { 621 targetHandler, workSource, null); 638 WorkSource workSource) { 640 targetHandler, workSource, null); 645 String listenerTag, Handler targetHandler, WorkSource workSource, 679 operation, recipientWrapper, listenerTag, workSource, alarmClock); 601 set(@larmType int type, long triggerAtMillis, long windowMillis, long intervalMillis, PendingIntent operation, WorkSource workSource) argument 617 set(@larmType int type, long triggerAtMillis, long windowMillis, long intervalMillis, String tag, OnAlarmListener listener, Handler targetHandler, WorkSource workSource) argument 636 set(@larmType int type, long triggerAtMillis, long windowMillis, long intervalMillis, OnAlarmListener listener, Handler targetHandler, WorkSource workSource) argument 643 setImpl(@larmType int type, long triggerAtMillis, long windowMillis, long intervalMillis, int flags, PendingIntent operation, final OnAlarmListener listener, String listenerTag, Handler targetHandler, WorkSource workSource, AlarmClockInfo alarmClock) argument
|
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | Notifier.java | 172 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) { 177 + ", workSource=" + workSource); 185 if (workSource != null) { 186 mBatteryStats.noteStartWakelockFromSource(workSource, ownerPid, tag, 201 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource, argument 205 + ", workSource=" + workSource); 209 if (workSource != null) { 210 final int N = workSource 171 onWakeLockAcquired(int flags, String tag, String packageName, int ownerUid, int ownerPid, WorkSource workSource, String historyTag) argument 222 onLongPartialWakeLockFinish(String tag, int ownerUid, WorkSource workSource, String historyTag) argument 246 onWakeLockChanging(int flags, String tag, String packageName, int ownerUid, int ownerPid, WorkSource workSource, String historyTag, int newFlags, String newTag, String newPackageName, int newOwnerUid, int newOwnerPid, WorkSource newWorkSource, String newHistoryTag) argument 281 onWakeLockReleased(int flags, String tag, String packageName, int ownerUid, int ownerPid, WorkSource workSource, String historyTag) argument [all...] |
H A D | PowerManagerService.java | 3730 private static WorkSource copyWorkSource(WorkSource workSource) { argument 3731 return workSource != null ? new WorkSource(workSource) : null; 3850 WorkSource workSource, String historyTag, int ownerUid, int ownerPid, 3856 mWorkSource = copyWorkSource(workSource); 3868 public boolean hasSameProperties(int flags, String tag, WorkSource workSource, argument 3872 && hasSameWorkSource(workSource) 3878 WorkSource workSource, String historyTag, int ownerUid, int ownerPid) { 3893 updateWorkSource(workSource); 3897 public boolean hasSameWorkSource(WorkSource workSource) { argument 3849 WakeLock(IBinder lock, int flags, String tag, String packageName, WorkSource workSource, String historyTag, int ownerUid, int ownerPid, UidState uidState) argument 3877 updateProperties(int flags, String tag, String packageName, WorkSource workSource, String historyTag, int ownerUid, int ownerPid) argument 3901 updateWorkSource(WorkSource workSource) argument [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
H A D | WifiScanningServiceTest.java | 204 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { 207 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource); 213 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { 216 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource); 508 WorkSource workSource = new WorkSource(2292); 519 sendSingleScanRequest(controlChannel, requestId, requestSettings, workSource); 524 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource)); 539 verify(mBatteryStats).noteWifiScanStoppedFromSource(eq(workSource)); 652 WorkSource workSource = new WorkSource(Binder.getCallingUid()); // don't explicitly set 672 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource)); 203 sendBackgroundScanRequest(BidirectionalAsyncChannel controlChannel, int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) argument 212 sendSingleScanRequest(BidirectionalAsyncChannel controlChannel, int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
H A D | ImsPhoneBase.java | 149 public List<CellInfo> getAllCellInfo(WorkSource workSource) { argument 150 return getServiceStateTracker().getAllCellInfo(workSource); 154 public CellLocation getCellLocation(WorkSource workSource) { argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
H A D | SipPhoneBase.java | 115 public CellLocation getCellLocation(WorkSource workSource) { argument
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiScanner.java | 744 * @param workSource WorkSource to blame for power usage 751 WorkSource workSource) { 758 scanParams.putParcelable(SCAN_PARAMS_WORK_SOURCE_KEY, workSource); 803 * @param workSource WorkSource to blame for power usage 809 public void startScan(ScanSettings settings, ScanListener listener, WorkSource workSource) { argument 816 scanParams.putParcelable(SCAN_PARAMS_WORK_SOURCE_KEY, workSource); 750 startBackgroundScan(ScanSettings settings, ScanListener listener, WorkSource workSource) argument
|
H A D | WifiManager.java | 1534 public boolean startScan(WorkSource workSource) { argument 1537 mService.startScan(null, workSource, packageName); 1555 public boolean startLocationRestrictedScan(WorkSource workSource) { argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiServiceImpl.java | 543 * @param workSource If null, all blame is given to the calling uid. 547 public void startScan(ScanSettings settings, WorkSource workSource, String packageName) { argument 587 if (workSource != null) { 591 workSource.clearNames(); 593 if (workSource == null && Binder.getCallingUid() >= 0) { 594 workSource = new WorkSource(Binder.getCallingUid()); 597 settings, workSource);
|
H A D | WifiStateMachine.java | 1327 * Initiate a wifi scan. If workSource is not null, blame is given to it, otherwise blame is 1331 * workSource is specified. 1332 * @param workSource If not null, blame is given to workSource. 1336 ScanSettings settings, WorkSource workSource) { 1339 bundle.putParcelable(CUSTOMIZED_SCAN_WORKSOURCE, workSource); 1476 WorkSource workSource = null; 1483 workSource = bundle.getParcelable(CUSTOMIZED_SCAN_WORKSOURCE); 1499 if (startScanNative(freqs, hiddenNetworks, workSource)) { 1530 bundle.putParcelable(CUSTOMIZED_SCAN_WORKSOURCE, workSource); 1335 startScan(int callingUid, int scanCounter, ScanSettings settings, WorkSource workSource) argument 1548 startScanNative(final Set<Integer> freqs, List<WifiScanner.ScanSettings.HiddenNetwork> hiddenNetworkList, WorkSource workSource) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
H A D | WifiScanningServiceImpl.java | 331 private static boolean isWorkSourceValid(WorkSource workSource) { argument 332 return workSource != null && workSource.size() > 0 && workSource.get(0) >= 0; 359 final WorkSource workSource; field in class:WifiScanningServiceImpl.RequestInfo 367 this.workSource = computeWorkSource(clientInfo, requestedWorkSource); 428 mergedSource.add(entry.workSource); 609 WorkSource workSource = 611 if (validateScanRequest(ci, handler, scanSettings, workSource)) { 612 logScanRequest("addSingleScanRequest", ci, handler, workSource, 717 validateScanRequest(ClientInfo ci, int handler, ScanSettings settings, WorkSource workSource) argument 1150 addBackgroundScanRequest(ClientInfo ci, int handler, ScanSettings settings, WorkSource workSource) argument 1993 sendRequestToClientHandler(int what, ScanSettings settings, WorkSource workSource) argument 2161 logScanRequest(String request, ClientInfo ci, int id, WorkSource workSource, ScanSettings settings, PnoSettings pnoSettings) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | PhoneInternalInterface.java | 210 * @param workSource calling WorkSource 212 CellLocation getCellLocation(WorkSource workSource); argument 656 * @param workSource calling WorkSource 658 default void getNeighboringCids(Message response, WorkSource workSource){} argument
|
H A D | GsmCdmaPhone.java | 415 public CellLocation getCellLocation(WorkSource workSource) { argument 417 return mSST.getCellLocation(workSource); 1802 public void getNeighboringCids(Message response, WorkSource workSource) { argument 1804 mCi.getNeighboringCids(response, workSource);
|
H A D | CommandsInterface.java | 1391 * @param workSource calling WorkSource 1393 default void getNeighboringCids(Message response, WorkSource workSource){} argument 1726 * @param workSource calling WorkSource 1728 default void getCellInfoList(Message result, WorkSource workSource) {} argument 1744 * @param workSource calling WorkSource 1746 default void setCellInfoListRate(int rateInMillis, Message response, WorkSource workSource){} argument
|
H A D | RIL.java | 174 * @param workSource WorkSource to track the client 177 static RILRequest obtain(int request, Message result, WorkSource workSource) { argument 181 if(workSource != null) { 182 rr.mWorkSource = workSource; 183 rr.mClientId = String.valueOf(workSource.get(0)) + ":" + workSource.getName(0); 185 Rlog.e(LOG_TAG, "null workSource " + request); 661 private RILRequest obtainRequest(int request, Message result, WorkSource workSource) { argument 662 RILRequest rr = RILRequest.obtain(request, result, workSource); 2225 public void getNeighboringCids(Message result, WorkSource workSource) { argument 2915 getCellInfoList(Message result, WorkSource workSource) argument 2935 setCellInfoListRate(int rateInMillis, Message result, WorkSource workSource) argument 3916 getDeafultWorkSourceIfInvalid(WorkSource workSource) argument 3924 getWorkSourceClientId(WorkSource workSource) argument [all...] |
H A D | ServiceStateTracker.java | 3392 * @param workSource calling WorkSource 3396 public CellLocation getCellLocation(WorkSource workSource) { argument 3402 List<CellInfo> result = getAllCellInfo(workSource); 4408 public List<CellInfo> getAllCellInfo(WorkSource workSource) { argument 4419 mCi.getCellInfoList(msg, workSource);
|
H A D | Phone.java | 1642 * @param workSource calling WorkSource 1645 public List<CellInfo> getAllCellInfo(WorkSource workSource) { argument 1646 List<CellInfo> cellInfoList = getServiceStateTracker().getAllCellInfo(workSource); 1696 * @param workSource calling WorkSource 1698 public void setCellInfoListRate(int rateInMillis, WorkSource workSource) { argument 1699 mCi.setCellInfoListRate(rateInMillis, null, workSource);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | LocationManagerService.java | 799 String packageName, WorkSource workSource, boolean hideFromAppOps) { 809 if (workSource != null && workSource.size() <= 0) { 810 workSource = null; 812 mWorkSource = workSource; 819 if (workSource == null) { 820 workSource = new WorkSource(mIdentity.mUid, mIdentity.mPackageName); 822 mWakeLock.setWorkSource(workSource); 1903 String packageName, WorkSource workSource, boolean hideFromAppOps) { 1907 receiver = new Receiver(listener, null, pid, uid, packageName, workSource, 798 Receiver(ILocationListener listener, PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument 1902 getReceiverLocked(ILocationListener listener, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument 1920 getReceiverLocked(PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument 1986 checkListenerOrIntentLocked(ILocationListener listener, PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument [all...] |
H A D | AlarmManagerService.java | 844 WorkSource workSource, int uid, String alarmPkg, int alarmType, String tag, 848 mWorkSource = workSource; 868 + ", workSource=" + mWorkSource 1071 int flags, WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock, 1136 interval, operation, directReceiver, listenerTag, flags, true, workSource, 1143 String listenerTag, int flags, boolean doValidate, WorkSource workSource, 1146 operation, directReceiver, listenerTag, workSource, flags, alarmClock, 1292 WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock) { 1306 if (workSource != null) { 1337 } else if (workSource 843 InFlight(AlarmManagerService service, PendingIntent pendingIntent, IAlarmListener listener, WorkSource workSource, int uid, String alarmPkg, int alarmType, String tag, long nowELAPSED) argument 1069 setImpl(int type, long triggerAtTime, long windowLength, long interval, PendingIntent operation, IAlarmListener directReceiver, String listenerTag, int flags, WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock, int callingUid, String callingPackage) argument 1141 setImplLocked(int type, long when, long whenElapsed, long windowLength, long maxWhen, long interval, PendingIntent operation, IAlarmListener directReceiver, String listenerTag, int flags, boolean doValidate, WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock, int callingUid, String callingPackage) argument 2281 public final WorkSource workSource; field in class:AlarmManagerService.Alarm [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | SimulatedCommands.java | 1138 public void getNeighboringCids(Message result, WorkSource workSource) { argument 1832 public void setCellInfoListRate(int rateInMillis, Message response, WorkSource workSource) { argument
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
H A D | PhoneMock.java | 1081 public CellLocation getCellLocation(WorkSource workSource) { argument
|