Commit Graph

25710 Commits

Author SHA1 Message Date
Nate Myren
1a8d1110c0 Merge "Permission flag updates now notify listeners" 2019-07-10 16:03:07 +00:00
TreeHugger Robot
892aa9660e Merge "Remove @Deprecated && @removed methods from DevicePolicyManager." 2019-07-10 03:05:27 +00:00
TreeHugger Robot
f59b0456ef Merge "Re-hide ApplicationInfo.volumeUuid." 2019-07-10 01:38:30 +00:00
Kweku Adams
37f389c6ac Remove @Deprecated && @removed methods from DevicePolicyManager.
They were marked for removal in Nougat.

Bug: 135214188
Test: Android builds
Change-Id: I2c5fc0a8264bd67dbd7e583ebb687e771c873378
2019-07-09 14:30:48 -07:00
Adrian Roos
0cb00861f6 Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev am: 8ef731c232 am: bee24f79f7
am: ace63f135b

Change-Id: Ie7931e951e63f4a5d53618b5f19a75a733710620
2019-07-04 08:30:19 -07:00
Adrian Roos
ace63f135b Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev am: 8ef731c232
am: bee24f79f7

Change-Id: Ic14aaff3851fe0d71100c6f65c8ee46d08ece432
2019-07-04 08:21:20 -07:00
Adrian Roos
bee24f79f7 Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev
am: 8ef731c232

Change-Id: Ie23184e62d410cff170232d15720b22d53f7e6df
2019-07-04 08:07:23 -07:00
Adrian Roos
019a52b4ad WM: implicitly exclude all edges for pre-Q immersive sticky apps
Bug: 135522625
Test: atest DisplayContentTests
Change-Id: Ibe6c2c6d269b15c2e79ac0241b93e42c44a167c9
Exempt-From-Owner-Approval: TBR
2019-07-04 14:35:34 +00:00
Julia Reynolds
c870d6abe9 Make a setting intent public
Specifically, to the DND automatic rule listing page

Test: cts in same topic
Bug: 132272452
Change-Id: I45abdad411a1beccfafba0929d9367d09e1b30dc
2019-07-02 12:27:02 -04:00
Nate Myren
d3a6385686 Permission flag updates now notify listeners
Added a version of the onPermissionUpdated and
onInstallPermissionUpdated methods which will notify
OnPermissionChangedListeners, and added this to the
PermissionManagerService "updatePermissionFlags" and
"updatePermissionFlagsForAllApps" methods. Also adds
OnPermissionsChangedListener to @TestApi

Fixes: 135937566
Test: atest PermissionUpdateListenerTest
Change-Id: I906598c366234c3daaa202261678bca04837cb13
2019-06-28 16:56:26 +00:00
Jorim Jaggi
52ba8df055 Merge "GestureNav: Limit exclusion rects" into qt-dev am: ea3216d462
am: de8014e068

Change-Id: Ibaa2b5dbe34ed53f3c64feca4d71dfa43b6d5f44
2019-06-28 08:53:29 -07:00
Jorim Jaggi
de8014e068 Merge "GestureNav: Limit exclusion rects" into qt-dev
am: ea3216d462

Change-Id: Id52bcbd80028ce0030b7f8b38058e7a786744497
2019-06-28 07:48:06 -07:00
Jorim Jaggi
ea3216d462 Merge "GestureNav: Limit exclusion rects" into qt-dev 2019-06-28 13:48:37 +00:00
Jorim Jaggi
0a0be77a82 Merge "GestureNav: Limit exclusion rects" 2019-06-28 13:13:10 +00:00
TreeHugger Robot
cff467769f Merge "Add TestApi to block the RollbackManagerHandlerThread." 2019-06-28 11:55:53 +00:00
Adrian Roos
bf3bc1b483 GestureNav: Limit exclusion rects
Add limits for system gesture exclusion on the left and right edges.
This prevents non-immersive-sticky apps from totally disabling the
back gesture.

