/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 168 int ownerUid, int ownerPid, WorkSource workSource, String historyTag) { in onWakeLockAcquired() argument 173 + ", workSource=" + workSource); in onWakeLockAcquired() 181 if (workSource != null) { in onWakeLockAcquired() 182 mBatteryStats.noteStartWakelockFromSource(workSource, ownerPid, tag, in onWakeLockAcquired() 197 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource, in onLongPartialWakeLockStart() argument 201 + ", workSource=" + workSource); in onLongPartialWakeLockStart() 205 if (workSource != null) { in onLongPartialWakeLockStart() 206 final int N = workSource.size(); in onLongPartialWakeLockStart() 208 mBatteryStats.noteLongPartialWakelockStart(tag, historyTag, workSource.get(i)); in onLongPartialWakeLockStart() 218 public void onLongPartialWakeLockFinish(String tag, int ownerUid, WorkSource workSource, in onLongPartialWakeLockFinish() argument [all …]
|
D | PowerManagerService.java | 3053 private static WorkSource copyWorkSource(WorkSource workSource) { in copyWorkSource() argument 3054 return workSource != null ? new WorkSource(workSource) : null; in copyWorkSource() 3172 WorkSource workSource, String historyTag, int ownerUid, int ownerPid) { in WakeLock() argument 3177 mWorkSource = copyWorkSource(workSource); in WakeLock() 3188 public boolean hasSameProperties(int flags, String tag, WorkSource workSource, in hasSameProperties() argument 3192 && hasSameWorkSource(workSource) in hasSameProperties() 3198 WorkSource workSource, String historyTag, int ownerUid, int ownerPid) { in updateProperties() argument 3213 updateWorkSource(workSource); in updateProperties() 3217 public boolean hasSameWorkSource(WorkSource workSource) { in hasSameWorkSource() argument 3218 return Objects.equal(mWorkSource, workSource); in hasSameWorkSource() [all …]
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | BluetoothLeScanner.java | 128 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { in startScanFromSource() argument 129 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource() 147 final WorkSource workSource, final ScanCallback callback) { in startScanFromSource() argument 148 startScan(filters, settings, workSource, callback, null); in startScanFromSource() 152 final WorkSource workSource, final ScanCallback callback, in startScan() argument 192 settings, workSource, callback, resultStorages); in startScan() 287 WorkSource workSource, ScanCallback scanCallback, in BleScanCallbackWrapper() argument 292 mWorkSource = workSource; in BleScanCallbackWrapper()
|
/frameworks/base/core/java/android/app/ |
D | AlarmManager.java | 594 PendingIntent operation, WorkSource workSource) { in set() argument 596 null, workSource, null); in set() 610 String tag, OnAlarmListener listener, Handler targetHandler, WorkSource workSource) { in set() argument 612 targetHandler, workSource, null); in set() 627 OnAlarmListener listener, Handler targetHandler, WorkSource workSource) { in set() argument 629 targetHandler, workSource, null); in set() 634 Handler targetHandler, WorkSource workSource, AlarmClockInfo alarmClock) { in setImpl() argument 667 operation, recipientWrapper, listenerTag, workSource, alarmClock); in setImpl()
|
D | IAlarmManager.aidl | 34 … String listenerTag, in WorkSource workSource, in AlarmManager.AlarmClockInfo alarmClock); in set() argument
|
/frameworks/base/location/java/android/location/ |
D | LocationRequest.java | 521 public void setWorkSource(WorkSource workSource) { in setWorkSource() argument 522 mWorkSource = workSource; in setWorkSource() 602 WorkSource workSource = in.readParcelable(null); 603 if (workSource != null) request.setWorkSource(workSource);
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationManagerService.java | 664 String packageName, WorkSource workSource, boolean hideFromAppOps) { in Receiver() argument 676 if (workSource != null && workSource.size() <= 0) { in Receiver() 677 workSource = null; in Receiver() 679 mWorkSource = workSource; in Receiver() 686 if (workSource == null) { in Receiver() 687 workSource = new WorkSource(mUid, mPackageName); in Receiver() 689 mWakeLock.setWorkSource(workSource); in Receiver() 1540 String packageName, WorkSource workSource, boolean hideFromAppOps) { in getReceiverLocked() argument 1544 receiver = new Receiver(listener, null, pid, uid, packageName, workSource, in getReceiverLocked() 1558 WorkSource workSource, boolean hideFromAppOps) { in getReceiverLocked() argument [all …]
|
D | AlarmManagerService.java | 841 WorkSource workSource, int uid, String alarmPkg, int alarmType, String tag, in InFlight() argument 845 mWorkSource = workSource; in InFlight() 1015 int flags, WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock, in setImpl() argument 1080 interval, operation, directReceiver, listenerTag, flags, true, workSource, in setImpl() 1087 String listenerTag, int flags, boolean doValidate, WorkSource workSource, in setImplLocked() argument 1090 operation, directReceiver, listenerTag, workSource, flags, alarmClock, in setImplLocked() 1232 WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock) { 1246 if (workSource != null) { 1277 } else if (workSource == null && (callingUid < Process.FIRST_APPLICATION_UID 1285 listenerTag, flags, workSource, alarmClock, callingUid, callingPackage); [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WifiScanningServiceImpl.java | 319 private static boolean isWorkSourceValid(WorkSource workSource) { in isWorkSourceValid() argument 320 return workSource != null && workSource.size() > 0 && workSource.get(0) >= 0; in isWorkSourceValid() 347 final WorkSource workSource; field in WifiScanningServiceImpl.RequestInfo 355 this.workSource = computeWorkSource(clientInfo, requestedWorkSource); in RequestInfo() 416 mergedSource.add(entry.workSource); in createMergedWorkSource() 561 WorkSource workSource = in processMessage() local 563 if (validateScanRequest(ci, handler, scanSettings, workSource)) { in processMessage() 564 logScanRequest("addSingleScanRequest", ci, handler, workSource, in processMessage() 575 mActiveScans.addRequest(ci, handler, workSource, scanSettings); in processMessage() 577 mPendingScans.addRequest(ci, handler, workSource, scanSettings); in processMessage() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConnectivityManagerTest.java | 155 WorkSource workSource) throws Exception { in mockWifiScanner() 161 WorkSource workSource) throws Exception { in mockWifiScanner() 806 WorkSource workSource) throws Exception { in checkSingleScanSettingsWhenConnectedWithLowDataRate() 845 WorkSource workSource) throws Exception { in checkSingleScanSettingsWhenConnectedWithHighDataRate() 886 WorkSource workSource) throws Exception { in checkSingleScanSettingsWhenConnectedWithHighDataRateNotInCache() 915 WorkSource workSource) throws Exception { in checkMaximumScanRetry()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WifiScanningServiceTest.java | 187 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendBackgroundScanRequest() argument 190 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource); in sendBackgroundScanRequest() 196 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendSingleScanRequest() argument 199 scanParams.putParcelable(WifiScanner.SCAN_PARAMS_WORK_SOURCE_KEY, workSource); in sendSingleScanRequest() 474 WorkSource workSource = new WorkSource(2292); in doSuccessfulSingleScan() local 484 sendSingleScanRequest(controlChannel, requestId, requestSettings, workSource); in doSuccessfulSingleScan() 489 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource)); in doSuccessfulSingleScan() 499 verify(mBatteryStats).noteWifiScanStoppedFromSource(eq(workSource)); in doSuccessfulSingleScan() 611 WorkSource workSource = new WorkSource(Binder.getCallingUid()); // don't explicitly set in sendSingleScanRequestWhichFailsAfterStart() local 630 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource)); in sendSingleScanRequestWhichFailsAfterStart() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiScanner.java | 729 WorkSource workSource) { in startBackgroundScan() argument 736 scanParams.putParcelable(SCAN_PARAMS_WORK_SOURCE_KEY, workSource); in startBackgroundScan() 783 public void startScan(ScanSettings settings, ScanListener listener, WorkSource workSource) { in startScan() argument 790 scanParams.putParcelable(SCAN_PARAMS_WORK_SOURCE_KEY, workSource); in startScan()
|
D | WifiManager.java | 1255 public boolean startScan(WorkSource workSource) { 1257 mService.startScan(null, workSource); 1274 public boolean startLocationRestrictedScan(WorkSource workSource) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 453 public void startScan(ScanSettings settings, WorkSource workSource) { in startScan() argument 479 if (workSource != null) { in startScan() 483 workSource.clearNames(); in startScan() 485 if (workSource == null && Binder.getCallingUid() >= 0) { in startScan() 486 workSource = new WorkSource(Binder.getCallingUid()); in startScan() 489 settings, workSource); in startScan() local
|
D | WifiStateMachine.java | 1447 ScanSettings settings, WorkSource workSource) { in startScan() argument 1450 bundle.putParcelable(CUSTOMIZED_SCAN_WORKSOURCE, workSource); in startScan() 1618 WorkSource workSource = null; in handleScanRequest() local 1625 workSource = bundle.getParcelable(CUSTOMIZED_SCAN_WORKSOURCE); in handleScanRequest() 1640 if (startScanNative(freqs, hiddenNetworkIds, workSource)) { in handleScanRequest() 1645 if (workSource != null) { in handleScanRequest() 1676 bundle.putParcelable(CUSTOMIZED_SCAN_WORKSOURCE, workSource); in handleScanRequest() 1695 WorkSource workSource) { in startScanNative() argument 1731 mWifiScanner.startScan(settings, nativeScanListener, workSource); in startScanNative()
|
/frameworks/base/core/java/android/bluetooth/ |
D | IBluetoothGatt.aidl | 39 in List<ScanFilter> filters, in WorkSource workSource, in List scanStorages, in startScan() argument
|