297 Commits

Author SHA1 Message Date
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
Santos Cordon
84980c7a93 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
Merged-In: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
Change-Id: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
2016-12-22 23:26:49 +00:00
Santos Cordon
c7e853f511 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: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
2016-12-22 12:27:51 -08:00
Salvador Martinez
8eb4f62194 Added metrics constant for new dialog
SupportSystemInformationDialogFragment (phew)
needs a metrics constant.

Test: manual
Bug: 32462840
Change-Id: I2943b2537a54d3243759233f96522cd1bbdb5db9
2016-12-21 15:07:37 -08:00
Fan Zhang
074c4cb509 Add page view metrics for new paegs in Settings.
This does not increase log size, because they replace old Setting pages.

Bug: 33812754
Test: make framework
Change-Id: I17067c75d4dd5aa892c150963c92015ad0380cdd
2016-12-21 12:10:33 -08:00
Hugo Benichi
065acc5a6c DO NOT MERGE 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 pick from commit 74264329da5c52fbbafc1d20457056fdeabe19dc)

Change-Id: I74702938694fea9b573524d1a2ae3c20ce52b54d
2016-12-15 14:32:45 +09:00
Hugo Benichi
e1cbf15f1a 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
Change-Id: I31bd9b5562b94d62aac499f7174a3e115671bda8
2016-12-15 10:31:17 +09:00
TreeHugger Robot
7f5b5de5ae Merge changes I6cccd539,Ia66cabda
* changes:
  IP connectivity metrics: introduce ConnectStatistics and DNS statistics
  IP connectivity metrics: add transport field.
2016-12-08 07:07:04 +00:00
Chad Brubaker
811825a582 Add proto fields for READ_PHONE_NUMBER
Test: m
Change-Id: Ifc8c9eed3af6baa405714cda664cc9dc60969cb9
2016-12-07 11:05:03 -08:00
Mahaver Chopra
5026cabbe1 Merge "TRON variables for provisioning sessions" 2016-12-07 18:35:05 +00:00
Hugo Benichi
7c3a786921 IP connectivity metrics: introduce ConnectStatistics and DNS statistics
This patch introduces a ConnectStatistics message for collecting
Android devices connect() statistics.

It also changes DNS latency events to be grouped by (query_type,
query_return_value) to optimize space usage. For this purpose, a new
DNSLookupLatencies message is introduced and DNSLookupBatch is
deprecated. New counter fields are added for the number of queries,
and number of responses with A and AAAA records.

Test: manually taking a diff with reference ipconnectivity.proto
Bug: 32198976
Change-Id: I6cccd539d2c3d703f2d6eb0c56f54cdcc1631a6c
2016-12-06 11:56:23 +09:00
Hugo Benichi
807124a7f5 IP connectivity metrics: add transport field.
This patch adds a transport field dimension to IpConnectivityEvent for
replacing interface name, and eventually network ids.

At the moment the transport field is not populated.

Test: manually taking a diff against reference ipconnectivity.proto
Bug: 32198976
Change-Id: Ia66cabda0b08076c87dc83c4f6ff98581f750884
2016-12-06 11:56:23 +09:00
Mahaver
fa6566e4fb TRON variables for provisioning sessions
They are logged only once per provisioning session.

Test: NA

Bug: 33204472
Bug: 31425628
Change-Id: I480845bbb4e43b3f4395a9096fa7ef56ca2adce0
2016-12-05 17:21:10 +00:00
Adrian Roos
fd61f22210 DO NOT MERGE Show keyguard when SIM is removed
If the device has a secure lockscreen and the device'
SIM card is removed, lock the device.

Change-Id: I0369af81297169d65254b85bc9a056e4f4a02b7b
Merged-In: I5b0deea8851b38781059732a3cf6fa0a4a00e3ca
Fixes: 30997251
2016-12-01 22:49:50 +00:00
Adrian Roos
1cffe3c31f Show keyguard when SIM is removed
If the device has a secure lockscreen and the device'
SIM card is removed, lock the device.

