Commit Graph

617 Commits

Author SHA1 Message Date
TreeHugger Robot
ddb56c39cc Merge "wifi.proto: Add metrics for softap band preference unsatisfied" into pi-dev 2018-05-18 17:34:51 +00:00
Roshan Pius
d3a58cb2df wifi.proto: Add metrics for softap band preference unsatisfied
Bug: 79701630
Test: Unit tests
Test: Validated that the metric is updated when STA + AP forces the AP
to not satisfy the band preference.

Change-Id: I7d749d33668d0b05ec4beedfa8d5b79b855e3372
2018-05-17 14:52:01 -07:00
Beverly
019d6f636e Add metric to log use of hush gesture
Change-Id: I14578149a79b1455267cb6efc6493c596129032d
Bug: 79537757
Bug: 78665512
Test: manual, builds
2018-05-16 13:18:05 +00:00
Chris Wren
b8dcc91eb9 Merge "clean up comments" into pi-dev 2018-05-15 14:15:09 +00:00
Chris Wren
8f7a144328 clean up comments
Bug: 79698458
Test: make framework-protos
Change-Id: Ifaac050f2e00912188e3fb999b308101e3b07bf0
2018-05-15 07:52:30 -04:00
Andrew Chant
ecdc0dcedf Metrics for hardware reliability reporting
Add event metrics for hardware reliability reporting.

Events include:
 - Battery Health Snapshot
 - Battery Charge cycles
 - Physical Drop
 - Hardware Failed
 - USB Audio Device insertion & removal
 - USB Connector insertion & removal

Bug: 69978775
Test: Logged events from Pixelstats HAL
Change-Id: I9389f71ffe85a430273f33650503f714ea308a78
2018-05-14 15:46:51 -07:00
Winson Chung
53ae6a82cd Merge changes from topic "sysui_flags_drop" into pi-dev
* changes:
  Clean up Recents animation api
  Expose the system ui visibility flags and translucent state with snapshot
2018-05-11 22:18:37 +00:00
Beverly
c4eb934499 Add charging metrics
Change-Id: Icef477c99cb9e53faff852cf6003f912ab8b10c3
Fixes: 78463707
Test: manual
2018-05-11 12:59:00 -04:00
hughchen
2bde409108 Add new type into metrics_constants.proto
* Change DIALOG_UPDATABLE_LIST_PREFERENCE to DIALOG_SWITCH_A2DP_DEVICES.
* Add DIALOG_SWITCH_HFP_DEVICES
* This is for a new dialog which is able to update content instantly when connected devices change

Bug: 77783217
Test: build
Change-Id: I1dd79f35a2b26be071acceca5fe984c8f17d44ec
2018-05-10 18:04:25 +08:00
timhypeng
be1a312501 Add DIALOG_UPDATABLE_LIST_PREFERENCE into metrics_constants.proto
* This is for a new dialog which is able to update content instantly when connected devices change

Bug: 77783217
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I8c70eb93b8bfd39d295fa326df8372ee4b146834
2018-05-09 20:22:53 +08:00
Winson Chung
173020c2ef Expose the system ui visibility flags and translucent state with snapshot
- Allow SystemUI/Launcher to determine whether the snapshot is of a
  translucent activity (to reduce overdraw by skipping drawing task
  background) and also the sysui visibility flags are (to determine how
  to update the nav bar while animating before the app is started.
- Fixing issue where the recents animation was reporting task fillsparent
  state instead of the app's fillsparent state (as we do in normal remote
  animations)

Bug: 79228291
Bug: 77984778
Bug: 78659249
Test: atest FrameworksServicesTests:TaskSnapshotPersisterLoaderTest
Change-Id: I19bdf7f780e7d94014d6a115bf84fa614b1dffa0
2018-05-08 17:56:05 -07:00
Felipe Leme
1116652087 New FIELD_AUTOFILL_COMPAT_MODE field.
This field is used on pretty much all Autofill metrics, except
AUTOFILL_USERDATA_UPDATED, AUTOFILL_SERVICE_DISABLED_SELF, and
AUTOFILL_INVALID_PERMISSION.

