Commit Graph

87650 Commits

Author SHA1 Message Date
Denis Hsu
ec3c656cd6 Merge "Catch egl errors when drawIntoSurfaces" am: 7604961e1d am: 3bfa2ca8ea
am: 8721af8b15

Change-Id: I5c37f68e07bdd9bd9a9febf99b18893fde4ab8ac
2018-12-06 00:42:18 -08:00
Denis Hsu
8721af8b15 Merge "Catch egl errors when drawIntoSurfaces" am: 7604961e1d
am: 3bfa2ca8ea

Change-Id: Ia44f88a6924aaf3f58661783b797f1d64da2f5ad
2018-12-06 00:26:51 -08:00
Denis Hsu
3bfa2ca8ea Merge "Catch egl errors when drawIntoSurfaces"
am: 7604961e1d

Change-Id: I32e0503ee15061a1f7b35086b2d7bd4bbc52d094
2018-12-06 00:18:00 -08:00
Treehugger Robot
7604961e1d Merge "Catch egl errors when drawIntoSurfaces" 2018-12-06 07:52:46 +00:00
Jeff Sharkey
8f18e25afa Merge "Get CtsProviderTestCases targeting modern SDK." 2018-12-06 06:32:30 +00:00
Jeff Sharkey
52ba19b50b Get CtsProviderTestCases targeting modern SDK.
Grant tests the "write_settings" appop they needs to run, and test
against well-known key.

Move away from FileCopyHelper, which uses deprecated
MODE_WORLD_READABLE mode.  Define TestSRSProvider to get a valid
provider to notify against.

Bug: 120429729, 120577010
Test: atest CtsProviderTestCases
Change-Id: I5b78ee2df66562f1356aa36c3c92781c5aca5d43
2018-12-05 21:05:17 -07:00
Nate Fischer
7198156c27 Merge "WebView: remove unused Token Binding system APIs" 2018-12-06 03:57:54 +00:00
Cody Northrop
3f452404bd Merge "Guard ANGLE rules file check with DEBUG flag" 2018-12-06 03:52:57 +00:00
TreeHugger Robot
d9ddcd6a9e Merge "Add @InspectableProperty to View" 2018-12-06 03:42:41 +00:00
Wu Ahan
2abe8b3b9e Merge "Apply cache and preload mechanism to inline image notifications." 2018-12-06 03:36:05 +00:00
TreeHugger Robot
fce7ec9737 Merge "Log a string to logcat when ContentProvider access gets denied due to appop" 2018-12-06 02:42:50 +00:00
Dianne Hackborn
77b13fd30a Merge "Fix various issues in ordering of grouped bindings." 2018-12-06 00:44:24 +00:00
TreeHugger Robot
fdb30ae286 Merge "Few improvements on Augmented Autofill." 2018-12-05 23:19:06 +00:00
Ashley Rose
25c291da8e Add @InspectableProperty to View
Bug: 120492712
Test: make framework
Change-Id: Ie2269898e0b0b526d9bb3e72286d7164de079dd6
2018-12-05 17:07:23 -05:00
TreeHugger Robot
797aa66e71 Merge "Add query argument QUERY_ARG_EXCLUDE_MEDIA" 2018-12-05 21:22:35 +00:00
Yunfan Chen
832a305fff Merge "Introduce display windowing mode to WindowConfiguration" 2018-12-05 19:10:15 +00:00
Dianne Hackborn
2f55e5a929 Fix various issues in ordering of grouped bindings.
Everything needed to get the CTS tests to work.

Also:

- Change process names to be unique per isolated instance,
  and no longer use isolated uid in proc stats, so we don't
  have a crazy number of process entries there.
- Again move activity manager dumpsys output so we aren't
  spewing less useful stuff at the end where it hides the
  core state about processes.
- Fix protos so that we can read InstrumentationInfo from the
  activity manager protos.  (There was confusion about writing
  protos for a PackageItemInfo vs. an ApplicationInfo.)

Test: atest CtsAppTestCases:ServiceTest\#testActivityServiceBindingLru
Bug: 111434506
Change-Id: I2c86bd1daa582a5c60950173ca12e8ec21b13ead
2018-12-05 11:03:58 -08:00
TreeHugger Robot
344131ba4d Merge "StatsManager: @Deprecated always-deprecated fields" 2018-12-05 18:37:08 +00:00
Cody Northrop
bcf422bde1 Guard ANGLE rules file check with DEBUG flag
Temporarily disable ANGLE rules file checking to avoid
LeakedClosableViolation which is triggering crashes.

This can be removed when refactor is completed that avoids
holding a file descriptor open until the driver loads.

