Commit Graph

365897 Commits

Author SHA1 Message Date
David Brazdil
1b0c0a3e52 Add more hidden APIs to light greylist
Bug: 78242776
Test: make
Merged-In: I3e1f6acd805ca73509a896066a336432f29d0c87
Change-Id: Ieb2eb62201a6f270afd76ae3f6e5ca6226dd57a6
2018-04-24 10:49:59 +00:00
Chalard Jean
411e79b8b0 Merge changes I0cd83a93,I03ae2bbb into pi-dev
* changes:
  Make sure getActiveNetwork is consistent with default callbacks
  Add tests for getActiveNetwork.
2018-04-24 09:53:32 +00:00
Selim Cinek
53790c1c8f Merge changes from topic "notification_reply_action" into pi-dev
* changes:
  Cleaned up the paddings of the messaging layout and smart replies
  Changed the size of the largeIcon
  Moved the disabling from alpha to manual color blending
  Updated the color of the reply button to be more neutral
  Updated the reply icon
  Disabled reply action when pending intents are cancelled
  Split the reply icon permanently from the right icon
2018-04-24 09:10:38 +00:00
TreeHugger Robot
5f18904a00 Merge "Add spinner for smart replies." into pi-dev 2018-04-24 08:51:56 +00:00
Chalard Jean
26400490a2 Make sure getActiveNetwork is consistent with default callbacks
Bug: 77737389
Test: runtest framework-net
      new test don't pass without the main code change, but they
      do with it
Change-Id: I0cd83a935ab0b349aa47e065b830e5a43ab9a091
2018-04-24 17:32:00 +09:00
Nicolas Geoffray
95b7e63103 Merge "Add light grey APIs." into pi-dev 2018-04-24 08:30:12 +00:00
TreeHugger Robot
9d4d6e9d1a Merge "Log package name when showing targetSdkVersion warning" into pi-dev 2018-04-24 08:07:27 +00:00
Przemyslaw Szczepaniak
5e0612cdaa Log package name when showing targetSdkVersion warning
Test: manual verification
Bug: 78332004
Change-Id: Ie91ac06e3a973edf655362b836698185a0aa7602
2018-04-24 07:01:46 +00:00
TreeHugger Robot
4c958d0e6b Merge "Check provider exists and is enabled when request location" into pi-dev 2018-04-24 06:57:34 +00:00
Selim Cinek
1c72fa0249 Cleaned up the paddings of the messaging layout and smart replies
Refactored the code such that the reply icon's inset was substracted
from the overall paddings to make all of them consistent. This
will also help in the future as we don't have to update those
paddings manually anymore.

Test: test all sorts of combinations with Notify
Change-Id: I8c6c9951bc73c88d95cb443c8e618c7adca7ebd3
Fixes: 78441535
2018-04-24 14:33:29 +08:00
Chalard Jean
fb0c87e8b4 Add tests for getActiveNetwork.
Bug: 77737389
Test: runtest frameworks-net
Change-Id: I03ae2bbb08559f2cd44979e291c1f5d50eb215da
2018-04-24 15:23:28 +09:00
Selim Cinek
1655085dea Changed the size of the largeIcon
Also tunes the paddings with largeIcons more

Test: test margins for all templates, ensure nice wrapping
Change-Id: I9ace23c2a6b38fdf25e46fd55d6848b8922851a3
Fixes: 76415894
2018-04-24 13:22:04 +08:00
Selim Cinek
019d71ecfc Moved the disabling from alpha to manual color blending
The Transformations don't preserve alpha currently and it's
hard to fix without the risk of introducing regressions.
We instead blend the color manually now.

Change-Id: Ib9c209295529c5e04564a3faed74160914951152
Fixes: 77811784
2018-04-24 13:22:02 +08:00
Selim Cinek
4717d862a0 Updated the color of the reply button to be more neutral
The primaryTextColor wasn't a good fit, because it was
drawing too much attention being pure black. We're now
taking the default color instead. It's also used for
active permissions now.

