Commit Graph

92868 Commits

Author SHA1 Message Date
Sara Kato
9498153dfd Merge "Add @Nullable annotation to getAccessibilityWindowId" into qt-dev 2019-04-23 01:28:23 +00:00
TreeHugger Robot
845d5ee587 Merge "Fixed content capture whitelist for specific activities." into qt-dev 2019-04-22 22:34:09 +00:00
TreeHugger Robot
604e253c9e Merge "[wm] Fix smallestScreenWidthDp configuration on non default display (1/2)" into qt-dev 2019-04-22 18:46:26 +00:00
Kweku Adams
95aeab0ac8 Merge "Fix QuotaController job spam throttling." into qt-dev 2019-04-22 18:21:59 +00:00
Kweku Adams
7d6a31c154 Fix QuotaController job spam throttling.
QuotaController was inadvertently updating all Timers for a particular
user whenever any process state crossed the FOREGROUND_SERVICE
threshold, instead of only updating the Timer for the specific UID.

Also adding more data to QuotaController's dump to make future debugging
easier.

Bug: 129117282
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: Ic8d9e6478e61cc62318ae5651f0526e41a71de8d
2019-04-22 11:06:15 -07:00
Lei Yu
d7595947a8 Merge "Remove feature flag slice injection" into qt-dev 2019-04-22 17:49:52 +00:00
GyeHun Jeon
61cac3a333 [wm] Fix smallestScreenWidthDp configuration on non default display (1/2)
smallestScreenWidthDp configuration should be set to smallest possible size.
This could cause unexpected resources to be loaded based on the incorrect configuration. So it
should be set as minimum size of screenWidthDp and screenHeightDp to account for rotation.

Test: reproduce test steps in bug
Test: atest CtsWindowManagerDeviceTestCases:DisplayTests
Bug: 129521230
Change-Id: I07403294e8fe6e6ad7aa718c8a5948aff4fafae1
(cherry picked from commit 7671d7042d60944813f36a03b74199c5a3d737ad)
2019-04-22 08:32:45 -07:00
TreeHugger Robot
5012f5bdce Merge "Verify Bundle is not null before using it" into qt-dev 2019-04-22 15:09:28 +00:00
Winson Chiu
a99ff5fa9a Merge changes I689ec523,Id249a185 into qt-dev
* changes:
  Delayed install completion
  Defer post-install resource clean up for 5 seconds
2019-04-22 14:35:50 +00:00
TreeHugger Robot
d8d759166c Merge "Restrict access to dangerous methods to <= P" into qt-dev 2019-04-22 07:14:10 +00:00
TreeHugger Robot
4354101749 Merge "Move locale from LanguageDetectionEvent to base class" into qt-dev 2019-04-21 09:02:26 +00:00
Felipe Leme
cbf7f26baa Fixed content capture whitelist for specific activities.
Test: manual verification (it cannot be fully verified using the current CTS setup)
Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.WhitelistTest
Test: atest FrameworksCoreTests:android.content.ContentCaptureOptionsTest
Test: atest CtsContentCaptureServiceTestCases # sanity check
Test: m update-api

Fixes: 130573023
Merged-In: I2c76a01bd98c4154c4c59099f1368232d2dba80d
Change-Id: I2c76a01bd98c4154c4c59099f1368232d2dba80d
2019-04-19 20:25:45 -07:00
TreeHugger Robot
77a69b17fb Merge "Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid" into qt-dev 2019-04-20 01:01:25 +00:00
TreeHugger Robot
2cccdd6b84 Merge "DO NOT MERGE - Updated some javadocs." into qt-dev 2019-04-20 00:57:06 +00:00
TreeHugger Robot
50ac5dd435 Merge "Maintain legacy signatures" into qt-dev 2019-04-19 23:41:32 +00:00
Felipe Leme
8c2360b123 DO NOT MERGE - Updated some javadocs.
Test: make ds-docs

Bug: 130726495
Fixes: 130737893

Change-Id: Idaf50cb17b0668f3052d86f256d5428ba4e06a3c
2019-04-19 16:08:48 -07:00
Steve Elliott
2c570c179a Merge "Power key behavior tweaks." into qt-dev 2019-04-19 23:02:08 +00:00
Winson
23863be910 Delayed install completion
This change is an attempt at delaying the install complete callback
to the installer on a DONT_KILL install until the package indicates
that it as completed updating its classpath with the new APKs.

