Commit Graph

361304 Commits

Author SHA1 Message Date
TreeHugger Robot
641eb554fd Merge "Statsd cpu optimizaton" into pi-dev 2018-03-08 04:03:19 +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
TreeHugger Robot
8b4b86981c Merge "Tapping overview button when quickstep enabled shows overview" into pi-dev 2018-03-08 03:51:17 +00:00
TreeHugger Robot
284bccf702 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-03-08 02:58:27 +00:00
TreeHugger Robot
09ed26a046 Merge "Dumping stack traces to proto." into pi-dev 2018-03-08 01:55:13 +00:00
TreeHugger Robot
56055c0bb4 Merge "AudioFormat: java-native conversion for xHE-AAC" into pi-dev 2018-03-08 01:54:50 +00:00
Phil Weaver
fc0c8d9b63 Merge "Fix accessibility action parceling" into pi-dev 2018-03-08 01:49:43 +00:00
Matthew Ng
8a8c89ce40 Tapping overview button when quickstep enabled shows overview
This is the systemui side of showing launcher's overview when it decides
to allow users to trigger overview with the overview button in the
navigation bar when quickstep is enabled.

Test: manual - tap overview button in nav bar
Bug: 67957962
Change-Id: I0d59d60d4b4ce1df9dcf2a745f9a5efd415b8582
2018-03-07 17:49:17 -08: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
Bryce Lee
e42057b1f1 Merge "Do not depend on task activities decrementing with finish." into pi-dev 2018-03-08 01:40:13 +00:00
Yangster
13fb7e4eea Statsd cpu optimizaton
- cache the changed dimensions in condition tracker.
- avoid query condition wizard when unnecessary.
- avoid copy dimension keys in condition key generation.

Test: statsd tests.

BUG: b/73959649
Change-Id: I17d68e2a82643de3f421309841e75f84c6fd8f43
2018-03-07 17:36:07 -08:00
TreeHugger Robot
62ff4029e4 Merge "Add colorProgressBackgroundNormal" into pi-dev 2018-03-08 01:07:31 +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
Bill Yi
dafe2201d7 Import translations. DO NOT MERGE
BUG:72647570

Change-Id: I1f9e429f8742e81b310a026d0504967f9726f9b4
Auto-generated-cl: translation import
2018-03-07 16:44:47 -08:00
TreeHugger Robot
43a7980fc6 Merge "AudioFormat: Uncomment conversion for EAC3-JOC" into pi-dev 2018-03-08 00:34:40 +00:00
Chenjie Yu
c8a6305ddf Merge "Refactor cpu stats pullers" into pi-dev 2018-03-08 00:24:00 +00:00
Makoto Onuki
e840cc4eca Merge "Show system uptime in bugreport (dumpsys alarm)" into pi-dev 2018-03-08 00:23:34 +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
TreeHugger Robot
b577d00c35 Merge "Setting the alpha on the full bitmap for AdaptiveIcon instead of individual layers" into pi-dev 2018-03-07 23:58:24 +00:00
Chong Zhang
2da6c9aa8b Merge "Fix mismatch in parcel read/write in ParcelableCasData -- DO NOT MERGE" into oc-dev am: 5d2153d17c am: 2d0e5b6acc -s ours
am: c551f11cd6  -s ours

Change-Id: Id5ade2438e3a4716ca4ac69fa11438169dd2e763
2018-03-07 23:44:55 +00:00
TreeHugger Robot
7f8967e3ce Merge "Don't store lockout deadline in lockSettings" into pi-dev 2018-03-07 23:41:32 +00:00
Chong Zhang
c551f11cd6 Merge "Fix mismatch in parcel read/write in ParcelableCasData -- DO NOT MERGE" into oc-dev am: 5d2153d17c
am: 2d0e5b6acc  -s ours

Change-Id: I231859f9e26c99ae3a34241842e50f4d44d23f93
2018-03-07 23:39:11 +00:00
Chong Zhang
2d0e5b6acc Merge "Fix mismatch in parcel read/write in ParcelableCasData -- DO NOT MERGE" into oc-dev
am: 5d2153d17c

