Commit Graph

97120 Commits

Author SHA1 Message Date
Jorim Jaggi
cfd6f3b407 A brave new world for window insets (7/n)
Ensure that the client visibility state affects other subsystems,
like accessibility as well as input.

Test: WindowStateTest
Bug: 118118435
Change-Id: I8a50a0b82dc76e578861967197350eaa3867f837
2019-01-04 17:30:23 +01:00
Michal Karpinski
4ea8d6188c Merge "Block activity starts from background when realCallingUid is a persistent system process and the start wasn't explicitly whitelisted by the sender" 2019-01-04 12:57:45 +00:00
Dario Freni
2b9930d0b7 Merge "Write staged sessions to /data/staging." 2019-01-04 10:20:23 +00:00
Richard Uhler
9b86c73c45 Merge changes from topic "rollback_systemapi"
* changes:
  Add test for multi-package rollback.
  Fix bug where RollbackManagerService ignores package name.
  Add test for user data rollback.
  Move rollback manager implementation to RollbackManagerServiceImpl
  Don't expose RollbackManagerService's internal Handler.
  Make RollbackManager @SystemApi.
2019-01-04 09:02:21 +00:00
Rhed Jao
9aa8aa1c06 Merge "Refine spoken feedback string for a11y shortcut dialog" 2019-01-04 08:05:51 +00:00
Rhed Jao
56af80c96a Merge "Accessibility timeout: Update integer range to APIs" 2019-01-04 08:05:21 +00:00
Charles Chen
68b5a35cec Merge changes from topic "commandQueue"
* changes:
  Introduce AutoHideController to centralize call to WMS (4/N)
  Make Some APIs in CommandQueue aware of multi-display (3/N)
2019-01-04 06:39:25 +00:00
Rhed Jao
5d9618bda1 Refine spoken feedback string for a11y shortcut dialog
Bug: 120038227
Test: atest AccessibilityShortcutControllerTest
Change-Id: I49e19655cd4a00830ff4d2cfbe16ae22b22eee49
2019-01-04 12:34:27 +08:00
TreeHugger Robot
358acd5854 Merge "Ignore ContentCapture events after the activity stopped." 2019-01-04 00:35:37 +00:00
TreeHugger Robot
ee00fea76b Merge "Fix drag and drop (1/3)" 2019-01-04 00:11:26 +00:00
TreeHugger Robot
a449853e6e Merge "Rename updatable graphics driver to Game Update Package." 2019-01-03 23:06:35 +00:00
Felipe Leme
bef744c48c Ignore ContentCapture events after the activity stopped.
Test: atest CtsContentCaptureServiceTestCases
Bug: 121033016

Change-Id: I016f13748287f77b7c5f0ceb12a5af1bb2b555ea
2019-01-03 13:02:02 -08:00
TreeHugger Robot
25edac0f17 Merge "Ignore 'wake display' event when AOD is off" 2019-01-03 19:52:28 +00:00
TreeHugger Robot
8319a7ee7f Merge "Plumb new functor in native/webview" 2019-01-03 19:15:24 +00:00
Bo Liu
d6668e7c0c Plumb new functor in native/webview
Add plumbing to native/webview for the new functor.
Add a void* data parameter to avoid having to use a thread safe
map for in both the plumbing and in webview.

Test: Compiles and webview runs
Bug: 120997728
Change-Id: I0f9f3acb05688a5afcf95974bc0b3b117f33a8e3
2019-01-03 19:15:18 +00:00
Jeff Sharkey
c54ffd28f7 Merge "MediaStore should reflect state on disk." 2019-01-03 17:56:17 +00:00
Adam He
f15c481604 Merge "Moved buffer for VIEW_TEXT_CHANGED events to MainContentCaptureSession." 2019-01-03 17:16:12 +00:00
Adam He
dc0d7b0ccc Merge "Merge app-specific and generic user data for field classification." 2019-01-03 17:15:57 +00:00
Christine Franks
83ddf8e8be Merge "Add ColorDisplayServiceInternal local service" 2019-01-03 16:25:28 +00:00
Wale Ogunwale
a7b3c1a7b2 Merge "Add support for singleTaskInstance displays" 2019-01-03 16:00:22 +00:00
Charles Chen
f3d295c58a Make Some APIs in CommandQueue aware of multi-display (3/N)
By this CL, we could dispatch Callback to fragments on the specified
display. I also add some annotations for documenting.

TODO: 1. add tests for multi-display.
      2. make registerStatusBar be an IStatusBar API to propagate the
         information when a display is added or in the initial step.
      3. Introduce AutoHideController

Test: atest SystemUiTests
Bug: 117478341

Change-Id: I864600f929c1d0c8aa39274f30c17b213b754d86
2019-01-03 22:12:38 +08:00
Michal Karpinski
ac116df518 Block activity starts from background when realCallingUid is
a persistent system process and the start wasn't explicitly
whitelisted by the sender

Also, adds mechanism to temporary whitelist processes when
broadcast-based PendingIntent was whitelisted, so that
activities can be opened for the duration of the broadcast
being processed.