Test: add notification, look at reply button.
Change-Id: If390c66e927a92a1115250abb7254fafe81b054c
Fixes: 72750728
2018-04-24 13:05:56 +08:00
Selim Cinek
276bd3b63e Updated the reply icon
Change-Id: I0f8e91630cedefc6d9f44ded421243b719db7e6c
Fixes: 77244755
Test: observe new icon on notificaction
2018-04-24 13:05:56 +08:00
Selim Cinek
d83203cde4 Disabled reply action when pending intents are cancelled
Previously the user could open inline reply even when the
action was already cancelled. This also enables listening
to pending intent cancellations.

Test: manual
Fixes: 77811784
Change-Id: I4ae164081c6abdeb60a8e78d61bf5e4f26cca1d3
2018-04-24 13:05:53 +08:00
TreeHugger Robot
d5a1bb621a Merge "Update Java doc of GnssMeasurementEvent#STATUS_NOT_ALLOWED" into pi-dev 2018-04-24 04:01:56 +00:00
TreeHugger Robot
4257db35fe Merge "Refactor GnssBatchingProvider" into pi-dev 2018-04-24 03:56:20 +00:00
TreeHugger Robot
fd5166ddac Merge "Allow overriding the compile SDK" into pi-dev 2018-04-24 03:14:04 +00:00
Shawn Lin
ab416a115a Merge "Fix the art work of lockscreen cannot be removed" into pi-dev 2018-04-24 02:46:28 +00:00
TreeHugger Robot
f22fd65a25 Merge "PackageManager: Skip dexopt on install for debuggable apps" into pi-dev 2018-04-24 01:36:13 +00:00
TreeHugger Robot
0545eaefdd Merge "Update title for SysUI battery warning" into pi-dev 2018-04-24 00:46:56 +00:00
Rob Carr
d7681ccd25 Merge "Destroy app-less surfaces when becoming invisible with no animation." into pi-dev 2018-04-24 00:27:36 +00:00
Bryce Lee
a16cc4215a Merge "Do not reference TaskRecord's intent without checking for null." into pi-dev 2018-04-24 00:25:42 +00:00
TreeHugger Robot
694f60005e Merge "Failing setPackagesSuspended if user has a DO / PO" into pi-dev 2018-04-24 00:17:41 +00:00
TreeHugger Robot
be99e9e60d Merge "Disable hotspot when data saver is on." into pi-dev 2018-04-24 00:11:43 +00:00
Winson Chung
6fab40d82c Merge "Expose API to hide the IME during a recents animation" into pi-dev 2018-04-23 23:59:54 +00:00
Jayachandran Chinnakkannu
88dcad1aa4 Merge "Data stall intent definition" into pi-dev 2018-04-23 23:59:29 +00:00
Winson Chung
a840c328e7 Expose API to hide the IME during a recents animation
Bug: 73285089
Test: Swipe up from app with IME open, ensure that it closes
Change-Id: I95ce59291f11285c853e8b3029638119c21f7e38
2018-04-23 16:20:27 -07:00
Chong Zhang
3f8dd1ca7d Merge "Move SchedulingPolicyService init code to SystemServerInitThreadPool" into pi-dev 2018-04-23 23:15:33 +00:00
Salvador Martinez
2cdc5281e1 Update title for SysUI battery warning
We're changing the text from "battery is low" to talk about the
battery running out soon instead so users are not confused if the
time based trigger occurs at higher battery percentages.

Test: robotests pass
Bug: 77587724
Change-Id: Ib7b2c507e150e06e307f810f89c6da407c77990a
2018-04-23 16:13:19 -07:00
TreeHugger Robot
46c2b1451c Merge "Reset binder call stats along with batterystats" into pi-dev 2018-04-23 23:05:31 +00:00
Andreas Gampe
c088600228 PackageManager: Skip dexopt on install for debuggable apps
To reduce install-to-started latency, skip dexopt at install-time
for debuggable apps. This is a conscious tradeoff, as the app
will run slower, and do repeated work on every startup. However,
for debuggable apps, turnaround time is more important.

(cherry picked from commit 58adf3a8ee)