Change-Id: I5b0deea8851b38781059732a3cf6fa0a4a00e3ca
Fixes: 30997251
Test: set up lock screen, insert SIM card, unlock phone, remove SIM card, observe that screen is locked
2016-12-01 09:40:38 -08:00
Philip P. Moltmann
0d8f4b75a5 Create actions for permission and log revokations
grants, denials and requests are logged in the package installer

Test: Revoked some permissions via settings and looked at event log.
Change-Id: I9a4ade82b68293f8aa9732c9ca288d37e9a7f611
2016-11-28 11:27:09 -08:00
Abodunrinwa Toki
1b304e4073 TRON logging for TextView gesture - Long press.
Bug: 32572232
Test: Manually confirmed that stats were sent for logging by checking
  adb logs according to go/tron-howto.
Change-Id: I1ea09174190247c219ce42f70c7db75148033685
2016-11-17 10:51:26 +00:00
TreeHugger Robot
5962992e27 Merge "add event type enum to proto def" 2016-11-15 14:35:43 +00:00
Chris Wren
5e334f6b53 add event type enum to proto def
Test: ./vendor/google/tools/systemui/systemui_test_cookbook.sh
Change-Id: Idc8b5b942caa566f533b76f6d834291a71cf0da7
2016-11-14 10:16:21 -05:00
Bartosz Fabianowski
48e696141f Add metrics constant for Enterprise Privacy Settings page
This CL adds a metrics constant for the Enterprise Privacy page in
the Settings app.

Test: None
BUG: 32692748
Change-Id: Ifd5429b7db6c2d85858ed4128a5fba4f788911ac
2016-11-14 13:21:02 +01:00
Stephen Chen
0d14da39c9 Document Subtype additions for ACTION_WIFI_CONNECT, ACTION_WIFI_OFF.
Bug: 32371451
Test: n/a
Change-Id: Ib4f0eb49242c9ec248f3e8931ff73d35c2cb1167
2016-11-03 10:44:32 -07:00
TreeHugger Robot
890eb4c6a3 Merge "Provisioning constants" 2016-10-28 16:16:05 +00:00
Mahaver Chopra
cc7176fa32 Provisioning constants
Happens once, when the device is provisioned. It shouldn't be more than
10 times in device's life.

Test: NA

Bug: 31425628
Bug: 32438787
Bug: 31423584
Bug: 32439982
Bug: 32474640

Change-Id: Ib69805a2ebae3396968b47ec1f4821b567afa0d7
2016-10-28 14:15:33 +01:00
Glen Kuhne
94814570e9 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

Bug: 32261442
Test: Builds, and existing Unit tests pass
Change-Id: Ia30391453e8d6614edc7f4397e9c17cfe95cf63e
2016-10-26 11:04:08 -07:00
Glen Kuhne
0719940ce4 Move ipconnectivity.proto to services-proto.jar
Moved ipconnectivity.proto from services.core.jar to
framework-protos.jar.
Replaced 'mergeFrom' MessageNano base class calls, with 'parseFrom'
IpConnectivityLog calls.

This solves an issue where the services.jar would conflict with
duplicate nano proto base class definitions in other .jars
(wifi-service.jar).

Bug: 32261442
Test: Existing unit tests pass
Change-Id: I49100935fcae2e85e12eaa7f3462864f3a340b97
2016-10-26 10:18:46 -07:00
Mahaver Chopra
667ae0adc2 Metrics constants for provisioning entry points
Added metrics variable to log provisioning entry points. Happens
once, when the device is provisioned. It shouldn't be more than
10 times in device's life.

Test: NA

Bug: 31424428
Bug: 31425628
Change-Id: I3ada95d5cfac0adf2aaa6433bc2669b989d2ba41
2016-10-19 11:40:29 +01:00
Salvador Martinez
64867c1986 added metrics constant to proto
Just adding a new constant to the proto
for the refactored bluetooth dialogs.

