Home
last modified time | relevance | path

Searched refs:SarInfo (Results 1 – 8 of 8) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java87 private SarInfo mSarInfo;
105 when(mWifiNative.selectTxPowerScenario(any(SarInfo.class))).thenReturn(true); in setUp()
128 ArgumentCaptor<SarInfo> sarInfoCaptor = ArgumentCaptor.forClass(SarInfo.class); in captureSarInfo()
390 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
411 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledTxPowerScenario_wifiOff_offHook_onHook()
443 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook()
447 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook()
467 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledSar_wifiOff_offHook_onHook_wifiOn()
471 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledSar_wifiOff_offHook_onHook_wifiOn()
493 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledSar_offHook_wifiOnOff_onHook()
[all …]
DSarInfoTest.java35 private SarInfo mSarInfo;
42 mSarInfo = new SarInfo(); in setUp()
154 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSarInfo_check_sensor_wifi_disabled()
167 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSarInfo_check_sensor_wifi_enabled()
179 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSarInfo_check_sensor_multiple_wifi_enabled()
193 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSarInfo_check_sensor_multiple_values_wifi_enabled()
197 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_BODY; in testSarInfo_check_sensor_multiple_values_wifi_enabled()
201 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSarInfo_check_sensor_multiple_values_wifi_enabled()
210 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSarInfo_change_sensors_while_wifi_disabled()
271 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSarInfo_check_sensor_reporting_no_success_reporting()
[all …]
DWifiVendorHalTest.java2354 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_1_0()
2371 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_1_1()
2397 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_1_2()
2423 SarInfo sarInfo = new SarInfo(); in testResetTxPowerScenario_1_0()
2439 SarInfo sarInfo = new SarInfo(); in testResetTxPowerScenario_1_1()
2465 SarInfo sarInfo = new SarInfo(); in testResetTxPowerScenario_not_needed_1_1()
2497 SarInfo sarInfo = new SarInfo(); in testResetTxPowerScenario_1_2()
2523 SarInfo sarInfo = new SarInfo(); in testResetTxPowerScenario_not_needed_1_2()
2557 SarInfo sarInfo = new SarInfo(); in testSapScenarios_SelectTxPowerV1_2()
2586 SarInfo sarInfo = new SarInfo(); in testVoiceCallScenarios_SelectTxPowerV1_2()
[all …]
DWifiNativeTest.java610 when(mWifiVendorHal.selectTxPowerScenario(any(SarInfo.class))).thenReturn(true); in testSelectTxPowerScenario_success()
611 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_success()
621 when(mWifiVendorHal.selectTxPowerScenario(any(SarInfo.class))).thenReturn(false); in testSelectTxPowerScenario_failure()
622 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_failure()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSarManager.java65 private SarInfo mSarInfo;
116 mSarInfo = new SarInfo(); in SarManager()
249 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in registerListeners()
437 newSensorState = SarInfo.SAR_SENSOR_FREE_SPACE; in onSarSensorEvent()
439 newSensorState = SarInfo.SAR_SENSOR_NEAR_BODY; in onSarSensorEvent()
441 newSensorState = SarInfo.SAR_SENSOR_NEAR_HAND; in onSarSensorEvent()
443 newSensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in onSarSensorEvent()
451 Log.d(TAG, "Setting Sensor state to " + SarInfo.sensorStateToString(newSensorState)); in onSarSensorEvent()
DSarInfo.java37 public class SarInfo { class
DWifiVendorHal.java2321 private boolean sarPowerBackoffRequired_1_1(SarInfo sarInfo) { in sarPowerBackoffRequired_1_1()
2339 private int frameworkToHalTxPowerScenario_1_1(SarInfo sarInfo) { in frameworkToHalTxPowerScenario_1_1()
2356 private boolean sarPowerBackoffRequired_1_2(SarInfo sarInfo) { in sarPowerBackoffRequired_1_2()
2359 return (sarInfo.sensorState != SarInfo.SAR_SENSOR_FREE_SPACE); in sarPowerBackoffRequired_1_2()
2387 private int frameworkToHalTxPowerScenario_1_2(SarInfo sarInfo) { in frameworkToHalTxPowerScenario_1_2()
2390 case SarInfo.SAR_SENSOR_NEAR_BODY: in frameworkToHalTxPowerScenario_1_2()
2391 case SarInfo.SAR_SENSOR_NEAR_HAND: in frameworkToHalTxPowerScenario_1_2()
2400 case SarInfo.SAR_SENSOR_NEAR_HEAD: in frameworkToHalTxPowerScenario_1_2()
2450 public boolean selectTxPowerScenario(SarInfo sarInfo) { in selectTxPowerScenario()
2470 android.hardware.wifi.V1_1.IWifiChip iWifiChip, SarInfo sarInfo) { in selectTxPowerScenario_1_1()
[all …]
DWifiNative.java3256 public boolean selectTxPowerScenario(SarInfo sarInfo) { in selectTxPowerScenario()