184 Commits

Author SHA1 Message Date
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
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
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
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
Jason Monk
e7beaf3efa resolve merge conflicts of 8cff199b09d6 to master
Change-Id: Ie61ca1bb88eadff30599c1776201482173479183
2017-01-18 15:09:42 -05:00
Jason Monk
8cff199b09 resolve merge conflicts of 54bce9c6ff1f to nyc-mr2-dev-plus-aosp
Change-Id: Ifaea1d0f58ea81a7d929dc891fe69c8d7c15af4e
2017-01-18 13:45:59 -05:00
Anas Karbila
f7648f4483 SystemUI: Add NFC tile
This patch adds a tile for QuickSettings
which controls the setting of NFC.

The drawable is from material.io.

Test: Enable and disable NFC using tile

Change-Id: I7dfaf3a4dca0c01d24be397e43ab131eb9885f62
Signed-off-by: Anas Karbila <anaskarbila@aospa.co>
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2017-01-18 12:12:03 +00:00
Fyodor Kupolov
7423ffc9ce Tron metrics for special permissions
Added tron metrics for the following special permissions:
Battery optimisation
 - APP_SPECIAL_PERMISSION_BATTERY_ALLOW
 - APP_SPECIAL_PERMISSION_BATTERY_DENY
Device administrators
 - APP_SPECIAL_PERMISSION_ADMIN_ALLOW (when checked)
 - APP_SPECIAL_PERMISSION_ADMIN_DENY (when unchecked)
Do not disturb access
 - APP_SPECIAL_PERMISSION_DND_ALLOW
 - APP_SPECIAL_PERMISSION_DND_DENY
Daw over other apps
 - APP_SPECIAL_PERMISSION_APPDRAW_ALLOW
 - APP_SPECIAL_PERMISSION_APPDRAW_DENY
VR helper services
 - APP_SPECIAL_PERMISSION_VRHELPER_ALLOW
 - APP_SPECIAL_PERMISSION_VRHELPER_DENY
Modify system settings
 - APP_SPECIAL_PERMISSION_SETTINGS_CHANGE_ALLOW
 - APP_SPECIAL_PERMISSION_SETTINGS_CHANGE_DENY
Notification access
 - APP_SPECIAL_PERMISSION_NOTIVIEW_ALLOW
 - APP_SPECIAL_PERMISSION_NOTIVIEW_DENY
Premium SMS access
 - APP_SPECIAL_PERMISSION_PREMIUM_SMS_ALWAYS_ALLOW
 - APP_SPECIAL_PERMISSION_PREMIUM_SMS_ASK
 - APP_SPECIAL_PERMISSION_PREMIUM_SMS_DENY
Unrestricted data access
 - APP_SPECIAL_PERMISSION_UNL_DATA_ALLOW
 - APP_SPECIAL_PERMISSION_UNL_DATA_DENY
Usage access
APP_SPECIAL_PERMISSION_USAGE_VIEW_ALLOW
APP_SPECIAL_PERMISSION_USAGE_VIEW_DENY

Test: Manual
Bug: 31008660
Change-Id: I296af46d1c913d4cf475d4705412d69a182ca1a6
2017-01-13 15:22:53 -08:00
Chris Wren
99a16ab0ec Create a global registry for system message IDs
am: 117d5b4f28

Change-Id: Iaa792c9dbffaae807bdf0a8cfb30e66aecb442d6
2017-01-12 21:23:11 +00:00
Fan Zhang
945deea836 Add logging constants for Settings search screen
Bug: 34204146
Test: RunSettingsRoboTests
Test: compile framework
Change-Id: I1c462cda4c3a1973ac05de300231b0939dba0b3c
2017-01-11 16:37:49 -08:00
Alison Cichowlas
0f642d2709 Merge "Add a required main category for multi logs." 2017-01-11 17:54:13 +00:00
Santos Cordon
e89ba5222c Merge "Add Brightness setting for VR Mode." 2017-01-11 03:02:02 +00:00
Santos Cordon
3107d29c8f Add Brightness setting for VR Mode.
This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Test: runtests frameworks-core
Test: Turn vr mode on and change brightness (should remain separate from
normal brightness)

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
2017-01-10 17:16:04 -08:00
Hugo Benichi
353cad6d31 Merge "ipconnectivity.proto: change Transport to LinkLayer" 2017-01-11 00:49:59 +00:00
Alison Cichowlas
5cc5d8a3e9 Add a required main category for multi logs.
Test: updated LogBuilderTest

