Commit Graph

96994 Commits

Author SHA1 Message Date
wilsonshih
36597d4bd7 Support wallpaper on secondary displays.(7/N)
Expand the wallpaper color listener for multiple displays. This will
allow the launcher on the secondary display can also receive the
correct wallpaper color.

Bug: 115486823
Test: atest WallpaperManagerTest
Test: atest ActivityManagerMultiDisplayTests
Change-Id: I3d893537a8c606170b5641c9eb4683d09743d80c
2018-12-27 12:02:50 +08:00
TreeHugger Robot
434cf654db Merge "Set UID appops mode instead of package appops mode" 2018-12-21 07:22:09 +00:00
TreeHugger Robot
84cdbdfc13 Merge "Send logs to TextClassifier by calling onTextClassifierEvent in NAS" 2018-12-21 02:36:32 +00:00
Philip P. Moltmann
159d98bda1 Set UID appops mode instead of package appops mode
In PermissionManagerService and DefaultPermissionGrantPolicy.

This mirrors what the permission controller is doing. Better make sure
all modules changing app-ops for runtime permissions do it the same way.

Test: Looked at pre-grants after boot, changed permissions after boot
Change-Id: I88386ec6842324b28ab408ea5cd113c9cc7de9fe
2018-12-20 16:08:01 -08:00
TreeHugger Robot
7425194672 Merge "Moved createContentCaptureSession() to ContentCaptureSession." 2018-12-20 22:14:02 +00:00
TreeHugger Robot
7691a62df1 Merge "Add auto-doc to annotation." 2018-12-20 21:50:27 +00:00
Jiuyu Sun
023dfa28b2 Merge "Support profile policy rule as a resolvable error." 2018-12-20 21:47:44 +00:00
Svetoslav Ganov
c60fbd4fcd Merge "Use raw op codes for the watch noted APIs." 2018-12-20 20:59:47 +00:00
Tim Van Patten
6a297058eb Merge "Refactor for Better Resource Management" 2018-12-20 19:28:23 +00:00
TreeHugger Robot
af90060e91 Merge "Observe settings directly in ColorDisplayService" 2018-12-20 19:09:29 +00:00
Fabian Kozynski
0b4592cecb Use raw op codes for the watch noted APIs.
Test: atest com.android.server.AppOpsServiceTests
Test: atest com.android.systemui.appops.AppOpsControllerTest

bug:121246606

Change-Id: Id99923c566fbf132914b15c676cb766d8793e875
2018-12-20 12:58:45 -05:00
Jeff Sharkey
ac8e6fcfe6 Add auto-doc to annotation.
Bug: 117520784
Test: none
Change-Id: I6fb3fb02a5c85e64c5b51ad46fc8bb940501943a
2018-12-20 10:27:29 -07:00
Felipe Leme
87a9dc9a97 Moved createContentCaptureSession() to ContentCaptureSession.
Such move will allow nested sessions. For example, WebView could create a
new session for the main page, then child sessions for IFRAMEs contained on it.

This CL changes the API and provides an initial implementation, although it's
not quite ready yet - it only allows 1 level of children (from the activity
session), but the full implementation is coming soom to a movie theather near
you...

Bug: 121033016
Bug: 117944706

Test: atest CtsContentCaptureServiceTestCases

Change-Id: I86156bb3b8a2c08cb00b9518599eb6d67fbf77c2
2018-12-20 08:59:48 -08:00
TreeHugger Robot
7fa78c545b Merge "Add StorageVolume#createOpenDocumentTreeIntent" 2018-12-20 15:49:11 +00:00
Tim Van Patten
a7577bfa7a Refactor for Better Resource Management
The GraphicsEnvironment/GraphicsEnv code is being refactored to allow
for better resource management related to open files and file
descriptors and reducing the amount of times the rules files are parsed.

This is also laying the groundwork for other modules to query if ANGLE
will be loaded or not, for example to display a dialog box to the user
when ANGLE is selected for an app.

Bug: 120910315
Test: Verify CtsAngleIntegrationHostTestCases passes.
Change-Id: Iedd4e8cd3c79c6656bc824def228213f76ef9849
2018-12-20 15:47:09 +00:00
Svetoslav Ganov
f0bfb0427c Merge "Make sure unsafeCheckOpRaw ops check raw ops" 2018-12-20 15:38:35 +00:00
Michael Groover
71654bbda4 Merge "Enable device identifier check for non-priv apps" 2018-12-20 15:27:55 +00:00
David Brazdil
9ad1461eb9 Merge "Annotate two non-SDK methods known to be used by apps" am: de441278e7 am: 32d2f8fe46
am: a5083783f7

