Commit Graph

92890 Commits

Author SHA1 Message Date
Tarandeep Singh
c63ff2d590 Merge "Register Ime consumer only when insets are enabled." into qt-dev 2019-04-24 19:34:20 +00:00
Jeff Sharkey
16641365aa Merge "Rename Environment method to follow attribute." into qt-dev 2019-04-24 18:57:20 +00:00
Philip P. Moltmann
4da5dc4df7 Merge "Call PermissionControllerService on workerthread" into qt-dev 2019-04-24 15:28:25 +00:00
TreeHugger Robot
22f79f250c Merge "Fix broken test case 'testOverlayInfoStateTransitions'" into qt-dev 2019-04-24 13:21:34 +00:00
TreeHugger Robot
c84e33b3f1 Merge "Remove Settings constants for NetworkStack" into qt-dev 2019-04-24 11:46:25 +00:00
Mårten Kongstad
c49d524b0c Fix broken test case 'testOverlayInfoStateTransitions'
Commit e0b984e805 "Diff overlays between PackageManagerService and
OverlayManagerService" removed the OverlayInfo.STATE_TARGET_UPGRADING
state. Update the OverlayManagerServiceImplTests tests accordingly.

Bug: 130257545
Test: atest 'com.android.server.om.OverlayManagerServiceImplTests#testOverlayInfoStateTransitions'
Change-Id: I06fed8cfe4daf0206843d140ae7ab594cc89ab09
2019-04-24 02:24:31 -07:00
Tarandeep Singh
7928f7cd4d Register Ime consumer only when insets are enabled.
As of today we register Ime consumer in IMM onWindowGainedFocus().
However, it does nothing functionally when ViewRootImpl#sNewInsetsMode is disabled.
This CL adds a check to not register consumer at the first place.

This may also be causing a leak. Added a TODO to revisit that before we
enable the flag.

Bug: 131181940
Test: atest ViewRootImpl
Test: atest InsetsController
Change-Id: I6b2b62d10670d63edafeb1b24c25b26c7721f3ad
2019-04-24 06:29:35 +00:00
Jackal Guo
efc894eeec Merge "Race condition while injecting ACTION_OUTSIDE" into qt-dev 2019-04-24 05:47:11 +00:00
Svet Ganov
2224cb827f Address API council feedback
Test: manual

bug:130643623

Change-Id: I489f32858abfa4fe8eeda96cbb103d75e2a87551
2019-04-24 02:14:48 +00:00
TreeHugger Robot
b9177522ff Merge "Camera: Relax BURST_CAPTURE FPS requirements" into qt-dev 2019-04-24 01:19:09 +00:00
Dianne Hackborn
3f5447d8ae Merge "Finish up Intent identifier implementation." into qt-dev 2019-04-23 22:43:34 +00:00
Santos Cordon
623526b4b3 Add delay to power-button power-off after gesture wakeup.
Adds a small delay to avoid turning off the device if the user
hits the power button right after the device wakes up via a gesture.

Bug: 126560003
Test: Manual
Change-Id: I3116ce98f244e5660573d5fa764a77083aee7fc5
2019-04-23 11:55:29 +01:00
Chalard Jean
55a1d5bd5f Merge "Fix a bug where + before % is ignored" into qt-dev 2019-04-23 07:03:24 +00:00
Jackal Guo
8bcc0a9846 Race condition while injecting ACTION_OUTSIDE
In order to dismiss dialog in accessibility, we would also send
ACTION_OUTSIDE while performing ACTION_CLICK. However, the result
of performing ACTION_CLICK in AccessibilityInteractionClient may
be overwritten by the result of performing ACTION_OUTSIDE. This
causes that TouchExplorer may get incorrect result and follow-up
behavior is different.

Bug: 127902192
Test: a11y CTS & unit tests
Test: After enabling Talkback, manually test on 'View Terms' page
      in ManagedProvisioning to check if the section heading can
      be expanded/collapsed by double tap.

Change-Id: Id6b1f63ea87418c66bf1aebdea829f656581e8ed
2019-04-23 03:29:47 +00:00
TreeHugger Robot
606f1c9ffb Merge "Vulkan Doc: update descriptions for Vulkan feature flags" into qt-dev 2019-04-23 02:04:05 +00:00
Chiachang Wang
4dd1b47b0b Remove Settings constants for NetworkStack
The definitions reference of these constants are moved from
Settings to DeviceConfig. These definitions are @hide and the
usage in the Settings are removed. Thus, remove the definitions
from API level.

Bug: 123167629
Test: make system-api-stubs-docs-update-current-api \
      test-api-stubs-docs-update-current-api
Test: atest NetworkStackTests
Change-Id: I28c4bf2c0b72e154cea91d11007a9497c7f21570
2019-04-23 09:32:14 +08:00
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
Yiwei Zhang
c8231cb32d Vulkan Doc: update descriptions for Vulkan feature flags
Bug: 111695747
Test: build
Change-Id: I9ac897ef31cdf46c75a369866601062ba8033874
2019-04-22 13:18:14 -07:00
Dianne Hackborn
100838dc7f Finish up Intent identifier implementation.
- Add protobuf field.
- Fix documentation.

Fixes: 130365291
Fixes: 130802990
Test: manual
Change-Id: I851c220ec85e73f5bba55390a43304ee4805d0f9
2019-04-22 12:39:54 -07: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
Shuzhen Wang
062c22ba60 Camera: Relax BURST_CAPTURE FPS requirements
Allow resolutions larger than 24 megapixels to have fps lower than
10fps.

Test: Build
Bug: 129693371
Change-Id: Ie0403d80bf4c441e268d266eb30dacc2ea8184b9
2019-04-22 08:58:16 -07: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
Chalard Jean
d55f2f3de7 Fix a bug where + before % is ignored
Achievement unlocked : fix a 10-year-old trivial bug

Bug: 1866121
Test: new CTS in Ib7ee866f65baf99b46a31e2115355a42a829421e
Change-Id: Ic91660d974dce21f2affdcacaeffe9accf8451ac
Merged-In: Ibe73a33264569b08cac4c00b4dda838f1e5551fc
Merged-In: Id4b1e456f7ce4e7aae84abb96fa55a8fe8f5caa5
2019-04-22 22:20:56 +09:00
TreeHugger Robot
d8d759166c Merge "Restrict access to dangerous methods to <= P" into qt-dev 2019-04-22 07:14:10 +00:00
Jeff Sharkey
8926fc1a51 Rename Environment method to follow attribute.
We recently changed the attribute name, and the Environment method
used to test it should also change.

Bug: 130984886
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Change-Id: I8ed7fa9232a646b2f2f280c4b82dbc6d3cf31426
2019-04-21 09:38:49 -06: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