Commit Graph

88389 Commits

Author SHA1 Message Date
Kevin Chyn
f71e2f4ec9 Merge "Don't store lockout deadline in lockSettings" into pi-dev
am: 7f8967e3ce

Change-Id: Iaf18d8a35e412225466c805323e5878f279d1853
2018-03-08 00:04:14 +00:00
TreeHugger Robot
7f8967e3ce Merge "Don't store lockout deadline in lockSettings" into pi-dev 2018-03-07 23:41:32 +00:00
Adrian Roos
923f8d0374 Merge "Window: Provide frame size hint to ViewRootImpl" into pi-dev
am: b8d853732c

Change-Id: I1382753d3e7fd1104b9e31e1b358413e3fc8f5dd
2018-03-07 23:15:23 +00:00
Pavel Maltsev
8a956a5141 Merge "Minor clean-up in NetworkCapabilities" am: 539f85a18d
am: b1e2bfe4df

Change-Id: Ie6839576f61563f2a82fec53afc42208f5a37f3c
2018-03-07 23:09:04 +00:00
Phil Weaver
8a8d4ebd55 Merge "Improve a11y pane title javadoc" into pi-dev
am: f397f44756

Change-Id: I77920f9e4ab3d220fd374c75b1572f6eda67dbc6
2018-03-07 23:05:02 +00:00
Pavel Maltsev
b1e2bfe4df Merge "Minor clean-up in NetworkCapabilities"
am: 539f85a18d

Change-Id: Ic70f545a4886461f38f1af934600f4e1afe0179f
2018-03-07 23:00:53 +00:00
Adrian Roos
b8d853732c Merge "Window: Provide frame size hint to ViewRootImpl" into pi-dev 2018-03-07 22:58:34 +00:00
Jeff Vander Stoep
0a2c748afe Merge "Revert "Revert "pm: SharedUserId: Assign seinfo using actual targetSdkVersion""" into pi-dev
am: ac01b4533c

Change-Id: I82ead401fb298bdc0ffc595c2bfb0d95a2aba081
2018-03-07 22:48:08 +00:00
Phil Weaver
f397f44756 Merge "Improve a11y pane title javadoc" into pi-dev 2018-03-07 22:38:07 +00:00
Fyodor Kupolov
c6e158d790 Merge "Introduced DISABLE_COMPATIBILITY_WAL flag" into pi-dev
am: 8de43e93cd

Change-Id: Ic0eb00db560d83c938cdf93e5e7219fb1b60532c
2018-03-07 22:32:03 +00:00
TreeHugger Robot
ac01b4533c Merge "Revert "Revert "pm: SharedUserId: Assign seinfo using actual targetSdkVersion""" into pi-dev 2018-03-07 22:20:46 +00:00
Fyodor Kupolov
8de43e93cd Merge "Introduced DISABLE_COMPATIBILITY_WAL flag" into pi-dev 2018-03-07 22:10:00 +00:00
Seigo Nonaka
b55ac7fd99 Merge "Introduce new perf test for TextView with precomputed text" into pi-dev
am: 0efaf2088d

Change-Id: Ie55c487cae56f61b0d1ea404843b6cbbb97f3de6
2018-03-07 21:59:54 +00:00
TreeHugger Robot
0efaf2088d Merge "Introduce new perf test for TextView with precomputed text" into pi-dev 2018-03-07 21:40:45 +00:00
Felipe Leme
502fb3a8f0 Merge "DO NOT MERGE - Disable warning on blocking one-way call from autofill server." into pi-dev
am: 8c55e8c306

Change-Id: Id7dbe84b8b33d94b7d60d2c8ae404e8dc5701e13
2018-03-07 21:36:39 +00:00
TreeHugger Robot
8c55e8c306 Merge "DO NOT MERGE - Disable warning on blocking one-way call from autofill server." into pi-dev 2018-03-07 21:24:46 +00:00
Seigo Nonaka
b1c914cb91 Merge "Throw an exception in case of parameter mismatch of precomputed text" into pi-dev
am: a4d970ea40

Change-Id: I588313c38683f0fcd003f77e909e23d6b3df83ce
2018-03-07 21:21:43 +00:00
Treehugger Robot
539f85a18d Merge "Minor clean-up in NetworkCapabilities" 2018-03-07 21:06:59 +00:00
TreeHugger Robot
a4d970ea40 Merge "Throw an exception in case of parameter mismatch of precomputed text" into pi-dev 2018-03-07 21:02:37 +00:00
Felipe Leme
c17f4944a6 Merge "Implemented notifyViewClicked() on compat mode." into pi-dev
am: f99b1d8fd9

Change-Id: Iff367b925d93bb5796d13a048b1690e3477c5689
2018-03-07 19:56:10 +00:00
TreeHugger Robot
f99b1d8fd9 Merge "Implemented notifyViewClicked() on compat mode." into pi-dev 2018-03-07 19:40:55 +00:00
Seigo Nonaka
d15f04ef69 Introduce new perf test for TextView with precomputed text
Here is an example of perf test result:

TextView new layout creation time:
  PrecomputedText           :    740,173
  PrecomputedText_Selectable: 17,727,649
  RandomText                : 17,130,685

TextView onDraw time:
  PrecomputedText           :  1,471,075
  PrecomputedText_Selectable: 31,971,393
  RandomText                : 17,667,572

TextView onMeasure time:
  PrecomputedText           :    177,669
  PrecomputedText_Selectable: 17,773,204
  RandomText                :  6,296,358

TextView setText (w/o layout creation) time:
  PrecomputedText           :     91,858
  PrecomputedText_Selectable:    152,665
  RandomText                :     11,130

Bug: 72998298
Test: ran perf test
Change-Id: I69af74ba743499bc444c441c1472fb19878c2eec
2018-03-07 11:34:54 -08:00
Felipe Leme
385ee5393d DO NOT MERGE - Disable warning on blocking one-way call from autofill server.
This behavior existed since autofill was introduced on O and it won't be fixed
on P, so there's no point on warning. In fact, the warning is often a red
herring for other issues, not to mention a big logcat spammer.

Bug: 35708678
Test: manual verification looking at logcat

Change-Id: I40be4ce25abc5b097ea67e5cb34bb9c4237f0826
2018-03-07 19:24:45 +00:00
Jeff Vander Stoep
cab3639dcb Revert "Revert "pm: SharedUserId: Assign seinfo using actual targetSdkVersion""
Commit 042f4bb6 'pm: Modify getPackage() to only return non-null
packages' prevents the NullPointerException. b/
This reverts commit 00b4fa8b13.

Bug: 74214574
Bug: 72290969
Test: Same tests run on original commit.
Test: successfully flash and boot from bild 4504078 to ToT master.
Change-Id: Ia1e900ebe0eb8f9d10fd0eddbf658f52e1ea79b4
(cherry picked from commit 32ef1c2eb0)
2018-03-07 18:49:12 +00:00
Makoto Onuki
80cd503cf3 Merge "Avoid service wrapper initialization deadlock." into pi-dev
am: 1e36211a96

Change-Id: I1413c9f37c6ae189292def463e1621983e2f87f2
2018-03-07 18:33:12 +00:00
Seigo Nonaka
e1ffb54167 Throw an exception in case of parameter mismatch of precomputed text
If the given precomputed text is not compatible with the TextView,
reject the text by throwing IllegalArgumentException.

Bug: 73091756
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest

Change-Id: I4fbf89a5f1409e8eefdeb9f208f9a3758220fe1a
(cherry picked from commit 3a0787af5e)
2018-03-07 18:30:27 +00:00
TreeHugger Robot
1e36211a96 Merge "Avoid service wrapper initialization deadlock." into pi-dev 2018-03-07 18:11:15 +00:00
Phil Weaver
37cc3c410a Improve a11y pane title javadoc
Bug: 74123987
Test: Just changing comments.
Change-Id: I7f21947a35d1baccf171346979164718386c5b71
(cherry picked from commit 50d2808b95)
2018-03-07 18:06:05 +00:00
Richard Ledley
b956d0b81d Merge "Don't use highlighting in non-selectable text. Also fixes potential discrepancy in indexes for Linkified entities." into pi-dev
am: 847446d7f8

Change-Id: I1ad63dda26b397c26fa05520103e504bcf6f8127
2018-03-07 17:42:02 +00:00
Richard Ledley
847446d7f8 Merge "Don't use highlighting in non-selectable text. Also fixes potential discrepancy in indexes for Linkified entities." into pi-dev 2018-03-07 17:30:20 +00:00
Felipe Leme
54cc68370c Implemented notifyViewClicked() on compat mode.
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.VirtualContainerActivityCompatModeTest#testSave_submitButtonClicked

Fixes: 73649008

Change-Id: Icf6a8b617e06055c58e38c5b7208c7f3ef3121ee
2018-03-07 09:27:02 -08:00
Kevin Chyn
a3e5582fac Don't store lockout deadline in lockSettings
The deadline is enforced in gatekeeper, which persists after reboot.
Users should not see the lockout timer after rebooting the device if it
was previously in lockout, until an unlock attempt occurs.

Fixes: 66443036

Test: 1) fail pattern five times
2) reboot device
3) go to bouncer, lockout timer should not show
4) upon entering pattern, timeout should show (if done fast enough)

Change-Id: Ie07945b40c2f482fd1df7102ba96283ae9d98d75
2018-03-07 17:18:12 +00:00
Annie Meng
886c797727 Merge "Validate restore of NetworkPolicy settings" into pi-dev
am: 292d895fb2

Change-Id: I0337e151e8a47d413153160081e640b49f945318
2018-03-07 17:17:54 +00:00
Annie Meng
292d895fb2 Merge "Validate restore of NetworkPolicy settings" into pi-dev 2018-03-07 17:07:51 +00:00
Beverly
dd333ffb28 Merge "System sounds get its own dnd toggle" into pi-dev
am: 5a169cf2f6

