Commit Graph

360513 Commits

Author SHA1 Message Date
Robert Carr
217e7cc221 Nuke WindowState#mShownPosition. Rework mXOffset/mYOffset.
Ignoring Wallpaper Offsets, the WindowStateAnimator is now
always positioned at (0,0), so we don't need to calculate or store this. For
Wallpaper Offsets we can manipulate the position of the WindowStateAnimator surface
directly. This seems to be a nice level to model the concept of scrolling a buffer
larger than the "Window" to which it is assigned.
Everything on top of WSA can ignore the offsets by only interacting with the WS and above.
Seamless rotation may mess with the position so we need to be sure to reset it to 0,0.

Test: Manual. go/wm-smoke
Bug: 72038766
Change-Id: I961d190d1f1ee71faaede095617092a0ad32e16f
2018-02-28 11:41:21 -08:00
TreeHugger Robot
824095856b Merge "Allow chaining ImageDecoder's setters" 2018-02-28 19:05:29 +00:00
TreeHugger Robot
f10f40b03c Merge "setPreferRamOverQuality -> setConserveMemory" 2018-02-28 18:47:03 +00:00
Android Build Merger (Role)
afab611ad0 Merge "Merge "Delay starting the webview_zygote until first use." am: 6d9d717ab7 am: 99440a0ab8 am: 92697692b3" 2018-02-28 18:33:03 +00:00
Robert Sesek
ffc4dd720d Merge "Delay starting the webview_zygote until first use." am: 6d9d717ab7 am: 99440a0ab8
am: 92697692b3

Change-Id: I4f810427f083d9b7874df7d90fc00a33967d9323
2018-02-28 18:32:39 +00:00
TreeHugger Robot
a2a32b6c59 Merge "Log app start memory state in background" 2018-02-28 18:32:23 +00:00
TreeHugger Robot
d2613de5c6 Merge "Update Slice.Builder#addInt javadoc." 2018-02-28 18:23:47 +00:00
Robert Sesek
92697692b3 Merge "Delay starting the webview_zygote until first use." am: 6d9d717ab7
am: 99440a0ab8

Change-Id: Icf9297f730bc4fa779d989eccc05e436c5d463b6
2018-02-28 18:16:43 +00:00
Robert Sesek
99440a0ab8 Merge "Delay starting the webview_zygote until first use."
am: 6d9d717ab7

Change-Id: I7a2c485fcf04a5728081f99610435a970dc4bb1b
2018-02-28 18:07:09 +00:00
TreeHugger Robot
b1d5004cf5 Merge "Make "am kill" actually support --user all" 2018-02-28 17:15:30 +00:00
Anton Hansson
3ee84990de Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible." 2018-02-28 17:09:04 +00:00
TreeHugger Robot
5ef4247352 Merge "Revert "Update A11y action serialization to use longs"" 2018-02-28 17:08:47 +00:00
TreeHugger Robot
7d29aa7d16 Merge "Use the proper API to get managed profile user drawable" 2018-02-28 17:03:20 +00:00
yuemingw
edfd36aba0 Better Override APN javadoc.
Add explanation for the possible failure reasons of
addOverrideApn, updateOverrideApn and removeOverrideApn.

Bug: 73750993
Test: test not required

Change-Id: Ic3493043fe6e5fedea006118bfc8dab7219d03ab
2018-02-28 16:42:58 +00:00
TreeHugger Robot
7f1bceb325 Merge "MediaPlayerBase API" 2018-02-28 16:36:23 +00:00
Ng Zhi An
8347354ed9 Log app start memory state in background
Bug: 73379331
Test: refactoring, unit tests pass
adb logcat -b events | grep "319,"
adb logcat -b stats | grep "55,"