Bug: 80269951
Bug: 109751013

Test: manual test of dynamic delivery/instant apps

Merged-In: I689ec523522da37987cff9b1a67eaae9e5633ffb
Change-Id: I689ec523522da37987cff9b1a67eaae9e5633ffb
(cherry picked from commit abfc054c90)
2019-04-19 22:52:41 +00:00
Zach Johnson
df512f12a1 Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid
Test: compilation
Fixes: 126698824
Change-Id: I4873b46a37df3e103ddc62001cc9f0bc01aea4dc
2019-04-19 22:35:13 +00:00
Salvador Martinez
d6aa4d3e8e Merge "Make Settings and SysUI estimates use same data class" into qt-dev 2019-04-19 22:00:27 +00:00
Tim Van Patten
5973ec9678 Verify Bundle is not null before using it
It's possible the Bundle has not been initialized when determining if
the ANGLE dialog box should be shown, due to how early that check is
performed. This change will verify the Bundle is not null before using
it and fall back to using the Context if it is.

Bug: 130185493
Test: atest CtsAngleIntegrationHostTestCases
Test: Enable Toast Message and then atest CtsAngleIntegrationHostTestCases
Change-Id: I39f48bdf20616298c66b2bb36082149cb24e908c
(cherry picked from commit 5da6a95eab)
2019-04-19 20:31:01 +00:00
Todd Kennedy
9c37cd2924 Maintain legacy signatures
The signature field is deprecated, but must still be populated. The
thought was that for APEX files [which is a new concept and thus
could use the new way to handle signatures] we could remove this
capability, but, it turns out Play relies on it.

Change-Id: I7096567082d4f798be1d3e6007122750453665ae
Fixes: 130827182
Test: Manual.
Test: Create sample app that dumped the signatures of an APEX
Test: Note that the signatures before this change were 'null' and set to something after this change
2019-04-19 20:19:40 +00:00
Lei Yu
b09ab68f5f Remove feature flag slice injection
Fixes: 121154979
Test: Manual
Change-Id: Ief9c662e28fa5a14879f93138ff2997234e72008
2019-04-19 13:13:59 -07:00
Lei Yu
622d628fa8 Merge "Add DeviceConfig namespace for settings ui" into qt-dev 2019-04-19 19:44:53 +00:00
Salvador Martinez
580098fe44 Make Settings and SysUI estimates use same data class
This moves everything over to using a shared data class
for Estimates in SettingsLib which will facilitate a cl
that will help ensure greater consistency across
surfaces where battery estimates are shown.

Test: Tests pass
Bug: 124030091
Change-Id: I0b7f1f3a806255ff4804a00e6d90a7846c484484
2019-04-19 17:35:20 +00:00
Andrii Kulian
8fb611c6ad Merge "Add event logs for top resumed state change" into qt-dev 2019-04-19 16:52:02 +00:00
Dan Sandler
b458f4eee8 Power key behavior tweaks.
- Added a new value for config_longPressOnPowerBehavior:
    "5" means "launch assist intent"
  - Added global settings for power key longpress and "very
    long press" (3.5 sec), allowing these functions to be
    tweaked at runtime by privileged code

Bug: 130415373
Test: adb shell settings put global power_long_press 5
      # ^ set longpress to assist
      adb shell settings put global power_very_long_press 1
      # ^ set vlongpress to globalactions (so you can still
      # power off the device)
Test: atest frameworks/base/core/tests/coretests
Change-Id: Ic611b2850dc98fddd7662d32b0a60ca1e8231efb
2019-04-19 16:46:44 +00:00
Sara Kato
0fdbae3c46 Add @Nullable annotation to getAccessibilityWindowId
Bug: 126701062
Test: None
Change-Id: I7d13d56f5ffb303431f7e82418134d6f17275ef5
2019-04-19 12:04:51 +00:00
TreeHugger Robot
84f4980bc2 Merge "Add a flag to cancelDragAndDrop to skip animation" into qt-dev 2019-04-19 05:40:41 +00:00
TreeHugger Robot
c87a593dee Merge "Add fallback for TEXTURE_TICK" into qt-dev 2019-04-19 05:35:02 +00:00
TreeHugger Robot
1f4e4e433d Merge "Make LocaleList.isPseudoLocale a public API" into qt-dev 2019-04-19 03:11:31 +00:00
Andrii Kulian
8602401358 Add event logs for top resumed state change
Bug: 130807813
Test: Build and run, check logs
Change-Id: Ib00a38fa308888bfc784d53145fff54325e355d3
2019-04-18 19:41:23 -07:00
Daichi Hirono
3e9d510586 Add a flag to cancelDragAndDrop to skip animation
When running cancel animation for drag shadow image, the system cannot
start another drag operation, which is problematic when the system would
start the other drag operation quickly.

