358679 Commits

Author SHA1 Message Date
Bill Yi
23da8b8841 Import translations. DO NOT MERGE
Change-Id: I95c6bf2f313eaf6675a881dd8574b66239cefceb
Auto-generated-cl: translation import
2018-02-12 12:29:13 -08:00
Bookatz
66fe06183f Statsd Anomaly Detection fixes
Minor fixes and notes regarding the setting of refractory periods and
anomaly alarms.
Also changes the anomaly alarms from inexact to exact.

Test: run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.alert.AnomalyDetectionTests
Change-Id: Ia4f4c84dd647ebbbad4bab66164cd7709f8628e8
2018-02-12 12:28:47 -08:00
Jordan Liu
de387f3298 Merge "Overload setTelephonyProperty without phone ID" am: f27242dbd6
am: 22189a729a

Change-Id: I9d8182751f5303258083e0b0d0825902d06225d1
2018-02-12 20:19:37 +00:00
Bill Yi
a6b45ab33b Import translations. DO NOT MERGE
Change-Id: I36d9cf50118ac8babed3973b1b23f59695433e70
Auto-generated-cl: translation import
2018-02-12 12:13:10 -08:00
Jack Yu
5424174152 Added owners
Test: Build
Change-Id: I95104f646bc054e4ad9a6807d6e3df69f1e00d75
2018-02-12 12:07:34 -08:00
Jordan Liu
22189a729a Merge "Overload setTelephonyProperty without phone ID"
am: f27242dbd6

Change-Id: I75fdeb6067b2917899f8b54d3e2857beb5d13c52
2018-02-12 20:06:06 +00:00
TreeHugger Robot
e8cf6110ae Merge "Statsd CPU optimization." 2018-02-12 19:53:56 +00:00
TreeHugger Robot
6b83824afa Merge "Move SignalDrawable to SettingsLib so every can enjoy it" 2018-02-12 19:49:29 +00:00
TreeHugger Robot
8dddeb98f5 Merge "Revert "Fix issue #72116995: Add permission guarding Service#startForeground"" 2018-02-12 19:47:35 +00:00
Eino-Ville Talvala
601e0f6d76 Camera2: Revise MOTION_TRACKING capability
Simplify the API for the P release.

Test: Revised Camera CTS passes
Bug: 63629224
Change-Id: I3464bd114a2bf4bd866aaf37e942c01114b75a15
2018-02-12 11:29:10 -08:00
felipeal
059bce9669 Views with autofill hints should be considered important in auto mode.
Test: atest CtsAutoFillServiceTestCases:FatActivityTest

Fixes: 72836107

Change-Id: I0b68cd5f5e8b0c382bdd7a648ecc82a3c50c3325
2018-02-12 11:17:24 -08:00
TreeHugger Robot
e848e106b6 Merge "Revert incorrect NonNull assertions in ColorStateList loading" 2018-02-12 19:17:14 +00:00
Phil Weaver
4ed5e98f82 Simplify volume dialog title for a11y
The dialog was asked to essentially self-voice its
transitions a couple of years back. This isn't consistent
with our general guidelines for a11y, and isn't easy to
support. Rather than updating the messages, which will
still leave this dialog inconsistent with others, I'm
just deleting the extra code.

Just setting the dialog's title to the correct string is
enough for GAR, so I've added that back in.

Bug: 73170352
Test: Confirming with TestBack that the correct title is
sent to accessibility services when the window appears.

Change-Id: If219f86e43fa262604a09226a02bdd4c08ae4c1a
2018-02-12 11:13:52 -08:00
TreeHugger Robot
de9d31b4a6 Merge "Add performance tests for Service" 2018-02-12 19:06:00 +00:00
TreeHugger Robot
ec053e07c1 Merge "New autofill APIs to get importantForAutofill mode on ViewNodes." 2018-02-12 19:04:42 +00:00
Yao Chen
8a8d16ceea Statsd CPU optimization.
The key change is to revamp how we parse/store/match a log event, especially how we match repeated
field and attribution nodes, and how we construct dimensions and compare them.

+ We use a integer to encode the field of a log element. And also encode the FieldMatcher into an
integer and a bit mask. The log matching becomes 2 integer operations.

+ Dimension is stored as encoded field and value pair. Checking if 2 dimensions are equal is then
  becoming checking if the underlying integers are equal. The integers are stored contiguously
  in memory, so it's much faster than previous tree structure.

Start review from FieldValue.h

Test: statsd_test + new unit tests

Bug: 72659059