Change-Id: Id959b1b6ce547b9155c72e6734a32b54a2d3a64a
2018-02-28 08:35:10 -08:00
TreeHugger Robot
2f3adb4d27 Merge "Revert "Elevate remote/recents animation priority"" 2018-02-28 16:25:31 +00:00
TreeHugger Robot
8b7ac49698 Merge "Remove repackaged.android.test.mock" 2018-02-28 16:04:20 +00:00
Treehugger Robot
6d9d717ab7 Merge "Delay starting the webview_zygote until first use." 2018-02-28 16:02:58 +00:00
TreeHugger Robot
5acddc1529 Merge "Ignores resolution if installer is disabled" 2018-02-28 15:45:25 +00:00
Bo Zhu
3e58039f87 Merge "Check the given CertPath against the root of trust during recovery" 2018-02-28 15:14:49 +00:00
Anton Hansson
ab6ec61251 frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 15:13:23 +00:00
Tony Mak
e205193f86 Use the proper API to get managed profile user drawable
FIX: 73997367

Test: Go to settings -> Storage, observes the icon change.

Change-Id: I60153b31adf1175aea4cdf960d5094a89e8bc6b9
2018-02-28 15:12:01 +00:00
Artem Iglikov
5e97621c97 Revert "Update A11y action serialization to use longs"
This reverts commit 54549163b0.

Reason for revert: breaks tests, b/73997494

Bug: 73997494
Change-Id: I122c260898277d876c019554cb92351ac13a9eb0
2018-02-28 15:07:31 +00:00
TreeHugger Robot
9371be3b88 Merge "Bmgr about running backups" 2018-02-28 14:26:34 +00:00
TreeHugger Robot
8ab50a9ea4 Merge "Add short term model reset threshold" 2018-02-28 14:24:52 +00:00
Android Build Merger (Role)
68618d9860 Merge "Merge "Don't use cutils/Atomic.h" am: 07735797a2 am: a272d540d8 am: 0f4ca4a5c0" 2018-02-28 14:14:22 +00:00
TreeHugger Robot
924367f6ed Merge "Implement QS spec." 2018-02-28 14:14:16 +00:00
Steven Moreland
df7675f1cb Merge "Don't use cutils/Atomic.h" am: 07735797a2 am: a272d540d8
am: 0f4ca4a5c0

Change-Id: I4b9798b39d890537f888415b5ac283227970e4de
2018-02-28 14:13:52 +00:00
Jorim Jaggi
a8b48ab733 Revert "Elevate remote/recents animation priority"
This reverts commit 574aea0f1b.

Reason for revert: Crashes sometimes (chaselist issue)

Change-Id: I1440ef7a002e85c3e020d424f13073ca2516dd9c
Fixes: 73991490
2018-02-28 14:03:08 +00:00
Steven Moreland
0f4ca4a5c0 Merge "Don't use cutils/Atomic.h" am: 07735797a2
am: a272d540d8

Change-Id: Ie442c255e43f2ebe80ef5423aa4508930d72c44c
2018-02-28 14:01:17 +00:00
TreeHugger Robot
efab39ff7f Merge "Use putIntForUser to turn off ambient display secure settings" 2018-02-28 13:54:25 +00:00
Steven Moreland
a272d540d8 Merge "Don't use cutils/Atomic.h"
am: 07735797a2

Change-Id: Ie56fadea498f35c7e820f9fadac1b64697565a78
2018-02-28 13:51:44 +00:00
Bernardo Rufino
c22741ba32 Merge "More tests for ActiveRestoreSession - 2" 2018-02-28 13:49:26 +00:00
TreeHugger Robot
5240541e01 Merge "Remove @removed from APIs still in use" 2018-02-28 13:43:36 +00:00
Treehugger Robot
07735797a2 Merge "Don't use cutils/Atomic.h" 2018-02-28 12:37:50 +00:00
Bernardo Rufino
760c1f552c Bmgr about running backups
Says that backups can be canceled if one already running. Put message
for running backups in dumpsys for checking.

Bug: 72484277
Test: Triggered backup, checked dumpsys and bmgr backupnow
Change-Id: I028cf663858e374389f50175aaf5a3e8c9d45e42
2018-02-28 12:11:26 +00:00
Dan Gittik
c5d3291487 Add short term model reset threshold
Add a threshold to prevent user birghtness adjustments from reseting
without a drastic enough change in the ambient light, and some minor
refactoring

Test: manually adjust brightness; turn screen off for 30 seconds;
      turn screen back on; brightness shouldn't change
