Commit Graph

88413 Commits

Author SHA1 Message Date
Sungsoo Lim
81594cc2ed Merge "VideoView2: Remove setRouteAttributes" into pi-dev
am: 3bfe2b15b8

Change-Id: I6b28292df62f6062c948eb9b02fba15ddb73b4de
2018-03-08 10:55:20 +00:00
TreeHugger Robot
3bfe2b15b8 Merge "VideoView2: Remove setRouteAttributes" into pi-dev 2018-03-08 10:34:29 +00:00
Sungsoo Lim
ec75d51e74 VideoView2: Remove setRouteAttributes
Being consistent, create route player internally and do not expose it
since VideoView2 creats a MediaPlayer inside and do not expose it.

Bug: 72527212
Test: manually with VideoViewTest
Change-Id: I6db3bc668f6ab77587fed49b2d34611bc3c30465
2018-03-08 13:55:21 +09:00
Julia Reynolds
6558218cf2 Merge "Show app ops guts when tap app ops icons" into pi-dev
am: 7b894b3fcd

Change-Id: Ib61f338fe0ea723c1a3a500902cf200227d2db9a
2018-03-08 04:16:25 +00:00
TreeHugger Robot
7b894b3fcd Merge "Show app ops guts when tap app ops icons" into pi-dev 2018-03-08 04:00:37 +00:00
Phil Weaver
d090431398 Merge "Fix accessibility action parceling" into pi-dev
am: fc0c8d9b63

Change-Id: Ia8ef042191e3e1abbb4a45d2c31f41cbb802edab
2018-03-08 02:25:00 +00:00
Phil Weaver
fc0c8d9b63 Merge "Fix accessibility action parceling" into pi-dev 2018-03-08 01:49:43 +00:00
Julia Reynolds
b586745d86 Show app ops guts when tap app ops icons
Test: runtest systemui
Bug: 64085448
Change-Id: Ia51044f77311ab705ffb9dd1ae204d0131316396
2018-03-08 01:45:09 +00:00
Tomasz Wasilczyk
32b5f83b0a Merge "Implement front-end support for HAL 2.0 metadata." into pi-dev
am: 71b71dada7

Change-Id: Ia6f5dedecdd7530c0df106cf24942eae958d832f
2018-03-08 01:33:27 +00:00
Chenjie Yu
feb5f270a6 Merge "Refactor cpu stats pullers" into pi-dev
am: c8a6305ddf

Change-Id: Ic2a8f3c017a57e76f3e820d29c539c5bc99db51f
2018-03-08 00:59:08 +00:00
John Reck
a25a677ab5 Merge "Fix NPE if app context is null" into pi-dev
am: a08a8569bf

Change-Id: I64ad0cbfa7e30cf298ba7e658cf0edab1e14630f
2018-03-08 00:47:15 +00:00
TreeHugger Robot
71b71dada7 Merge "Implement front-end support for HAL 2.0 metadata." into pi-dev 2018-03-08 00:46:08 +00:00
Victor Hsieh
f054b17357 Merge "Verify the content length in the verity digest" into pi-dev
am: 429a58d18b

Change-Id: Ie061a13e802232fe4f036730436cdc847210931b
2018-03-08 00:43:44 +00:00
Evan Rosky
c34bf94330 Merge "Don't consume all BACK keys in SearchView" into pi-dev
am: a1aa6abe36

Change-Id: Iea6535861725fea6096d9c44409436b8207594f0
2018-03-08 00:40:17 +00:00
Chenjie Yu
c8a6305ddf Merge "Refactor cpu stats pullers" into pi-dev 2018-03-08 00:24:00 +00:00
TreeHugger Robot
a08a8569bf Merge "Fix NPE if app context is null" into pi-dev 2018-03-08 00:15:22 +00:00
TreeHugger Robot
429a58d18b Merge "Verify the content length in the verity digest" into pi-dev 2018-03-08 00:15:18 +00:00
TreeHugger Robot
a1aa6abe36 Merge "Don't consume all BACK keys in SearchView" into pi-dev 2018-03-08 00:13:43 +00:00
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
Tomasz Wasilczyk
fc67739432 Implement front-end support for HAL 2.0 metadata.
Bug: 73816100
Test: instrumentation
Change-Id: I1d4e9094f7a2eaf13a14f5fa560a391fcbae9804
2018-03-07 22:36:24 +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
Evan Rosky
758a6523bc Don't consume all BACK keys in SearchView
If SearchView is the first focusable, it will always get focus
(in non-touch-mode) when it tries to clearFocus on BACK pressed.
This lead to a situation where SearchView always consumed the
BACK key leaving users unable to leave some activities.

It looks like this was done so that pressing back both closed the
auto-correct popup AND the ime (whereas without reimplementing
onPreIme, it would require 1 back-press to close the auto-correct
popup and then a subsequenty press to close the IME). It also,
however, tried to clearFocus as well.

This change only consumes the Back press if the auto-correct popup
is open (to have the same effect of BACK closing both the popup
and the IME at the same time). It ignores the back press otherwise.
If there is no pop-up, this results in the BACK being handled by
the ime and thus hiding it. Otherwise, back is not consumed.

The only effective difference is that the SearchView remains
focused now.

Bug: 73181998
Test: SearchView CTS tests still pass. Back can now exit test-app
      once IME is hidden.

Change-Id: I3fe687b5344300b86131f44a1c9798cd736955bd
2018-03-07 22:08:18 +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
Chenjie Yu
ec67661bdf Refactor cpu stats pullers
use same cpu stats readers with BatteryStats so that
1) both throttle to avoid too frequent pulls
2) cached value is served within throttle interval to avoid double
pulling by both statsd and BatteryStats

To run unit tests:
bit
FrameworksCoreTests:com.android.internal.os.KernelUidCpuFreqTimeReaderTest
bit
FrameworksCoreTests:com.android.internal.os.KernelUidCpuClusterTimeReaderTest
bit
FrameworksCoreTests:com.android.internal.os.KernelUidCpuActiveTimeReaderTest

make -j56 statsd_test && adb sync data && adb shell
/data/nativetest64/statsd_test/statsd_test

Test: cts test, unit test
Bug: 73745189
Bug: 73780619
Bug: 73360959

Merged-In: I10a9bc91ca67fa812f4cd71c4fbd73c1a5ba580e

Change-Id: I10a9bc91ca67fa812f4cd71c4fbd73c1a5ba580e
2018-03-07 21:43:00 +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
Victor Hsieh
4ba1eeaa0e Verify the content length in the verity digest
When generating digest for verity, for the last incomplete 4k chunk, the
data is padded with 0s.  This implies that we can not tell from the
digest whether the file contains 0 or not, or how many 0s.

Since the verity hash is used by the kernel, the definition cannot be
change.  Instead, the actual hashed content length is appended to the
original digest and is verified before used.

Also uprev algorithm IDs.

Test: use new apksigner to sign an apk, apk can be installed on device
Bug: 30972906
Change-Id: I382af6e4090c7dc3f92d5acb5ac5d02d1f496992
2018-03-07 13:28:32 -08: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
John Reck
f1b961033f Fix NPE if app context is null
Change-Id: Ic21ae50e5421a8c711e133ffe2ff218160382297
Fixes: 74260094
Test: builds, boots, and graphicsstats still works
2018-03-07 11:08:39 -08: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