Bug: 78200989
Test: m
Test: Device boots
Test: CTS (wrap & JVMTI)
Merged-In: I749934e794b0c89d72ea8ee413b845e7804de184
Change-Id: I749934e794b0c89d72ea8ee413b845e7804de184
2018-04-23 16:02:00 -07:00
Amith Yamasani
43ca6addd1 Merge "Add reason to device idle history dump" into pi-dev 2018-04-23 23:01:13 +00:00
TreeHugger Robot
8a4af9c3e8 Merge "Update surface position once created." into pi-dev 2018-04-23 22:41:50 +00:00
Amin Shaikh
c26ab75f55 Disable hotspot when data saver is on.
Do not process the QS tap on hotspot when data saver is on. The
secondary text already states that "Data Saver is on" and the tile is
greyed out.

Change-Id: Ied86aba4199c94e68cc2cebf7ccd888c8a04dfb8
Fixes: 77860936
Test: visual
2018-04-23 18:29:11 -04:00
Winson Chung
167710981c Merge "Add windowing mode to task snapshot." into pi-dev 2018-04-23 22:16:01 +00:00
TreeHugger Robot
2897fd315d Merge "Revert "Revert "Clear out tuner prefs since it is disabled""" into pi-dev 2018-04-23 22:08:31 +00:00
Sudheer Shanka
6bc6e21be7 Merge "Rate limit battery external stats collection in takeUidSnapshot(s)." into pi-dev 2018-04-23 21:34:57 +00:00
Fyodor Kupolov
8aa51245e9 Reset binder call stats along with batterystats
Test: dumpsys batterystats --reset && dumpsys binder_calls_stats
Bug: 75318418
Change-Id: Ibdbd95468bba876b1f91357b86f7a8d45af2daed
2018-04-23 14:21:20 -07:00
TreeHugger Robot
1fdddabc24 Merge "Fix RadioTunerTest." into pi-dev 2018-04-23 21:19:42 +00:00
TreeHugger Robot
c17a171a7b Merge "Verify best signature algorithms of all signers" into pi-dev 2018-04-23 21:15:31 +00:00
TreeHugger Robot
9376380a27 Merge "Use screen height to determine # of QS rows." into pi-dev 2018-04-23 21:07:45 +00:00
TreeHugger Robot
c3a7ab321b Merge "Fix bad pixel out-of-bounds filter" into pi-dev 2018-04-23 20:17:58 +00:00
TreeHugger Robot
ef61802559 Merge "[QS] Move date view to QS panel" into pi-dev 2018-04-23 20:15:24 +00:00
Jayachandran C
acc1ee9115 Data stall intent definition
Define a protected intent to notify the data stall recovery attempts.

Test: Manual
Bug: 77293796
Change-Id: Ic8dfb12662d53e896f9d0b60329e762ce9460ba6
2018-04-23 13:13:01 -07:00
Marco Nelissen
a98bb36fed Merge "Guard against native crash due to null Surface" into pi-dev 2018-04-23 19:58:46 +00:00
Winson Chung
a4fa8d5bd4 Add windowing mode to task snapshot.
Bug: 78155683
Test: atest FrameworksServicesTests:TaskSnapshotPersisterLoaderTest
Change-Id: I4e562d818416a30d6759baef37c74b6d9c514a00
2018-04-23 12:25:38 -07:00
Victor Hsieh
8d1553b9b1 Verify best signature algorithms of all signers
The previous implementation does not verify signature algorithms of all
signers.  It's possible that the attacker can take an old apk (with
digest and signature of old algorithm) and add their own signer block
with new/P digest and signature.  In this case, the old implementation
only verifies the attacker's signature, thus the attacker can change apk
content easily.

The solution here is to verify digests of all best signature algorithms
by all signers.

It is expected to increase verification time, if the apk does have
multiple signers with different type of digests.

Test: apks still install
Bug: 78359754
Change-Id: I607edf219c25a2a7adfa27a21a94e9bfefbb6cec
Merged-In: I607edf219c25a2a7adfa27a21a94e9bfefbb6cec
(cherry picked from commit 2f2ced93e3)
2018-04-23 19:22:28 +00:00
Rob Carr
cef96f69d7 Merge "ViewRoot: Check Surface validity before initializing renderer from draw()." into pi-dev 2018-04-23 19:22:18 +00:00