Test: atest CtsAutoFillServiceTestCases
Test: adb shell logcat -b events | grep sysui

Bug: 79351659

Change-Id: I2e2f3dcc780a3896162b158926f5ee89c7cb342d
2018-05-07 12:14:00 -07:00
Roshan Pius
6de7a676dd wifi.proto: Add metrics for radio mode change
Bug: 69117051
Test: Unit tests
Change-Id: Ia3df096a4368cdf1d2c254a4610b204dfb0e3778
2018-05-07 08:43:47 -07:00
Jong Wook Kim
506512789d Merge "Connected MAC Randomization Metrics Proto" into pi-dev 2018-05-04 19:25:28 +00:00
Jeff Sharkey
adfc9b68d5 Metrics for user choices in storage wizard.
These metrics help us understand more about how users in the field
are interacting with adoptable storage.

Bug: 37284068
Test: atest com.android.settings.ui.StorageWizardTest
Change-Id: I96bcebc26b53e680d060ec0c23d1f9d11de939a2
2018-05-02 16:14:48 -06:00
Julia Reynolds
2e6c19cfce metrics constant for new button
Bug: 78448988
Test: make
Change-Id: I75977645f4e0fb0ff09a82061c35cf73a96ed1ef
2018-05-01 09:04:38 -04:00
Chris Wren
d63dffd8cd Add implementation for SliceMetrics
Bug: 76150975
Test: atest cts/tests/tests/slice
Change-Id: Ide07b6b490434841978df86794b048b997d523be
2018-04-30 13:30:04 -04:00
Winson Chung
a4fa8d5bd4 Add windowing mode to task snapshot.
Bug: 78155683
Test: atest FrameworksServicesTests:TaskSnapshotPersisterLoaderTest
Change-Id: I4e562d818416a30d6759baef37c74b6d9c514a00
2018-04-23 12:25:38 -07:00
Julia Reynolds
5da746a5d8 Metrics constants for new zen screen
Test: make
Bug: 78448988
Change-Id: Iaf3b35b3f22dd81c372683042372681f4086f1c8
2018-04-23 10:12:54 -04:00
Mathew Inwood
ac1c19a7d1 Add proto constants for hidden API logging.
These will be used by code in ART to log an event when a hidden API is
accessed.

Test: m
Bug: 77517571
Change-Id: I6ee0204a3c9e96e39982530b693a1cc33915f6a1
2018-04-18 16:06:16 +01:00
Dieter Hsu
d39f0d52dc Add rank & count event to notification clicks and dismisses
For click/action click/dismiss, passing rank(0-based) and
count at the time of the actions to events.

Bug: 70724602
Test: runtest systemui-notification
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/notification
Change-Id: I07c440f84ccb745f744eb4e317881b72d2b41683
2018-04-18 03:28:48 +00:00
Salvador Martinez
7a9564f507 Add constant for bluetooth fragment
simply adds a metrics constant for the new bluetooth screen

Bug: 77543471
Test: robotests pass
Merged-In: Id6317df4b86def4e0aa095fd3bc1ed544c0f0220
Change-Id: Id6317df4b86def4e0aa095fd3bc1ed544c0f0220
2018-04-13 14:04:50 -07:00
Jong Wook Kim
01ad38b9cd Connected MAC Randomization Metrics Proto
1) Add "is_mac_randomization_on" that indicates if Connected MAC
Randomization is turned on/off when the proto is created.

2) Add "TYPE_MAC_CHANGE" as a new trigger event for StaEvent. This will
occur whenever we are dynamically changing the MAC address for Connected
MAC Randomization.

