Commit Graph

978 Commits

Author SHA1 Message Date
Kai Shi
24ee8ef61e Add EAP methods in wifi.proto
To help find the root cause of high authentication failure rate in enterprise network, add EAP method and authentication phase2 method in connection event metrics.

Bug: 150237135
Test: manual
Test: atest com.android.server.wifi
Merged-In: I7f3268b2842783f99c0a43d8b4996d0a7dd46c6e
Change-Id: Id4ac7947871785d16b81c0806986f54d64fdb0ce
2020-03-03 18:50:27 +00: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
Edgar Wang
2ee661e584 Merge "Add log metrics for Aware Display Settings" into qt-qpr1-dev 2019-09-21 08:54:47 +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
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
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
9c16632a24 Merge "L5 Metrics Addition:" into qt-qpr1-dev 2019-09-16 18:19:54 +00: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
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
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
10b9def7cb Merge "Add config to control full task snapshot scale" into qt-dev 2019-06-19 21:33:29 +00: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
Will Brockman
c22772c36a Log usage of addPerson() and setStyle() in notifications.
Added Tron logging to StatusBarNotification.getLogMaker() so it will
be present in most logs about the notification.

Change-Id: I720706d37c663f2018bdfe2153ad180970166c90
Test: atest android.service.notification.StatusBarNotificationTest
Bug: 135180518
2019-06-14 19:10:02 +00:00
Beth Thibodeau
4b05fbcf49 Add logging for media notification seekbar
Also includes some minor fixes and improvements:
- Only update visibility of seekbar/scrubber if it changed
- Switching between seekable and not seekable media will update the
scrubber visibility
- Switching from seekbar to none will not restart the timer

Fixes: 132631846
Test: manual, atest com.android.systemui.statusbar.notification.row.wrapper.NotificationMediaTemplateViewWrapperTest
Change-Id: I158670119ad0742cf6a2387e08d54e548ee14ef5
2019-05-28 16:34:14 -04:00
Jan Althaus
367eb8ca1f Adding issuer information to NAS Adjustments
Test: manually tested with ExtServices and AiAi as NAS
Bug: 132679875
Change-Id: I3b4b3135037fe3f82b18e7c024931842986c70bb
2019-05-23 19:35:01 +00:00
Steven Wu
40cbada807 Logs biometric authentication error type.
Test: manual
Bug: 132644177
Change-Id: I99398140eb17aa6f9b1404815908ef56890dfc7e
2019-05-22 13:10:46 -04:00
Salvador Martinez
20d1db4ebb Add metrics constants for dark ui dialog
This just adds some constants needed for a new dialog that shows
up on the first time dark theme is toggled.

Test: none, is a metrics change
Bug: 132695689
Change-Id: Ic7527879003a7d883e74cb00792e69655e5ec9ad
2019-05-21 15:20:11 -07:00
Julia Reynolds
b58434a869 Revert "Adding issuer information to NAS Adjustments"
This reverts commit 3b33a04fb3.

Reason for revert: This is crashing ExtServices on qt-dev

Bug: 132679875
Change-Id: I60b7b6b8db33585f62e108389367c74ce682b922
2019-05-21 15:04:27 +00:00
Jan Althaus
3b33a04fb3 Adding issuer information to NAS Adjustments
Test: manually tested with AiAi NAS
Fixes: 132679875

Change-Id: I5d4bf41383143e9573ddad5c08205e1dca3ba6b3
2019-05-21 08:57:02 +02:00
Leo Hsu
d8faaf97ef Revise metrics for emergency dialer
Add new metrics constants and deprecate old ones for Emergency Dialer.

Bug: 124427605
Test: Manually. Check the result of
'adb logcat -b events | grep -e sysui_multi_action'

Change-Id: Ia72709a237a78e3a80540cb8f18c80f2bfe37adc
2019-05-20 14:36:58 +08:00
Susi Kharraz-Post
1474655fc5 Fixing the metrics_constants jump
There were merge problems because master was modified independent of
qt-dev. This should be fixed by now so moving the number back to next
available.

