524 Commits

Author SHA1 Message Date
Tobias Thierer
12afc7fd7e Merge "Pin jarjar targets to java_version 1.8." am: 2bbf12aa78 am: 3f48e86917
am: be3a10993f

Change-Id: Ib098b09674edb62f5a27be70f4c3be911a7e0cf6
2018-02-07 03:34:16 +00:00
Tobias Thierer
be3a10993f Merge "Pin jarjar targets to java_version 1.8." am: 2bbf12aa78
am: 3f48e86917

Change-Id: I16ada1b29290bebda757b8f4fae457e27c249469
2018-02-07 01:35:14 +00:00
Julia Reynolds
8b46ef2feb Add logging for output chooser.
Show, hide, connect, and disconnect

Test: compare eventlog to action history
Fixes: 72999809
Change-Id: I545916c66b82703eb769b3264a7e920dde9c40ee
2018-02-06 16:15:12 -05:00
Michael Wright
98bdc51620 Add metrics constants for new settings screens.
Bug: 64185329
Test: manual
Change-Id: I7147f17c9d5edb3a94c2e63d5acc1e655afbac3a
2018-02-06 16:39:53 +00:00
Tobias Thierer
d65595a94e Pin jarjar targets to java_version 1.8.
This CL pins the following make targets to java_version 1.8,
which is currently the default:
  framework-protos
  repackaged.android.test.base
  repackaged.android.test.mock
  repackaged.android.test.runner

For consistency, their dependencies,
  android.test.base
  android.test.mock
  android.test.runner
which contain .java source files, are also pinned to 1.8.

This is so that the two steps:
 a) update jarjar to support v53 class files
 b) support -target 1.9 in the rest of the toolchain
can be completed in any order, in future CLs. Before this CL,
they would have needed to be completed in order a), b).