Change-Id: Iec8daeacdd3f39ab297c10ab9cd7b710a9c42e86
2018-02-12 10:38:45 -08:00
Tao Bao
cbc4d36dcc Merge "Expose an update_engine API that verifies the given payload metadata." 2018-02-12 18:36:47 +00:00
TreeHugger Robot
d3905e6544 Merge "Fix issue #72151749: Lock down 'clear cache' functionality to..." 2018-02-12 18:19:38 +00:00
Julia Reynolds
c65656ae7d Do not show blocking helper if user likes channel
If a user has previously explicitly set the importance of
a notification, assume the user sentiment is postive regardless of what
the assistant suggests.

Test: runtest systemui,  runtest systemui-notification
Change-Id: I646f0878fb5bb2a28ba17fd0ec11c8cdb64b611d
Fixes: 73231297
2018-02-12 13:18:38 -05:00
Jordan Liu
f27242dbd6 Merge "Overload setTelephonyProperty without phone ID" 2018-02-12 18:17:24 +00:00
Sunny Goyal
8b361d918e Adding utility method to check the current home app
Test: Verified the libary with Launcher
Change-Id: I37c0c0a6c74484e6a34497168d841e4a92207b5b
2018-02-12 10:16:13 -08:00
TreeHugger Robot
b05edfe1ab Merge "Add more APIs to hidden API greylist" 2018-02-12 18:15:36 +00:00
Chavi Weingarten
44c165752b Merge "Prevent setting negative alpha for dim animations." 2018-02-12 18:01:21 +00:00
TreeHugger Robot
ffbc821046 Merge "Revert "Revert "Fix MediaDrm security level APIs""" 2018-02-12 17:55:50 +00:00
Beverly Tai
df210b4369 Merge "Added DND icon on muted streams on volume dialog" 2018-02-12 17:41:26 +00:00
Leon Scroggins III
ac9c8f7c1e Revert "Use ImageDecoder for NinePatchDrawable and BitmapDrawable"
Test: CTS tests

This reverts commit 5aec67ca1baaa5ce7af5062cec0437a72969d2f9.

Reason for revert: b/73166619

Bug: 73166619
Change-Id: Ic8b2a83abf5567119c8b6af1ec00445a5a6a9cc2
2018-02-12 12:36:49 -05:00
Arthur Eubanks
20a29576ef Add performance tests for Service
Test: m ActivityManagerPerfTestsTestApp ActivityManagerPerfTests
Test: adb install \
$OUT/data/app/ActivityManagerPerfTestsTestApp/ActivityManagerPerfTestsTestApp.apk
Test: adb install \
$OUT/data/app/ActivityManagerPerfTests/ActivityManagerPerfTests.apk
Test: adb shell am instrument -w -e class \
com.android.frameworks.perftests.am.tests.ServiceStartPerfTest \
com.android.frameworks.perftests.amtests/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -w -e class \
com.android.frameworks.perftests.am.tests.ServiceBindPerfTest \
com.android.frameworks.perftests.amtests/android.support.test.runner.AndroidJUnitRunner

BUG: 67460485

Change-Id: I16ea5752def13aabd481aeb29f1af0ac04e75f6a
2018-02-12 09:11:35 -08:00
Wyatt Riley
46304584a5 Merge "Non-functional refactor of Location Extras" 2018-02-12 17:01:10 +00:00
David Brazdil
70bcc12021 Add more APIs to hidden API greylist
APIs seen in use by common apps.

Bug: 73211878
Bug: 73211350
Bug: 73211163
Bug: 73211208
Bug: 73103890
Bug: 73103761
Test: make
Change-Id: Ic438f4614f6452b14ea07f4c35b39d3be34ff49d
2018-02-12 16:36:28 +00:00
Beverly
796282accb Use activity-alias to show usb debugging dialog
Test: UsbTest in cts verifier
Change-Id: Ib5b6db7175093cc55fadf6c063baa7e6eea71608
Fixes: 73152503
2018-02-12 11:26:29 -05:00
Ian Pedowitz
0b4add68db Revert "Fix issue #72116995: Add permission guarding Service#startForeground"
This reverts commit a9da85fde4675ed0b03557e448b1cc67f1d391fe.

Reason for revert: b/73224471

Bug: 73224471
Bug: 72116995
Change-Id: I1485305f40d47fdb138cb1e484c329cf20892a6b
2018-02-12 16:12:33 +00:00
hansson
90f285ba51 Merge "CtsShim: build tweaks for 64-bit only builds." am: a869d14343 am: a4428dc5e4
am: 60108dce1c