Bug: 132719892
Change-Id: I19b28734b08877cb54574d5a059da5e7befe54ba
Test: N/A
2019-05-17 11:09:55 +00:00
Susi Kharraz-Post
4a401882a3 Align qt-dev and master
This CL only adds a new line to re-align qt-dev and master for
metrics_constants to make it possible to rebase the enums.

Bug: 132719892
Test: N/A
Change-Id: Ie6354c904f3751f8620ff3ae7d420754b6314b33
2019-05-15 14:42:06 -04:00
tmfang
fb4dbb7812 Add logging enums for slice converter exceptions
- [Refactor] Also remove ACTION_DISPLAY_WHITE_BALANCE_SETTING_CHANGED
to Action enum.

Test: Rebuild rom
Bug: 131449561

Change-Id: I4edfdf275b7858a57cb12a1b4e3c03d2ec37e181
2019-05-09 10:32:17 +08:00
Felipe Leme
c0df895a41 Added moar augmented-autofill metrics:
- AUTOFILL_AUGMENTED_WHITELIST_REQUEST
- AUTOFILL_AUGMENTED_RESPONSE
- FIELD_AUTOFILL_AUGMENTED_ONLY on AUTOFILL_SESSION_FINISHED

Test: adb shell logcat -b events | grep sysui
Test: atest CtsContentCaptureServiceTestCases # sanity check

Bug: 112192360
Fixes: 122858578

Merged-In: Ia6bfced9396dd9e3f8ef2a6c45415dc22f4327c9
Change-Id: Ia6bfced9396dd9e3f8ef2a6c45415dc22f4327c9
2019-05-07 11:46:12 -07:00
Aran Ink
35231f7fc5 DO NOT MERGE: Bump metrics_constants value by ~100 to avoid conflicts with master.
Add Global Actions Panel Settings constant.

Bug: 127295457
Test: Automated tests pass.
Change-Id: Ib37a13192fb1aa20cf3d914beee7b9a4eb399168
2019-05-07 13:55:20 -04:00
Mehdi Alizadeh
97fb3ed8bc Collects metrics for the new Sharing Shortcuts api
Bug: 122904954
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Change-Id: Ifafcaa789814618846d41431d6190e4d79e871e5
2019-05-06 12:35:03 -07:00
Steven Wu
11da5744bf Add logging for assistant start activity.
Test: manual
Bug: 128982146
Change-Id: Icb9973facd9a1fdd90ea669c21d772c981254777
2019-05-03 15:20:38 -04:00
Julia Reynolds
c0fb5c1851 Metrics constants for new screen
Test: make
Bug: 128445911
Change-Id: I8577ed12b6c60e7a8996ec313d22b2adcba12b6a
2019-05-03 09:45:39 -04:00
Antony Sargent
0a7036b919 Add metrics for Delete sim dialogs
These are for the new dialogs being added for b/124254555. There is one
for the confirmation dialog, and one for the progress dialog.

Bug: 131519375
Test: manual
Change-Id: I32d639f45b5b2d5ef14c53c37f5d8e34f27524bd
2019-04-29 15:07:06 -07:00
David Su
cf263d9535 Merge "wifi.proto: Count number of probes triggered by experiments" into qt-dev 2019-04-29 17:05:49 +00:00
TreeHugger Robot
831dc426f1 Merge "Add action metrics for Wi-Fi provision features" into qt-dev 2019-04-23 17:36:54 +00:00
Mingguang Xu
b09eed2309 Merge "Wifi usability: Add timestamp in WifiUsabilityStats" into qt-dev 2019-04-23 06:00:22 +00:00
Arc Wang
036f404d88 Add action metrics for Wi-Fi provision features
// ACTION: Share a Wi-Fi network by generating a QR code
  ACTION_SETTINGS_SHARE_WIFI_QR_CODE

  // ACTION: Connect to a Wi-Fi network by scanning a QR code
  ACTION_SETTINGS_ENROLL_WIFI_QR_CODE

  // ACTION: Share Wi-Fi hotspot by generating a QR code
  ACTION_SETTINGS_SHARE_WIFI_HOTSPOT_QR_CODE

