297 Commits

Author SHA1 Message Date
Hugo Benichi
c61dc92fc0 Instrument captive portal login activity
Also add CAPTIVE_PORTAL_LOGIN_ACTIVITY_SSL_ERROR constants to
metrics_constants.proto for counting ssl error pages shown by the
captive portal login activity.

Bug: 36203355
Bug: 34901696
Bug: 36532213
Test: manually tested with captive portal testing setup while watching
      event logs: adb logcat -b events | grep captiveportallogin
        06-08 16:25:20.279 21558 21558 I sysui_action: [1004,com.android.captiveportallogin]
        06-08 17:01:04.052 21558 21558 I sysui_action: [1007,com.android.captiveportallogin]

Change-Id: Ia05853506d424ad4cb2c11770ae7718fbef3f01c
2017-06-08 22:03:40 +09:00
Kevin Chyn
cfd641e8dc Add setting and permission for assist gesture
Bug: 37427306

Test: manual
Change-Id: I659fa43fb085575df4d62e7765d88c6fd615fb7d
2017-06-07 15:08:21 -07:00
Fan Zhang
e33c70d984 Add logging to track search no-result case
Bug: 37211659
Test: builds
Change-Id: I93de5891ce7d4757f1fc5b7a3c70292676fcd8ec
2017-06-06 12:37:13 -07:00
fanzhang172
255759dc36 Add logging metrics for ConfigureKeyGuardDialog
Bug: 62115677
Test: builds
Change-Id: Ibe46a979b21fe847f543766083fac32f124cfac8
2017-06-05 21:43:47 -07:00
Antony Sargent
f3cc317c56 Add a new Bluetooth device details page
Bug: 35877479
Test: none

This adds a metrics event code for the new page, and removes the final
keyword from some classes to facilitate robolectric tests.

Change-Id: Ia0ae93840f7f12dd57101e7aba9360c210f15a03
2017-06-05 16:37:44 -07:00
Hugo Benichi
4b763aa858 Merge "New Metrics constants for captive portal related UI" 2017-06-05 04:31:31 +00:00
Chris Wren
5a406e996c Merge "add channel and group tags to the notificaiton logs" into oc-dev am: 76e76a5c26
am: 6b88afda65

Change-Id: I840c89e34b00cf505e50897bc7ba433f37a67dff
2017-06-02 22:51:15 +00:00
Chris Wren
b39217972e add channel and group tags to the notificaiton logs
Change-Id: Icf029e42fca46262c9d9f8ff63f26de098f888bf
Fixes: 37714086
Test: runtest systemui-notification
2017-06-02 16:19:13 -04:00
Hugo Benichi
11da42bbb6 New Metrics constants for captive portal related UI
This patch adds 5 new constants in metrics_constants for counting
various UI interactions involving captive portals:
  - sign-in button in wifi network details card
  - captive portal login activity start up
  - captive portal login activity menu interactions (2 constants)
  - captive portal login activity auto-closes on portal dismissed

Bug: 34901696
Bug: 26303355
Test: compiled, flashed
Change-Id: I489e5f2f8ff27da60fed215fa5f51326933fd79e
2017-05-31 11:11:37 +09:00
Adrian Roos
1c81d7721b AOD: Add metrics constant for Ambient display settings
Bug: 33279975
Test: make droid
Change-Id: Iac3a99fbd580944e131c99eeb919f1e2ec6f2717
2017-05-30 14:36:01 -07:00
Fan Zhang
238162be28 Misc logging constants for Settings
- Add logging constant to track when default app is changed in Settings
- Add constants to track Settings search result count/query length

Change-Id: I7cbe5ff5a1cd6ab4cf3a70997268cbfcee1b567a
Fix: 62072727
Test: builds
2017-05-25 14:08:17 -07:00
Etan Cohen
d0c3bdfcee Merge "[AWARE] Metrics framework" 2017-05-25 19:26:01 +00:00
Etan Cohen
737addcfe2 [AWARE] Metrics framework
Wi-Fi Aware metrics proto.