Change-Id: I04e026a96e1899ba9496979561df5680297f546a
2018-03-07 23:17:01 +00:00
Jean-Michel Trivi
ef88450a53 AudioFormat: java-native conversion for xHE-AAC
Bug: 71430241
Test: only once we have decoder
Change-Id: Ifab4e887d1516da45eed762a8a4d92c3b8f1f95c
2018-03-07 15:02:44 -08:00
Chong Zhang
5d2153d17c Merge "Fix mismatch in parcel read/write in ParcelableCasData -- DO NOT MERGE" into oc-dev 2018-03-07 22:59:15 +00:00
Adrian Roos
b8d853732c Merge "Window: Provide frame size hint to ViewRootImpl" into pi-dev 2018-03-07 22:58:34 +00:00
Mike Digman
a42585c349 Merge "Apply prior tint to rotate icon on recreation" into pi-dev 2018-03-07 22:47:40 +00:00
Mike Digman
c821758150 Apply prior tint to rotate icon on recreation
In very rare circumstances, it's possible for the rotate icon
to be recreated but not have the dark intensity set. Fix this
by applying prior icon's intensity.

Test: manual but heisenbug so very hard to validate
Fixes: 74354524
Change-Id: I042de35e725794b04f5250fa3a2fc5a54d65d143
2018-03-07 22:47:22 +00:00
Andrew Sapperstein
b6bea5663e Add colorProgressBackgroundNormal
Adds new private theme attr colorProgressBackgroundNormal which
the default material/devicedefault progress/seekbar backgrounds
use for their background tint.

Added default values for Material/DeviceDefault themes. Material's
is colorControlNormal.

Adds a new config_progress_background_tint color resource that OEMs can
overlay. Default value is colorControlNormal since AOSP should not
change the tint. OEMs who wish to change the default can simply
overlay config_progress_background_tint with their preferred color.

Finally, deletes the unnecessary control_nodisable_material which
was just a layer of indirection pointing to colorControlNormal.

Bug: 69314526
Test: ag/3665368
Change-Id: I6443e08469677cdf31d99c73966b437e5a1f2472
2018-03-07 22:40:43 +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
Adrian Roos
a52ddd989e Merge "Screenshots broken for activities with dialog themes" into pi-dev 2018-03-07 22:21:21 +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
Mikhail Naganov
6d0c5f6c74 AudioFormat: Uncomment conversion for EAC3-JOC
The corresponding native constant has been added to system/audio.h

Bug: 38184704
Bug: 63901775
Test: make
Change-Id: I141904571755ddb67491e72c73938953034283a0
2018-03-07 22:11:34 +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
Kweku Adams
eadd123d68 Dumping stack traces to proto.
Bug: 72177715
Test: flash device and check incident.proto output
Change-Id: Id2a15e0fc62b66efe875949af97f0eb651c7e322
(cherry picked from commit 5c804e2b98)
2018-03-07 21:50:12 +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
Jean-Michel Trivi
4e532f59dc Merge "AudioService: don't send BECOMING_NOISY when dyn policy affects media" into pi-dev 2018-03-07 21:37:55 +00:00
TreeHugger Robot
ed0b75df20 Merge "Fix separator color for light wallpapers" into pi-dev 2018-03-07 21:37:30 +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
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
Bryce Lee
fbd263b484 Do not depend on task activities decrementing with finish.
It is possible for a task to be cleared when a single activity is
finished. For example, if only task overlays are present after an
activity is removed, the task can be cleared under certain
conditions. As a result, we can not rely on only a single activity
being removed from a task when it is finished.

This changelist addresses this issue by caching the list of actvities
under a task that will not be modified as activities are finished.

Change-Id: Id3b0813deebd0bc31b2ff7ae7f69a2833dcb0a61
Fixes: 64291682
Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackTests#testFinishDisabledPackageActivities
Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackTests#testHandleAppDied
2018-03-07 13:02:06 -08:00
TreeHugger Robot
9c345022d1 Merge "Ignore events when there is no focused stack." into pi-dev 2018-03-07 20:50:26 +00:00
TreeHugger Robot
2dacab9844 Merge "Some more members for the light greylist." into pi-dev 2018-03-07 20:34:50 +00:00
TreeHugger Robot
f99b1d8fd9 Merge "Implemented notifyViewClicked() on compat mode." into pi-dev 2018-03-07 19:40:55 +00:00