Bug: 72703434
Test: EXPERIMENTAL_USE_OPENJDK9=true USE_R8=true make checkbuild docs
      (in a client where CL http://r.android.com/596874 was reverted)

Change-Id: If78067294ae7ab78997aa109b0e08be427bdf0b8
2018-02-05 21:14:24 +00:00
Ningyuan Wang
7288633236 Add metric num_connectivity_oneshot_scans
Bug: 67782437
Test: compile, unit tests

Change-Id: If4b0b1644442eb095e6d4d078dc7d365b12dce18
2018-01-31 17:36:43 -08:00
Jerry Zhang
7914797d02 Fix build breakage caused by proto conflict
Two proto constants were merged at the same time,
causing a conflict.

Test: none
Change-Id: If429fc28d8f2c37c19945a7cffe1147770ea447d
2018-02-01 00:13:15 +00:00
Jerry Zhang
5f2a4ef763 Merge changes from topic "UsbManager-changes"
* changes:
  Usb changes and strings for connected devices 2.0
  Refactor and clean up USB, add tests
2018-01-31 23:41:32 +00:00
TreeHugger Robot
2f74f16bcc Merge "Add alarm tile to QS." 2018-01-31 22:16:39 +00:00
TreeHugger Robot
f46ac618bc Merge "Wifi power stats proto" 2018-01-31 22:00:33 +00:00
Jerry Zhang
28b6fc9c25 Usb changes and strings for connected devices 2.0
New metrics constant and usb strings for the new
notification / details page.

Bug: 69333961
Test: Check notification
Change-Id: If9bde7f787e40e42bb991a99b032e1ff968a0a41
2018-01-31 11:40:53 -08:00
Amin Shaikh
4bd8e05c1d Add alarm tile to QS.
- Add an alarm tile to QS
- Add the tile to QS the first time the user creates an alarm
- Tapping on the tile navigates to alarm settings
- Added unit tests for alarm tile
- Updated AutoAddTracker to remove deprecated shared preferences values
so the keys can be removed in a later release

Bug: 70799533
Test: manual testing the alarm QS tile behavior
Change-Id: I2b10468c41b4720b66c9e7bb32e22eb958c199f7
2018-01-31 14:38:23 -05:00
TreeHugger Robot
d7e0860b43 Merge "Re-added support for deprecated BIND_AUTOFILL permission." 2018-01-31 03:20:10 +00:00
Felipe Leme
87b7f8f1b8 Re-added support for deprecated BIND_AUTOFILL permission.
This permission was renamed during the O previews but it was supported on the
final O release, so we need to carry it over.

Test: atest CtsAutoFillServiceTestCases
Bug: 70682223

Change-Id: I2b3d798fe9c09751138f154e6e69e6af6b60dbb1
2018-01-30 12:28:19 -08:00
Siddharth Ray
d679a767b4 GPS power metrics
Power metrics is added to GPS metrics

BUG:72383800

Test: Manual
Change-Id: I6b01c04984b750c6e079e26b2ad4730d647be382
2018-01-30 10:12:15 -08:00
Siddharth Ray
ac8b69a715 Wifi power stats proto
Wifi power stats added to metrics proto.

BUG:72383800

Test: Manual
Change-Id: I42a04c7d27922d2b9ced534a48c90e65d3517323
2018-01-29 16:49:48 -08:00
Mike Digman
5fd366e07c Merge "Log rotation suggestion events in SystemUI" 2018-01-25 19:00:08 +00:00
TreeHugger Robot
83e2e71152 Merge "Fixed AUTOFILL_SERVICE_DISABLED_APP and AUTOFILL_SERVICE_DISABLED_ACTIVITY." 2018-01-25 16:15:29 +00:00
Mehdi Alizadeh
f5a44fafbe Adds SystemMessage for CarrierNetworkNotification
Adds a separate field in SystemMessage class for Carrier Network
Notification, to be able to differentiate between Carrier and Open
network notifications in case we have both notifications at the same
time.

Bug: 69310016
Test: Builds successfully
Change-Id: I5c4f40640a924e39cf4c6a33825afcc1a5c9d4f9
2018-01-25 02:38:33 +00:00
Pankaj Kanwar
43a3671a42 Merge "Metrics wifi.proto for connected wifi score" into oc-mr1-dev
am: e2bc2efe3c

Change-Id: Ie1366ad3364176dce6a5f7b5a78a19b7806030cd
2018-01-24 23:14:30 +00:00
Pankaj Kanwar
e2bc2efe3c Merge "Metrics wifi.proto for connected wifi score" into oc-mr1-dev 2018-01-24 23:02:22 +00:00
Felipe Leme
463b307de8 Fixed AUTOFILL_SERVICE_DISABLED_APP and AUTOFILL_SERVICE_DISABLED_ACTIVITY.
These metric were using the RESERVED_FOR_LOGBUILDER_COUNTER and hence were not
being picked up.

Bug: 71863561

Test:  adb shell logcat -b events | grep sysui | egrep '(1231|1232)'

Change-Id: I34136ac3423e819b37fc3c14c1821171af1868d9
2018-01-24 13:18:19 -08:00
Mike Digman
c94759d898 Log rotation suggestion events in SystemUI
Also use non-static MetricsLogger calls
Test: manual

Change-Id: Ib32b1320934698b98103d7fa5f4929d8247a43f6
2018-01-24 10:43:40 -08:00
Felipe Leme
e53c1a1b6b Merge "Fixed AUTOFILL_UI_LATENCY metric." into oc-mr1-dev am: 5e687224bd
am: 2418109cf1

Change-Id: I3d8b0e3b785d8427dc6bca9168e7a4b7553cb22f
2018-01-24 18:31:55 +00:00
Felipe Leme
2418109cf1 Merge "Fixed AUTOFILL_UI_LATENCY metric." into oc-mr1-dev
am: 5e687224bd

Change-Id: I23817abcefde8700c101b756ee6a39d153ea7af5
2018-01-24 18:23:48 +00:00
TreeHugger Robot
5e687224bd Merge "Fixed AUTOFILL_UI_LATENCY metric." into oc-mr1-dev 2018-01-24 18:13:25 +00:00
Beverly
92c2568b55 Putting ZenModePanel xml resources to SettingsLib
Move resources for ZenModePanel to SettingsLib for new
EnableZenModeDialog in settings

Test: runtest -x /extra/master/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ZenModePanelTest.java
Bug: 63077372
Change-Id: Iea9060b063ccfb807b39affcdac29d12420bd93b
2018-01-23 11:19:43 -05:00
Michael Plass
1b8fe6ef73 Metrics wifi.proto for connected wifi score
(cherry picked from commit bb367b689605d0ca3641984b4d59bbe13e6861df)

Bug: 67429363
Bug: 71708302
Test: Wifi unit tests

Change-Id: I2993a02e7b3199c2b50dc2ddb7704fc5b6364025
Merged-In: I315613b8ea3aa1d02810ae376c76083d80865d31
2018-01-19 21:06:40 +00:00
Lei Yu
0013162ebe Merge "Add metric for restricted app detail page" 2018-01-19 20:47:52 +00:00
TreeHugger Robot
4852106787 Merge "Renamed Setting's Directory Access constants." 2018-01-19 15:41:20 +00:00
Jeff Sharkey
2e4714575f Alert user on rapid/heavy data usage.
Now that we have accurate information about a user's carrier data
plan, we can alert them if the current usage patterns would end up
with a nasty surprise towards the end of the current billing cycle.

For example, a single abusive app could use 90% of the user's budget
within the first few days of a billing cycle, leaving the user to
limp along for the remainder of the month.

The simple algorithm here extrapolates to see if the average usage
over the last 4 days would be more than 150% of the data limit for
the full billing cycle.  This period is short enough to catch rapid
recent usage, but long enough to smooth over short-term habit
changes, such as a weekend getaway.  This was chosen after
backtesting the proposed algorithm against real-world data usage
from a handful of internal users.

Fix NPMS unit tests, and write new ones, but leave the existing
@Ignored annotation intact for now.

Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Bug: 64133169
Change-Id: I0d394b133257e8569a9aa2631b57638839d870ce
2018-01-19 18:18:51 +09:00
jackqdyulei
d9821247df Add metric for restricted app detail page
Bug: 71502850
Test: Build
Change-Id: I8f57b11ba8f86bc36c0f64190d070e0640fde264
2018-01-18 20:33:17 -08:00
Felipe Leme
b659adb3f3 Fixed AUTOFILL_UI_LATENCY metric.
This metric was using the RESERVED_FOR_LOGBUILDER_COUNTER and hence was not
being picked up.

Bug: 71863561
Fixes: 72175011

Test: adb shell logcat -b events | grep sysui | grep 1136
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Change-Id: I34f701ff5336a413477fd14172d16d8d1e5403ad
2018-01-18 15:34:59 -08:00
Felipe Leme
3e09911460 Renamed Setting's Directory Access constants.
Bug: 63720392
Test: in TreeHugger we trust

Change-Id: I4ca051e00ed9eced4c771f73273c9bdf12166de2
2018-01-18 14:59:40 -08:00
Felipe Leme
12e15cc6ed Created hidden constants and metrics for ScopedAccessProvider.
Test: echo 'Not yet!'
Bug: 63720392

Change-Id: I811cde225fdcf5271fda9b357da742e408de0627
2018-01-16 09:28:44 -08:00
Alison Cichowlas
a2cd19e3d1 Screenshot global actions item.
Refactor TakeScreenshot code out of PhoneWindowManager;
add power menu item for Screenshot.

Test: runtest systemui

Change-Id: Ie8602386cd59f8fd991369d2117f7c4d76f65e41
2018-01-12 17:30:41 -05:00
jackqdyulei
7d36b38690 Add metric for anomaly detection
ACTION_APP_STOP_AND_BACKGROUND_CHECK
FIELD_ANOMALY_ACTION_TYPE
ANOMALY_TYPE_WAKELOCK
ANOMALY_TYPE_WAKEUP_ALARM
ANOMALY_TYPE_UNOPTIMIZED_BT

Bug: 68215016
Test: Build
Merged-In: I66f0465a3b89713060948af31c370e9ac894e0ff
Change-Id: I66f0465a3b89713060948af31c370e9ac894e0ff
2018-01-09 19:15:58 -08:00
jackqdyulei
e04138d6fb Add metric for Smart battery page.
Bug: 71502850
Test: Build
Change-Id: I08082b96f0bae1472db1f13ef89488fb08be21b7
2018-01-08 17:51:57 -08:00
Pankaj Kanwar
57f0dbd8cc Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev
am: 4689a6d979

Change-Id: I190f53b2d8aa4202a9f20f3831581414185962d3
2018-01-04 01:10:55 +00:00
Pankaj Kanwar
4689a6d979 Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev 2018-01-04 01:03:27 +00:00
Malcolm Chen
e406983505 Merge "Add MetricsEvent ENUMS for "Mobile network" preferences." am: e4e5291743
am: 675839f0fa

Change-Id: Ie4f70a3e95fe96d9b82488affa226d724a4e4278
2017-12-23 00:59:00 +00:00
Malcolm Chen
917b51fda7 Add MetricsEvent ENUMS for "Mobile network" preferences.
Bug: 34775714
Test: Manual
Change-Id: I71645de4f07d10c6c3772a6fef119dbdec2db8ef
Merged-In: I71645de4f07d10c6c3772a6fef119dbdec2db8ef
2017-12-22 23:18:59 +00:00
Jerry Zhang
18be8db4dd Add USB config constants to metrics proto
Bug: 69809992
Test: manual
Change-Id: I44ac963382afd0e6ca33541a55233b5a38dfaa05
2017-12-20 22:00:10 +00:00
TreeHugger Robot
175b009204 Merge "Add Wifi Wake notification ids to system messages" 2017-12-08 21:12:06 +00:00
Felipe Leme
7c3716792a Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-mr1-dev
am: 613d0cd8fb

Change-Id: Iee0adf135a684e5338250628f35b754a3e69b3d0
2017-12-08 18:18:49 +00:00
Felipe Leme
5e04720ca7 Autofill metrics improvements:
* Added new metrics:
  - AUTOFILL_USERDATA_UPDATED
  - AUTOFILL_FIELD_CLASSIFICATION_MATCHES
  - FIELD_AUTOFILL_MATCH_SCORE
  - FIELD_AUTOFILL_NUM_FIELD_CLASSIFICATION_IDS
* Fixed how FIELD_CLASS_NAME is set for AUTOFILL_SERVICE_DISABLED_ACTIVITY
* Added extra info on some existing metrics:
  - FIELD_FLAGS on AUTOFILL_SESSION_STARTED
  - TYPE_CLOSE on AUTOFILL_REQUEST to indicate a null response from service
  - FIELD_AUTOFILL_NUM_FIELD_CLASSIFICATION_IDS on AUTOFILL_REQUEST to indicate the number of ids in a
    field classfification request

Bug: 70241978
Test: verified output of 'adb shell logcat -b events | grep sysui' while
      running CTS tests associated with the changes

Change-Id: I05d8d0325e9b338dd3d874e5b95a08cedf4b271c
2017-12-07 18:00:04 -08:00
Felipe Leme
23e61a9086 Make sure apps cannot forge package name on AssistStructure used for Autofill.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.VirtualContainerActivityTest#testAppCannotFakePackageName
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 69981710

Change-Id: Id6036cddb51dd8dd0c9128b7212d573f630d693f
Merged-In: Id6036cddb51dd8dd0c9128b7212d573f630d693f
2017-12-07 10:04:56 -08:00
Felipe Leme
637e05ee0f Further improvements when app forges package info for autofill:
- Dont create a session if the component is not owned by the calling UID.
- Log metrics for forged attempts.
- Avoid possible NPEs on AutofillManager when context or client is null.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.VirtualContainerActivityTest#testAppCannotFakePackageName
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 69981710

Change-Id: I9695bc046f3eb8aeecfe44f80fd0366f68b2c635
2017-12-06 16:58:13 -08:00
Beverly
bf16c14cbf Automatic zen rules are always priority only
- Default automatic rules are priority only
- Existing user-created rules will be changed to priority only
- New user-created rules will always be priority only
- Metrics for new dialogs and zen preference controllers

Test: manual
Bug: 63077372
Change-Id: I8694d10ebdfa67ba96f4936c74eae17b450e32af
2017-12-06 09:28:39 -05:00
Fan Zhang
5235c05931 Add logging constant for screen lock settings
Bug: 32953042
Test: manual
Change-Id: Ic6b38e6bab9f7d99e979a8e8fb7ca03883e920d0
2017-12-05 13:49:35 -08:00