216 Commits

Author SHA1 Message Date
Chris Wren
1488055804 revise the reader semantics
checkpoint modifies the underlying log rather than reading timestamps.
reset replays without going back to the underlying log.
add a test

Bug: 32982362
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I381b203a1c24fcd098d7df4d9d0a50bd8aaa1309
2017-03-18 09:13:10 -04:00
Philip P. Moltmann
7b77116802 TRON log important auto-fill events
Example log from
android.autofillservice.cts.LoginActivityTest#testAutoFill#testAutoFillOneDatasetAndSave
(translated from numbers of human readable string):

AUTOFILL_SESSION_STARTED
   package=android.autofillservice.cts
AUTOFILL_REQUEST
   type=TYPE_SUCCESS
   package=android.autofillservice.cts
   FIELD_AUTOFILL_SERVICE=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_DATASETS=1
AUTOFILL_FILL_UI
   type=TYPE_ACTION
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_DATASETS=1
   FIELD_AUTOFILL_FILTERTEXT_LEN=0
AUTOFILL_DATASET_APPLIED
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_VALUES=2
   FIELD_AUTOFILL_NUM_VIEWS_FILLED=2
AUTOFILL_SAVE_UI
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_IDS=2
AUTOFILL_DATA_SAVE_REQUEST
   type=TYPE_SUCCESS
   package=android.autofillservice.cts
   FIELD_AUTOFILL_SERVICE=android.autofillservice.cts
AUTOFILL_SESSION_FINISHED
   package=android.autofillservice.cts

Test: Ran auto-fill tests and looked at event log.
Change-Id: I58aaa58e4435e7d04c8cd91878411943d3eb13de
2017-03-16 15:41:33 -07:00
Todd Kennedy
7e5407ec43 Add new metrics tags
Change-Id: I79c5609237246a2835c41fffed1092f859cbd4d8
Fixes: 35431326
Fixes: 35430849
Test: Manual; the tree builds and the constants can be accessed by other classes
2017-03-16 15:26:20 -07:00
Philip P. Moltmann
e56c08e852 Add TRON Events for app-ops permissions.
Fixes: 36212313
Test: Added and ran new EventLoggerTest-case. Installed and ran MobilIron Go app (like in the bug-report)
Change-Id: Ib1c69bb3aa2159b9101b6924484b51c223d136e0
2017-03-16 09:21:15 -07:00
Christine Franks
47175c3d4a Change system alert window setting proto comments
Bug: 36070413
Test: only comments changed
Change-Id: I2bb2a8a2be5a0535997e4cb382b52cb98ded6b09
2017-03-16 00:30:21 +00:00
Doris Ling
bf8d9de325 Add logging constants for settings security lockscreen preferences.
Bug: 36163515
Test: builds
Change-Id: I245c69073576975ec1531c83ac90090f3386909f
2017-03-15 11:52:50 -07:00
Fan Zhang
5379793357 Add logging constants for settings search recent results.
Bug: 27391895
Test: builds
Change-Id: I20763eb51e80a9b54a5cfc22cb3a640a7bc3c800
2017-03-14 10:16:03 -07:00
Fan Zhang
082d21c13d Add logging constants for settings
- New constants for logging app details page button clicks
- New constants for logging search result clicks

Change-Id: Ib2d1f1cec656881941a43363cbcb6c57395a7766
Fix: 32798201
Fix: 32652772
Test: Builds
2017-03-14 10:15:50 -07:00
Jorim Jaggi
3878ca3333 Fix multi-dimen app transition delay tron event
Make sure to log everything.

Test: Open app, inspect log.
Test: com.android.systemmetrics.functional.AppStartTests

Bug: 33086172
Change-Id: I6fdfef625c09267dcf20724e853cf7471abc86c9
2017-03-14 16:24:04 +01:00
Doris Ling
6d6b0be4d6 Merge "Add logging constants for setting bluetooth preference." 2017-03-13 17:24:18 +00:00
Insaf Latypov
d8aa2e67e7 Add host-side version of framework-protos.
AfwTestHarness needs to use framework-protos from host-side. This is why
new rule is added to build framework-protos usable from host-side.