Bug: 26565416
Test: builds and passes unit-tests
Change-Id: Iaa164b48ccfd3b44865911cdac823adfd6165084
2017-05-24 15:30:18 -07:00
Roshan Pius
13dd8aca17 WifiMetrics: Add metrics for HAL/wificond crashes
New metrics added:
1. Number of times HAL crashed during operation.
2. Number of times wificond crashed during operation.
3. Number of times wifi start failed because of a native issue.
Basically the number of times calls to WifiNative.setupForClientMode() &
WifiNative.setupForSoftApMode() fails.

Bug: 36586897
Test: Compiles
Change-Id: Ie9683fd8bfea6b0c64605e407559ff561898c11b
(cherry picked from commit 3607a39bbf99889d964f985727d14bcbdbecfac6)
2017-05-24 17:05:12 +00:00
Philip Quinn
0f9566d619 Add metrics constants for the assist gesture.
Bug: 38508651
Test: make -j
Change-Id: I5ee7f20add9fedaec6928a81bce828a75816da99
2017-05-23 10:33:19 -07:00
Fan Zhang
c666a20988 Add tag data constants to log different preference value.
- FIELD_SETTINGS_PREFERENCE_CHANGE_LONG_VALUE is for int/long/boolean
- FIELD_SETTINGS_PREFERENCE_CHANGE_FLOAT_VALUE is for float

Bug: 38258793
Test: builds
Change-Id: I3cf7750912d64b1efea8e58c3cf83d425a9d11f4
2017-05-22 17:59:53 -07:00
Maurice Lam
05b2b8b6d3 Metrics proto update for Assist gesture training
Test: Manual
Bug: 37427306
Bug: 37329077
Change-Id: I8b83f3bcba1bb7c22a52698ffd11c6eb40b45e7d
2017-05-22 16:00:11 -07:00
Roshan Pius
2925b4833c Merge "WifiMetrics: Add metrics for HAL/wificond crashes" 2017-05-19 17:39:25 +00:00
Maurice Lam
76ae09cca2 Add metrics constant for Choose Lock Dialog
Test: Not tested
Bug: 35442933
Change-Id: Ib6bcf157217e4d6632a63ac7b442ba279aa3d9c5
2017-05-17 15:31:14 -07:00
Roshan Pius
3607a39bbf WifiMetrics: Add metrics for HAL/wificond crashes
New metrics added:
1. Number of times HAL crashed during operation.
2. Number of times wificond crashed during operation.
3. Number of times wifi start failed because of a native issue.
Basically the number of times calls to WifiNative.setupForClientMode() &
WifiNative.setupForSoftApMode() fails.

Bug: 36586897
Test: Compiles
Change-Id: Ie9683fd8bfea6b0c64605e407559ff561898c11b
2017-05-15 15:58:01 -07:00
Jonathan Solnit
a41381660c Add camera lift trigger to GestureLauncherService
Add registration for the camera lift trigger sensor and handling for its
events to GestureLauncherService

Test: Confirmed camera launches on lift gesture if setting is enabled
(and other pieces are in place)
Change-Id: Ibfad2040409d86af2d019e2ce97ab546bef9ba78
2017-05-12 17:59:27 -07:00
Jaewan Kim
36b01e6429 Merge "TV PIP: Fix broken TV PIP" into oc-dev am: 2e0d455177
am: 84744bdae2

Change-Id: Ic3d5d6f34a5ee9ddd231efc973576b57394b281f
2017-05-08 22:47:37 +00:00
TreeHugger Robot
2e0d455177 Merge "TV PIP: Fix broken TV PIP" into oc-dev 2017-05-08 22:26:18 +00:00
Jorim Jaggi
1a8c4ddcca Merge "Add TRON logging for bindApplication" into oc-dev am: 802d008e1b
am: fa5252f628

Change-Id: I76fe64031bb9ad22d77be8dcce4923831242079a
2017-05-05 15:58:53 +00:00
Jorim Jaggi
515dd689ad Add TRON logging for bindApplication
Such that we know how much startup latency is the system to blame
and how much of it is the client process to blame.

