Commit Graph

597 Commits

Author SHA1 Message Date
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
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
Etan Cohen
f30125b6b5 [RTT] Collect metrics on observed IEEE 802.11mc supporting APs
Collect metrics on the prevalence of support for IEEE 802.11mc by
looking at the number of such APs in each scan.

Bug: 68819947
Test: unit tests
Change-Id: I3857dcfdd43b4ae22a2d2200bfd1f348cbf35a5b
2018-03-26 13:51:21 -07:00
Mehdi Alizadeh
2449819b69 Adds entries for Soft AP channel and bandwidth
Bug: 72643031
Test: It builds
Change-Id: I4d6053df5bb9c5d7eee6857bcc097a49922f7966
2018-03-22 23:12:01 +00:00
Felipe Leme
b3029a4f72 Merge "Set FIELD_AUTOFILL_NUM_DATASETS to -1 when service return no response." into pi-dev 2018-03-22 04:50:04 +00:00
Felipe Leme
2568de0664 Set FIELD_AUTOFILL_NUM_DATASETS to -1 when service return no response.
Test: adb shell logcat -b events | grep sysui | grep '757,907'
     # while running LoginActivityTest#testAutoFillNoDatasets

Bug: 70241978

Change-Id: I611bd4fa8407b16491f1ae7b859564233fa6ba81
2018-03-21 09:03:08 -07:00
Lei Yu
4f704776b7 Add metric ACTION_ANOMALY_TRIGGERED
Bug: 73888115
Test: Build
Change-Id: I519f280536508c18a923c2adc8e2d8f8bdceae34
2018-03-20 16:17:55 -07:00
Lei Yu
e92285a580 Add metric for battery tip action
Add metrics for different kind of battery actions. Also
add a field to specify the type of anomaly.

Bug: 73888115
Test: Build
Change-Id: I2e4d912a5e25b8fe92ec000d5086e44b0e9f190d
2018-03-19 11:40:46 -07:00
Julia Reynolds
b998c8eee2 metrics constant for volume gesture.
Test: make
Bug: 75252670
Change-Id: Ifa4412d8e440d2259c534f5ad7a9914ef4239a6c
2018-03-16 16:39:40 -04:00
Etan Cohen
cf8acd8a70 Merge "[AWARE] Metrics for Discovery + Ranging" into pi-dev 2018-03-15 20:26:13 +00:00
Chris Wren
aa571c6a9f add reserved latency field
Bug: 65724609
Test: make
Change-Id: I9bc8d9bf6818c93cd21c02962d93ab1193d56fc9
2018-03-14 21:27:11 -04:00
Etan Cohen
fa72357b5e [AWARE] Metrics for Discovery + Ranging
Add Metrics collection for Discovery + Ranging behavior.

Bug: 63906015
Test: unit tests for aware
Test: integration tests ThroughputTest
Change-Id: Ie992b3a6bbf9ac89e14beccf21ccc0acd606c16b
2018-03-14 11:47:29 -07:00
Julia Reynolds
72cab0e0c2 metrics for 'manage notifications' affordance.
Bug: 74075050
Test: make
Change-Id: Ic6f65338ca114385890ab3bfac801cc206e4ed6e
2018-03-13 10:58:43 -04:00
Beverly Tai
75431913ef Merge "Using zen duration preference" into pi-dev 2018-03-12 21:39:18 +00:00
Winson Chung
4aee38fd01 Merge "Expose whether a snapshot is a real snapshot" into pi-dev 2018-03-12 20:34:07 +00:00
Winson Chung
f3e412e502 Expose whether a snapshot is a real snapshot
- This allows launcher to distinguish between a real snapshot and an app
  theme snapshot, which it will decorate differently.

Bug: 72809891
Test: atest com.android.server.wm.TaskSnapshotPersisterLoaderTest
Change-Id: Ia94591ab83ef312556f138cf11398cc5680ad798
2018-03-09 13:34:41 -08:00
Victor Chang
76817b84ba Add tron metric logging
- one tracking id for every picker type

Bug: 73952488
Test: m
Change-Id: I2822775703cd69a908d10d899c7ff455f6461c32
2018-03-09 19:10:52 +00:00
Lei Yu
e93e560ff8 Add metrics for battery tip
Bug: 73888115
Test: Build
Change-Id: Ifec295466a7ed6ee43c8a2b9f89c3982bdb634e2
2018-03-08 12:15:38 -08:00
Lei Yu
5674d2d8d9 Add metric for restrict app tip and high usage tip
Bug: 3706378
Test: Build
Change-Id: Iaab1cc44a6fc7c449d599e9cb56f41eec46ec068
2018-03-08 10:19:43 -08:00
Beverly
09da25f00d Using zen duration preference
Test: make ROBOTEST_FILTER=ZenDurationDialogTest RunSettingsLibRoboTests -j40
Bug: 73741459
Change-Id: Ide76ac8016b84f128c47ad3731eeced25dce8c73
2018-03-07 13:57:59 -05:00
Julia Reynolds
8dff1868ff metrics constants for app ops.
Bug: 64085448
Test: make
Change-Id: I35eb5e02a24b9fb6058d807565d450b96c9b2258
2018-03-06 14:21:36 -05:00
Beverly
8fe33ba8c7 Metric constants for dnd system and duration
Test: none
Bug:73741459
Bug: 73362490
Change-Id: I01b7602e7bd05531c67fbb0c20b4d31ac7f5befe
2018-03-05 14:32:35 -05:00