Commit Graph

768 Commits

Author SHA1 Message Date
Gustav Sennton
6f65fc346b Add metric fields for Smart Suggestions in Notifications logging.
Add extra data when logging
1. whenever smart replies and actions in notifications become visible,
and
2. whenever a smart action in a notification is clicked.

Documentation:
go/ssin-metrics

Bug: 120767764
Test: tested together with ag/5764960
Change-Id: I7bc735000df9380998e0e4c8f672bca08e8707df
2018-12-17 11:55:24 +00:00
Chad Brubaker
90f391fe87 Prototype Spaceship mode qstile
Initial prototype disabling location/sensors and enabling airplane mode.
Camera/Mic will come in a followup.

Test: manual
Bug: 110842805
Change-Id: I26132fcc9ffea83e3e78a0e54882d23c99ee590c
2018-12-14 20:46:04 +00:00
Hongming Jin
5172ec1216 Add page id for financial apps sms access.
Bug: 111207447
Test: rebuild
Change-Id: I0adc1ebdee96f1796c80ba55bc54ec4793f16b5e
2018-12-13 11:04:02 -08:00
TreeHugger Robot
754fbf92a1 Merge "strings.xml: Resources to post notification for network suggestions" 2018-12-12 10:38:56 +00:00
Roshan Pius
6eb1b3a982 strings.xml: Resources to post notification for network suggestions
The exact string wording will be changed after consultation with
the UI folks.

Bug: 120072329
Test: Manual verification of notification.
Change-Id: I9420b70629edee35aa928c94d3aa3a8e5e14e895
2018-12-11 15:24:14 +00:00
Arc Wang
b16327ab2e Add Wi-Fi DPP metrics category constants.
Bug: 118794858
Bug: 118797380

Test: NA
Change-Id: I5fdd7d107fec621086a3d0a1ab31a0dfc7f1a277
2018-12-11 01:59:34 +00:00
Issei Suzuki
ae492c924a Merge "Add metric constants for foldable screen" 2018-12-11 00:02:03 +00:00
Blake Kragten
df4ae4aca3 Merge "Adding additional wifi power metrics to wifi power metrics" 2018-12-10 21:59:28 +00:00
Issei Suzuki
9e5ff4bf58 Add metric constants for foldable screen
Test: n/a
Bug: 117783763
Change-Id: I4459c9bce085ac8ecc243dbc27264710caea81db
2018-12-10 13:37:35 -08:00
Susi Kharraz-Post
9b03367ad2 Add Status Bar State to QS click log
This is adding the StatusBarState to the tron logs for QS click to
answer the question if the quick setting was clicked from lockscreen.
The currently available states are
SHADE = 0
KEYGUARD = 1
SHADE_LOCKED = 2
FULLSCREEN_USER_SWITCHER = 3
For descriptions see StatusBarState.java

Bug: 110157820
Test: added unit test and tested manually
Change-Id: Ibcadebc737a0d71b51e764ee2d3fd4ddb5f7ef3a
2018-12-09 09:59:35 -05:00
Blake Kragten
354c83dcba Adding additional wifi power metrics to wifi power metrics
Bug: 116168459
Test: Compared batteryStats with wifi metrics changes
Test: adb shell dumpsys wifi WifiMetricsProto > wMetrics.txt
Test: adb shell dumpsys batterystats > test.txt

Change-Id: I6ecf5e1da4cc293039581544d7ae2c3db2594d92
2018-12-04 16:38:48 -08:00
Chienyuan
e7a535c608 Add new metrics constant for disable developer options
Bug: 80449594
Test: build Settings app
Change-Id: I7711d0e50309b0ed9eed0d2f863536d9f7825e2c
2018-11-30 16:01:48 +08:00
xshu
a33726eea6 WifiUsability proto for ML
Bug: 113262380
Test: compile, unit tests

Change-Id: I60d29116fa2ee3d5781ef49e30b462b7a26d90bc
2018-11-19 11:12:53 -08:00
Esteban Talavera
7a5926bb46 Merge "Log notification direct reply to TRON" 2018-11-15 18:05:06 +00:00
Oscar Shu
0b422043dc Merge "WifiLinkLayerUsageStats proto change" 2018-11-14 19:07:16 +00:00
Esteban Talavera
f9c53b63ec Log notification direct reply to TRON
Bug: 118375812
Test: runtest systemui-notification
Change-Id: I29de32a36c0cafb869c8ae79bcaee67beb68c5c2
2018-11-14 18:35:37 +00:00
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
xshu
0f91dd6acc WifiLinkLayerUsageStats proto change
Adds a breakdown of different scan times.

Bug: 79111545
Test: compile
Change-Id: If1ae540e3746c43577e04efb95b9c83354350dac
2018-11-08 15:51:07 -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