For now, all this is only wired for notifications.

Note: those whitelists are separate - only UI elements like
notifications will leverage both in order to support trampolines.
Other system-based PendingIntent senders should only use the
activity-based whitelist when they want an activity to be opened
from background.

Bug: 110956953
Test: atest WmTests:ActivityStarterTests
Test: manual with Play notifications that are known
      for doing trampolines

Change-Id: Ibab91cdbe7afc0aed29d430dd41327272020925b
2019-01-03 12:26:43 +00:00
TreeHugger Robot
6150cc58dc Merge "Range.java:Correct sign error in description" 2019-01-03 05:46:15 +00:00
TreeHugger Robot
bb459ce745 Merge "[GUP] Hard code the name of the whitelist file." 2019-01-03 03:24:18 +00:00
Kevin Chyn
c7e24fd36a Merge "Move null check" 2019-01-03 03:06:12 +00:00
TreeHugger Robot
f2497e52b1 Merge "Introduce android:preferCodeIntegrity, private for now" 2019-01-03 02:43:17 +00:00
TreeHugger Robot
0995402a41 Merge "Refactoring canSuspendPackage to support batch queries" 2019-01-03 02:12:57 +00:00
Nate Fischer
d6ca59a508 Merge "WebView: no bars in javadoc" into pi-dev am: 002c637337
am: 23a006b6e2

Change-Id: I8882626eeefce0b2a5e483b8612b45b05ce4faa6
2019-01-02 18:12:03 -08:00
Nate Fischer
23a006b6e2 Merge "WebView: no bars in javadoc" into pi-dev
am: 002c637337

Change-Id: I093585bdc5beaff3f6479b660d9d6d7b5577a5d2
2019-01-02 18:00:02 -08:00
Peiyong Lin
3a1be746c0 [GUP] Hard code the name of the whitelist file.
Allowing customized whitelist filename could result in inconsistency and
fragmentations in toolings.

BUG: 120870520
Test: Build, flash and boot
Change-Id: Ibe9337b358b6a67600048f1661d73574d7bea607
2019-01-02 17:46:55 -08:00
Peiyong Lin
b33ffca825 Rename updatable graphics driver to Game Update Package.
We have rebranded this project to Game Update Package, and GUP for short.

BUG: 119221883
Test: Build, flash and boot. Verify by going to developer options.
Change-Id: If284bd3e0b29cb025833be29fa33179011c151d7
2019-01-02 17:00:00 -08:00
Victor Hsieh
e7b5a8dbd7 Introduce android:preferCodeIntegrity, private for now
This attribute is default to false, and if set to true, indicates that
the app wants to run with strong integrity guarantee currently the
platform can provide the best.

In this change, this flag implies that on install time,
 1) .dex and .so must be stored uncompressed and aligned to install
 2) android:extractNativeLibs must be false to install

At run time, ART will run from the dex within the APK directly, and NDK
libraries will be mapped directly from the APK.  This way, thest files
stay protected by signature.

The attribute currently stays in private to make development progress.
We plan to make it public once we confirm the demand from some apps.

Test: atest AppIntegrityTest (to be added in ag/5554864 after publicized)
Bug: 112037137
Change-Id: Ifde90cb0666fbb57e8b61f90b4ba1a2dd2a2b4ae
2019-01-02 16:45:49 -08:00
Gopalakrishnan Nallasamy
ad1c854f87 Range.java:Correct sign error in description
Current description for android.util.Range says ""All ranges are bounded, and the left side of the
range is always {@code >=} * the right side of the range." It should have been  "<=" there instead
of ">=".  So, corrected that in this CL.

Bug: 122271254

Test: make offline-sdk-docs
      Modified description was visible correctly.

Change-Id: I1eaa94210b39813b3e72ac2a0834bc0b466a99a5
2019-01-03 00:27:06 +00:00
Dario Freni
a8f4b13166 Write staged sessions to /data/staging.
If a session is marked as isStaged, write the package files directly on
a directory named /data/staging/session_${SESSION_ID}, instead of the
/data/app temporary directory. This allows us to set different SELinux
policy (e.g. allowing apexd to read that directory), and to persist the
data across reboots without altering the existing code.

To ensure we cover existing workflows, in this CL we try as much as
possible to re-use existing code to create staging directories and wire
data into them.

Bug: 118865310
Test: Verified that adb install --staged file.apk successfully creates a
/data/staging/session_SESSION_ID/base.apk file. If --apex is passed, the
file is named base.apex.
Change-Id: Iacfd7cfb90b738eeb752fec3e6a4e38ea307259a
2019-01-02 23:38:57 +00:00
Tobias Thierer
8e19d42270 Merge "Fix @NonNull -> Nullable for Intent.replaceExtras()." am: 645a9d1253 am: a2cc0fbeec
am: 4c6f437438

Change-Id: I0d1179c070d1a3f1cc900de05d7dbaf6889508aa
2019-01-02 15:29:38 -08:00
Tobias Thierer
4c6f437438 Merge "Fix @NonNull -> Nullable for Intent.replaceExtras()." am: 645a9d1253
am: a2cc0fbeec