Bug: 119516511
Test: cts-tradefed run singleCommand cts -m CtsAngleIntegrationHostTestCases
Change-Id: Icd8a48c853825ebfd64cf0746ae8203554e1684e
2018-12-05 11:27:49 -07:00
Felipe Leme
bf93cdcb91 Few improvements on Augmented Autofill.
- Send the initial value of the focused field, so the service can decide whether
  or not to display the autofill UI if it's not empty.
- Log how long it took for the service to handle the request and to hte system
  to render the UI.
- Use CloseGuard to make sure the UI is properly destroyed.

Bug: 120303290
Bug: 119638877

Test: manual verification

Change-Id: I7abed10c0915ff9a2deddb488c70e1491cdbd480
2018-12-05 08:49:25 -08:00
Christine Franks
ca1fd658ed Merge "Add IColorDisplayManager" 2018-12-05 16:29:51 +00:00
TreeHugger Robot
0492440cd9 Merge "Changed how the Smart Suggestions service is defined." 2018-12-05 16:15:50 +00:00
Yueming Wang
e95bb70598 Merge "Add a hidden API for Cross Profile Calendar Settings UI." 2018-12-05 16:10:31 +00:00
Wei Wang
9c2b6766ba Merge "Thermal: change WARNING level to EMERGENCY" 2018-12-05 15:37:21 +00:00
Martijn Coenen
711ef9f4fc Merge "Prevent initializing binder from LoadedApk when we can." 2018-12-05 11:46:24 +00:00
TreeHugger Robot
d2bc0b875e Merge "Camera: Extend recommended stream configurations annotations" 2018-12-05 10:10:27 +00:00
TreeHugger Robot
f4764351fc Merge "Add USB_ALARM_TEMPERATURE in SettingsProvider" 2018-12-05 07:02:14 +00:00
Jackal Guo
100a6f0417 Merge "Get long press timeout directly" 2018-12-05 06:33:13 +00:00
Ivan Chiang
1edfcb2517 Add query argument QUERY_ARG_EXCLUDE_MEDIA
Use the argument to decide whether the files that have been
added to MediaStore should be excluded. If the value is true,
exclude them. Otherwise, include them.

Bug: 119390918
Test: manual
Change-Id: I245e4303a265a95b30400083841c593b66c4d960
2018-12-05 14:08:02 +08:00
Jeff Sharkey
9246fc7616 Merge "Stop indexing location metadata." 2018-12-05 05:46:18 +00:00
Yunfan Chen
7daa6acedf Introduce display windowing mode to WindowConfiguration
Introduce mDisplayWindowingMode to WindowConfiguration, and show caption
for standard activities if the display windowing mode is freeform.

Test: Mannual. On secondary display, full screen activities will have a
caption bar, e.g., Pixel Logger.
Test: go/wm-smoke
Test: atest DisplayContentTests
Test: atest WindowConfigurationTests
Test: atest ConfigurationContainerTests

Change-Id: Iedaeb0886bd6d61ad29db0ba98def7c004298afd
2018-12-04 21:45:01 -08:00
TreeHugger Robot
eb126b6e12 Merge "Use pooledLambda in RuntimePermissionPresenterService" 2018-12-05 04:18:22 +00:00
Sunny Goyal
cf8be14d5e Merge "Adding API to specify a dark text specific layout in app-widgets" 2018-12-05 04:12:20 +00:00
Hyundo Moon
873d88d2c0 Merge "AML: Unhide KeyEvent.isMediaSessionKey()" 2018-12-05 03:00:13 +00:00
Edgar Wang
495b657b97 Add USB_ALARM_TEMPERATURE in SettingsProvider
In terms of the feature of USB overheat warning, SettingsProvider needs the implementation for the integration.

Bug: 118794842
Test: Build, flash and boot, verify
Change-Id: I41aacd5a7ed7ab1ce0212e7d2520e3c51d7d3bc1
2018-12-05 02:09:08 +00:00
Felipe Leme
658c8e423f Changed how the Smart Suggestions service is defined.
Initially it was defined as secure Settings, but the proper way is to let the
OEMs set it by overlaying a framework resources, which an option to temporarily
override that setting using a Shell cmd (so it can be changed on CTS tests).

This CL also changes how the service can be explicitly enabled / disabled at
the time the system starts, so it can be disabled by a server-push in case of
emergencies (and also manually enable by developers when running the CTS tests
on AOSP builds).

Bug: 119776618
Bug: 111276913
Bug: 117779333

Test: adb shell settings put global \
   smart_suggestions_service_explicitly_enabled true && \
   sleep 10s && \ adb shell stop && adb shell start \
   atest CtsContentCaptureServiceTestCases
Test: atest FrameworksCoreTests:SettingsBackupTest
Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break
Test: m -j SettingsProvider

Change-Id: Ibd1bba0c0d534b4b6344516d8ff893142785a57a
2018-12-04 17:46:49 -08:00
Nate Fischer
eb667e66eb WebView: remove unused Token Binding system APIs
These APIs never really launched, and the Token Binding protocol is no
longer supported by the chromium team (which means these APIs have been
broken for some time).

