Searched defs:workSource (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/wifi/java/android/net/wifi/rtt/
H A DWifiRttManager.java122 * @param workSource A mechanism to specify an alternative work-source for the request.
133 public void startRanging(@Nullable WorkSource workSource, @NonNull RangingRequest request, argument
136 Log.v(TAG, "startRanging: workSource=" + workSource + ", request=" + request
149 mService.startRanging(binder, mContext.getOpPackageName(), workSource, request,
173 * @param workSource The work-sources of the requesters.
179 public void cancelRanging(@Nullable WorkSource workSource) { argument
181 Log.v(TAG, "cancelRanging: workSource=" + workSource);
185 mService.cancelRanging(workSource);
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DRILRequest.java112 * @param workSource WorkSource to track the client
116 public static RILRequest obtain(int request, Message result, WorkSource workSource) { argument
120 if (workSource != null) {
121 rr.mWorkSource = workSource;
124 Rlog.e(LOG_TAG, "null workSource " + request);
H A DRadioConfig.java196 private RILRequest obtainRequest(int request, Message result, WorkSource workSource) { argument
197 RILRequest rr = RILRequest.obtain(request, result, workSource);
H A DPhoneInternalInterface.java260 * @param workSource calling WorkSource
262 CellLocation getCellLocation(WorkSource workSource); argument
738 * @param workSource calling WorkSource
740 default void getNeighboringCids(Message response, WorkSource workSource){} argument
H A DGsmCdmaPhone.java438 public CellLocation getCellLocation(WorkSource workSource) { argument
440 return mSST.getCellLocation(workSource);
1938 public void getNeighboringCids(Message response, WorkSource workSource) { argument
1940 mCi.getNeighboringCids(response, workSource);
H A DServiceStateTracker.java3463 * @param workSource calling WorkSource
3467 public CellLocation getCellLocation(WorkSource workSource) { argument
3473 List<CellInfo> result = getAllCellInfo(workSource);
4223 public List<CellInfo> getAllCellInfo(WorkSource workSource) { argument
4234 mCi.getCellInfoList(msg, workSource);
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeScanner.java175 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for
183 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { argument
184 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback);
193 * @param workSource {@link WorkSource} identifying the application(s) for which to blame for
202 final WorkSource workSource, final ScanCallback callback) {
203 startScan(filters, settings, workSource, callback, null, null);
207 final WorkSource workSource, final ScanCallback callback,
245 settings, workSource, callback, resultStorages);
365 WorkSource workSource, ScanCallback scanCallback,
370 mWorkSource = workSource;
201 startScanFromSource(List<ScanFilter> filters, ScanSettings settings, final WorkSource workSource, final ScanCallback callback) argument
206 startScan(List<ScanFilter> filters, ScanSettings settings, final WorkSource workSource, final ScanCallback callback, final PendingIntent callbackIntent, List<List<ResultStorageDescriptor>> resultStorages) argument
363 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 DLocationRequest.java556 * @param workSource WorkSource defining power blame for this location request.
560 public void setWorkSource(WorkSource workSource) { argument
561 mWorkSource = workSource;
642 WorkSource workSource = in.readParcelable(null);
643 if (workSource != null) request.setWorkSource(workSource);
/frameworks/base/core/java/android/app/
H A DAlarmManager.java617 long intervalMillis, PendingIntent operation, WorkSource workSource) {
619 null, workSource, null);
634 WorkSource workSource) {
636 targetHandler, workSource, null);
653 WorkSource workSource) {
655 targetHandler, workSource, null);
660 String listenerTag, Handler targetHandler, WorkSource workSource,
694 operation, recipientWrapper, listenerTag, workSource, alarmClock);
616 set(@larmType int type, long triggerAtMillis, long windowMillis, long intervalMillis, PendingIntent operation, WorkSource workSource) argument
632 set(@larmType int type, long triggerAtMillis, long windowMillis, long intervalMillis, String tag, OnAlarmListener listener, Handler targetHandler, WorkSource workSource) argument
651 set(@larmType int type, long triggerAtMillis, long windowMillis, long intervalMillis, OnAlarmListener listener, Handler targetHandler, WorkSource workSource) argument
658 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
H A DActivityManager.java4088 public static void noteWakeupAlarm(PendingIntent ps, WorkSource workSource, int sourceUid, argument
4091 getService().noteWakeupAlarm((ps != null) ? ps.getTarget() : null, workSource,
4100 public static void noteAlarmStart(PendingIntent ps, WorkSource workSource, int sourceUid, argument
4103 getService().noteAlarmStart((ps != null) ? ps.getTarget() : null, workSource,
4113 public static void noteAlarmFinish(PendingIntent ps, WorkSource workSource, int sourceUid, argument
4116 getService().noteAlarmFinish((ps != null) ? ps.getTarget() : null, workSource,
/frameworks/base/services/core/java/com/android/server/power/
H A DNotifier.java196 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) {
201 + ", workSource=" + workSource);
209 if (workSource != null) {
210 mBatteryStats.noteStartWakelockFromSource(workSource, ownerPid, tag,
224 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource, argument
228 + ", workSource=" + workSource);
232 if (workSource != null) {
233 mBatteryStats.noteLongPartialWakelockStartFromSource(tag, historyTag, workSource);
195 onWakeLockAcquired(int flags, String tag, String packageName, int ownerUid, int ownerPid, WorkSource workSource, String historyTag) argument
242 onLongPartialWakeLockFinish(String tag, int ownerUid, WorkSource workSource, String historyTag) argument
263 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
298 onWakeLockReleased(int flags, String tag, String packageName, int ownerUid, int ownerPid, WorkSource workSource, String historyTag) argument
[all...]
H A DPowerManagerService.java3757 private static WorkSource copyWorkSource(WorkSource workSource) { argument
3758 return workSource != null ? new WorkSource(workSource) : null;
3877 WorkSource workSource, String historyTag, int ownerUid, int ownerPid,
3883 mWorkSource = copyWorkSource(workSource);
3895 public boolean hasSameProperties(int flags, String tag, WorkSource workSource, argument
3899 && hasSameWorkSource(workSource)
3905 WorkSource workSource, String historyTag, int ownerUid, int ownerPid) {
3920 updateWorkSource(workSource);
3924 public boolean hasSameWorkSource(WorkSource workSource) { argument
3876 WakeLock(IBinder lock, int flags, String tag, String packageName, WorkSource workSource, String historyTag, int ownerUid, int ownerPid, UidState uidState) argument
3904 updateProperties(int flags, String tag, String packageName, WorkSource workSource, String historyTag, int ownerUid, int ownerPid) argument
3928 updateWorkSource(WorkSource workSource) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
H A DRttServiceImpl.java386 public void startRanging(IBinder binder, String callingPackage, WorkSource workSource, argument
390 + ", workSource=" + workSource + ", request=" + request + ", callback="
427 if (workSource != null) {
431 workSource.clearNames();
458 WorkSource sourceToUse = workSource;
459 if (workSource == null || workSource.isEmpty()) {
468 public void cancelRanging(WorkSource workSource) throws RemoteException { argument
469 if (VDBG) Log.v(TAG, "cancelRanging: workSource
603 cleanUpClientRequests(int uid, WorkSource workSource) argument
671 queueRangingRequest(int uid, WorkSource workSource, IBinder binder, IBinder.DeathRecipient dr, String callingPackage, RangingRequest request, IRttCallback callback, boolean isCalledFromPrivilegedContext) argument
1173 public WorkSource workSource; field in class:RttServiceImpl.RttRequestInfo
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DWifiScanningServiceTest.java252 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) {
255 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource);
261 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) {
264 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource);
589 WorkSource workSource = new WorkSource(2292);
600 sendSingleScanRequest(controlChannel, requestId, requestSettings, workSource);
605 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource));
615 verify(mBatteryStats).noteWifiScanStoppedFromSource(eq(workSource));
693 WorkSource workSource = new WorkSource(Binder.getCallingUid()); // don't explicitly set
726 verify(mBatteryStats, never()).noteWifiScanStoppedFromSource(eq(workSource));
251 sendBackgroundScanRequest(BidirectionalAsyncChannel controlChannel, int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) argument
260 sendSingleScanRequest(BidirectionalAsyncChannel controlChannel, int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneBase.java152 public List<CellInfo> getAllCellInfo(WorkSource workSource) { argument
153 return getServiceStateTracker().getAllCellInfo(workSource);
157 public CellLocation getCellLocation(WorkSource workSource) { argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipPhoneBase.java108 public CellLocation getCellLocation(WorkSource workSource) { argument
/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java479 public void noteWakupAlarm(String name, int uid, WorkSource workSource, String tag) { argument
482 mStats.noteWakupAlarmLocked(name, uid, workSource, tag);
486 public void noteAlarmStart(String name, WorkSource workSource, int uid) { argument
489 mStats.noteAlarmStartLocked(name, workSource, uid);
493 public void noteAlarmFinish(String name, WorkSource workSource, int uid) { argument
496 mStats.noteAlarmFinishLocked(name, workSource, uid);
555 WorkSource workSource) {
558 mStats.noteLongPartialWakelockStartFromSource(name, historyName, workSource);
572 WorkSource workSource) {
575 mStats.noteLongPartialWakelockFinishFromSource(name, historyName, workSource);
554 noteLongPartialWakelockStartFromSource(String name, String historyName, WorkSource workSource) argument
571 noteLongPartialWakelockFinishFromSource(String name, String historyName, WorkSource workSource) argument
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiScanner.java772 * @param workSource WorkSource to blame for power usage
779 WorkSource workSource) {
786 scanParams.putParcelable(SCAN_PARAMS_WORK_SOURCE_KEY, workSource);
831 * @param workSource WorkSource to blame for power usage
837 public void startScan(ScanSettings settings, ScanListener listener, WorkSource workSource) { argument
844 scanParams.putParcelable(SCAN_PARAMS_WORK_SOURCE_KEY, workSource);
778 startBackgroundScan(ScanSettings settings, ScanListener listener, WorkSource workSource) argument
H A DWifiManager.java1635 public boolean startScan(WorkSource workSource) { argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiConnectivityManager.java900 private void startSingleScan(boolean isFullBandScan, WorkSource workSource) { argument
926 mScanner.startScan(settings, singleScanListener, workSource);
1187 public void forceConnectivityScan(WorkSource workSource) { argument
1188 localLog("forceConnectivityScan in request of " + workSource);
1191 startSingleScan(true, workSource);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DWifiScanningServiceImpl.java349 loge("Unable to compute workSource for client: " + ci + ", requested: "
357 final WorkSource workSource; field in class:WifiScanningServiceImpl.RequestInfo
365 this.workSource = computeWorkSource(clientInfo, requestedWorkSource);
426 mergedSource.add(entry.workSource);
615 WorkSource workSource =
618 logScanRequest("addSingleScanRequest", ci, handler, workSource,
629 mActiveScans.addRequest(ci, handler, workSource, scanSettings);
631 mPendingScans.addRequest(ci, handler, workSource, scanSettings);
634 mPendingScans.addRequest(ci, handler, workSource, scanSettings);
1172 WorkSource workSource
1231 addBackgroundScanRequest(ClientInfo ci, int handler, ScanSettings settings, WorkSource workSource) argument
1973 sendRequestToClientHandler(int what, ScanSettings settings, WorkSource workSource) argument
2121 logScanRequest(String request, ClientInfo ci, int id, WorkSource workSource, ScanSettings settings, PnoSettings pnoSettings) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DLocationManagerService.java795 String packageName, WorkSource workSource, boolean hideFromAppOps) {
805 if (workSource != null && workSource.isEmpty()) {
806 workSource = null;
808 mWorkSource = workSource;
815 if (workSource == null) {
816 workSource = new WorkSource(mIdentity.mUid, mIdentity.mPackageName);
818 mWakeLock.setWorkSource(workSource);
1823 private static boolean isValidWorkSource(WorkSource workSource) { argument
1824 if (workSource
794 Receiver(ILocationListener listener, PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument
1957 getReceiverLocked(ILocationListener listener, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument
1975 getReceiverLocked(PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument
2046 checkListenerOrIntentLocked(ILocationListener listener, PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument
[all...]
H A DAlarmManagerService.java1052 alarm.workSource, alarm.alarmClock, alarm.uid, alarm.packageName);
1128 WorkSource workSource, int uid, String alarmPkg, int alarmType, String tag,
1133 mWorkSource = workSource;
1154 + ", workSource=" + mWorkSource
1443 int flags, WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock,
1513 interval, operation, directReceiver, listenerTag, flags, true, workSource,
1520 String listenerTag, int flags, boolean doValidate, WorkSource workSource,
1523 operation, directReceiver, listenerTag, workSource, flags, alarmClock,
1731 WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock) {
1745 if (workSource !
1127 InFlight(AlarmManagerService service, PendingIntent pendingIntent, IAlarmListener listener, WorkSource workSource, int uid, String alarmPkg, int alarmType, String tag, long nowELAPSED) argument
1441 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
1518 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
3220 public final WorkSource workSource; field in class:AlarmManagerService.Alarm
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DSimulatedCommands.java1197 public void getNeighboringCids(Message result, WorkSource workSource) { argument
1920 public void setCellInfoListRate(int rateInMillis, Message response, WorkSource workSource) { argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DPhoneMock.java1077 public CellLocation getCellLocation(WorkSource workSource) { argument

Completed in 890 milliseconds

12