Change-Id: I59f5f3ea5a0424036e1e715e56d8fa16572358b1
2018-12-20 06:09:41 -08:00
David Brazdil
a5083783f7 Merge "Annotate two non-SDK methods known to be used by apps" am: de441278e7
am: 32d2f8fe46

Change-Id: I0d1a0e85eebb555ca43c2d43e6c28ce96af94122
2018-12-20 05:59:08 -08:00
David Brazdil
32d2f8fe46 Merge "Annotate two non-SDK methods known to be used by apps"
am: de441278e7

Change-Id: I66ec979de4ce5731b144cf5173a0a715d1e8f231
2018-12-20 05:50:00 -08:00
David Brazdil
ad857d637a Annotate two non-SDK methods known to be used by apps
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 121237128
Bug: 120783643
Test: m appcompat
Change-Id: Ib7a8bdf3151290aa8a5ca85dc8650612432f0d59
2018-12-20 13:36:21 +00:00
TreeHugger Robot
b444a8b822 Merge "Add a state for Staged Sessions." 2018-12-20 13:19:54 +00:00
TreeHugger Robot
811a5191dc Merge "Changed ContentCaptureService to receive one event at time." 2018-12-20 12:32:19 +00:00
Felipe Leme
9bb25943d7 Merge "Inline some Settings constants so they don't break the SettingsBackupTest." 2018-12-20 08:30:03 +00:00
TreeHugger Robot
db48fe1350 Merge "Factor out service handling out of RuntimePermissionPresenter" 2018-12-20 05:14:12 +00:00
Felipe Leme
6bb8a96683 Inline some Settings constants so they don't break the SettingsBackupTest.
Test: echo 'In TreeHugger we trust!'
Bug: 121153631

Change-Id: I7a1180a3446ba6a5aabb76fbe87113bf0e3096c6
2018-12-19 21:04:28 -08:00
Felipe Leme
a2ada8bf63 Merge "Split ContentCaptureSession in 2 classes." 2018-12-20 04:41:11 +00:00
Christine Franks
57fdde8c0a Observe settings directly in ColorDisplayService
Bug: 111215474
Test: atest FrameworksServicesTest:ColorDisplayServiceTest
Change-Id: I312f3d1b48411a7db16024017982633a85ed6bda
2018-12-19 18:26:14 -08:00
Svet Ganov
9d528a1171 Make sure unsafeCheckOpRaw ops check raw ops
Test: manual

bug:119323172

Change-Id: Ic21d03af3a08bdca76821f2bc644482e7e5a1300
2018-12-19 17:25:52 -08:00
Felipe Leme
fc24beab3e Changed ContentCaptureService to receive one event at time.
The initial implementation was using a batch the events to optimize the
performance, but that can be optimize behind the scenes (i.e., we can still
send the batches in the binder, but deliver them one by one).

This change not only makes it easier for the service to use the API, but it
paves the way to implement multiple sessions (so we can buffer children events
while the parent session is not completely started yet).

Bug: 121033016
Bug: 117944706
Bug: 121051220

Test: atest CtsContentCaptureServiceTestCases

Change-Id: I713ceb998bd81733255fd3ef8d0b8d7a3fcac20c
2018-12-19 16:36:19 -08:00
Felipe Leme
b63e0ddc84 Split ContentCaptureSession in 2 classes.
This is just a refactoring for now, but it paves the way to support children
sessions.

Bug: 121042846
Bug: 117944706

Test: atest CtsContentCaptureServiceTestCases

Change-Id: I64bb5562dcfd4a9f0f69bb13009e4cf47a4f3b37
2018-12-19 16:35:59 -08:00
TreeHugger Robot
d378aac612 Merge "Add secondary launcher mechanism (1/3)" 2018-12-20 00:28:58 +00:00
Felipe Leme
89ce20dfa6 Merge "Fixed how ContentCapture is kill-switched." 2018-12-20 00:25:45 +00:00
TreeHugger Robot
dbcc585dcf Merge "Make AbstractRemoteService available outside of system server" 2018-12-19 23:20:20 +00:00
Felipe Leme
d264c7284b Fixed how ContentCapture is kill-switched.
We provide a way for OEMs to kill-switch Content Capture, but it currently
does not work in the first boot (which uses default settings).

