Commit Graph

1012 Commits

Author SHA1 Message Date
lesl
15b05537ef Wifi: Add notification ID for softap auto shutdown
Notify the user that their softap disabled because there are no connected
devices and shutdown timeout expired.

Bug: 142752869
Test:  atest FrameworksWifiTests
Change-Id: Ib68607c1fcdced280191af397eda3cc900bdf7cf
2020-01-17 15:07:22 +00:00
TreeHugger Robot
dcf811600f Merge "Wifi: Add notification ID for eap failure" 2020-01-16 18:36:33 +00:00
David Su
6bb0d10cf7 Statically link SystemMessageProto into wifi-service
Statically link SystemMessagesProto since Wifi
uses a few constants defined here e.g.
NOTE_NETWORK_NO_MAC_RANDOMIZATION_SUPPORT,
NOTE_NETWORK_AVAILABLE, etc.

Proto should ensure backwards compatibility of
these constants.

Bug: 147387246
Test: compiles
Change-Id: Id6e704fa50e3500d191ecfa57cbb5a237dfaf01a
2020-01-12 18:35:01 -08:00
Isaac Chiou
4ba24932e8 Wifi: Add notification ID for eap failure
Framework needs to launch notification when specific
eap failure occurs. Add notification ID for this behavior.

Bug: 139880103
Test: atest FrameworksWifiTests
Test: manual test
Change-Id: I416417ce8dc3d49002e03271f5945c0452191f39
2019-12-24 10:03:07 +08:00
xshu
708f3420d3 Add notification ID for no random mac support
Bug: 144172117
Test: atest FrameworksWifiTests
Change-Id: Iad7f21651bc20304fc3b8e108c04057c4bb51b2e
2019-11-14 16:38:48 -08:00
Roshan Pius
7dc1b83706 proto(wifi): Move wifi proto out of common folder
Need to statically link the generated wifi proto stubs. So, moving it
out of framework.

Bug: 143455267
Test: Compiles
Change-Id: I3bfcf1d997623e17f0f49ca2527cc2ea54bbdd32
2019-10-28 08:05:30 -07:00
Oscar Shu
5acd00dae2 Merge "BssidBlocklistMonitor proto changes" 2019-10-26 00:12:44 +00:00
xshu
a6780e8a3e BssidBlocklistMonitor proto changes
proto changes to support BssidBlocklistMonitor

Bug: 139287182
Test: unit tests

Change-Id: I00f6940903871fe65d7b577b87bcc9170a7ff428
2019-10-23 18:02:11 -07:00
Lucas Lin
22eafd1757 Merge "Better notification to user when DNS-over-TLS is broken" am: 81852c8481 am: eb24608dbc am: a55366ffdb
am: 7038dfad2a

Change-Id: Iffbdc181d8249f26b3c370474583673aaa1c5032
2019-10-23 03:27:05 -07:00
Lucas Lin
7038dfad2a Merge "Better notification to user when DNS-over-TLS is broken" am: 81852c8481 am: eb24608dbc
am: a55366ffdb

Change-Id: I9d840678b1612c89b7917e8eece0c920326a83a0
2019-10-23 03:20:21 -07:00
Lucas Lin
eb24608dbc Merge "Better notification to user when DNS-over-TLS is broken"
am: 81852c8481

Change-Id: I8be963e35ed5e5ba914c6d3504a52ccb789aaf29
2019-10-23 02:51:56 -07:00
lucaslin
783f221065 Better notification to user when DNS-over-TLS is broken
Provide a specifc notification to let users know that device
has no internet is because it really doesn't have internet access
or it's caused by private DNS resolution failed.

Bug: 113242081
Test: atest FrameworksNetTests
Change-Id: I710c88a4742f5fd56c39fc797d7fa3ad36dba553
2019-10-22 18:27:33 +08:00
arangelov
49e32af687 Deprecate unused metrics
PROVISIONING_TRAMPOLINE_ACTIVITY_TIME_MS
PROVISIONING_POST_ENCRYPTION_ACTIVITY_TIME_MS
PROVISIONING_FINALIZATION_ACTIVITY_TIME_MS

These metrics are meant to measure intermediate screens, e.g.
screens which finish() in onCreate. It does not make sense to
measure the time they have been shown.

Test: compiled
Fixes: 135599174
Change-Id: I14d4f0b9fb5d70cfaeb386eb14348c0cc499113a
2019-10-14 17:57:10 +01:00
Mingguang Xu
bd2c67b336 Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev
am: 9c1464d7ca