Bug: 73666905
Test: Unittest.
Change-Id: Ifef0908f668e39531ebe5a38588f8e3713c047a9
2018-04-13 14:04:47 -07:00
Etan Cohen
0e100add48 Merge "[RTT] Wi-Fi RTT Metrics" into pi-dev 2018-04-13 20:29:22 +00:00
Lei Yu
97a132133b Add metrics for battery settings
1. ACTION_TIP_OPEN_BATTERY_SAVER_PAGE
2. FIELD_APP_VERSION_CODE

Bug: 77919142
Bug: 77874407
Test: Build
Change-Id: Idb4d304e9c6b078b083871d8b787fea39480c062
2018-04-11 18:05:36 -07:00
Lei Yu
fc59a57f3b Add new metric for anomaly been ignored
Bug: 77477987
Test: Build
Change-Id: I65a7387a7d0456a5d3605d91c421329d15a296aa
2018-04-11 16:00:05 -07:00
Julia Reynolds
5ba8dda7b5 Update volume logging
- Log settings click and ringer toggle
- Log stream for volume change and mute instead of value

Test: manual
Change-Id: Id72e4b79ca9875b7c80b58527c303d3af0af9492
Fixes: 74201925
2018-04-11 08:40:32 -04:00
Kenny Guy
23991105bd Add logging for smart replies in notifications.
Log the first time a notification with smart
replies is visible.
Log each click on a smart reply.

Test: atest SystemUITests
Bug: 72153458
Change-Id: I6dc498871000dbb9af978567db3d258b20978781
2018-04-11 10:09:03 +01:00
Fan Zhang
d2ed821445 Add metrics to track auto-brightness settings visibility
Bug: 69795935
Test: build
Change-Id: I9caf913b04735470d1aea9fe6b30a91aaf55cf29
Merged-In: I9caf913b04735470d1aea9fe6b30a91aaf55cf29
2018-04-10 14:21:33 -07:00
Etan Cohen
4ec8dd37e4 [RTT] Wi-Fi RTT Metrics
Bug: 68819947
Test: unit tests
Change-Id: I8984ba0e6e7a02e69425374d47181dba4e2ace35
2018-04-10 07:42:56 -07:00
Julia Reynolds
8aca3e0557 Metrics constants for zen onboarding.
Bug: 77658931
Test: make
Change-Id: Id11f68bd6cc132d7c53004d2ea31d869f64379b8
2018-04-10 08:47:06 -04:00
TreeHugger Robot
8a3890de72 Merge "Remove FIELD_MOBILE_NETWORK in proto." into pi-dev 2018-04-10 01:27:34 +00:00
Malcolm Chen
0cdebf4da9 Remove FIELD_MOBILE_NETWORK in proto.
When user manually selects a cellular network, don't record network
name in metrics logs.

Bug: 65412783
Test: manual
Change-Id: I54b827617f706bfde3615a9fbb2f58939fa74717
2018-04-09 20:21:58 +00:00
Jeff Sharkey
4627071291 Update storage wizard to latest UX mocks.
Changes to support Settings updates.

Bug: 76097999
Test: manual
Change-Id: I8944d4cb7be6a406d5cb6be25ff261b7631b3331
2018-04-09 13:05:48 -06:00
Mehdi Alizadeh
1264d880e2 Adds entries for Swipe Up Enable in Settings.Secure
Bug: 77549883
Test: None
Change-Id: Ie346c4f527fa014eadbfaa1d81d7f8a5f37f653f
2018-04-09 18:28:04 +00:00
Oscar Shu
bc73b3b6e9 Merge changes Ic0515cec,If547bd96 into pi-dev
* changes:
  metrics: identifying dfs from non dfs scans
  metrics: watchdog connection delay field
2018-04-06 20:17:40 +00:00
TreeHugger Robot
e7154b6d5a Merge "Add new WifiWake metrics" into pi-dev 2018-04-06 18:48:27 +00:00
Salvador Martinez
c29c8c088b Add metrics constant for wifi scanning dialog
This CL simply adds a metrics proto constant for the new dialog
that shows up if you try to tunr on auto-wifi without first
enabling wifi scanning.