This CL changes the mechanism:

- If the property is not set, it assumes it's disabled (before it was only
  disabled when explicitly set to "false").
- To always enable it, it must be set to "always" (before it was "true").
- To check for the overlaid resource, it must be set to "default" (before it
  had to be unset).

Test: manual verification

Fixes: 121144410
Bug: 121153631

Change-Id: Ie669e43d9dce947a7bb31bc3b1768774f724675f
2018-12-19 14:20:29 -08:00
Gustav Sennton
38c573fef3 Merge "Add javadoc for Notification.getAllowSystemGeneratedContextualActions()" 2018-12-19 22:11:46 +00:00
Philip P. Moltmann
22b8498815 Factor out service handling out of RuntimePermissionPresenter
Fixes: 121270006
Test: Looked at settings page that use RuntimePermissionPresenter
Change-Id: I3030511bce76fd0f30fac1ac922f6ff9f09ca80e
2018-12-19 13:40:17 -08:00
Philip P. Moltmann
29ee0a4827 Make AbstractRemoteService available outside of system server
The handler of the services now runs on Looper.getMainLooper()

Test: Built
Bug: 117779333
Change-Id: Ie2fee4ce19d6e6181537d8adc196a4ceab7eb0f8
2018-12-19 13:39:13 -08:00
TreeHugger Robot
802c621509 Merge "Move app overlay permission to app level" 2018-12-19 21:27:29 +00:00
Tim Van Patten
e8a25e3dbc Merge "Use intent-filter to enforce that only a single ANGLE APK is present" 2018-12-19 21:00:23 +00:00
Dario Freni
71eee5ef91 Add a state for Staged Sessions.
The state is only kept up-to-date for staged sessions. Clients are in
charge of checking whether the session has the isStaged bit set, before
considering reading the StagedSessionState associated to that session.

Test: retrieved mock staged session from a small app and verified state
is correctly set.
Bug: 118865310
Bug: 112669193
Bug: 120487127
Change-Id: I03590476dc353fee6d6edffb7ae579a9f9664664
2018-12-19 20:36:51 +00:00
Holly Jiuyu Sun
881fe4c820 Support profile policy rule as a resolvable error.
Resolvable errors in the download step are present in a bit map and
returned to the calling app. The calling app can resolve all the
resolvable errors at one time.
Also pass cardId around for future use.

Bug: 68941776
Test: test on phone
Change-Id: I37a365bce2eb183161a2649ca8098504b6ed2370
2018-12-19 12:18:37 -08:00
Matthew Fritze
16729c7cd8 Merge "Add SettingsPanel Intent Actions" 2018-12-19 19:21:46 +00:00
Philip P. Moltmann
bee3e3347c Merge "Expose UsbPort and UsbPortStatus as system API" 2018-12-19 19:10:06 +00:00
TreeHugger Robot
5468ebfe88 Merge "bluetooth: fix crash on accessing null adapter" 2018-12-19 18:26:39 +00:00
jiayanhong
4cb6f342ff Merge "Fixed toString() printing error" am: 0e6e776270 am: 6cdb4fde08
am: 9eb509c14e

Change-Id: Ia75eefba3ec6ca4fbc7aaf7c5aee362d33fba9d4
2018-12-19 10:16:43 -08:00
jiayanhong
9eb509c14e Merge "Fixed toString() printing error" am: 0e6e776270
am: 6cdb4fde08

Change-Id: Ia28e56d8a6b76247d552bcdbf43ef71ac80e313e
2018-12-19 10:06:58 -08:00
jiayanhong
6cdb4fde08 Merge "Fixed toString() printing error"
am: 0e6e776270

Change-Id: Id0f5d70a4549480fbb192628ce41796e4da04ad7
2018-12-19 09:54:46 -08:00
Treehugger Robot
0e6e776270 Merge "Fixed toString() printing error" 2018-12-19 17:39:58 +00:00
TreeHugger Robot
7b2b4c838b Merge "Added app context to smart screen brightness." 2018-12-19 17:14:53 +00:00