Test: manually adjust brightness; turn screen off for 30 seconds;
      cover light sensor; turn screen back on; brightness should change

Make short term model reset decision only happen once, and change its
threshold to be relative

Test: same as before

Minor refactoring

Test: same as before
Fixes: 72734580

Change-Id: I724e88ddb79a55cadb547463d73131028bb57825
2018-02-28 12:09:52 +00:00
Alexandru-Andrei Rotaru
46aadf67b0 Merge "Notify the user and turn off tethering when the service is disallowed." am: e8b557bc08 -s ours am: 5217a34008 -s ours
am: 49b368b447  -s ours

Change-Id: If888f1000209f015dc097b616c64d626848d4402
2018-02-28 11:40:00 +00:00
Alexandru-Andrei Rotaru
49b368b447 Merge "Notify the user and turn off tethering when the service is disallowed." am: e8b557bc08 -s ours
am: 5217a34008  -s ours

Change-Id: I6672cd7a23ee7c6b5d384fae7111be2948f59e45
2018-02-28 11:25:14 +00:00
Alexandru-Andrei Rotaru
5217a34008 Merge "Notify the user and turn off tethering when the service is disallowed."
am: e8b557bc08  -s ours

Change-Id: I2a1805375252b56209ac9d18da0f1771f5b6187b
2018-02-28 11:11:39 +00:00
Bernardo Rufino
cea93536bc More tests for ActiveRestoreSession - 2
Around restorePackage().

Test: m - j RunFrameworksServicesRoboTests
Change-Id: I291d899d5bb786a1d394e758698418718d6c4d9b
2018-02-28 11:07:30 +00:00
Alex Chau
1e2b7318ba Use putIntForUser to turn off ambient display secure settings
- Without forUser we'll be turning off ambient display in primary user instead

Test: Use TestDPC to set DISALLOW_AMBIENT_DISPLAY in secondary users, ambient display is actually turned off
Bug: 72487689
Change-Id: I11a7a5304fcc609ab37594ad5d28814c217bc7f5
2018-02-28 11:04:39 +00:00
TreeHugger Robot
58c83fa7c8 Merge "Unhide VideoView2 APIs" 2018-02-28 10:43:38 +00:00
Robert Berry
5af199c56e Remove @removed from APIs still in use
I completely misunderstood this annotation.

Bug: 73962883
Test: ran unit tests
Change-Id: Id3e3863fc6fd1e0614a3c75d25cd35239667eaf0
2018-02-28 10:31:43 +00:00
TreeHugger Robot
dc66a1d891 Merge "Unhide MediaControlView2 APIs" 2018-02-28 10:28:25 +00:00
Michal Karpinski
961f409d37 Merge "Allow restoring of apps that rotated key" 2018-02-28 10:08:14 +00:00
Treehugger Robot
e8b557bc08 Merge "Notify the user and turn off tethering when the service is disallowed." 2018-02-28 10:03:02 +00:00
Alexandru-Andrei Rotaru
9f3bad7260 Notify the user and turn off tethering when the service is disallowed.
Added UserRestrinctionListener for turning the service off one the
DISALLOW_CONFIG_TETHERING is on into Tethering.  Added notification
about
tethering being turned off. Also added Unit Tests to test the
functionality
of the UserRestrictionListener added.

Bug: 27936525
Test: Turn the tehering service on (either wifi, usb or bluetooth).
Automatically the system should send a notification about the service
being active.Close settings from recents. From TestDPC User Restrictions
switch on DISALLOW_CONFIG_TETHERING. The tethering should be turned off
and a notification should appear informing that the service is inactive.

Merged-In: Ib7ea8885cedc2a842ebd4487c8b366a6666996bc
Change-Id: I4a57137a7ad592ca186d9508d5cc2fad3f1bc985
2018-02-28 17:52:38 +09:00
Insun Kang
b785faa1d7 Unhide VideoView2 APIs
Test: make update-api
Bug: 64293205
Change-Id: Ie57e3ea78dd623fc095c1ad5f270f3b97320f155
2018-02-28 08:45:37 +00:00