Home
last modified time | relevance | path

Searched refs:mSarInfo (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSarInfoTest.java35 private SarInfo mSarInfo; field in SarInfoTest
42 mSarInfo = new SarInfo(); in setUp()
55 assertTrue(mSarInfo.resetSarScenarioNeeded()); in testSarInfo_resetSarScenarioNeed_atStart()
63 assertTrue(mSarInfo.setSarScenarioNeeded(SAR_SCENARIO_1)); in testSarInfo_setSarScenarioNeeded_atStart()
73 assertTrue(mSarInfo.resetSarScenarioNeeded()); in testSarInfo_repeat_reset_scenario()
74 mSarInfo.reportingSuccessful(); in testSarInfo_repeat_reset_scenario()
77 assertFalse(mSarInfo.resetSarScenarioNeeded()); in testSarInfo_repeat_reset_scenario()
86 assertTrue(mSarInfo.resetSarScenarioNeeded()); in testSarInfo_set_after_reset_scenario()
87 mSarInfo.reportingSuccessful(); in testSarInfo_set_after_reset_scenario()
90 assertTrue(mSarInfo.setSarScenarioNeeded(SAR_SCENARIO_1)); in testSarInfo_set_after_reset_scenario()
[all …]
DSarManagerTest.java87 private SarInfo mSarInfo; field in SarManagerTest
130 mSarInfo = sarInfoCaptor.getValue(); in captureSarInfo()
131 assertNotNull(mSarInfo); in captureSarInfo()
323 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
324 assertFalse(mSarInfo.isVoiceCall); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
328 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
329 assertTrue(mSarInfo.isVoiceCall); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
351 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
352 assertTrue(mSarInfo.isVoiceCall); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
371 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSarManager.java65 private SarInfo mSarInfo; field in SarManager
116 mSarInfo = new SarInfo(); in SarManager()
179 if (earPieceActive != mSarInfo.isEarPieceActive) { in checkAudioDevice()
180 mSarInfo.isEarPieceActive = earPieceActive; in checkAudioDevice()
231 mSarInfo.sarVoiceCallSupported = mSupportSarVoiceCall; in setSarConfigsInInfo()
232 mSarInfo.sarSapSupported = mSupportSarSoftAp; in setSarConfigsInInfo()
233 mSarInfo.sarSensorSupported = mSupportSarSensor; in setSarConfigsInInfo()
249 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in registerListeners()
281 boolean earPieceActive = mSarInfo.isEarPieceActive; in registerVoiceStreamListener()
296 if (earPieceActive != mSarInfo.isEarPieceActive) { in registerVoiceStreamListener()
[all …]