Home
last modified time | relevance | path

Searched refs:mWorkSource (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DScanRequest.java103 private final @NonNull WorkSource mWorkSource; field in ScanRequest
112 mWorkSource = workSource; in ScanRequest()
199 return mWorkSource; in getWorkSource()
226 stringBuilder.append(", workSource=").append(mWorkSource); in toString()
238 dest.writeTypedObject(mWorkSource, /* parcelableFlags= */0); in writeToParcel()
254 && (Objects.equals(mWorkSource, otherRequest.mWorkSource)); in equals()
261 return Objects.hash(mScanType, mScanMode, mBleEnabled, mOffloadOnly, mWorkSource); in hashCode()
285 private WorkSource mWorkSource; field in ScanRequest.Builder
293 mWorkSource = new WorkSource(); in Builder()
364 mWorkSource = new WorkSource(); in setWorkSource()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java94 WorkSource mWorkSource; field in WifiLockManagerTest
122 mWorkSource = new WorkSource(DEFAULT_TEST_UID_1); in setUp()
238 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed()
253 mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed()
278 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
280 assertFalse(mWifiLockManager.acquireWifiLock(expectedMode, "", mBinder, mWorkSource)); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
300 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in releaseWifiLockShouldSucceed()
373 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in checkForProperValueForGetStrongestLockMode()
381 mBinder, mWorkSource)); in checkForProperValueForGetStrongestLockMode()
386 mBinder, mWorkSource)); in checkForProperValueForGetStrongestLockMode()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWorkSourceHelper.java49 private final WorkSource mWorkSource; field in WorkSourceHelper
92 for (int i = 0; i < mWorkSource.size(); i++) { in getRequestorWsPriority()
93 String packageName = mWorkSource.getPackageName(i); in getRequestorWsPriority()
94 int uid = mWorkSource.getUid(i); in getRequestorWsPriority()
122 mWorkSource = workSource; in WorkSourceHelper()
130 return mWorkSource; in getWorkSource()
135 return mWorkSource.toString(); in toString()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiLockManager.java350 setBlameHiPerfWs(wl.mWorkSource, false); in updateWifiLockWorkSource()
355 removeWsFromLlWatchList(wl.mWorkSource); in updateWifiLockWorkSource()
363 wl.mWorkSource = newWorkSource; in updateWifiLockWorkSource()
634 setBlameHiPerfWs(lock.mWorkSource, true); in addLock()
691 setBlameHiPerfWs(wifiLock.mWorkSource, false); in releaseLock()
1121 WorkSource mWorkSource; field in WifiLockManager.WifiLock
1129 mWorkSource = ws; in WifiLock()
1140 return mWorkSource; in getWorkSource()
1169 + " workSource=" + mWorkSource + "}"; in toString()
DWifiMetrics.java8967 if (mNextScanState.mWorkSource == null) {
8968 mNextScanState.mWorkSource = workSource;
9110 } else if (state.mWorkSource != null) {
9111 if (state.mWorkSource.equals(ClientModeImpl.WIFI_WORK_SOURCE)) {
9116 for (int i = 0; i < state.mWorkSource.size(); i++) {
9118 state.mWorkSource.getPackageName(i))) {
9159 WorkSource mWorkSource = null;
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/metrics/
DNearbyMetricsTest.java56 private final WorkSource mWorkSource = new WorkSource(WORK_SOURCE_UID); field in NearbyMetricsTest
63 private final ScanRequest mScanRequest = mScanRequestBuilder.setWorkSource(mWorkSource).build();
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DAppScanStats.java131 private WorkSource mWorkSource; // Used for BatteryStatsManager field in AppScanStats
171 mWorkSource = source; in AppScanStats()
184 mBatteryStatsManager.reportBleScanResults(mWorkSource, 100); in addResult()
298 mBatteryStatsManager.reportBleScanStarted(mWorkSource, isUnoptimized); in recordScanStart()
369 mBatteryStatsManager.reportBleScanResults(mWorkSource, scan.results % 100); in recordScanStop()
370 mBatteryStatsManager.reportBleScanStopped(mWorkSource, isUnoptimized); in recordScanStop()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DBluetoothLeScanner.java422 private final WorkSource mWorkSource; field in BluetoothLeScanner.BleScanCallbackWrapper
444 mWorkSource = workSource; in BleScanCallbackWrapper()
456 mBluetoothScan.registerScanner(this, mWorkSource, mAttributionSource); in startRegistration()
458 mBluetoothGatt.registerScanner(this, mWorkSource, mAttributionSource); in startRegistration()
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java3074 private final WorkSource mWorkSource; field in WifiScanningServiceImpl.ClientInfo
3094 mWorkSource = new WorkSource(uid); in ClientInfo()
3103 + " packageName=" + mPackageName + " workSource=" + mWorkSource); in register()
3114 + " packageName=" + mPackageName + " workSource=" + mWorkSource); in unregister()
3147 mBatteryStats.reportWifiBatchedScanStartedFromSource(mWorkSource, csph); in reportBatchedScanStart()
3155 mBatteryStats.reportWifiBatchedScanStoppedFromSource(mWorkSource); in reportBatchedScanStop()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiManager.java7829 private WorkSource mWorkSource; field in WifiManager.WifiLock
7860 mService.acquireWifiLock(mBinder, mLockType, mTag, mWorkSource, in acquire()
7942 mWorkSource = null; in setWorkSource()
7945 if (mWorkSource == null) { in setWorkSource()
7946 changed = mWorkSource != null; in setWorkSource()
7947 mWorkSource = new WorkSource(ws); in setWorkSource()
7949 changed = !mWorkSource.equals(ws); in setWorkSource()
7951 mWorkSource.set(ws); in setWorkSource()
7962 mService.updateWifiLockWorkSource(mBinder, mWorkSource, in setWorkSource()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java575 mActiveClients.put(uid, dhd.mWorkSource); in updateWorkSourceByUid()
658 mWorkSource = ws; in DeathHandlerData()
665 + mMessenger + ", worksource=" + mWorkSource + ", displayId=" + mDisplayId; in toString()
671 final WorkSource mWorkSource; field in WifiP2pServiceImpl.DeathHandlerData
/packages/modules/Wifi/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt1779 Landroid/net/wifi/WifiManager$WifiLock;->mWorkSource:Landroid/os/WorkSource;
/packages/modules/Bluetooth/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt2453 Landroid/bluetooth/le/BluetoothLeScanner$BleScanCallbackWrapper;->mWorkSource:Landroid/os/WorkSourc…