Change-Id: Ifa35c5de04483d41e97c5853ea781fc29cef4947
2017-03-13 11:41:54 +00:00
Doris Ling
9ac3ddd36f Add logging constants for setting bluetooth preference.
Bug: 35065258
Test: Builds
Change-Id: Idb462c6c1fded04f45393b9b6a0b5866088639c7
2017-03-09 15:58:21 -08:00
Chris Wren
67b3eb953f add process ID to LogMaker
Bug: 32806111
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I3efa38a6b25502def3ba7ace04b6ba76e4d1a6cb
2017-03-09 15:57:44 -05:00
Hugo Benichi
f684050e8f IP connectivity metrics: update ipconnectivity.proto
This patch adds several new fields to ipconnectivity.proto for
improving APF metrics, connect metrics, and link_layer inference.

Test: build, flashed, ran $ adb shell dumpsys connmetrics list proto
      updated metrics unit tests depending on proto schema
Bug: 34901696
Change-Id: I6f68e16f583a6b407f33f8a500133e100f3453c7
2017-03-09 15:19:02 +09:00
mariagpuyol
0f5512eeec Add new constants to track successful contact queries
Bug: 35803126,35873712
Test: No need to add any tests for this

Change-Id: Ib902c28ebabb1bf17b4b2b80f70e08ab2571e75f
2017-03-08 09:52:52 -08:00
Fan Zhang
9986131b97 Add logging constant for hardware info dialog
Bug: 35851000
Test: builds
Change-Id: I3083c2cbd43ee04cb01c418962408cf00646d4b5
2017-03-07 14:32:38 -08:00
Stephen Chen
be9a9a60ae Create a Tron event for opening the network scorer settings page.
Bug: 35854268
Test: n/a
Change-Id: I0a021dcc9016f163f75b8077678f54df1c4f2bf6
2017-03-07 10:39:38 -08:00
Julia Reynolds
d373d78d15 Log notification channels and groups.
Test: manual, runtest systemui-notification
Change-Id: I326a35ae87e7a3dc4b2587271056b7dd5cd11f8d
2017-03-07 15:25:27 +00:00
Fan Zhang
b5ce2d125d Add logging constants for pref change tracking in Settings.
Change-Id: I16719ac7749795b9b3772ffe7b8ef1feff53c188
Fix: 34775467
Test: builds
2017-03-06 15:33:10 -08:00
jackqdyulei
a2a1434ee7 Add enums for battery settings page.
Bug: 35063415
Test: Manual
Change-Id: If2d8cb88bd4a91458747730dc9f352fe828de7ad
2017-03-02 11:20:42 -08:00
Sundeep Ghuman
104aa31262 Create a Tron event for opening the network details page.
Bug: 35807357
Test: NA
Change-Id: Icbae30d2e4af4e46e289cad490a6531157c54d5e
2017-02-28 17:51:39 -08:00
Fan Zhang
b66e542567 Add logging constants for setting build number preference.
Change-Id: I79ab6c89ec67e464167a96cf4350d8628bacbd91
Fix: 34774945
Test: Builds
2017-02-24 14:37:45 -08:00
Rebecca Silberstein
e71d9469a3 Merge "wifi.proto: add SoftApReturnCode enum" am: 84374678e0 am: e1dd7de75e
am: ded006f4cf

Change-Id: I8c41e4aff5734db561d2e63a7df344e292179832
2017-02-23 21:57:09 +00:00
Rebecca Silberstein
e1dd7de75e Merge "wifi.proto: add SoftApReturnCode enum"
am: 84374678e0