Test: robotests still pass
Bug: 67070896
Change-Id: I9a4e0fa105e67d666e2e34588bea037034a28784
2018-04-05 13:27:19 -07:00
xshu
39cef4d9b6 metrics: identifying dfs from non dfs scans
These data can be used to optimize power savings, since scanning dfs
channels require significantly more energy.

Bug: 72755722
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ic0515ceca452459446b245d93620885b1ade823f
2018-04-04 14:40:32 -07:00
xshu
6352262bf8 metrics: watchdog connection delay field
Add 2 fields to check if watchdog is really working as well as we think
it is.

Bug: 75001353
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh

Change-Id: If547bd962f12773f4a4b36fb8fc3e50aff259dac
2018-04-04 14:36:29 -07:00
Fan Zhang
5b4c2b13c4 Add logging constant to track settings slice changes
Bug: 71503986
Test: build
Change-Id: I880cab9b6351031451f0c30ae8b480af2c200f2e
2018-04-02 15:02:18 -07:00
Roshan Pius
48f6563b4b wifi metrics(proto): Add scan throttling metrics
Bug: 76429171
Test: Unit tests
Change-Id: I77cd03d323e1edbb93369945532c8d2f24bffd68
2018-03-30 08:40:19 -07:00
Eric Schwarzenbach
3cad62417b Add new WifiWake metrics
Adds initialize event, total number of wakes, and number of ignored
calls to start (from Wakeup already being active).

Bug: 72762459
Test: make

Change-Id: I09fea7b4fcaf3624f06a185160f94d06544e5038
2018-03-29 09:57:25 -07:00
Roshan Pius
a66e6385ee wifi metrics(proto): Add new metrics for wifi native failures
a) Add new metrics for supplicant & hostapd crash numbers. Also, create new
failure metrics for softap turn on.
b) Add metrics for unexpected interface down events.

Bug: 71720421
Bug: 68716726
Test: Unit tests
Change-Id: I9fd6e8bf8f42174a9d6a4ef8249656f804238408
2018-03-29 08:47:01 -07:00
Makoto Onuki
452ae34af5 Merge "Add auto battery saver suggestion notification/dialog" into pi-dev 2018-03-27 21:20:13 +00:00
Makoto Onuki
52c6295e22 Add auto battery saver suggestion notification/dialog
Spec: go/ebs-low-battery-mode-flow

- Basically when the user manually enables battery saver 4 times,
we show this notification to suggest turning on "scheduled"
(i.e. auto) battery saver.

- We show it through 8th time. If the user hits "no thanks",
or if auto-saver is enabled already, we will not show it.

- Introduced a new notification channel "HINTS" with
IMPORTANCE_DEFAULT.

Bug: 74120126
Test: Manual test with ll development/scripts/battery_simulator.py

Change-Id: I713abc59dc7caee6882ba848c3e3aabaf778c2bd
2018-03-27 10:42:05 -07:00
TreeHugger Robot
4045fdc014 Merge "Add metric PREVIOUSLY_CONNECTED_DEVICES" into pi-dev 2018-03-27 13:46:41 +00:00
Etan Cohen
861f7fae2f Merge "[RTT] Collect metrics on observed IEEE 802.11mc supporting APs" into pi-dev 2018-03-27 12:51:20 +00:00
hughchen
226196bfac Add metric PREVIOUSLY_CONNECTED_DEVICES
Bug: 74134939
Test: Build
Change-Id: I134e1aea2a562a8a3f33b340a7dfc643b89886d4
2018-03-27 11:42:08 +00:00
Fan Zhang
a85b48714a Add metrics for new settings conditional cards.
Bug: 76022431
Test: rebuild
Change-Id: I12541a43d742c17e22db701050bb7b72bd423522
2018-03-26 16:52:53 -07:00