Bug: 135522625
Test: atest SystemGestureExclusionRectsTest

Change-Id: Ib26161663a6aababe803d3c70044f4017bdbe675
Exempt-From-Owner-Approval: Already +2ed on another branch
2019-06-28 18:13:12 +08:00
Adrian Roos
506267d5f4 GestureNav: Limit exclusion rects
Add limits for system gesture exclusion on the left and right edges.
This prevents non-immersive-sticky apps from totally disabling the
back gesture.

Bug: 135522625
Test: atest SystemGestureExclusionRectsTest

Merged-In: Ib26161663a6aababe803d3c70044f4017bdbe675
Change-Id: Ib26161663a6aababe803d3c70044f4017bdbe675
2019-06-28 17:59:06 +08:00
TreeHugger Robot
559ce55e7f Merge "Record initial app given importance" 2019-06-26 16:17:38 +00:00
Richard Uhler
798b859b2b Add TestApi to block the RollbackManagerHandlerThread.
To eliminate flakiness when testing timeout conditions for
RollbackTest.testEnableRollbackTimeoutFailsRollback.

Test: atest RollbackTest.testEnableRollbackTimeoutFailsRollback in a loop
Bug: 134373106
Change-Id: I01f3e769711ffa51fa714ff4bc81e70887f427ad
2019-06-26 10:51:23 +01:00
Julia Reynolds
469144c3e8 Record initial app given importance
To allow users an easy way to 'go back to how it was'

(also migrate some tests to other files)

Test: atest, cts
Bug: 135751328

(cherry picked from commit 03de363ce278b6d708a6d30f83468584a14a65d5)

Change-Id: I949f366410d2cb2ab424b1b03222743e6e60d867
2019-06-25 10:16:19 -04:00
Kweku Adams
9ce47aae11 Re-hide ApplicationInfo.volumeUuid.
The @hide annotation was removed during Oreo development but then
storageUuid was created instead to be the public field. Changing
volumeUuid back to @hide since the system still uses it.

Bug: 135214188
Test: Android builds
Change-Id: I8b3c544daecfe43f5a725ea3080d90a167dcc463
2019-06-21 13:23:33 -07:00
Kweku Adams
316b14147d Remove deprecated & removed JobInfo methods.
These methods were marked deprecated and tagged with @removed
before Pie shipped but ConnectivityController wasn't updated to perform
the proper computations. This removes the deprecated methods altogether
and updates ConnectivityController accordingly.

Bug: 135214188
Test: atest com.android.server.cts.JobSchedulerIncidentTest
Test: atest com.android.server.job.controllers.ConnectivityControllerTest
Test: atest com.android.providers.downloads.DownloadProviderFunctionalTest
Change-Id: I7c364a4326c31e8aae54a4fc69703434d8c7c915
2019-06-21 11:39:28 -07:00
TreeHugger Robot
f62b91043c Merge "Remove @Deprecated && @removed hardware methods." 2019-06-21 00:51:31 +00:00
TreeHugger Robot
e493e60354 Merge "Remove SystemClock.uptimeMillisClock()." 2019-06-20 20:06:53 +00:00
Amith Yamasani
582bedd9d9 Merge "Expose BIND_NOT_PERCEPTIBLE service flag" into qt-dev am: 41d0b1abc8 am: 29c3068cb4
am: 6fb1afce50

Change-Id: Ie4b878d3fa6ae8c0619b10fe8d87a06c3b182ca4
2019-06-20 09:10:41 -07:00
Amith Yamasani
6fb1afce50 Merge "Expose BIND_NOT_PERCEPTIBLE service flag" into qt-dev am: 41d0b1abc8
am: 29c3068cb4

Change-Id: I835c10d85d623a3b9bf25947f222695dde05dc28
2019-06-19 23:18:27 -07:00
Amith Yamasani
29c3068cb4 Merge "Expose BIND_NOT_PERCEPTIBLE service flag" into qt-dev
am: 41d0b1abc8