Test: Open dead app, inspect logs
Change-Id: Ib8d359c2d59ef6f90893928f2b1d4e2ac2590d74
Fixes: 37327717
2017-05-05 15:05:07 +02:00
TreeHugger Robot
bbc79c71a1 Merge "Add metric for anomaly detection" 2017-05-05 01:27:28 +00:00
Jaewan Kim
26c6356397 TV PIP: Fix broken TV PIP
Bug: 37249867
Test: Manual test (checked that the notification UI is shown when the
    PIP starts, and dismissed when the PIP is closed. The 'DETAILS' and
    the 'DISMISS' button in the notification also worked.)
Change-Id: I12e385b51f834991a0115ce5ba7dd98180577adb
2017-05-04 16:16:38 +00:00
jackqdyulei
92e492e9b7 Add metric for anomaly detection
1. FUELGAUGE_ANOMALY_DETAIL(anomaly detail page)
2. DIALOG_HANDLE_ANOMALY(anomaly dialog)

Bug: 37681923
Test: Build
Change-Id: I3c27832933df0d59f16c0124b09aaac2cec9af8a
2017-05-01 13:10:26 -07:00
Badhri Jagan Sridharan
405ce17abb Notify the user when an unsupported accessory is attached
This CL pops up a notification to the user when the device does not
support Analog Type-C headphones but the user connects one.
i.e when the Usb port status reports currentMode=audio_acc, but
audio_acc is not present in the supportedModes list.

Bug: 36604276
Test: Manually test inserting an Audio accessory
Change-Id: If514b9f238da196a7157e1aacb6d7690fde66f21
2017-05-01 10:30:49 -07:00
Dianne Hackborn
8a40a4ca27 Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev am: f1a4b50739
am: a766f1d1ec

Change-Id: I82c6b62af3d4eddbd4e97c83b2bb7d4a1657c63d
2017-04-30 17:44:10 +00:00
Dianne Hackborn
83b40f69be Work on issue #36891897: Need to ensure foreground services can't...
...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
2017-04-29 19:41:12 -07:00
Chris Wren
d8cc90c303 Merge "expose the UID in the EventLog API" into oc-dev am: 8ae5e04636
am: 21abf1cd20

Change-Id: Id1ccf3fa7a50f276003e98cfebee1407e0fa4090
2017-04-28 18:02:57 +00:00
Chris Wren
4d6b54d2bf expose the UID in the EventLog API
Bug: 32806111
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I16800a33bc6d4d37b3addd71b675fd760bd5d7b8
2017-04-28 11:18:07 -04:00
Julia Reynolds
8c756155e5 Merge "New constant for new settings screen." into oc-dev am: 04225787d8
am: 15b267d59b

Change-Id: I21408b9e8451595d9bf16e2123eda7fc3e75fa9a
2017-04-27 15:30:50 +00:00
Julia Reynolds
80b180761d New constant for new settings screen.
Bug: 36561295
Test: make
Change-Id: I0e2ec6d7b372a9594f8b583540804dde1b79de1a
2017-04-27 14:52:04 +00:00
Denis Kuznetsov
605beddfee Create a metrics events for ag/2085657 (DO disclosure screens)
Bug: 32692748
Test: Tests for functional changes are in ag/2085657
Change-Id: I6988a950ab2aa78dcb3f848b59a5b0905da7b204
Merged-In: I6988a950ab2aa78dcb3f848b59a5b0905da7b204
(cherry picked from commit 7152a41d25f0296ec5ed41c497f7666e185890eb)
2017-04-27 11:35:01 +00:00
Daniel Sheng
68a3f53f9b Merge "Added metrics key for camera lift trigger." 2017-04-25 20:43:59 +00:00
Denis Kuznetsov
7152a41d25 Create a metrics events for ag/2085657 (DO disclosure screens)
Bug: 32692748
Test: Tests for functional changes are in ag/2085657
Change-Id: I6988a950ab2aa78dcb3f848b59a5b0905da7b204
2017-04-25 16:28:53 +02:00
Glen Kuhne
f264a71d67 Merge "Wifi Metrics STA event list" into oc-dev am: 9870d0bef7
am: 19bdb91fb7

