Commit Graph

732 Commits

Author SHA1 Message Date
Howard Ro
826655ae7e Add cwren@android.com to metrics_constants OWNERS
Test: I promise that this change doesn't break Android.
Change-Id: Idab58ee91412836a514eaca0ef1aa7cc6450bad8
2018-09-11 16:58:00 -07:00
Howard Ro
5bcfeaf285 Add OWNERS file to metrics constants proto
Adding yro@google.com as an OWNER to metrics constants proto to review
incoming events.

Test: Given ".." import, this change should not break anything.
Bug: 114138150

Change-Id: Ib4ddc153e102b03b7f78a83844023e80e1f9dc68
2018-09-10 23:37:24 -07:00
jackqdyulei
2cc9b4b9fe Add metric id for Mobile network page
Change-Id: I66c4018465e7287d43ae2e53282dc92739e634ec
Fixes: 114444242
Test: Build
2018-09-07 13:49:23 -07:00
Lucas Dupin
323f9ffcb4 Wake-screen gesture implementation
Bug: 111414690
Test: adb shell dumpsys activity service com.android.systemui
Test: manual with alternative sensor event
Change-Id: Ib38085388c0e9ebce9eb59712cdfde5f8d7ccc8c
2018-09-05 15:24:23 -07:00
TreeHugger Robot
f75320d841 Merge "Add an enum file for stats event" 2018-09-01 04:21:20 +00:00
Howard Ro
0546d54fb4 Add an enum file for stats event
The list of events in this file is meant to be used with Generic Atom
defined in atoms.proto in statsd. Instead of unique int, we would like
to log it with an enum that shows semantic meaning of events. Also, this
change re-sorts imports and removes unused imports and remove the
previous logging line to test GenericAtom.

Test: statsd_test
Change-Id: Ia9335e48ada68bee6d716ad4d7ac50238932da95
2018-08-31 16:21:28 -07:00
Shaotang Li
786da904be Add new metrics in power menu
These include,
1. An event indicating that power menu is shown.
2. An event indicating that user taps the emergency dialer icon.

Bug: 111378820
Test: manual and check the result of
'adb logcat -b events | grep sysui_multi_action'

Change-Id: I958ed1af65f559e4999517031cd80fbb1c417108
2018-08-27 17:23:21 +08:00
Shaotang Li
4187f7a6ed Add new metrics constants for emergency dialer
Bug: 111378820
Test: build
Change-Id: I2eb6965238e37435bb380fb4a0e616bd1da6dae6
2018-08-27 10:56:24 +08:00
Lucas Dupin
c81702eb62 Reach gesture implementation
Add configurable doze gesture. OEMs should define the gesture type
on a device overlay.

Bug: 111414690
Test: look at logs in adb shell dumpsys activity service com.android.systemui
Test: manual with alternative sensor event
Change-Id: I048b99b53151427006e42eb6b4780a420020cd78
2018-08-16 11:59:29 -07:00
Siddharth Ray
0d5cb9a5de Merge "Add HW Revision to GNSS Metrics" into pi-dev am: b0b70b8e87
am: 66dcecd4a7

Change-Id: Ia350d430cda47cce23f5c3e81ee06dfa7261a51c
2018-08-15 12:30:46 -07:00
TreeHugger Robot
ab922f650d Merge "Addition of HW Revision to Wifi metrics" 2018-08-15 18:50:50 +00:00
tmfang
f391da16c4 Create a new metric for Add Network Fragment
Bug: 111875856
Change-Id: Ia24186cadc61c498930587fa54bf4fa49f6606df
Test: Build with SettingsGoogle
2018-08-15 17:05:52 +08:00
Siddharth Ray
191b10b981 Addition of HW Revision to Wifi metrics
BUG:112541087
Change-Id: If71584373f2a62c7c915c3dec3777d02878b7fda
2018-08-14 15:46:25 -07:00
Jong Wook Kim
8d9b51f9ad Merge "Add WIFI_ENABLED and WIFI_DISABLED to StaEvent" 2018-08-14 21:41:36 +00:00
Siddharth Ray
dcbed5fbe6 Add HW Revision to GNSS Metrics
Test:
adb shell dumpsys location
Hardware Version: EVT2.0

BUG:112541087
Change-Id: I6278188f15f22ff7b4f5cc30c4c225e0f95ec53d
2018-08-13 15:57:02 -07:00
Felipe Leme
c9f32596d0 Changed Autofill Save UI to show UPDATE instead of SAVE when necessary.
Also introduced new metric: FIELD_AUTOFILL_UPDATE on AUTOFILL_SAVE_UI.

