Home
last modified time | relevance | path

Searched refs:workSource (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java414 public void startRanging(IBinder binder, String callingPackage, WorkSource workSource, in startRanging() argument
418 + ", workSource=" + workSource + ", request=" + request + ", callback=" in startRanging()
455 if (workSource != null) { in startRanging()
459 workSource.clearNames(); in startRanging()
486 WorkSource sourceToUse = workSource; in startRanging()
487 if (workSource == null || workSource.isEmpty()) { in startRanging()
496 public void cancelRanging(WorkSource workSource) throws RemoteException { in cancelRanging() argument
497 if (VDBG) Log.v(TAG, "cancelRanging: workSource=" + workSource); in cancelRanging()
499 if (workSource != null) { in cancelRanging()
502 workSource.clearNames(); in cancelRanging()
[all …]
/frameworks/base/wifi/java/android/net/wifi/rtt/
DWifiRttManager.java133 public void startRanging(@Nullable WorkSource workSource, @NonNull RangingRequest request, in startRanging() argument
136 Log.v(TAG, "startRanging: workSource=" + workSource + ", request=" + request in startRanging()
149 mService.startRanging(binder, mContext.getOpPackageName(), workSource, request, in startRanging()
179 public void cancelRanging(@Nullable WorkSource workSource) { in cancelRanging() argument
181 Log.v(TAG, "cancelRanging: workSource=" + workSource); in cancelRanging()
185 mService.cancelRanging(workSource); in cancelRanging()
DIWifiRttManager.aidl30 void startRanging(in IBinder binder, in String callingPackage, in WorkSource workSource, in startRanging() argument
32 void cancelRanging(in WorkSource workSource); in cancelRanging() argument
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java204 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) { in onWakeLockAcquired() argument
209 + ", workSource=" + workSource); in onWakeLockAcquired()
217 if (workSource != null) { in onWakeLockAcquired()
218 mBatteryStats.noteStartWakelockFromSource(workSource, ownerPid, tag, in onWakeLockAcquired()
232 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource, in onLongPartialWakeLockStart() argument
236 + ", workSource=" + workSource); in onLongPartialWakeLockStart()
240 if (workSource != null) { in onLongPartialWakeLockStart()
241 mBatteryStats.noteLongPartialWakelockStartFromSource(tag, historyTag, workSource); in onLongPartialWakeLockStart()
242 StatsLog.write(StatsLog.LONG_PARTIAL_WAKELOCK_STATE_CHANGED, workSource, in onLongPartialWakeLockStart()
255 public void onLongPartialWakeLockFinish(String tag, int ownerUid, WorkSource workSource, in onLongPartialWakeLockFinish() argument
[all …]
DPowerManagerService.java1118 private static WorkChain getFirstNonEmptyWorkChain(WorkSource workSource) { in getFirstNonEmptyWorkChain() argument
1119 if (workSource.getWorkChains() == null) { in getFirstNonEmptyWorkChain()
1123 for (WorkChain workChain: workSource.getWorkChains()) { in getFirstNonEmptyWorkChain()
1138 WorkSource workSource = wakeLock.mWorkSource; in applyWakeLockFlagsOnAcquireLocked() local
1139 WorkChain workChain = getFirstNonEmptyWorkChain(workSource); in applyWakeLockFlagsOnAcquireLocked()
1144 opPackageName = workSource.getName(0) != null in applyWakeLockFlagsOnAcquireLocked()
1145 ? workSource.getName(0) : wakeLock.mPackageName; in applyWakeLockFlagsOnAcquireLocked()
1146 opUid = workSource.get(0); in applyWakeLockFlagsOnAcquireLocked()
3924 private static WorkSource copyWorkSource(WorkSource workSource) { in copyWorkSource() argument
3925 return workSource != null ? new WorkSource(workSource) : null; in copyWorkSource()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRILRequest.java125 public static RILRequest obtain(int request, Message result, WorkSource workSource) { in obtain() argument
128 if (workSource != null) { in obtain()
129 rr.mWorkSource = workSource; in obtain()
148 public static RILRequest obtain(int request, Message result, WorkSource workSource, in obtain() argument
150 RILRequest rr = obtain(request, result, workSource); in obtain()
DCommandsInterface.java1564 default void setLocationUpdates(boolean enable, WorkSource workSource, Message response) {} in setLocationUpdates() argument
1923 default void getCellInfoList(Message result, WorkSource workSource) {} in getCellInfoList() argument
1941 default void setCellInfoListRate(int rateInMillis, Message response, WorkSource workSource){} in setCellInfoListRate() argument
2058 default void nvReadItem(int itemID, Message response, WorkSource workSource) {} in nvReadItem() argument
2070 WorkSource workSource) {} in nvWriteItem() argument
2228 default void getModemActivityInfo(Message result, WorkSource workSource) {} in getModemActivityInfo() argument
2238 Message result, WorkSource workSource) {} in setAllowedCarriers() argument
2246 default void getAllowedCarriers(Message result, WorkSource workSource) {} in getAllowedCarriers() argument
2353 default void setSimCardPower(int state, Message result, WorkSource workSource) {} in setSimCardPower() argument
DPhone.java1945 public void requestCellInfoUpdate(WorkSource workSource, Message rspMsg) { in requestCellInfoUpdate() argument
1946 getServiceStateTracker().requestAllCellInfo(workSource, rspMsg); in requestCellInfoUpdate()
1960 public void getCellIdentity(WorkSource workSource, Message rspMsg) { in getCellIdentity() argument
1961 getServiceStateTracker().requestCellIdentity(workSource, rspMsg); in getCellIdentity()
1975 public void setCellInfoListRate(int rateInMillis, WorkSource workSource) { in setCellInfoListRate() argument
1976 mCi.setCellInfoListRate(rateInMillis, null, workSource); in setCellInfoListRate()
2446 public void nvReadItem(int itemID, Message response, WorkSource workSource) { in nvReadItem() argument
2447 mCi.nvReadItem(itemID, response, workSource); in nvReadItem()
2460 WorkSource workSource) { in nvWriteItem() argument
2461 mCi.nvWriteItem(itemID, itemValue, response, workSource); in nvWriteItem()
[all …]
DRIL.java724 private RILRequest obtainRequest(int request, Message result, WorkSource workSource) { in obtainRequest() argument
725 RILRequest rr = RILRequest.obtain(request, result, workSource); in obtainRequest()
730 private RILRequest obtainRequest(int request, Message result, WorkSource workSource, in obtainRequest() argument
732 RILRequest rr = RILRequest.obtain(request, result, workSource, args); in obtainRequest()
3283 public void setLocationUpdates(boolean enable, WorkSource workSource, Message result) { in setLocationUpdates() argument
3287 workSource == null ? mRILDefaultWorkSource : workSource); in setLocationUpdates()
3965 public void getCellInfoList(Message result, WorkSource workSource) { in getCellInfoList() argument
3966 workSource = getDeafultWorkSourceIfInvalid(workSource); in getCellInfoList()
3970 workSource); in getCellInfoList()
3985 public void setCellInfoListRate(int rateInMillis, Message result, WorkSource workSource) { in setCellInfoListRate() argument
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java193 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { in startScanFromSource() argument
194 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource()
212 final WorkSource workSource, final ScanCallback callback) { in startScanFromSource() argument
213 startScan(filters, settings, workSource, callback, null, null); in startScanFromSource()
217 final WorkSource workSource, final ScanCallback callback, in startScan() argument
255 settings, workSource, callback, resultStorages); in startScan()
377 WorkSource workSource, ScanCallback scanCallback, in BleScanCallbackWrapper() argument
382 mWorkSource = workSource; in BleScanCallbackWrapper()
/frameworks/base/core/java/android/app/
DAlarmManager.java623 long intervalMillis, PendingIntent operation, WorkSource workSource) { in set() argument
625 null, workSource, null); in set()
641 WorkSource workSource) { in set() argument
643 targetHandler, workSource, null); in set()
660 WorkSource workSource) { in set() argument
662 targetHandler, workSource, null); in set()
667 String listenerTag, Handler targetHandler, WorkSource workSource, in setImpl() argument
701 operation, recipientWrapper, listenerTag, workSource, alarmClock); in setImpl()
DIAlarmManager.aidl35 … String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock); in set() argument
/frameworks/base/location/java/android/location/
DLocationRequest.java599 public void setWorkSource(@Nullable WorkSource workSource) { in setWorkSource() argument
600 mWorkSource = workSource; in setWorkSource()
686 WorkSource workSource = in.readParcelable(null);
687 if (workSource != null) request.setWorkSource(workSource);
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java131 WorkSource workSource = new WorkSource(); in testWakeLockWithWorkChains() local
132 WorkSource.WorkChain workChain = workSource.createWorkChain(); in testWakeLockWithWorkChains()
134 wakeLock.setWorkSource(workSource); in testWakeLockWithWorkChains()
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java1030 public void setRequestLocked(ProviderRequest request, WorkSource workSource) { in setRequestLocked() argument
1034 mProvider.setRequest(request, workSource); in setRequestLocked()
1332 public void setRequestLocked(ProviderRequest request, WorkSource workSource) { in setRequestLocked() argument
1333 super.setRequestLocked(request, workSource); in setRequestLocked()
1374 String packageName, WorkSource workSource, boolean hideFromAppOps) { in Receiver() argument
1384 if (workSource != null && workSource.isEmpty()) { in Receiver()
1385 workSource = null; in Receiver()
1387 mWorkSource = workSource; in Receiver()
1394 if (workSource == null) { in Receiver()
1395 workSource = new WorkSource(mCallerIdentity.mUid, mCallerIdentity.mPackageName); in Receiver()
[all …]
DBinderCallsStatsService.java71 final int workSource = untrustedWorkSourceUid; in resolveWorkSourceUid() local
72 final boolean isWorkSourceSet = workSource != Binder.UNSET_WORKSOURCE; in resolveWorkSourceUid()
73 return isWorkSourceSet ? workSource : callingUid; in resolveWorkSourceUid()
DAlarmManagerService.java1250 alarm.workSource, alarm.alarmClock, alarm.uid, alarm.packageName); in deliverPendingBackgroundAlarmsLocked()
1325 mWorkSource = alarm.workSource; in InFlight()
1691 int flags, WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock, in setImpl() argument
1769 interval, operation, directReceiver, listenerTag, flags, true, workSource, in setImpl()
1776 String listenerTag, int flags, boolean doValidate, WorkSource workSource, in setImplLocked() argument
1779 operation, directReceiver, listenerTag, workSource, flags, alarmClock, in setImplLocked()
2058 WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock) {
2072 if (workSource != null) {
2103 } else if (workSource == null && (callingUid < Process.FIRST_APPLICATION_UID
2112 listenerTag, flags, workSource, alarmClock, callingUid, callingPackage);
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java413 final WorkSource workSource; field in WifiScanningServiceImpl.RequestInfo
421 this.workSource = computeWorkSource(clientInfo, requestedWorkSource); in RequestInfo()
482 mergedSource.add(entry.workSource); in createMergedWorkSource()
670 WorkSource workSource = in processMessage() local
679 logScanRequest("addSingleScanRequest", ci, handler, workSource, in processMessage()
690 mActiveScans.addRequest(ci, handler, workSource, scanSettings); in processMessage()
692 mPendingScans.addRequest(ci, handler, workSource, scanSettings); in processMessage()
695 mPendingScans.addRequest(ci, handler, workSource, scanSettings); in processMessage()
1239 WorkSource workSource = in processMessage() local
1241 if (addBackgroundScanRequest(ci, msg.arg2, scanSettings, workSource)) { in processMessage()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java264 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendBackgroundScanRequest() argument
267 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource); in sendBackgroundScanRequest()
273 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendSingleScanRequest() argument
276 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource); in sendSingleScanRequest()
597 WorkSource workSource = new WorkSource(2292); in doSuccessfulSingleScan() local
608 sendSingleScanRequest(controlChannel, requestId, requestSettings, workSource); in doSuccessfulSingleScan()
613 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource)); in doSuccessfulSingleScan()
623 verify(mBatteryStats).noteWifiScanStoppedFromSource(eq(workSource)); in doSuccessfulSingleScan()
701 WorkSource workSource = new WorkSource(Binder.getCallingUid()); // don't explicitly set in sendSingleScanRequestWithPrivilegedTypeParamsSetFromNonPrivilegedApp() local
734 verify(mBatteryStats, never()).noteWifiScanStoppedFromSource(eq(workSource)); in sendSingleScanRequestWithPrivilegedTypeParamsSetFromNonPrivilegedApp()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java499 public void noteWakupAlarm(String name, int uid, WorkSource workSource, String tag) { in noteWakupAlarm() argument
502 mStats.noteWakupAlarmLocked(name, uid, workSource, tag); in noteWakupAlarm()
506 public void noteAlarmStart(String name, WorkSource workSource, int uid) { in noteAlarmStart() argument
509 mStats.noteAlarmStartLocked(name, workSource, uid); in noteAlarmStart()
513 public void noteAlarmFinish(String name, WorkSource workSource, int uid) { in noteAlarmFinish() argument
516 mStats.noteAlarmFinishLocked(name, workSource, uid); in noteAlarmFinish()
575 WorkSource workSource) { in noteLongPartialWakelockStartFromSource() argument
578 mStats.noteLongPartialWakelockStartFromSource(name, historyName, workSource); in noteLongPartialWakelockStartFromSource()
592 WorkSource workSource) { in noteLongPartialWakelockFinishFromSource() argument
595 mStats.noteLongPartialWakelockFinishFromSource(name, historyName, workSource); in noteLongPartialWakelockFinishFromSource()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl90 in WorkSource workSource); in noteLongPartialWakelockStartFromSource() argument
93 in WorkSource workSource); in noteLongPartialWakelockFinishFromSource() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java901 private void startSingleScan(boolean isFullBandScan, WorkSource workSource) { in startSingleScan() argument
930 mScanner.startScan(settings, singleScanListener, workSource); in startSingleScan()
1274 public void forceConnectivityScan(WorkSource workSource) { in forceConnectivityScan() argument
1275 localLog("forceConnectivityScan in request of " + workSource); in forceConnectivityScan()
1278 startSingleScan(true, workSource); in forceConnectivityScan()
DScanRequestProxy.java474 WorkSource workSource = new WorkSource(callingUid, packageName); in startScan() local
496 mWifiScanner.startScan(settings, new ScanRequestProxyScanListener(), workSource); in startScan()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java216 WorkSource workSource) throws Exception { in mockWifiScanner()
222 WorkSource workSource) throws Exception { in mockWifiScanner()
1187 WorkSource workSource) throws Exception { in checkSingleScanSettingsWhenConnectedWithLowDataRate()
1228 WorkSource workSource) throws Exception { in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming()
1313 WorkSource workSource) throws Exception { in checkSingleScanSettingsWhenConnectedWithHighDataRateNotInCache()
1342 WorkSource workSource) throws Exception { in checkMaximumScanRetry()
1379 WorkSource workSource) throws Exception { in verifyScanFailureCountIsResetAfterOnResult()
1387 WorkSource workSource) throws Exception { in verifyScanFailureCountIsResetAfterOnResult()
1400 WorkSource workSource) throws Exception { in verifyScanFailureCountIsResetAfterOnResult()
/frameworks/base/services/core/java/com/android/server/job/
DJobServiceContext.java450 WorkSource workSource = new WorkSource(); in deriveWorkSource() local
451 workSource.createWorkChain() in deriveWorkSource()
454 return workSource; in deriveWorkSource()

12