Bug: 130313958
Test: Cancel drag operation by calling cancelDragAndDrop
Change-Id: I5d6650a0ce9a4cd80bbdb1beabc9e514349ccadc
2019-04-19 02:30:06 +00:00
TreeHugger Robot
7fdbe22475 Merge "Make RemoteService propagate Context#bindService failure to PendingRequests" into qt-dev 2019-04-18 23:07:32 +00:00
Nader Jawad
5c5ffcbd7a Merge "Added BlendMode equivalent APIs to replace deprecated PorterDuff variants" into qt-dev 2019-04-18 21:18:32 +00:00
TreeHugger Robot
f96a3cbaa3 Merge "Add @TestApi to StatusBarManager @SystemApi methods" into qt-dev 2019-04-18 19:58:25 +00:00
Cody Northrop
4112ec5512 Merge "GraphicsEnvironment: Expose query to determine ANGLE use" into qt-dev 2019-04-18 19:47:07 +00:00
Irina Dumitrescu
6c4094c67d Merge "Don't call ConnectivityService when holding ActivityManagerService lock." into qt-dev 2019-04-18 19:25:14 +00:00
Mady Mellor
2163249864 Merge "Fix back presses dismissing bubbles when IME is up" into qt-dev 2019-04-18 18:21:22 +00:00
Jack Yu
74c8818d79 Merge "Update Multi-OffHost related API definition" into qt-dev 2019-04-18 14:34:28 +00:00
Irina Dumitrescu
34a27c4c45 Don't call ConnectivityService when holding ActivityManagerService lock.
Exclude system server thread from the threads on which we call updateHttpProxy() from the Activity Manager.

Test: atest HostsideVpnTests
Bug: 128465980
Change-Id: Ia2b2c6de8a01a264bfb09393144641d91ee2c164
2019-04-18 12:18:08 +01:00
TreeHugger Robot
2631fb58b6 Merge "Ensure Contrast: Address API feedback" into qt-dev 2019-04-18 11:17:43 +00:00
Michal Karpinski
2aeac8ce0e Merge "Make sure Notification#deleteIntent cannot be used to start activities from background" into qt-dev 2019-04-18 09:31:32 +00:00
Tony Mak
c30a91702d Move locale from LanguageDetectionEvent to base class
A follow up change of ag/7058048.

Also fixed a wrong nullability annotation, ConversationActions.getHints
should be @NonNull.

Bug: 129344540
Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/

Change-Id: Iae734b4b27dd3dd8294684330bec198072693a57
2019-04-18 10:25:25 +01:00
TreeHugger Robot
ff0f81ff2e Merge "Remove car mode dialer and call companion roles." into qt-dev 2019-04-18 05:44:25 +00:00
TreeHugger Robot
80e9a4cc42 Merge "DO NOT MERGE: Fix a few issues with foreground service location accesses." into qt-dev 2019-04-18 04:35:43 +00:00
Jeff Sharkey
db44ba1e85 Merge "Canonicalize default ringtones." into qt-dev 2019-04-18 03:45:01 +00:00
Jeff Sharkey
285f6ffff9 Merge "Remove GROUP_ID; not actively being used by apps." into qt-dev 2019-04-18 03:39:26 +00:00
TreeHugger Robot
6e0668c784 Merge "API feedback: getSuppressNotification -> isNotificationSuppressed" into qt-dev 2019-04-18 03:27:45 +00:00
Peiyong Lin
53e38f260c Merge "Make sure the color space range is checked properly." into qt-dev 2019-04-18 02:16:57 +00:00