Test: Manual
Bug: 32180625
Change-Id: I7e59ea6abd65db777d48bd0f2927db7260c67965
2016-10-17 13:01:12 -07:00
Mahaver Chopra
ab28207cbc Provisioning extra constant
Added metrics variable to log provisioning extra.
Happens not more than 30 times, when the device is provisioned.
It shouldn't be more than 300 times in device's life.

Test: Not required

Bug: 31425014
Bug: 31425628
Change-Id: I99771677e64829fc75bdfbebc5817fe9f6fe6869
2016-10-07 13:09:40 +01:00
Mahaver Chopra
a12b487629 Provisioning action constant
Added mertrics variable to log provisioning action.
Happens only once, when the device is provisioned.
It shouldn't be more than 10 times for a device's life.

Test: Not required

Bug: 31425628
Bug: 31426356
Change-Id: I254f0232ede6338313084d123b0a06883b82c267
2016-10-05 17:14:52 +00:00
Mahaver Chopra
2b0efb0919 Provisioning Network type constant
Added mertrics variable to network type used while provisioning.
Happens only once, when the device is provisioned.
It shouldn't be more than 10 times for a device's life.

Test: Not required

Bug: 31425625
Bug: 31425628

Change-Id: I5eccbda7ffd93f1bcceb37b8d485895598fa59a8
2016-10-05 18:11:11 +01:00
Fan Zhang
04c2035989 Add metrics constant for dialogs in Settings.
Bug: 31707295
Test: make frameworks
Change-Id: I79386bcddba959c7bf655f0659d89650b87e8a92
2016-09-23 13:02:35 -07:00
Fan Zhang
5e9f69c65e Add metrics constants for DialogCreatable in Settings.
Bug: 30681529
Test: adb logcat -b events | egrep "(sysui_|notification_)"
Change-Id: Ibc6f7eef45f6d49603ffaa1de30dd15ba36de02d
2016-09-21 16:07:16 -07:00
Fan Zhang
c1352ae856 Add metrics for Setting dialogs.
Bug: 30681529
Test: adb logcat -b events | egrep "(sysui_|notification_)"
Change-Id: I0d1bb103e7d90838af194754bd9564e5a138dfe3
2016-09-19 17:14:34 -07:00
Mahaver Chopra
a9a7932982 Add metrics constant for Managed provisioning
Add metric constants to track time taken by each activity. Update
metric constant used for DPC installer. These will be logged from
Managed provisioning.

Bug:31425628
Bug:31425755
Change-Id: I6ba966720375b6710f880114395c1c84e244b3f6
2016-09-15 11:01:26 +01:00
Fan Zhang
9509418250 Add metrics for some setting dialogs.
Bug: 30681529
Test: make framework builds successfully
Change-Id: I796cae6646dc42183c6502fc393dd44f174ee73f
2016-09-14 13:10:50 -07:00
Fan Zhang
3bf54dd64e Add metrics for Settings dialogs.
Bug: 30681529
Change-Id: I75f1f83f0c35507025dc2a4b207f3ef1a65e575e
Test: make frameworks
2016-09-13 11:31:20 -07:00
Mahaver Chopra
c8c97c2d10 Add metrics constant for Managed provisioning
Add metric constants to track DPC package name and DPC Installed from
play or not. These will be logged from Managed provisioning.

Bug: 31425628
Bug: 31426019
Change-Id: Ifc9a10d428a40006abfbab35ea455f95c02a14de
2016-09-12 16:58:48 +01:00
Doris Ling
319c806cc0 Add metrics logging for Settings -> Help & Feedback
Add new metrics event constant for Settings->Help & Feedback, and log it
whenever user selects the help option menu, passing the context extra for
the corresponding settings preference where the help menu is launched.

Change-Id: I971e8e50b959a5451ed085e5da5fd8504111e6c3
Fixes: 30140281
2016-08-23 14:49:15 -07:00