Home
last modified time | relevance | path

Searched refs:sensorState (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSarInfoTest.java154 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()
290 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSarInfo_check_sensor_reporting_no_success_reporting_revert()
295 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_BODY; in testSarInfo_check_sensor_reporting_no_success_reporting_revert()
[all …]
DSarManagerTest.java557 assertEquals(SarInfo.SAR_SENSOR_FREE_SPACE, mSarInfo.sensorState); in testSarMgr_sarSensorOn_WifiOn_sensorEventsTriggered()
562 assertEquals(SarInfo.SAR_SENSOR_NEAR_BODY, mSarInfo.sensorState); in testSarMgr_sarSensorOn_WifiOn_sensorEventsTriggered()
568 assertEquals(SarInfo.SAR_SENSOR_NEAR_HEAD, mSarInfo.sensorState); in testSarMgr_sarSensorOn_WifiOn_sensorEventsTriggered()
574 assertEquals(SarInfo.SAR_SENSOR_NEAR_HAND, mSarInfo.sensorState); in testSarMgr_sarSensorOn_WifiOn_sensorEventsTriggered()
580 assertEquals(SarInfo.SAR_SENSOR_FREE_SPACE, mSarInfo.sensorState); in testSarMgr_sarSensorOn_WifiOn_sensorEventsTriggered()
601 assertEquals(SarInfo.SAR_SENSOR_FREE_SPACE, mSarInfo.sensorState); in testSarMgr_sarSensorOn_wifiOn_cellOn_sensorEventsTriggered()
607 assertEquals(SarInfo.SAR_SENSOR_FREE_SPACE, mSarInfo.sensorState); in testSarMgr_sarSensorOn_wifiOn_cellOn_sensorEventsTriggered()
613 assertEquals(SarInfo.SAR_SENSOR_NEAR_BODY, mSarInfo.sensorState); in testSarMgr_sarSensorOn_wifiOn_cellOn_sensorEventsTriggered()
619 assertEquals(SarInfo.SAR_SENSOR_NEAR_HEAD, mSarInfo.sensorState); in testSarMgr_sarSensorOn_wifiOn_cellOn_sensorEventsTriggered()
625 assertEquals(SarInfo.SAR_SENSOR_NEAR_HAND, mSarInfo.sensorState); in testSarMgr_sarSensorOn_wifiOn_cellOn_sensorEventsTriggered()
[all …]
DWifiVendorHalTest.java2647 sarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testHeadSensorScenarios_SelectTxPowerV1_2()
2677 sarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSetTxPowerScenario_not_needed_1_2()
2713 sarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HAND; in testHandSensorScenarios_SelectTxPowerV1_2()
2748 sarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testOnHeadCellOffOn_SelectTxPowerScenarioV1_1()
2783 sarInfo.sensorState = SAR_SENSOR_INVALID_STATE; in testInvalidSelectTxPowerScenario_1_2()
2811 sarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSelectTxPowerScenario_1_2_head_sap()
2843 sarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in testSelectTxPowerScenario_1_2_head_sap_call()
2875 sarInfo.sensorState = SarInfo.SAR_SENSOR_FREE_SPACE; in testSelectTxPowerScenario_1_2_freespace_sap()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSarInfo.java72 public int sensorState = SAR_SENSOR_FREE_SPACE; field in SarInfo
116 if ((sensorState != mLastReportedSensorState) in shouldReport()
132 mLastReportedSensorState = sensorState; in reportingSuccessful()
178 pw.println(" Sensor state is: " + sensorStateToString(sensorState)); in dump()
197 public static String sensorStateToString(int sensorState) { in sensorStateToString() argument
198 switch(sensorState) { in sensorStateToString()
DSarManager.java249 mSarInfo.sensorState = SarInfo.SAR_SENSOR_NEAR_HEAD; in registerListeners()
450 if (mSarInfo.sensorState != newSensorState) { in onSarSensorEvent()
452 mSarInfo.sensorState = newSensorState; in onSarSensorEvent()
DWifiVendorHal.java2359 return (sarInfo.sensorState != SarInfo.SAR_SENSOR_FREE_SPACE); in sarPowerBackoffRequired_1_2()
2389 switch(sarInfo.sensorState) { in frameworkToHalTxPowerScenario_1_2()