204 Commits

Author SHA1 Message Date
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
Jason Long
1b51da6033 Rename metrics_constants.proto DEFAULT_AUTOFILL_PICKER.
Change-Id: Idfb0c1cc42385eaea87a0c6d0aeee1f3affa155c
Test: compiles
2017-01-24 12:12:25 -08:00
Winson Chung
59fda9e217 Adding AppOps setting for entering PiP when hidden.
- In O, apps can request to enter picture-in-picture when the user
  effectively leaves their activity for another task by default. To
  prevent this from being abused, we need to add a setting for the
  user to disable this behavior per-package in the system level.
  When disabled, any activity from that package will only be able
  to enter picture-in-picture when it is visible and resumed.

Bug: 34520451
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAppOpsDenyPipOnPause
Change-Id: Ib3a993e99ffb071706c6b7d3fb1c882b74acc5d7
Signed-off-by: Winson Chung <winsonc@google.com>
2017-01-24 09:15:01 -08:00
Mahaver
6cd4716f16 Provisioning terms screen constants
They are logged only once per provisioning session.

Test: NA

Bug: 34434241
Change-Id: Icc45f132ec2e43efe0fa6920eb97eaeb585ee2d1
2017-01-23 12:56:32 +00:00
TreeHugger Robot
cc9224c8d4 Merge "Adding app op and intent action for external sources" 2017-01-20 12:08:20 +00:00
Jorim Jaggi
e47d2cd415 Merge "Persist task snapshots to disk" 2017-01-20 11:46:13 +00:00
Suprabh Shukla
2f34b1a678 Adding app op and intent action for external sources
Added an app op to control which package and uid can install apps on the
device and an intent action to launch the settings fragment.

Test: Will include in follow up CL, tracked in b/33792674

Bug: 31002700
Change-Id: Ic073495759d9867f8001a6c712e402398c53dfc9
2017-01-20 02:39:08 -08:00
Fyodor Kupolov
dc7505d048 Tron metric for force stop app
Test: Manual
Bug: 31008660
Change-Id: I2bb72b94ca40be5051d775c3b81187771e90d82f
2017-01-19 11:16:14 -08:00
Jorim Jaggi
f9084ecae2 Persist task snapshots to disk
So they can be used again after rebooting or when the process gets
killed, but the snapshot is still used for recents.

Also implement TaskSnapshotLoader, to restore it from disk. The
infrastructure around restoring and caching snapshots for recents
will be implemented in the next CL.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotPersisterLoaderTest

Bug: 31339431
Change-Id: Iaec03c4cc92e04b6dd7e623bca755ddc92613bce
2017-01-19 17:06:42 +01:00
Chris Wren
26ca65d425 create a metrics log reader for tests
Add parallel logs using the new format for the old MetricsLogger
calls. Deduplicate these after the new reader implementation is
complete.

Test: ./vendor/google/tools/systemui/systemui_test_cookbook.sh
Change-Id: If12e1b66b0ec5ac23bd65e44df4f3c6d6931e722
2017-01-18 23:38:22 -05:00
Jason Long
c100962d9c Add AUTO_FILL_MANAGE metrics action.
Test: Trivial change; adding enum.
Change-Id: Ic2c98385ea445b9ec68c66868f157cfd3dd92861
2017-01-18 18:35:25 -08:00
Fan Zhang
ad5dacc8cb Add metrics for full screen default app pickers.
Bug: 34280137
Test: compiles, and make RunSettingsRoboTests
Change-Id: Iac6723038fab05ddf7be7383ccf2b9bfac891071
2017-01-18 15:50:31 -08:00
Jason Monk
056e44947e Merge "resolve merge conflicts of 8cff199b09d6 to master" 2017-01-18 22:00:06 +00:00