Change-Id: Ifc575a70b4b2fda3155353c78239a35220cf4b7d
2018-02-12 15:23:27 +00:00
Neil Fuller
d93e8866a3 Merge "Add support for time zone notifications" 2018-02-12 15:14:49 +00:00
hansson
60108dce1c Merge "CtsShim: build tweaks for 64-bit only builds." am: a869d14343
am: a4428dc5e4

Change-Id: I7e9db0098aeb6069dcd1f048a0cd6f690c947815
2018-02-12 15:10:22 +00:00
hansson
a4428dc5e4 Merge "CtsShim: build tweaks for 64-bit only builds."
am: a869d14343

Change-Id: I49f0696119d1aa52e420fa7c676a448d569ea941
2018-02-12 14:57:46 +00:00
TreeHugger Robot
9036a88d95 Merge "Logging for linkify selections" 2018-02-12 14:44:35 +00:00
Beverly
da0fe825a4 Added DND icon on muted streams on volume dialog
Now users cannot toggle off dnd from the volume dialog
since the ringer (volume footer) will be disabled if it's muted by dnd

Test: manual
Change-Id: I7d4dd552e0f791ee52135272d8d0837899abe152
Fixes: 72711020
2018-02-12 09:14:23 -05:00
TreeHugger Robot
d591904d1d Merge "Fix size of parcelled TextClassification icons." 2018-02-12 12:17:58 +00:00
TreeHugger Robot
f62b1d36df Merge "More unit tests for PerformBackupTask" 2018-02-12 11:07:51 +00:00
Narayan Kamath
bdaea11bf8 Merge "WallpaperCropper: Remove dependency on telephony-common." 2018-02-12 10:59:06 +00:00
hansson
a869d14343 Merge "CtsShim: build tweaks for 64-bit only builds." 2018-02-12 10:48:30 +00:00
James Lemieux
5c50dc11b8 Use external/robolectric-shadows/run_robotests.mk
This allows SettingsLib to test against the latest framework changes.

Also replaced TestConfig with traditional robolectric.properties.

Also reworked the test runner to avoid using deprecated API.

Bug: 73173204
Test: make -j56 RunSettingsLibRoboTests
Change-Id: Iebe130d6542ed7096147e3fff61f9cfd76aad948
2018-02-12 02:25:13 -08:00
Petr Cermak
10011fa917 Replace smart reply boolean setting with key-value list
This patch replaces the recently introduced
Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS boolean setting
with a new Settings.Global.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS
key-value list.

Rationale: This will allow us to add and tweak smart reply parameters
without polluting the global settings namespace.

Bug: 67765414
Test: atest SmartReplyConstantsTest
Change-Id: I284bb6b31618a234c4772d16ad6190a713035f1b
2018-02-12 09:40:37 +00:00
Bernardo Rufino
228a649635 More unit tests for PerformBackupTask
Around transport and agent failures. Caught a few possible errors, check
TODOs.

Test: m -j RunFrameworksServicesRoboTests
Change-Id: I9d04f4253511032473885ce6c0856c52639f2957
2018-02-12 09:18:12 +00:00
Alex Chau
b12e672379 API Review: Nullability annotation for DeviceAdminReceiver device owner user callback
Bug: 73088491
Test: None
Change-Id: If5c885b128d7447ad80c299b15c2a23a3b648f7d
2018-02-12 16:14:14 +08:00
David Brazdil
ce706f6bfd Merge "Greylist java.nio.Buffer.address" 2018-02-12 06:31:37 +00:00
Hyundo Moon
1fd5b5d27c MediaBrowser2: Supplement javadoc for getItem/getChildren methods
Bug: 72786723
Test: Builds successfully
Change-Id: I75c3cc35b6768e14007ad6c0b0bc48b5e92c2fec
2018-02-12 14:26:57 +09:00
Baisheng Zheng
20b5dec9d3 Merge "Add dedicated signature permissions to platform manifest and shell manifest which could enable/disable BT and Wifi state on watch" 2018-02-12 01:34:00 +00:00
Zhi An Ng
d33dbf0e04 Merge "Log app start to statsd" 2018-02-12 00:34:36 +00:00
Jeff Tinker
2bca525460 Revert "Revert "Fix MediaDrm security level APIs""
This reverts commit fda717d50127c35f52880e94690042c7603600e3.

Change-Id: I5e51c7e8d7ab0626fdfd9726278cb762b79a512e
2018-02-11 18:59:14 +00:00