summaryrefslogtreecommitdiffstats
path: root/tests/wifitests/src/com/android/server/wifi/SarManagerTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Take 2 of Migrate frameworks/opt/net/wifi to androidx.testBrett Chabot2018-12-191-1/+2
| | | | | | | | See go/jetpack-test-android-migration Test: atest FrameworksWifiTests Bug: None Change-Id: I76a3394fe1e4f5b268ed2716291b33d1db8f9f85
* Revert "Migrate frameworks/opt/net/wifi to androidx.test"Brett Chabot2018-12-191-2/+1
| | | | | | | | | This reverts commit 560ff95760cd1fc1da022e0972a5e29b739fcc52. Reason for revert: Broke master Exempt-From-Owner-Approval: build fix, pure revert Change-Id: I9f155cff6a712a6831be6af6b4dc671a35cd2ee1
* Migrate frameworks/opt/net/wifi to androidx.testBrett Chabot2018-12-141-1/+2
| | | | | | | | See go/jetpack-test-android-migration Test: make checkbuild Bug: None Change-Id: I68f37d8eaf20b82a4e26ef7914e13460495e9762
* SAR: Add conditional support for SAP/voice callAhmed ElArabawy2018-07-131-130/+137
| | | | | | | | | | | | In current implementation, SAR support for sensors assume automatically that SoftAP is supported. This CL introduces a separate configurations for support of voice calls and softAP independent of SAR sensor support. Bug: 65174506 Test: Unit test Change-Id: I92eb15142888054b5c8070c2c9c73862f0e5fcdc Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
* WifiMetrics: Add metrics for failed SAR sensor regAhmed ElArabawy2018-06-281-2/+8
| | | | | | | | | | | | | | | | | | | | | | | This commit adds the metric for counting failures in registration of SAR sensor listener. Bug: 65174506 Test: Unit tests ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh This test validates that the metric is updated when the registration of SAR sensor listener fails. Test: Booted device, ran the command: adb shell dumpsys wifi Verified the line in output: mWifiLogProto.numSarSensorRegistrationFailures=0 Test: Forced a registration failure by removing the sensor cal data from device (/persist/sensors), then ran the command: adb shell dumpsys wifi Verified the line in output: mWifiLogProto.numSarSensorRegistrationFailures=1 Change-Id: I565be94d0cefdd097d6dc2ecb71dd6b73d419760 Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
* WiFi: Extend SAR to support sap/scan-only modesAhmed ElArabawy2018-06-081-0/+374
| | | | | | | | | | | | | | This commit is part of the feature of extending SAR Support in WiFi. It adds support for both AP and Scan-Only modes. This commit also adds some more general tests for SarManager class. Bug: 65174506 Test: Run Wifi unit test suite Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I04b61aaf69308600919c5f6e9ea61be130be9750 Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
* WiFi: Extend SAR in WiFi with body sensorsAhmed ElArabawy2018-06-081-46/+447
| | | | | | | | | | | | | | | | | | In previous commits, extending the SAR support of SAR sensors was introduced by adding the SarInfo class and its use in WifiVendorHal to select the proper SAR scenario. However, SarManager was not utilizing this new functionality. This commit provides the support of SarManager to the support for SAR for WiFi TX power backoff when device is in close proximity to head/hand/body of user with or without the presence of a voice call. Bug: 65174506 Test: Run Wifi unit test suite Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Iac650f586a1419540a6fbef4b75579391fda1aba Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
* WiFi: Move SAR implementation to SarManagerAhmed ElArabawy2018-05-021-0/+256
This commit is the first stage of extending SAR Support in WiFi. This stage include removing SAR handling from the WifiStateMachine and putting it in a separate SarManager. No new functionality is added yet in this stage. Note that unit test cases for SAR related functionality in WifiStateMachine are removed and added to SarManager Bug: 65174506 Test: Run Wifi unit test suite Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I0a08180cfff22002f75a6966009e62b9c66044c3 Signed-off-by: Ahmed ElArabawy <arabawy@google.com>