Change-Id: If7613b0b002a3462de5475e000a23b711d2ab5b1
2019-10-04 16:46:49 -07:00
Mingguang Xu
9c1464d7ca Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev 2019-10-04 23:27:38 +00:00
Mingguang Xu
038345da61 Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"
This reverts commit 078fe45552.

Reason for revert: This change introduced a bug and it completely changed the functionality of WiFi data stall detection, e.g., high Tx link speed can easily trigger data stall.  We would like to roll back them to restore the normal functionality of Wifi data stall detection.

Bug: 141995185

Change-Id: I024808b580955545b084112c4b14921f038b595f
Merged-In: I078d28ed81a84e32aaece839a51590364a974481
2019-10-04 21:19:53 +00:00
Wei Wang
69df1cf489 Add a notification when console is active
Performance is largely impacted when console is running, and device
should not ship with that configuration. Moreover, we have seen cases,
when performance of new features was tested with UART on. This CL adds a
notification when console service is active indicating UART is on.

Fixes: 119623211
Test: Enable UART and see warning after boot
Test: Disable UART and no warning
Change-Id: Ie60f763088a15608027986ac855466eb7fc97264
2019-09-25 21:41:37 +00:00
Edgar Wang
9423025444 Merge "Add log metrics for Aware Display Settings" into qt-qpr1-dev
am: 2ee661e584

Change-Id: I74c79ceaac3ad51c434706d37aa4f28cb60ceadf
2019-09-21 02:07:47 -07:00
Edgar Wang
2ee661e584 Merge "Add log metrics for Aware Display Settings" into qt-qpr1-dev 2019-09-21 08:54:47 +00:00
TreeHugger Robot
c17ada3a1f Merge "Add log metrics for Aware Display Settings" 2019-09-20 18:47:01 +00:00
Edgar Wang
f37615e4f8 Add log metrics for Aware Display Settings
Bug: 136610131
Test: rebuild
Merged-In: I5b96a3a04a1d2c1ba01b9ec1f707dec040a331c3
Change-Id: Ibfdcba4be652cf7885f46e7549c344e12ae11127
2019-09-20 15:35:15 +08:00
Edgar Wang
d3939b932e Add log metrics for Aware Display Settings
Bug: 136610131
Test: rebuild
Change-Id: I5b96a3a04a1d2c1ba01b9ec1f707dec040a331c3
2019-09-20 10:35:14 +08:00
Mingguang Xu
01a8c8db9c Merge "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps" into qt-qpr1-dev am: a295feab37
am: db114da8a5

Change-Id: I4693287fb44a9fa22b2b786b96a2d8be414e7376
2019-09-19 14:51:08 -07:00
Mingguang Xu
db114da8a5 Merge "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps" into qt-qpr1-dev
am: a295feab37

Change-Id: Ib759afbf288649cea7f2f4ca39bfef8eb88fc17c
2019-09-19 14:37:50 -07:00
Mingguang Xu
078fe45552 Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps
Data stall event can be triggered if the tx/rx tput is consecutively below a threshold over multiple RSSI polls. Changing the unit of the threshold from Mbps to Kbps allows us to configure a value below 1Mbps, e.g., 400Kbps.

Bug: 141027476

Test: frameworks/base/wifi/tests/runtests.sh

Signed-off-by: Mingguang Xu <mingguangxu@google.com>

Change-Id: Ib7b398fb6975c0d03b09550db9bf68a2bb8bddfb
Merged-In: I76d6338cd2d482d198fde1e5a2d1a0540c087ca6
2019-09-19 07:42:34 +00:00
Mingguang Xu
f555e9de41 Merge "Wifi usability: Data stall detection based on link layer stats" into qt-qpr1-dev am: d65f8c6704
am: 12a8212d5b

Change-Id: I07309df430dc46c4ef8cbae83b9f1097a08bfb3f
2019-09-18 11:51:42 -07:00
Mingguang Xu
12a8212d5b Merge "Wifi usability: Data stall detection based on link layer stats" into qt-qpr1-dev
am: d65f8c6704