Test: atest CtsAutoFillServiceTestCases # with a bunch of changes
Test: atest OptionalSaveActivityTest#testShowUpdateWhenUserChangedOptionalValueFromDatasetAndRequiredNotFromDataset

Bug: 112192360
Fixes: 80100983

Change-Id: Ifab0d43de44fd473a3f8b232d77d5dc62344b0ae
2018-08-13 15:16:16 -07:00
Michal Karpinski
dfba41947b Merge "DO NOT MERGE Log various information about non-foreground activity starts" into pi-dev 2018-08-10 08:32:57 +00:00
Kevin Chyn
2c94a2970a Add face preview metric
Bug: 112005540
Test: Builds
Change-Id: Ic9ad228fdeb0271a8075ca1070e543b2f59893fc
2018-08-09 15:08:32 -07:00
Howard Ro
4db243a3db Add a logging for ACTION_BAN_APP_NOTES
Bug: 111215354
Test: adb logcat -b events
Change-Id: I4e26adac7a7ad5053b919605b8a25e18bd93cac7
Merged-In: I4e26adac7a7ad5053b919605b8a25e18bd93cac7
2018-08-09 20:50:03 +00:00
Howard Ro
8b56f752a5 Add a logging for ACTION_BAN_APP_NOTES
Bug: 111215354
Test: adb logcat -b events
Change-Id: I4e26adac7a7ad5053b919605b8a25e18bd93cac7
2018-08-09 16:35:11 +00:00
Michal Karpinski
3eab951217 DO NOT MERGE Log various information about non-foreground activity starts
Logging activity starts to TRON, but only if the caller app
doesn't have any foreground activity present.

Example event:
08-03 15:21:30.813  1231  3220 I sysui_multi_action: [757,1513,758,4,805,1533306090812,1514,10147,1515,com.google.android.talk,1516,1018,1517,0,1518,1000,1519,1000,1520,0,1521,10147,1522,com.google.android.talk,1523,1018,1524,0,1525,pendingintent:u0a12:com.google.android.talk/com.google.android.apps.hangouts.phone.ConversationActivity,1526,com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity,1527,1,1528,com.google.android.apps.hangouts.phone.conversationlist,1540,1,1541,com.google.android.apps.hangouts.phone.BabelHomeActivity,1542,3146240,1543,{com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity},1544,com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity,1545,com.google.android.talk,1546,1,1547,0,1551,0,1552,0]

(cherry-picked from 201bc0c14e)

Bug: b/111866309
Context: go/activity-starts-logging-tron
Test: 1) enable logging with: adb shell settings put global activity_starts_logging_enabled 1
      2) open some activities and observe: adb logcat -b events | grep "sysui_multi_action: \[757,1513"
Test: atest FrameworksServicesTests:ActivityStarterTests

Change-Id: Ie7dee51c574e544d12e83d279afda46b336f2013
2018-08-09 15:18:07 +01:00
Jong Wook Kim
b56979f7f5 Add WIFI_ENABLED and WIFI_DISABLED to StaEvent
Log whenever wifi is turned on/off in StaEvent metrics.

Bug: 112193991
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: Turn wifi on/off from settings
Test: adb shell dumpsys wifi | grep -A10 StaEventList
Change-Id: Icf32d4a622f4447e8461560b7cfa4818dcfb1efa
2018-08-08 14:50:18 -07:00
Michal Karpinski
201bc0c14e Log various information about non-foreground activity starts
Logging activity starts to TRON, but only if the caller app
doesn't have any foreground activity present.

Example event:
08-03 15:21:30.813  1231  3220 I sysui_multi_action: [757,1513,758,4,805,1533306090812,1514,10147,1515,com.google.android.talk,1516,1018,1517,0,1518,1000,1519,1000,1520,0,1521,10147,1522,com.google.android.talk,1523,1018,1524,0,1525,pendingintent:u0a12:com.google.android.talk/com.google.android.apps.hangouts.phone.ConversationActivity,1526,com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity,1527,1,1528,com.google.android.apps.hangouts.phone.conversationlist,1540,1,1541,com.google.android.apps.hangouts.phone.BabelHomeActivity,1542,3146240,1543,{com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity},1544,com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity,1545,com.google.android.talk,1546,1,1547,0,1551,0,1552,0]

Bug: b/111866309
Context: go/activity-starts-logging-tron
Test: 1) enable logging with: adb shell settings put global activity_starts_logging_enabled 1
      2) open some activities and observe: adb logcat -b events | grep "sysui_multi_action: \[757,1513"