This removes most of the TokenBinding API surface, keeping (and
deprecating) just enough to allow us to still compile and run WebView
APKs.

Bug: 119576150
Test: make update-api
Change-Id: Ia5a4258aac5ed21691ea36a428b4aa7195ff21ca
2018-12-04 17:32:12 -08:00
Jackal Guo
b03bf399ee Merge "Make A11Y_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED as SystemApi" 2018-12-05 01:07:58 +00:00
yuemingw
9dd0ba0e05 Add a hidden API for Cross Profile Calendar Settings UI.
Settings wants to know if there is currently any package that is allowed
for cross profile calendar by PO.
The UI is added in work account settings, which actually runs
in primary user, and we can't call the public
getCrossProfileCalendarPakcages(work_user_admin) from primary user.
So we need to add this hidden API.

Bug: b/117976974
Test: make ROBOTEST_FILTER=CrossProfileCalendarPreferenceControllerTest -j40 RunSettingsRoboTests
Change-Id: I3df29a25a7826639828041b47dcfb7dcf086c411
2018-12-05 01:01:31 +00:00
Hyundo Moon
3d1353aa60 AML: Unhide KeyEvent.isMediaSessionKey()
Bug: 119789707
Test: make update-api
Change-Id: I60f3271b205348ed64241851304fe7213a535c8e
2018-12-05 09:07:08 +09:00
Ashley Rose
0b2d82ca1e Remove bad type param link
Test: make framework
Change-Id: Ie482534af48d46fd7d087ad60a6a5adc597617cb
Fixes: 120499404
2018-12-05 00:04:01 +00:00
TreeHugger Robot
6220baa36e Merge "Schematize vold system properties" 2018-12-05 00:00:42 +00:00
Bookatz
b47bb25f08 StatsManager: @Deprecated always-deprecated fields
When P shipped, StatsManager had some new (introduced in P) APIs that
were already deprecated but had been needed temporarily. No one should
ever have used these APIs when P shipped because they already had
comments instructing the reader that they were deprecated. They were not
marked @Deprecated, however, so this cl does that.

Fixes: 113856561
Fixes: 77648233
Test: still compiles
Test: make ROBOTEST_FILTER=AnomalyConfigJobServiceTest RunSettingsRoboTests
Test: gts-tradefed run gts-dev --module GtsStatsdHostTestCases
Change-Id: I7c5cdc616f806b9aa5a5e4ee4229750973f533ed
2018-12-04 15:59:44 -08:00
Wei Wang
caff59d3d6 Merge "Thermal: Add set-status command to turn thermal status" 2018-12-04 23:27:28 +00:00
Wei Wang
ed2c902004 Thermal: change WARNING level to EMERGENCY
Bug: 119613338
Test: atest services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java
Change-Id: I3bde79a3598ef58072c8d9c2202a0eec6a968776
2018-12-04 14:48:28 -08:00
Wei Wang
cc91361106 Thermal: Add set-status command to turn thermal status
Bug: 111086696
Bug: 119413961
Test: adb shell cmd thermalservice set-status 3
Test: adb shell cmd thermalservice reset
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java
Change-Id: Ide114d1aadad67cbbbae645b56c6c082aceade21
2018-12-04 13:31:42 -08:00
TreeHugger Robot
b53030f983 Merge "Remove TEST_MAPPING due to AJUR filter behavior" 2018-12-04 21:22:23 +00:00
Eugene Susla
b22f71eafe Log a string to logcat when ContentProvider access gets denied due to appop
Make sure testers have a way to quickly determine when an app is trying to access
call logs or SMS without being the default handler, so we don't get inundated with
bugs about correct behavior

Test: proofread
Change-Id: I46b9dc86073101f8ca08ac1bc90c79338afd114f
2018-12-04 21:16:26 +00:00
Philip P. Moltmann
4468973573 Use pooledLambda in RuntimePermissionPresenterService
And check parameters at trust boundaries

Test: Looked at AppInfo in Settings (uses RuntimePermissionPresenterService)
Change-Id: Ie70f64c1bc5435e1d284c37cc6fec208468b3a0a
2018-12-04 12:50:50 -08:00
Jeff Sharkey
33e70bd6d2 Stop indexing location metadata.
The new ACCESS_MEDIA_LOCATION permission is designed to protect
the location metadata of items the caller doesn't own, but we can't
easily perform partial filtering of metadata from returned Cursor
objects based on per-row ownership, so we're forced to outright stop
indexing and returning location metadata via queries.

Apps can still easily obtain location metadata using ExifInterface.

Bug: 111892141
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I4d99e6aa7d94bb0e7a50ce86eb1ab0f1ed142d4a
2018-12-04 13:17:09 -07:00