Change-Id: I31776ebb6951059b4b0b6dd4e9ad2074b4c42c8e
2019-09-18 11:44:32 -07:00
Mingguang Xu
d65f8c6704 Merge "Wifi usability: Data stall detection based on link layer stats" into qt-qpr1-dev 2019-09-18 18:28:02 +00:00
Mingguang Xu
de3725b8fa Wifi usability: Data stall detection based on link layer stats
This is an effort to define new criterion for triggering Wifi data stall:
(1) Defined data stall criterion based on transmit and/or receive throughput, transmit packet error rate, and CCA level. Data stall is triggered when transmit and/or receive links are consecutively bad over multiple RSSI polls.
(2) Added DeviceConfig flags (that is disabled by default) which may be configured on the server side to tune the thresholds at which data stall gets triggered.

Bug: 141027476
Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I895fd54cc7ec32815bce1899354ca265d4e93ea9
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Merged-In: I76d6338cd2d482d198fde1e5a2d1a0540c087ca6
2019-09-18 01:58:33 -07:00
Blake Kragten
b0a6968f9d Merge "L5 Metrics Addition:" into qt-qpr1-dev
am: 9c16632a24

Change-Id: If50095321517893b805b6ca02150c2c2fd210aab
2019-09-16 11:34:04 -07:00
Blake Kragten
9c16632a24 Merge "L5 Metrics Addition:" into qt-qpr1-dev 2019-09-16 18:19:54 +00:00
Alison Cichowlas
452ab27da2 Merge "Add constant for System actions in Sharesheet." into qt-qpr1-dev
am: 0bff8bb2ef

Change-Id: I82f25f5322d43ee63421b2b6bdbfaa9fd1b04acc
2019-09-13 13:54:38 -07:00
Alison Cichowlas
65687f5c56 Add constant for System actions in Sharesheet.
Test: manual; compiles
Bug: 140928181
Change-Id: I66e38efbf87bed573766a17cc1401ed19e606c48
(cherry picked from commit a2d980661c)

Merged-In: I66e38efbf87bed573766a17cc1401ed19e606c48
2019-09-13 18:25:57 +00:00
Blake Kragten
025aabe693 L5 Metrics Addition:
Added L5 metrics to determine if L5 should be enabled or not.

Test: On device

adb shell dumpsys location

Output:
  Number of CN0 reports: 149
  Top 4 Avg CN0 mean (dB-Hz): 26.100838872410307
  Top 4 Avg CN0 standard deviation (dB-Hz): 1.7702387090734562
  Total number of sv status messages processed: 4202
  Total number of L5 sv status messages processed: 703
  Total number of sv status messages processed, where sv is used in fix: 1979
  Total number of L5 sv status messages processed, where sv is used in fix: 46
  Number of L5 CN0 reports: 97
  L5 Top 4 Avg CN0 mean (dB-Hz): 20.273711379041377
  L5 Top 4 Avg CN0 standard deviation (dB-Hz): 2.632911219511556
  Used-in-fix constellation types: GPS GLONASS GALILEO

Output Logs: https://drive.google.com/drive/folders/1tGEolHWtF92UkJ8lxgFihIzfWLl8ChZK?usp=sharing
Bug: 137575988
Change-Id: Id306d7cc27c9410a5ad73f5a0940c25f8d795686
Merged-In: Id306d7cc27c9410a5ad73f5a0940c25f8d795686
2019-09-13 16:36:17 +00:00
Blake Kragten
f5f7b66c93 Merge "L5 Metrics Addition:" 2019-09-13 16:35:28 +00:00
Alison Cichowlas
a2d980661c Add constant for System actions in Sharesheet.
Test: manual; compiles
Bug: 140928181
Change-Id: I66e38efbf87bed573766a17cc1401ed19e606c48
2019-09-12 15:56:17 -04:00
Blake Kragten
bb613600fc L5 Metrics Addition:
Added L5 metrics to determine if L5 should be enabled or not.

Test: On device

adb shell dumpsys location

Output:
  Number of CN0 reports: 149
  Top 4 Avg CN0 mean (dB-Hz): 26.100838872410307
  Top 4 Avg CN0 standard deviation (dB-Hz): 1.7702387090734562
  Total number of sv status messages processed: 4202
  Total number of L5 sv status messages processed: 703
  Total number of sv status messages processed, where sv is used in fix: 1979
  Total number of L5 sv status messages processed, where sv is used in fix: 46
  Number of L5 CN0 reports: 97
  L5 Top 4 Avg CN0 mean (dB-Hz): 20.273711379041377
  L5 Top 4 Avg CN0 standard deviation (dB-Hz): 2.632911219511556
  Used-in-fix constellation types: GPS GLONASS GALILEO