Test: atest FrameworksServicesTests:ActivityStarterTests
Change-Id: Id63806a2d08a50f404268194a05c6e94bd7e9724
2018-08-08 14:55:05 +01:00
Ecco Park
2ea8e0b31f wifi.proto: Add metric for installed passpoint profile type
Bug: 111473296
Test: Unit Tests

Merged-In: Ia6c6641697ecea1a51d7931d5f0f5b25963ae198
Change-Id: Ia6c6641697ecea1a51d7931d5f0f5b25963ae198
Signed-off-by: Ecco Park <eccopark@google.com>
2018-07-31 13:56:40 -07:00
timhypeng
8c6885d5e1 Add Hearing Aid UI into Settings-Accessibility App
- add DIALOG_ACCESSIBILITY_HEARINGAID into metrics

Bug: 109948484
Test: build pass
Change-Id: Ib720cb3eeb47b57c48da68d8e3049b810357c527
2018-07-30 08:50:35 +00:00
TreeHugger Robot
f94dcd9818 Merge "Update GenericAtom definition to decouple from metrics_constants proto" 2018-07-27 19:26:46 +00:00
Howard Ro
de7130bbbb Update GenericAtom definition to decouple from metrics_constants proto
Bug: 110537998
Test: statsd, statsd_test
Change-Id: Ib82b90731f7c49a9e27ceff5d5fdb8e2cd6fb4e6
2018-07-27 11:01:55 -07:00
Ecco Park
5a403003e6 wifi.proto: Add metric for installed passpoint profile type
Bug: 111473296
Test: Unit Tests
Change-Id: Ia6c6641697ecea1a51d7931d5f0f5b25963ae198
Signed-off-by: Ecco Park <eccopark@google.com>
2018-07-26 13:54:26 -07:00
Kevin Chyn
1b35a86a25 Add face settings metrics
Bug: 111321762
Test: Builds
Change-Id: I17c0136971717f61142afff50cc290e041aa45ca
2018-07-17 21:54:08 -07:00
TreeHugger Robot
b4fc58bab7 Merge "Definition of GenericAtom" 2018-07-14 09:45:12 +00:00
Kevin Chyn
f6e3c6548c Fix typo in metrics constant
Fixes: 111453449

Test: builds
Change-Id: Ic416d8f18b86236ba15b075d5ffd6325381ea39f
2018-07-13 18:13:06 -07:00
Howard Ro
cb767f659c Definition of GenericAtom
Test: no test is necessary as it only adds a field to atoms.proto
Change-Id: If4e7c9497d1a4a8ba0fda3e8fb1ef67c525d6e64
Bug: 110537998
2018-07-13 14:41:26 -07:00
Kevin Chyn
89b325a9b9 Merge changes from topic "face-settings"
* changes:
  Remove unused parameter in FaceManager
  Add face metrics constants
2018-07-11 03:27:02 +00:00
Kevin Chyn
3fdc20366e Add face metrics constants
Bug: 110589286

Test: builds
Change-Id: I76931350ccd3b459f9511588926f3351d7574f01
2018-07-02 16:38:10 -07:00
TreeHugger Robot
878aa91106 Merge "wifi.proto: Add metrics for failed SAR sensor reg" 2018-07-02 23:19:22 +00:00
Kevin Chyn
0e58dbd7de Add face metrics constants
Bug: 110589286

Test: builds
Change-Id: I9e369a38c6e41bb98b1fac5abd248f46382a0928
2018-06-29 14:52:55 -07:00
Ahmed ElArabawy
ba64b61697 wifi.proto: Add metrics for failed SAR sensor reg
This commit adds the metric for counting failures in registration of
SAR sensor listener.

Bug: 65174506
Test: Unit tests

Change-Id: I8d13336aa9c433128f500063819081cfcc43d2cc
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-06-29 00:00:06 +00:00
Kevin Chyn
a56dff7339 6/n: Have FaceService extend BiometricService
In the Service layer, this change is pretty much the same as ag/4340638.
FingerprintService already extends BiometricService which contains all
of the common code. FaceService now does the same after this change.

Updated the Manager layer to use the infrastructure added in P, namely
  - Private APIs for BiometricPrompt
  - Removed FaceManager#CryptoObject, use biometrics/CryptoObject directly
  - Few other BiometricAuthenticator things

Bug: 110387294

Test: enrolling FP still works
Test: removing FP still works
Test: changing FP name persists across reboots
Test: enumerating still works (extra framework fp, extra hw fp)
Test: keyguard still receives lockout reset callbacks

