Home
last modified time | relevance | path

Searched refs:sarInfo (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiVendorHalTest.java2354 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_1_0() local
2355 sarInfo.isVoiceCall = true; in testSelectTxPowerScenario_1_0()
2359 assertFalse(mWifiVendorHal.selectTxPowerScenario(sarInfo)); in testSelectTxPowerScenario_1_0()
2371 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_1_1() local
2372 sarInfo.sarVoiceCallSupported = true; in testSelectTxPowerScenario_1_1()
2373 sarInfo.sarSapSupported = false; in testSelectTxPowerScenario_1_1()
2374 sarInfo.sarSensorSupported = false; in testSelectTxPowerScenario_1_1()
2376 sarInfo.isVoiceCall = true; in testSelectTxPowerScenario_1_1()
2383 assertTrue(mWifiVendorHal.selectTxPowerScenario(sarInfo)); in testSelectTxPowerScenario_1_1()
2397 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_1_2() local
[all …]
DWifiNativeTest.java611 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_success() local
612 assertTrue(mWifiNative.selectTxPowerScenario(sarInfo)); in testSelectTxPowerScenario_success()
613 verify(mWifiVendorHal).selectTxPowerScenario(sarInfo); in testSelectTxPowerScenario_success()
622 SarInfo sarInfo = new SarInfo(); in testSelectTxPowerScenario_failure() local
623 assertFalse(mWifiNative.selectTxPowerScenario(sarInfo)); in testSelectTxPowerScenario_failure()
624 verify(mWifiVendorHal).selectTxPowerScenario(sarInfo); in testSelectTxPowerScenario_failure()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiVendorHal.java2321 private boolean sarPowerBackoffRequired_1_1(SarInfo sarInfo) { in sarPowerBackoffRequired_1_1() argument
2324 if (sarInfo.sarVoiceCallSupported) { in sarPowerBackoffRequired_1_1()
2325 return (sarInfo.isVoiceCall || sarInfo.isEarPieceActive); in sarPowerBackoffRequired_1_1()
2339 private int frameworkToHalTxPowerScenario_1_1(SarInfo sarInfo) { in frameworkToHalTxPowerScenario_1_1() argument
2340 if (sarInfo.sarVoiceCallSupported && (sarInfo.isVoiceCall || sarInfo.isEarPieceActive)) { in frameworkToHalTxPowerScenario_1_1()
2356 private boolean sarPowerBackoffRequired_1_2(SarInfo sarInfo) { in sarPowerBackoffRequired_1_2() argument
2358 if (sarInfo.sarSensorSupported) { in sarPowerBackoffRequired_1_2()
2359 return (sarInfo.sensorState != SarInfo.SAR_SENSOR_FREE_SPACE); in sarPowerBackoffRequired_1_2()
2361 if (sarInfo.sarSapSupported && sarInfo.isWifiSapEnabled) { in sarPowerBackoffRequired_1_2()
2364 if (sarInfo.sarVoiceCallSupported && (sarInfo.isVoiceCall || sarInfo.isEarPieceActive)) { in sarPowerBackoffRequired_1_2()
[all …]
DWifiNative.java3255 public boolean selectTxPowerScenario(SarInfo sarInfo) { in selectTxPowerScenario() argument
3256 return mWifiVendorHal.selectTxPowerScenario(sarInfo); in selectTxPowerScenario()