Change-Id: I22d8aca86a5a5c28c393db372b4399e5ddd99f46
2017-02-23 21:46:51 +00:00
Doris Ling
edb84c3a7c Add metrics constant for Settings->Security->Encryption & credentials.
Bug: 35630998
Test: build
Change-Id: I46f364a654440e6b0ba17477e6404e20449d3e0e
2017-02-23 11:07:36 -08:00
Rebecca Silberstein
28d9de269c wifi.proto: add SoftApReturnCode enum
SoftAp startup returns a failure mode if it does not start.  This
additional information is useful in determining where we need to add
logging and retry logic to make SoftAp mode more reliable.  The
combination of Failure + failure reason is mapped to an enum defined for
wifi metrics.

Bug: 30899122
Test: checked WifiMetricsProto.java for the enum
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I944e3e249d3be5738352b26a1d12139fdd50bf80
2017-02-23 10:42:05 -08:00
Daniel Nishi
4058a84e6b Add metric for new storage screen.
Bug: 34715777
Test: None here -- used in topic.

Change-Id: Icffecd5abba197d544a1f9bd382d5c09b0bbb388
2017-02-22 16:53:06 -08:00
Fan Zhang
7f2cace68b Add metrics for default assist/voice input pickers
Bug: 35203386
Test: Builds
Change-Id: Ic131eacfec84e79bcc3734f8f56b8e9848672e9b
2017-02-21 11:20:46 -08:00
Glen Kuhne
d0dcf559c5 Merge "Move wifi.proto to shared service .jar"
am: 9ca5ddff4c

Change-Id: I3c10728fdbcd2882723a1bd519a47a63aeba0ac0
2017-02-21 17:56:13 +00:00
Glen Kuhne
173c3b3e89 Move wifi.proto to shared service .jar
Changes to ART are causing nano-proto's generated java base classes
to conflict with their duplicates in other projects, leading to a
NullPointerException.

Moving wifi.proto to the same build as other framework service protos in order
for them to share and not generate a duplicate CodedOutputByteBufferNano
classes.

wifi.proto previously lived at:
frameworks/opt/net/wifi/service/proto/wifi.proto

Merged-In: Ia30391453e8d6614edc7f4397e9c17cfe95cf63e
Bug: 32261442
Test: Builds, and existing Unit tests pass
Change-Id: Ia30391453e8d6614edc7f4397e9c17cfe95cf63e
2017-02-17 16:43:41 -08:00
Fan Zhang
b1d49225c0 Add logging constant for settings search result click
Bug: 34975477
Test: Builds
Change-Id: Ie59fb0639c6aa4044ba4fdb0a71dd489bd2d3b68
2017-02-17 16:07:07 -08:00
TreeHugger Robot
137f1962da Merge "Add more metrics constants for new Storage settings." 2017-02-17 20:48:33 +00:00
Jason Monk
324b8867e4 Add ongoing notification for instant apps
Show a BTW notification when instant app is top of either of the
stacks.

Bug: 35152138
Test: Open ephemeral app, look at notifications.
Change-Id: Id992dd893a6632e9b95948a9e11167762f42bc49
2017-02-16 17:20:02 -05:00
Daniel Nishi
c581bfcb1d Add more metrics constants for new Storage settings.
Bug: 35063738
Test: Settings robotests
Change-Id: I3f99399fd7d48d1eeafa7e2e26c7932c47869b3f
2017-02-16 13:40:42 -08:00
Sundeep Ghuman
53a7e8c844 Create TRON events for Wifi Network Recommendations.
We will log which evaluator was used to provide the event,
and whether or not the recommendation resulted in a successful
connection.

Bug: 34384405
Test: NA
Change-Id: I091c4d7f81c5c612248374817cb5c107b6aa20e2
2017-02-15 19:31:24 -08:00
Fan Zhang
d95dcb4fe7 Add logging for advanced button expand action
Change-Id: I648984686e2dda053f3d0648954c252edd805342
Fix: 35356464
Test: Builds
2017-02-15 13:22:04 -08:00
Fan Zhang
65899436fc Add FIELD_CONTEXT to track source of action in eventlog.
Change-Id: Id32aaab4b4445e5db318d2b48d198b2a815b7cd4
Fix: 35359289
Bug: 35356464
Test: builds
2017-02-15 13:21:35 -08:00
Julia Reynolds
520df6e74a Add logs, reorder bugreport.
Bug: 32986903
Bug: 34227881
Test: cts hostside
Change-Id: Ic5dfe4be5632c6bd7c70115c6a60b060d23be9bd
2017-02-15 15:25:28 +00:00
Fan Zhang
70967f38e6 Add metrics for settings
Change-Id: I93d6209c70f26c1c60d746b5816324d6b995e4bd
Fix: 33209678
Fix: 30137094
Test: builds
2017-02-13 16:02:24 -08:00
Christine Franks
27fde39cc2 Add new MetricsEvent for carrier demo mode dialog
Bug: 34341567
Test: manual - builds