Change-Id: Idd0c12ea791db459dbba39115c38eae843634bb9
2019-01-02 15:16:07 -08:00
Tobias Thierer
a2cc0fbeec Merge "Fix @NonNull -> Nullable for Intent.replaceExtras()."
am: 645a9d1253

Change-Id: Ia09f8a945159951a2a098dc88001d9509f704335
2019-01-02 15:06:01 -08:00
Treehugger Robot
645a9d1253 Merge "Fix @NonNull -> Nullable for Intent.replaceExtras()." 2019-01-02 22:49:30 +00:00
Adam He
ac13265ed1 Moved buffer for VIEW_TEXT_CHANGED events to MainContentCaptureSession.
Bug: 121042846
Test: atest android.contentcaptureservice.cts.LoginActivityTest#testTextChangeBuffer
Test: atest CtsContentCaptureServiceTestCases
Change-Id: Ia0128c1c868d44da954e67b38dfb2bde6461b883
2019-01-02 14:44:03 -08:00
Eric Holk
d1a002605f Merge "[LayoutInflater] Cleanup - remove some nesting" am: 3a0fe2cdab am: a261d6e664
am: 6abf873683

Change-Id: I5b89a07c28f2d38af94a80137fd9a97d72b09091
2019-01-02 14:41:25 -08:00
Eric Holk
6abf873683 Merge "[LayoutInflater] Cleanup - remove some nesting" am: 3a0fe2cdab
am: a261d6e664

Change-Id: I8f6bb61ffc085ff224f631c916e19e05216faeed
2019-01-02 14:31:25 -08:00
Wale Ogunwale
9e737db3c9 Add support for singleTaskInstance displays
singleTaskInstance displays will only contain on task. This is mostly
used by ActivityView for use cases like bubbles.

Bug: 121047677
Test: atest ActivityManagerMultiDisplayTests#testSingleTaskInstanceDisplay
Change-Id: I5166015d8ecfa2845b4ffaa6c16d21a30a56b8a8
2019-01-02 14:27:05 -08:00
Eric Holk
a261d6e664 Merge "[LayoutInflater] Cleanup - remove some nesting"
am: 3a0fe2cdab

Change-Id: I5f44de5983793c1a8e089977934d48bf032d0686
2019-01-02 14:13:34 -08:00
Adam He
1cb6f80670 Merge app-specific and generic user data for field classification.
Bug: 118617202
Test: atest CtsAutoFillServiceTestCases
Test: atest android.autofillservice.cts.FieldsClassificationTest android.autofillservice.cts.UserDataTest

Change-Id: Ibb958e0ca790d798c7c62bce5f7dbc108041fe07
2019-01-02 13:22:18 -08:00
Eric Holk
bfc687007c [LayoutInflater] Cleanup - remove some nesting
The parseInclude method had some deep nesting that could be improved by
rearranging things a little.

Test: atest android.view.cts.LayoutInflaterTest
Change-Id: I2ee13c2ee80bcb220371d39a5a6da6044cfa245c
2019-01-02 11:11:24 -08:00
Jeff Sharkey
96afa169f7 MediaStore should reflect state on disk.
It's an index of data scanned from disk, and it's been misleading to
let people mutate that data directly in MediaStore, since those
edits aren't durable in any way.  We never updated the metadata in
the underlying files, so any changes would be lost when moving
between devices.

This change moves to always re-scan files after they've been edited,
to ensure we pick up metadata changes.  It also ignores direct edit
attempts from apps.

Bug: 120711487
Test: atest android.media.cts.MediaScannerTest
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I4cc3ae24d6c6b5f01fe4bb47610ccf162c81ce83
2019-01-02 11:46:50 -07:00
Christine Franks
245ffd4bc6 Add ColorDisplayServiceInternal local service
For display white balance and grayscale

Bug: 111215474
Test: atest FrameworksServicesTest:ColorDisplayServiceTest
Change-Id: I5c7b6543665e520b4e167ac8e6719f337018f172
2019-01-02 10:30:54 -08:00
Mathew Inwood
8501ae1763 Merge "Limit access to suspected false positives." am: aeda49d185
am: 152d5a5dcd

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1
2019-01-02 05:00:54 -08:00
Mathew Inwood
152d5a5dcd Merge "Limit access to suspected false positives."
am: aeda49d185

Change-Id: Ib24456aaad850d5aee46dd242513840511942536
2019-01-02 04:48:33 -08:00
Richard Uhler
c739c8c3f9 Make RollbackManager @SystemApi.
Require callers hold a new MANAGE_ROLLBACKS permission to interact with
the RollbackManager.

Bug: 112431924
Test: atest RollbackTest, with new test for permissions added,
      and with selinux in permissive mode.
Test: atest CtsPermission2TestCases:PermissionPolicyTest
Change-Id: I73f4f3457d85be580670cd69c89066d2cc348186
2019-01-02 09:19:45 +00:00