Change-Id: I2195b08e28d024a120df56fe87b0dd4f9b96505a
2018-06-27 11:31:03 -07:00
Julia Reynolds
fdaa649449 DO NOT MERGE Log notification interruptions to TRON
Test: manual
Bug: 110209821
Change-Id: Ic3521f36127aa0e928d0be5ce9819c78c2bc9bc5
2018-06-26 20:12:21 +00:00
Rebecca Silberstein
1d48831106 Merge "SettingsBackupAgent: notify of apBand conversion" into pi-dev am: cbf554b78b
am: 5f5f4788f1

Change-Id: I8a260e47661912420c20634c390aef288afaf92b
2018-06-22 11:34:55 -07:00
Fan Zhang
0b6bc41140 Add new metrics constant for create shortcut page
Bug: 74806595
Test: rebuild
Change-Id: Ifce389f55a520838721ce4dc059b1accaacd4692
2018-06-21 17:19:02 -07:00
Raff Tsai
a2c3e7cff6 Add metric for settings new homepage
Test: Build

Change-Id: I85e4ec0e6d387481a23ca8f354b5d23c6fe8909b
2018-06-21 12:01:02 +08:00
TreeHugger Robot
751bd5b621 Merge "Link Speed Metrics Proto" 2018-06-20 19:28:39 +00:00
TreeHugger Robot
664e0d66c7 Merge "Wifi Usability Metrics Proto Update" 2018-06-20 18:03:16 +00:00
Rebecca Silberstein
d41106c52e SettingsBackupAgent: notify of apBand conversion
Added support to notify user of a change to their softap configuration
preferences after being restored via SettingsBackupAgent.

Bug: 80251951
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually confirmed configs are converted for different device
Change-Id: I4cec15549d694cdb1a7b09f1426d027eec021122
2018-06-19 09:59:12 -07:00
Julia Reynolds
d6ba35c9c4 Log notification interruptions to TRON
Test: manual
Bug: 110209821
Change-Id: Ic3521f36127aa0e928d0be5ce9819c78c2bc9bc5
2018-06-19 11:12:04 -04:00
Jong Wook Kim
e4aa37fe48 Link Speed Metrics Proto
Add a histogram of link speed values with count and rssi values.

Collect this metrics only when enabled in settings. By default, we don't
collect this metrics.

Bug: 78354985
Test: Settings Unittest
Change-Id: I683dfb45a01de5e1243d612a117a5544b0d4dc05
2018-06-18 18:21:45 -07:00
Jong Wook Kim
411cab97c6 Wifi Usability Metrics Proto Update
Generate WifiIsUnusableEvent when there is a data stall or a firmware
alert. In WifiIsUnusableEvent, store metrics related to time, packet
counts, trigger reason, and score.

Also, log ExperimentValues that we plan to change through global
settings varaible.

This logging is enabled by setting WIFI_IS_UNUSABLE_EVENT_METRICS_ENABLED
to 1. By default, this metric is not collected.

Manual Check Process:
- Connect to a network
- adb shell settings put global wifi_is_unusable_event_metrics_enabled 1
- adb shell dumpsys wifi wifiMetricsProto
- Move away from the ap to trigger data stall
- adb shell dumpsys wifi | grep -10 WifiIsUnusableEventList
- Verify that there is a WifiIsUnusableEvent

Bug: 77603216
Test: Unittest (settings core/tests/coretests).
Test: Manual Check.
Change-Id: I2d8425a420f5ba18e3eee0e11b6f35f6239a97b2
2018-06-18 17:32:03 -07:00
xshu
b483b727d3 metrics: add proto field for wifi radio usage
Bug: 77603419
Test: compile, unit tests
Change-Id: I13cc950462800acb33c9e7b40958ec2fe002e946
2018-06-15 16:43:14 -07:00
Felipe Leme
ce3ae87da9 New Autofill field: FIELD_AUTOFILL_SESSION_ID
This field contains the autofill session id (Thank You, Captain Obvious!), which
is useful to correlate autofill metrics that are not logged on
AUTOFILL_REQUEST.

Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched
      'adb shell logcat -b events | grep sysui'. Example:
     [757,913,758,4,806,android.autofillservice.cts,871,android.autofillservice.cts.LoginActivity,914,2,915,2,1456,-2045861404

Fixes: 80093094

Merged-In: If4b1c9ab616b2ba580745096894997eb7edb3e34
Change-Id: If4b1c9ab616b2ba580745096894997eb7edb3e34
2018-05-25 06:22:25 +00:00