Change-Id: Ice4284ca5c947b738a4c1d5452e6e7e9502aecd1
2017-04-24 22:00:03 +00:00
TreeHugger Robot
9870d0bef7 Merge "Wifi Metrics STA event list" into oc-dev 2017-04-24 17:57:32 +00:00
Abodunrinwa Toki
c63a0033f8 Merge "Merge "TRON: Log "textAssist" actions." into oc-dev am: fa9d889d3e" into oc-dev-plus-aosp
am: a039aa4439

Change-Id: I417110a15dfef29ff01fcd923ae29ec6f76f4d51
2017-04-20 16:39:54 +00:00
Abodunrinwa Toki
54486c16ba TRON: Log "textAssist" actions.
- Logs when the assist menu item appears in the text selection menu.
- Logs when the assist menu item is selected.
- Logs the the type of the assist menu item that was presented.

Test: Manually tested by looking at the logs. See: go/tron-howto
Bug: 32572232
Change-Id: Ibbbf59423b3f510ab6f2f072962a556c3d6e2f65
2017-04-19 22:10:51 +01:00
Daniel Sheng
2c4bc64f8d Added metrics key for camera lift trigger.
Bug: 37154489
Test: make

Change-Id: I2814092f423d5727b03b1374c53f4612991b8142
2017-04-18 18:32:21 -07:00
Glen Kuhne
8ce9a1ceca Wifi Metrics STA event list
Implemented a new, more atomic connection event list for tracking wifi
connection event metrics. The old 'packaged' connection events are too
inflexible/artificial, and only track the connection ATTEMPT.
The new event list will track the individual commands/messages/events
modifying the state of wifi, with the post processing to determine
number of connections, successes, failures, etc, offloaded to the
consumer of the data.
Coverage has also been extended to track the full connection from
initiation, to connection and final disconnection, as well as piping
through of specific disconnection status and reason codes.

Bug: 35799311
Test: Added unit tests
Change-Id: Id29f39b31ec59adbe010bd21c1c7de7d305ff0f7
2017-04-18 15:57:52 -07:00
Daniel Nishi
ff97ea2eef Merge changes from topic 'cp-movies' into oc-dev
* changes:
  Use the real filters when determining Other Apps.
  Add support for movies & tv apps querying.
2017-04-13 18:39:57 +00:00
Salvador Martinez
fe169d9a0e Merge "Added strings for thermal shutdown warning" into oc-dev am: dc52fd3168
am: 37393f92f3

Change-Id: I1e0c5aa83f7e12a864c607264957a7a985251866
2017-04-13 01:11:25 +00:00
Salvador Martinez
ab932147aa Added strings for thermal shutdown warning
Strings for thermal shutdown warning were missing
so this CL adds them and a proto message value.

Test: SysUI tests still pass
Bug: 30994946
Change-Id: Ifd0b26248c2ebae5bcf32ecbea2566c14be7dc32
2017-04-12 18:41:35 +00:00
Daniel Nishi
77389ff7ec Move the movies metrics constant back into O.
Test: None
Change-Id: I101c334973476af84ddfb76589c851fbb1f82426
2017-04-07 14:25:17 -07:00
Daniel Nishi
45c23fa689 Add support for movies & tv apps querying.
Bug: 36223441
Test: Robotest
Change-Id: Icbb9b8947112f45d37858ceb5cfb1d76f06bda32
Merged-In: Icfb34844601f87d11b7309eacf9385d49ed36338
2017-04-07 14:20:36 -07:00
Kevin Chyn
79932641b6 Merge "renaming/removing fingerprints should be reflected in UI immediately" into oc-dev am: 1a199ba7e1
am: 7b1e255bff

Change-Id: I7508c6e731acf54e71a40b840aba3acad3eadf48
2017-04-07 21:08:56 +00:00