Change-Id: I209930a67dfc89cf4c5178ad21452e624122df7f
2019-06-19 22:53:06 -07:00
TreeHugger Robot
41d0b1abc8 Merge "Expose BIND_NOT_PERCEPTIBLE service flag" into qt-dev 2019-06-20 05:34:34 +00:00
TreeHugger Robot
9562bc95cb Merge "Remove @Deprecated && @removed package fields." 2019-06-19 21:42:39 +00:00
Amith Yamasani
5016a7891a Expose BIND_NOT_PERCEPTIBLE service flag
Using this flag when binding to a service will
allow the bound process to be held at a low
oom_adj of 250, so that it can be expunged to
reclaim memory if a more user-visible app needs
it.

Use for bindings such as job services and other
connections that the caller can easily recover
from and restart if necessary.

Adjust the lmk thresholds to use this oom_adj
as one of the levels, so they're killed before
perceptible apps (such as foreground services).

Bug: 135219821
Test: CtsAppTestCases
      Manually check notification listener oom_adj
      and dumpsys activity services output

Change-Id: I9f6d0891d842e4d12f7995b9b1a8f57b0903a16d
2019-06-19 14:40:57 -07:00
Kyunglyul Hyun
081b18663a Media: Adds TAG_THUMBNAIL_ORIENTATION to ExifInterface
Using the new tag, users can distiguish orientation from IFD0 and IFD1.

Bug: 135583583
Test: manually with a file attached on the bug
Test: atest ExifInterfaceTest (in cts)
Change-Id: I0ac22f5d740eadc8662920b3e87619d094f0098c
2019-06-19 18:18:29 +09:00
lumark
171a9eb04b Merge "Merge "Make InputMethodSystemProperty#MULTI_CLIENT_IME_ENABLED testable." into qt-dev am: b7abebde5b am: c0ecccca16" into qt-r1-dev-plus-aosp
am: 6533a69689

Change-Id: Ibea62abfce411333b3eb9b7cc0bf0876c065e67e
2019-06-18 05:53:38 -07:00
lumark
5df8aa8ee8 Merge "Make InputMethodSystemProperty#MULTI_CLIENT_IME_ENABLED testable." into qt-dev am: b7abebde5b
am: c0ecccca16

Change-Id: Iaf173a4f4f1ddd89421ab14f38c44639b1cc2726
2019-06-18 05:45:49 -07:00
lumark
cf48a8e828 Merge "Make InputMethodSystemProperty#MULTI_CLIENT_IME_ENABLED testable." into qt-dev
am: b7abebde5b

Change-Id: I2224102556d110021150ddb6eea90bb0be2c2f36
2019-06-18 05:32:30 -07:00
lumark
c0ecccca16 Merge "Make InputMethodSystemProperty#MULTI_CLIENT_IME_ENABLED testable." into qt-dev
am: b7abebde5b

Change-Id: I7459ec72287ffa36bcc11e9cce87d9a4258705d5
2019-06-18 05:32:28 -07:00
TreeHugger Robot
b7abebde5b Merge "Make InputMethodSystemProperty#MULTI_CLIENT_IME_ENABLED testable." into qt-dev 2019-06-18 12:27:15 +00:00
Kweku Adams
091fa30767 Remove @Deprecated && @removed package fields.
They were tagged as @removed in Nougat and Oreo.

Bug: 135214188
Test: Android builds
Change-Id: Id52c23d02e2c4b7781c9b138ac2cf29cbf70c09c
2019-06-17 16:25:51 -07:00
Kweku Adams
bde8ba4100 Remove SystemClock.uptimeMillisClock().
It was marked @removed in Pie. Now removing it from the code.

Bug: 135214188
Test: atest FrameworksMockingServicesTests
Change-Id: Id8bdf28d8d10a767f54af1bf421185e179c0379a
2019-06-17 15:03:37 -07:00
Kweku Adams
26166043f6 Remove @Deprecated && @removed hardware methods.
The methods were marked @removed in Oreo. Finally removing it from code.
SensorDirectChannel.isValid is currently used by Roboelectric so it will
have to be removed separately.

