Commit Graph

751 Commits

Author SHA1 Message Date
TreeHugger Robot
6b9404dacf Merge "Add metric constants for new dnd settings pages" 2018-11-13 18:52:53 +00:00
Winson Chung
d27f6b3fc6 Merge "Expose task id and activity component in task snapshot and assist structure" 2018-11-12 17:56:22 +00:00
Beverly
d58cc77238 Add metric constants for new dnd settings pages
Test: n/a
Bug: 111475013
Change-Id: I7c63ddc32cd87f0cc949f9ee2ddedd5359acd610
2018-11-09 16:23:11 -05:00
Winson Chung
48b25653f4 Expose task id and activity component in task snapshot and assist structure
- This would allow the AiAi service to cross-reference assist data with
  streaming text data and snapshots
- Pre-fill the task id/activity when receiving the assist data from the
  activity and remove unnecessary autofill santization down the line

Bug: 117268952
Test: adb shell dumpsys window all
Test: atest CtsAutoFillServiceTestCases
Test: atest CtsAssistTestCases

Change-Id: I0d0d2c85426777cc77397716db34b520593db100
2018-11-09 09:08:11 -08:00
tmfang
a3f63a9e66 Add constants which can be used by Privacy Setting
-Add a category key for privacy settings
-Add two metrics constants for privacy settings

Test: robotest
Bug: 116628158
Change-Id: Id9b210cc44bcc421c67525c4919d99586525bfc2
2018-11-08 10:27:22 +08:00
Kevin Chyn
b879f51b41 Add biometric enroll constant
Bug: 112925362

Test: Builds
Change-Id: I96aec2d14dac8f0056bf45215a539e5c5abb2de9
2018-10-31 17:56:26 -07:00
Kevin Chyn
f589b6c72c Add metric constant for ConfirmDeviceCredential BiometricFragment
Bug: 111461540

Test: Builds
Change-Id: I4617af59a75aaa299cce14799ae4d396330d9194
2018-10-29 15:53:39 -07:00
Fan Zhang
916c13b5f5 Add a Settings atom
Bug: 117860032
Test: rebuild
Change-Id: I0cd0422891ca9a18168eb57cf4b61ad1089263f6
2018-10-22 11:34:50 -07:00
Lei Yu
f3fee9c01f Merge "Add metric id for mobile network settings" 2018-10-12 18:27:40 +00:00
Howard Ro
9a862de7e9 Move/rename stats_enums.proto's directory/name
Migrate stats_enums.proto to core/proto/android/stats/ directory for the
consistency with other enums file imported in atoms.proto

Test: mma
Change-Id: I79f068889ac5c34c6fd8c5966687669efb37d180
2018-10-11 23:52:09 -07:00
jackqdyulei
db71d28f08 Add metric id for mobile network settings
Bug: 114749736
Test: Build
Change-Id: I62fd6407ec92de16d952d966960b5caf447ea0c0
2018-10-10 11:33:28 -07:00
Oscar Shu
3d0a22d53b Merge "proto change for wifi link layer usage stats" 2018-10-02 18:11:47 +00:00
TreeHugger Robot
ec809d0e22 Merge "Update wireless charging documentation val" 2018-10-01 21:56:08 +00:00
Lucas Dupin
493cb6d5cb Merge "Renaming gesture" 2018-09-28 22:00:56 +00:00
Lucas Dupin
13b0cb9890 Renaming gesture
Bug: 111414690
Test: make
Change-Id: I9d2a6507a942c56fe5b626d8dce46321ff70014b
2018-09-28 09:27:46 -07:00
Julia Reynolds
23a4635d01 Add metrics constants for notification adjustments
Test: make
Bug: 116445483
Change-Id: Ifff344c1867a1b2ec73277c89f3f77620749e2fc
2018-09-25 19:33:45 +00:00
xshu
0e0dea406e proto change for wifi link layer usage stats
Adds a new proto field.

Bug: 77603419
Test: compile, unit test
Change-Id: I540e0eda718b6ef586837855e8d650f373f986f2
2018-09-24 14:42:54 -07:00
Beverly
c47ba514b4 Update wireless charging documentation val
Test: manual
Change-Id: I09b3d7b02907a2d3a05e3e32278b89f381952399
Fixes: 116150237
2018-09-24 14:02:23 -05:00
Felipe Leme
d9dc954e8f Fixed FillCallback.onFailure() and SaveCallback.onFailure() behavior.
FillCallback.onFailure() was not working as intented - it finished the session
on AutofillManagerService, but didn't update the client state on
AutofillManager.

And both of these methods were displaying Toasts to the user, which is something
the autofill services could take care of. Hence, for services target with SDK
Q, the message is ignored.

Also added a new Autofill Metric: FIELD_AUTOFILL_MESSAGE_LEN

Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.LoginActivityTest#testAutofillAgainAfterOnFailure
Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: time mmm -j frameworks/base/:doc-comment-check-docs
Test: m -j update-api

Bug: 112192360
Fixes: 116103297

Change-Id: I499909200980943dedf1fc8524dd1f14b49e2158
2018-09-21 13:31:44 -07:00
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