Bug: 130521826
Test: manual
Change-Id: I99e55b53c49830347e48f688aa38afc3912e71b1
2019-04-23 11:26:45 +08:00
TreeHugger Robot
7feb1a1f7d Merge "Add logging enums for 3 new SIM related pages." into qt-dev 2019-04-22 21:37:29 +00:00
David Su
36da81ff8a wifi.proto: Count number of probes triggered by experiments
Protos to count number of probes triggered by each experiment.

Bug: 131091030
Test: compiles
Change-Id: I61c15d5183fd7e1b819f2f751bd5a98bd7dd5202
2019-04-22 11:23:45 -07:00
Fan Zhang
6cd3b90123 Add logging enums for 3 new SIM related pages.
Bug: 130897640
Test: rebuild
Change-Id: I97fa886d54af7f1035b2fda100e276c5b34c5c63
2019-04-19 14:24:22 -07:00
Mingguang Xu
3e5d63a8f7 Wifi usability: Add timestamp in WifiUsabilityStats
Together with the timestamps in each entry (WifiUsabilityStatsEntry) of WifiUsabilityStats, the added timestamp allows us to check whether the WifiUsabilityStats is obsolete or not.

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

Change-Id: I1c968786173f0e719b10651315a6d1bb5b42438f
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-04-19 13:59:56 -07:00
hsuvictor
c0106148c6 WifiMetrics: add histogram of installed Passpoint profiles for R2
Added Histogram of the EAP method type of installed
Passpoint profiles for R2

Bug: 122542221
Test: atest WifiMetricsTest PasspointManagerTest

Change-Id: I5c09d13a284dc15f9ba08d175212ad56cf0bc244
2019-04-19 11:09:55 +08:00
hsuvictor
17510161ac WifiMetrics: add histogram of passpoint provisioning
Added histograms tracking the number of passpoint provisioning.
Histograms are dimensioned on: <failure code>

Bug: 122542221
Test: atest WifiMetricsTest PasspointProvisionerTest
PasspointManagerTest

Change-Id: If71ed11c1898e210e08f694d85a931c811598c17
2019-04-15 11:35:13 +08:00
Lucas Dupin
046282eabd Dark Theme QS tile
Creates Dark Theme tile and adds it to the default config,
under the fold.

Test: manually toggle tile
Fixes: 130253100
Change-Id: I2859d2eb20db1c6d9dd8e8e24979294316b905bb
2019-04-11 09:58:11 -07:00
Oscar Shu
a39c85fc2b Merge "wifi proto change for some legacy API usage metrics" into qt-dev 2019-04-08 17:07:11 +00:00
xshu
08c6738b1c wifi proto change for some legacy API usage metrics
Bug: 129884654
Test: unit tests
Change-Id: I9f67c0dc8bb3813236335b62c8ecee81d44cd69b
2019-04-04 17:39:33 -07:00
David Su
a847e58eec wifi.proto: Add link probe event to StaEvent
Add link probe event type to StaEvent in order to correlate link probe
success/failure with other StaEvents (e.g. disconnection, score breach).

Bug: 112029045
Test: compiles
Change-Id: I2a18abc6f19179b164cd4c007597ba6cb69bf889
2019-04-04 18:28:43 +00:00
Susi Kharraz-Post
14cbfcdbd0 Add logging for direct share target
To answer the question if users share mainly with 1 or 2 direct targets
or with a multitude of contacts, we need to log the direct target +
package name. For privacy, this gets hashed with a salt that expires by
default every 7 days. The PH flag will allow us to change the expiration
time if we obtain PWG permission for that.

Bug: 126365511
Test: New test in ChooserActivityTest + manual testing of consistency
and flag rollout using adb shell device_config put systemui
hash_salt_max_days with multiple values

Change-Id: Ib4255b3eb39ca91ccb5803dc036ffe0ea83a27c9
2019-04-03 17:54:25 -04:00
Christine Franks
92aa9b2fba Reserve display white balance metric
Bug: 123930917
Test: n/a
Change-Id: Ieb7fb22566dee89b9128756ec2e2c06cc0211f9a
2019-04-03 17:53:01 -04:00
Mingguang Xu
66c7c95c05 Merge "Wifi usability: Add firmware alert reason code into WifiUsabilityStats" 2019-04-03 01:41:28 +00:00