Bug: 135214188
Test: Android builds
Change-Id: Ib357ad76654326d94f6873102de22451bf4f5b59
2019-06-17 14:15:40 -07:00
TreeHugger Robot
45a2a9a279 Merge "Remove PictureInPictureArgs." 2019-06-17 14:51:52 +00:00
lumark
ca442d5d9f Make InputMethodSystemProperty#MULTI_CLIENT_IME_ENABLED testable.
Annotates InputMethodSystemProperty#MULTI_CLIENT_IME_ENABLED as @TestApi
to let cts can verify if multi-client IME enabled.

Bug: 135217809
Test: build and passes
Change-Id: Id7b4dceb2dbfaf3d7ed1084957dd14b04cad0cdf
2019-06-17 16:09:42 +08:00
Kweku Adams
8fbd9bfab5 Remove PictureInPictureArgs.
The class was marked @Deprecated and @removed in Oreo but stuck around
despite not being used.

Bug: 135214188
Test: flash device and confirm PiP still works
Change-Id: I34c5043a1e4ee6639f7fae4d114c247bc3fe810c
2019-06-14 18:39:15 -07:00
bj1211jeon
85966252ef DO NOT MERGE: Add DENSITY_450 am: b38f168397
am: 99d0705722

Change-Id: I7b9bd8d7e715c6c492ad559967b8d9dfee3e7220
2019-06-14 18:09:58 -07:00
bj1211jeon
99d0705722 DO NOT MERGE: Add DENSITY_450
am: b38f168397

Change-Id: I594b671e05c9ba364583d7774454207fb4d89580
2019-06-14 17:45:45 -07:00
bj1211jeon
2153bd3920 DO NOT MERGE: Add DENSITY_450
am: b38f168397

Change-Id: Iae2867be2b3533da492ddfc79e3006fe385742d4
2019-06-14 17:41:26 -07:00
Kweku Adams
f94be8a9f8 Remove PowerManager.ACTION_SCREEN_BRIGHTNESS_BOOST_CHANGED.
The action was marked as deprecated and removed in Oreo but left around.

Bug: 135214188
Test: atest android.os.PowerManagerTest
Test: atest android.os.cts.PowerManagerTest
Test: atest android.os.cts.PowerManagerTests
Change-Id: Icc3e039dd135fe7e8895b7830d11efdedcfa05c3
2019-06-14 16:58:25 -07:00
bj1211jeon
b38f168397 DO NOT MERGE: Add DENSITY_450
Add 450dpi as a supported screen density.
This change follows up below change Id : Iac673eae2d82c27d96e279c076454af2f5933208

Originally 600dpi was added to support sw384 with WQHD resolution,
though it was lack of for the cases when resolution is FHD resolution. (In case of other resolutions, there already exist 300 and 200 for HD and WVGA resolutions).

Bug: 78283907
Test: run android.dpi.cts.ConfigurationTest#testScreenConfiguration and android.app.cts.ActivityManagerMemoryClassTest#testGetMemoryClass
(cherry picked from commit 13ca0450ede3eedf7d34bbd0b69525cb6ebc63f1)

Change-Id: Ide0baba183c7dea962610d16f18fecbd0dc62567
2019-06-14 15:41:13 -07:00
TreeHugger Robot
5ca06946f4 Merge "Make SurfaceControl Transaction parcelable 1/2" 2019-06-13 17:19:45 +00:00
Ryan Lin
1877e93695 Merge "added getDisplayId for AccessibilityWindowInfo" 2019-06-13 08:14:32 +00:00
Vishnu Nair
629df2bb8f Make SurfaceControl Transaction parcelable 1/2
Allow clients to send SurfaceControl Transactions across processes to
enable more advanced synchronization use cases.

Bug: 132205507
Test: go/wm-smoke
Change-Id: I20a33cafc0960e73f9a2c3d740f81319e02b68ff
2019-06-11 16:03:38 -07:00