Output Logs: https://drive.google.com/drive/folders/1tGEolHWtF92UkJ8lxgFihIzfWLl8ChZK?usp=sharing
Bug: 137575988
Change-Id: Id306d7cc27c9410a5ad73f5a0940c25f8d795686
2019-09-12 11:02:38 -07:00
Kai Shi
e7ea38b73d Merge "WifiMetrics: add per-band Tx and Rx speed histogram" into qt-r1-dev am: 6564df6264 am: e6fb43cff3
am: 4b8e648da6

Change-Id: I94f28a860e18d80be6c5dc5db677aa17af5b2c73
2019-07-25 14:18:34 -07:00
Kai Shi
4b8e648da6 Merge "WifiMetrics: add per-band Tx and Rx speed histogram" into qt-r1-dev am: 6564df6264
am: e6fb43cff3

Change-Id: Ie442aff6a8271f67836e2bac2436ae0c87d834a2
2019-07-25 13:39:25 -07:00
Kai Shi
714e449ff5 Merge "WifiMetrics: add per-band Tx and Rx speed histogram" into qt-r1-dev
am: 6564df6264

Change-Id: I89c4a1b1bb96ab8d36ccff4a0c5a1cbdd503e964
2019-07-25 13:28:34 -07:00
Kai Shi
026e5441a4 WifiMetrics: add per-band Tx and Rx speed histogram
Bug: 137886569
Test: Unit tests for Wifi: frameworks/opt/net/wifi/tests/wifitests/runtest.sh and manual test

Change-Id: I30aae21651237b1bc7291527d0beab3e28dadb21
2019-07-19 09:56:45 -07:00
Hongwei Wang
3b9bdcffaf Adds identifier to TaskSnapshot
This identifier is introduced to differentiate two task snapshots in
AiAi. Currently, the timestamp (in millis) is chosen as the identifier.

Bug: 136563752
Test: atest TaskSnapshotPersisterLoaderTest
Change-Id: I249511d1e4bb34a93d5db08d2b1cea3b1ee5d034
2019-07-16 10:36:52 -07:00
Mehdi Alizadeh
d104ed0a67 Merge "Adds metrics categories for gesture navigation dialogs" into qt-dev
am: cdd5808bd0

Change-Id: Id01df942a1f89096f30b71fb5636b615d4aa8ee3
2019-06-24 17:36:17 -07:00
Mehdi Alizadeh
873f1727e5 Adds metrics categories for gesture navigation dialogs
Bug: 135211145
Test: Builds
Change-Id: I0bc0749bbbb9b78d3d125e1a0f1e9bc35b645db2
2019-06-24 20:31:11 +00:00
Tim Joines
2b9196611e Merge "Add config to control full task snapshot scale" into qt-dev
am: 10b9def7cb

Change-Id: I6e07c1e6d9aa300e42e27daa10ad048af56fc40b
2019-06-19 15:03:46 -07:00
Tim Joines
10b9def7cb Merge "Add config to control full task snapshot scale" into qt-dev 2019-06-19 21:33:29 +00:00
Andrew Sapperstein
41d9e7ca8d Merge "Add metrics for mainline modules license UI." into qt-dev
am: eb1b030175

Change-Id: I3b568d73d56bddf3943e4106703ee10da5629dd6
2019-06-18 20:19:35 -07:00
Andrew Sapperstein
aad89bd490 Add metrics for mainline modules license UI.
Bug: 135183006
Test: none
Change-Id: Id5f0ed37f64545d7e1b73f9aad61a0357460eea5
2019-06-18 14:25:07 -07:00
Winson Chung
ffde2ea8e5 Add config to control full task snapshot scale
- Also save the scale with the snapshot data instead of trying to infer it
  from the state
- Also recycle the reduced resolution snapshot copy after writing it

Bug: 135150767
Test: atest TaskSnapshotPersisterLoaderTest
Change-Id: I64a9ccf16f3966ad5c6d07ff0b6ce8e9dd710e40
2019-06-18 14:12:25 -07:00
Paul Duffin
d93f565421 Remove superfluous use of no_framework_libs: true
Bug: 134566750
Test: m droid
Change-Id: I2777e8f9da0c7e0f3fc84277600f9db45b2f837e
Exempt-From-Owner-Approval: no response from owners minor build change
2019-06-18 19:21:34 +01:00