Change-Id: Ibd9f7b2a3e857d712bbc10fd10ddf477a69267cc
2017-02-07 18:28:14 -08:00
Chris Wren
27a52fa86b port status bar logs to Tron V2
Bug: 33303260
Test: runtest --path frameworks/base/core/tests/coretests/src/com/android/internal/logging/legacy/ && runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone
Change-Id: I7746b846247e930617f0b440217635e71ed58bb5
2017-02-02 07:47:16 -05:00
Hugo Benichi
6776f79012 Revert "Merge "Define Network notification proto constants." am: 05550d9ed8 am: 6236f49f0e am: 7b39349792"
This reverts commit 814a59ba829642d09b6d1eaf9bcf06ee44bffad4 because it broke the build by duplicating code that was already there.

Change-Id: I1e32fd9e70629e5725e503ca372fb20c0aa0035d
2017-02-02 07:32:16 +00:00
Hugo Benichi
814a59ba82 Merge "Define Network notification proto constants." am: 05550d9ed8 am: 6236f49f0e
am: 7b39349792

Change-Id: I3d475b36e505e402d18a3942f557e2823d21416f
2017-02-02 06:52:37 +00:00
Winson Chung
14fbe141e0 Adding initial TRON logging for picture-in-picture.
Bug: 33756317
Test: Run PIP activity
Change-Id: Iad270dfdf6521d4659653a0697effaed4a0d4137
2017-02-01 11:12:30 -08:00
Hugo Benichi
2b7c408501 Define Network notification proto constants.
This patch defines 4 new constants in metrics_constants.proto
corresponding to the 4 network notifications shown by
NetworkNotificationManager.

Estimates for the average number of notifications:
  - SIGN_IN:        3/day/device
  - NO_INTERNET:    5/day/device
  - LOST_INTERNET:  5/day/device
  - NETWORK_SWITCH: 3/day/device (turned off right now)

Test: no functional change
Bug: 32198726
Bug: 33030620

(cherry picked from commit e1cbf15f1ad7f2f7e1cc1e96e6a82c3fa2f70bdf)

Change-Id: I6020c283329f752170cef451725b4e5287509bc5
2017-01-30 11:51:58 +09:00
Jason Long
3c12e8f723 Merge "Rename metrics_constants.proto DEFAULT_AUTOFILL_PICKER." 2017-01-27 20:47:20 +00:00
Anton Philippov
95a553e60b Add a constant for Backup Settings.
Test: mmma -j40 frameworks/base
Change-Id: I7437e299d17e8fbda6a8f0e332400b7db28b46ba
2017-01-27 00:37:44 +00:00
chchao
b8e253a229 Create metrics for toggling Select to Speak service in SetupWizard.
Bug: 29517229
Test: manual
Test: compile framework
Change-Id: I1306a16a88b6bac2b4c53f6e9b5883dfdb36cedb
2017-01-25 12:29:36 -08:00
Jason Monk
524fb4025e Move theme out of tuner and into display settings
Change-Id: Id939a8a34e92c6190c59317155238697861a65e5
Fixes: 34682466
Test: Manual
2017-01-25 12:32:07 -05:00
Niels Egberts
b8de3d6773 Register new TTS settings page for speed and pitch sliders.
Test: mmma -j40 frameworks/base
Change-Id: I870fb060ac792cab715ad9c7954962cca2c29e76
2017-01-25 11:09:40 +00:00