Change-Id: Ia5359e12a7a84af31d9a966f2c81fc943aadfbdb
2017-01-10 18:44:09 -05:00
Santos Cordon
d6a5660a2c Add Brightness setting for VR Mode.
This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
2017-01-09 17:33:14 -08:00
Salvador Martinez
c43ab06d0c Add new metric for skipping disclaimer in support request
Needed a new action for when the user chooses to skip
displaying the support disclaimer in future requests
for support.

Test: Is logging change
Bug: 33414180
Change-Id: I685a539c33d1c51fcc77385726cab0a3b3ca47ff
2017-01-09 10:04:53 -08:00
Alison Cichowlas
0f961084ce Merge "Log wrapper for multi-metrics in tron." 2017-01-09 16:39:04 +00:00
Alison Cichowlas
803054dccb Log wrapper for multi-metrics in tron.
Test: Added new LogBuilderTest; runtest --path frameworks/base/core/tests/coretests/src/com/android/internal/logging/LogBuilderTest.java

new file:   core/java/com/android/internal/logging/LogWrapper.java

Change-Id: I8c64a07b95ab9a70f39663d4ec54f9ec1bf49063
2017-01-06 20:24:16 -05:00
Chris Wren
117d5b4f28 Create a global registry for system message IDs
Port all system UI notifications to use the registry.  Retain stable
integer IDs where they exist. Assign new stable IDs where resource IDs
were previously used.

Using "message" rather than "notification" since we may eventually
want to include dialogs and toasts.

Bug: 32584866
Bug: 30995038
Test: runtest systemui
Change-Id: Iec4d7cebbd88683e339ada29a279315222699942
(cherry picked from commit 5e6c0ffd3e91cf0c5872de3e2d99e225ad1468f4)
2017-01-06 11:34:22 -08:00
Chris Wren
5e6c0ffd3e Create a global registry for system message IDs
Port all system UI notifications to use the registry.  Retain stable
integer IDs where they exist. Assign new stable IDs where resource IDs
were previously used.

Using "message" rather than "notification" since we may eventually
want to include dialogs and toasts.

Bug: 32584866
Bug: 30995038
Test: runtest systemui
Change-Id: Iec4d7cebbd88683e339ada29a279315222699942
2017-01-06 09:22:02 -05:00
Hugo Benichi
4e89a02629 ipconnectivity.proto: change Transport to LinkLayer
... to clarify ambiguities about the purpose and goal of the
LinkLayer/Transport enum.

This renaming is safe because at the moment there is no reader or
writer of this field anywhere in google3 or android.

Test: $ runtest frameworks-net
Change-Id: I6775cc2df3438d3bd8609a86ed1f4b4bf6296816
2017-01-05 17:10:36 +09:00
Selim Cinek
966045d070 DO NOT MERGE Revert "Add Brightness setting for VR Mode."
This reverts commit 84980c7a93e93e7134c0198212e222e11eb5ccbd.

Bug: 33895226
Bug: 30984614
Change-Id: I2652e77512bc870190e2172a629abac9341b2c4f
2016-12-27 18:28:40 +00:00
Ian Pedowitz
7e96654f1b Revert "Add Brightness setting for VR Mode."
This reverts commit c7e853f51110b9b6893d526f1f7340b2966f928a.

Bug: 33895226
Bug: 30984614
Change-Id: Icca320e02651b7dd7b8db84ab414f41edee32760
2016-12-27 18:28:36 +00:00