Change-Id: Ie4b15e59d2f9ab16842af48ef07fc85191330a1a
2018-03-07 16:53:11 +00:00
TreeHugger Robot
5a169cf2f6 Merge "System sounds get its own dnd toggle" into pi-dev 2018-03-07 16:39:40 +00:00
Rubin Xu
9dc058ba9f Merge "Clarify javadoc for DevicePolicyManager.setTrustAgentConfiguration" into pi-dev
am: a3e2d2fed8

Change-Id: I9020605036fbb994c33724e60f324167cd9aaccd
2018-03-07 16:37:49 +00:00
Adrian Roos
9e370f2912 Window: Provide frame size hint to ViewRootImpl
Provides a better estimate to the ViewRootImpl about the likely
window frame size than it can get from the configuration, which
allows it to avoid unneccessary measure passes.

Bug: 73813813
Test: atest PhoneWindowManagerLayoutTest
Change-Id: Ia4de6509416d90eed61929ce1646904c31afdd8d
2018-03-07 16:53:54 +01:00
Rubin Xu
50ac241221 Clarify javadoc for DevicePolicyManager.setTrustAgentConfiguration
Fixes: 36887130
Test: builds
Change-Id: Ieccd3edc0122c9ae49903a3c5fc9fb0aba6c08a2
2018-03-07 14:21:35 +00:00
Yueming Wang
19d708a0e6 Merge "Block adb from changing certain settings value when corresponding user restriction is on." into pi-dev
am: aecd9616ec

Change-Id: I1adecc989ee77fe578e08b484edc57669937df99
2018-03-07 13:54:19 +00:00
yuemingw
1d13eaea83 Block adb from changing certain settings value when corresponding user
restriction is on.

Check calling uid in isSettingRestrictedForUser(which is called by settingsprovider),
 and only allow system_uid when certain user restriction is on, so that user won't be
able to change these settings with adb:
Settings.Secure.LOCATION_MODE,
Settings.Secure.PROVIDERS_ALLOWED,
Settings.System.SCREEN_BRIGHTNESS,
Settings.System.SCREEN_BRIGHTNESS_MODE,
Settings.System.SCREEN_OFF_TIMEOUT,
Settings.Global.AUTO_TIME,
Settings.Global.AUTO_TIME_ZONE.
This check also prevents 3rd party apps from modifying system settings value
when corresponding user restriction is on.
In addition, any attempt to change AUTO_TIME will also go through the check
for dpm.getAutoTimeRequired().

Test: manually by running the adb command with restriction set and not set
Bug: 72549013
Bug: 72548203
Bug: 72548533
Bug: 72686466
Bug: 72687105
Bug: 72940551
Bug: 72940562
Change-Id: I1d1fd20d9fa0f76f27905d62873f6a6e9af0224e
2018-03-07 11:04:34 +00:00
TreeHugger Robot
1eb1ff31fc Merge "Remove toString() for CarrierIdentifier." into pi-dev 2018-03-07 03:44:31 +00:00
jackqdyulei
f50bd6f511 Merge "Add APP_AUTO_RESTRICTION_ENABLED" into pi-dev
am: 9aa32d0e71

Change-Id: I79ad9035fcbbf0935e547b518d5a937400aa2a4c
2018-03-07 03:29:05 +00:00
Scott Main
6cf55a5332 Merge "Fix javadoc typo causing broken links" into oc-mr1-dev am: ac2cdc0dba
am: 655d98bdb5

Change-Id: I267705cb7dc4ea6696058f1b3051e5f1c6ef5f7e
2018-03-07 03:11:26 +00:00
Doris Ling
fd104a772e Merge "Add feature flag for audio output switcher." into pi-dev
am: d7cf0e1635

Change-Id: I3631580417c47d5bb20296d171cfccb80c5114e0
2018-03-07 03:08:06 +00:00
TreeHugger Robot
9aa32d0e71 Merge "Add APP_AUTO_RESTRICTION_ENABLED" into pi-dev 2018-03-07 02:32:17 +00:00
Scott Main
655d98bdb5 Merge "Fix javadoc typo causing broken links" into oc-mr1-dev
am: ac2cdc0dba

Change-Id: Ib8d63b1bfcc20e398314501a51bd2fad76a8d10e
2018-03-07 01:54:15 +00:00
Makoto Onuki
f896f1254c Avoid service wrapper initialization deadlock.
- Don't initialize a service wrapper with the cache lock held.
- Instead, use AtomicInteger to avoid instantiating the same service
multiple times.

Test: build, boot, presubmit
Bug: 71882178

Change-Id: Iea4207b855043addac4d24381778babf8eedd84d
2018-03-06 17:40:59 -08:00
Scott Main
bda0cc9c3c Fix javadoc typo causing broken links
Change-Id: I988e06100562c574bbda1bb530359da289062d65

bug: 74262753
2018-03-07 01:39:29 +00:00
TreeHugger Robot
d7cf0e1635 Merge "Add feature flag for audio output switcher." into pi-dev 2018-03-07 01:38:53 +00:00