OSDN Git Service
Jorim Jaggi [Tue, 5 Jun 2018 11:32:55 +0000 (11:32 +0000)]
Merge "Crashing can not override Keyguard transit" into pi-dev
TreeHugger Robot [Tue, 5 Jun 2018 11:24:19 +0000 (11:24 +0000)]
Merge "Optimise the hit test algorithm" into pi-dev
Jorim Jaggi [Tue, 5 Jun 2018 10:55:38 +0000 (10:55 +0000)]
Merge "Defer stop for all activities becoming invisible" into pi-dev
Makoto Onuki [Tue, 5 Jun 2018 01:29:48 +0000 (01:29 +0000)]
Merge "Allow except-idle whitelisted apps to start BG services in EBS" into pi-dev
TreeHugger Robot [Mon, 4 Jun 2018 23:35:15 +0000 (23:35 +0000)]
Merge "Ensure automatic battery saver won't stick" into pi-dev
TreeHugger Robot [Mon, 4 Jun 2018 23:27:42 +0000 (23:27 +0000)]
Merge "Revert "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS"" into pi-dev
Ying Zheng [Mon, 4 Jun 2018 23:21:44 +0000 (23:21 +0000)]
Merge "Read build flag to determine user model." into pi-dev
Ying Zheng [Fri, 1 Jun 2018 22:55:30 +0000 (15:55 -0700)]
Read build flag to determine user model.
Bug:
109698349
Test: Manual
Change-Id: I180b6a877ead576b0ed1292376fe0e74b0df1fd9
Makoto Onuki [Mon, 4 Jun 2018 21:44:19 +0000 (14:44 -0700)]
Allow except-idle whitelisted apps to start BG services in EBS
Change-Id: I8dd42f48cf13c97b4e428afbf29838f442d8731b
Fixes:
80420676
Test: dumpsys activity processes| grep mDeviceIdle
mDeviceIdleWhitelist=[1000, 1001, 2000, 10028, 10035, 10036, 10042, 10053, 10137, 10138, 10139, 10142]
mDeviceIdleExceptIdleWhitelist=[1000, 1001, 2000, 10006, 10008, 10014, 10016, 10028, 10035, 10036, 10042, 10047, 10053, 10058, 10060, 10070, 10111, 10137, 10138, 10139, 10142]
Test: Manual test with "DEBUG_BACKGROUND_CHECK = true" and
am startservice 'com.android.vending/com.google.android.finsky.hygiene.DailyHygiene\$DailyHygieneService'
then check the whitelist log.
Andrii Kulian [Mon, 4 Jun 2018 21:55:13 +0000 (21:55 +0000)]
Merge "Defer client visibility update when calculating new config" into pi-dev
TreeHugger Robot [Mon, 4 Jun 2018 21:30:17 +0000 (21:30 +0000)]
Merge "New behavior of setSynchronousMode" into pi-dev
Makoto Onuki [Mon, 4 Jun 2018 20:54:25 +0000 (13:54 -0700)]
Ensure automatic battery saver won't stick
Fixes:
80527470
Test: Manual tests:
Test 1: (make sure automatic BS won't stick)
- Set up automatic battery saver at N%
- Wait until the battery goes below N% -> Battery saver will turn on
- Turn off the device
- Charge it until the battery goes above N%
- Turn on the device
- Make sure battery saver is off.
Test 1: (make sure manual BS will stick)
- Make sure the battery level is above the automatic threshold
- Manually enable BS
- Reboot
- Make sure battery saver is on.
Change-Id: I677fd586f6b25d0200392941cac2d13b57fe10b3
Hongming Jin [Mon, 4 Jun 2018 20:38:46 +0000 (20:38 +0000)]
Merge "Add shell command handler for account manager to allow enabling service binding for instant app. Test: cts-tradefed run cts -m CtsAccountManagerTestCases cts-instant-tradefed run cts-instant -m CtsAccountManagerTestCases Bug:
79367659" into pi-dev
Andrew Sapperstein [Mon, 4 Jun 2018 20:33:58 +0000 (20:33 +0000)]
Revert "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS"
This reverts commit
44c4ca41d83d73d7c1d0e217a80a46a449e8c475.
Reason for revert: Wanted to go with a different option and this was mistakenly Dr. No'ed.
Bug:
80444486
Test: clean revert
Change-Id: I7fdd13a5bc0f4d9fabf91f3e5497c4065008b531
TreeHugger Robot [Mon, 4 Jun 2018 20:32:30 +0000 (20:32 +0000)]
Merge "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS" into pi-dev
Adrian Roos [Mon, 4 Jun 2018 19:49:11 +0000 (12:49 -0700)]
[automerger skipped] Merge "WM: Prevent secondary display focus while keyguard is up" into oc-dev am:
f04714c59a am:
6281d64277
am:
668761b146 -s ours
Change-Id: Icf2ed114aa3c2bf500ea59c3f52ec75d0f73ff84
TreeHugger Robot [Mon, 4 Jun 2018 19:45:18 +0000 (19:45 +0000)]
Merge "Blank screen when coming from pulse" into pi-dev
TreeHugger Robot [Mon, 4 Jun 2018 19:34:19 +0000 (19:34 +0000)]
Merge "Camera: fix off by one error" into pi-dev
Adrian Roos [Mon, 4 Jun 2018 18:18:38 +0000 (11:18 -0700)]
Merge "WM: Prevent secondary display focus while keyguard is up" into oc-dev am:
f04714c59a
am:
6281d64277
Change-Id: Ic7b12c406ac5aea0e9f40b5f2c2f72c5efd87212
David Brazdil [Mon, 4 Jun 2018 17:14:49 +0000 (17:14 +0000)]
Merge "Add another entry to hidden API light grey" into pi-dev
Adrian Roos [Mon, 4 Jun 2018 17:02:32 +0000 (10:02 -0700)]
Merge "WM: Prevent secondary display focus while keyguard is up" into oc-dev
am:
f04714c59a
Change-Id: I38bab1ff56a30cccb2f748588ffbbe54d5e17e80
Hongming Jin [Wed, 30 May 2018 18:01:06 +0000 (11:01 -0700)]
Add shell command handler for account manager to allow enabling service
binding for instant app.
Test: cts-tradefed run cts -m CtsAccountManagerTestCases
cts-instant-tradefed run cts-instant -m CtsAccountManagerTestCases
Bug:
79367659
Change-Id: I3ac968ebc20be68da08293d9b685a01920f11b76
Yin-Chia Yeh [Mon, 4 Jun 2018 16:23:14 +0000 (09:23 -0700)]
Camera: fix off by one error
Test: DngCreator CTS test
Bug:
74434422
Change-Id: Ib8aa5f1eec6a5213f6c2c3aeb2d46475107f13c6
TreeHugger Robot [Mon, 4 Jun 2018 11:44:21 +0000 (11:44 +0000)]
Merge "WM: Prevent secondary display focus while keyguard is up" into oc-dev
David Brazdil [Mon, 4 Jun 2018 10:38:16 +0000 (11:38 +0100)]
Add another entry to hidden API light grey
Bug:
80553977
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Change-Id: Ic63b7c21ec77ac67b495a5cc5b8b9336ba41fc46
Nicolas Geoffray [Mon, 4 Jun 2018 07:59:25 +0000 (08:59 +0100)]
Add more light grey APIs.
bug:
109588718
Test: m
Change-Id: Ibf0d0366a2a20124dfaafbc39015a1eb3c1ecedf
TreeHugger Robot [Sun, 3 Jun 2018 23:30:24 +0000 (23:30 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 22:34:21 +0000 (22:34 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 22:26:29 +0000 (22:26 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 22:22:26 +0000 (22:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 22:22:20 +0000 (22:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Sun, 3 Jun 2018 14:48:00 +0000 (07:48 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: I3d8f7c63c86424767ea717511e218c090090a5a2
Bill Yi [Sun, 3 Jun 2018 14:40:47 +0000 (07:40 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: Ie47fd40001b22ebd53a452443a52fb3449c3ee68
Bill Yi [Sun, 3 Jun 2018 12:41:32 +0000 (05:41 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: I470dc0700da24f49ea47c107089be2fc91175e87
Bill Yi [Sun, 3 Jun 2018 11:01:15 +0000 (04:01 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: Ide5351c17e5deb31ebccd586440cf7755bb9b9de
Bill Yi [Sun, 3 Jun 2018 10:47:25 +0000 (03:47 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: I1b358135c0013b5ba30f5d416fd252d474f090bf
Bill Yi [Sun, 3 Jun 2018 10:27:06 +0000 (03:27 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: If6ca37ec539ab563a635e938845fcc6643b8e2b8
Andrii Kulian [Thu, 31 May 2018 19:43:54 +0000 (12:43 -0700)]
Defer client visibility update when calculating new config
In ActivityStackSupervisor#ensureVisibilityAndConfig() we first
update visibility of all activities to be able to properly calculate
configuration on the next step. However, we need to make sure the
latest config is applied whenever a client becomes visible.
To prevent making making activities visible without latest config
this CL defers messages to client in first visibility calculation
pass.
Bug:
76011287
Test: ActivityLifecycleTests
Test: ActivityManagerAppConfigurationTests
Change-Id: I978fc800322fb502545650b9f2eece96cd9c7f40
John Reck [Fri, 1 Jun 2018 22:25:52 +0000 (22:25 +0000)]
Merge "Ensure picture isn't recording in createBitmap" into pi-dev
Alan Viverette [Fri, 1 Jun 2018 20:29:04 +0000 (20:29 +0000)]
Merge "Partial revert of "Align Theme, Theme.Holo, and Theme.Holo.Light with Material attrs"" into pi-dev
John Reck [Fri, 1 Jun 2018 19:39:50 +0000 (12:39 -0700)]
Ensure picture isn't recording in createBitmap
Picture#draw() will silently due an #endRecording() if it
wasn't called. Bitmap.createBitmap doesn't do this until
after it's too late.
So do an up-front #endRecording() to ensure state is
good to go
Bug:
80539264
Test: HardwareBitmapTests#testReadbackThroughPictureNoEndRecording
Change-Id: Ic66c41462e88880b73c5093d7541c4ce3d71adeb
TreeHugger Robot [Fri, 1 Jun 2018 19:35:37 +0000 (19:35 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Fyodor Kupolov [Fri, 1 Jun 2018 19:11:42 +0000 (12:11 -0700)]
New behavior of setSynchronousMode
setSynchronousMode is now applicable to any journal mode.
This can be useful for apps that want to use stricter durability
settings for their database.
Test: android.database.sqlite.cts.SQLiteDatabaseTest
Bug:
86953240
Change-Id: I7dbaa6d0bc0975da8067e87b402f63f51b4add10
Lucas Dupin [Fri, 1 Jun 2018 07:28:58 +0000 (00:28 -0700)]
Blank screen when coming from pulse
We need to fade from black to the app to achieve a nice transition.
Test: visual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I13edd9c5f7a1bf9378851ac50c513d36ab821c43
Fixes:
87939048
Bill Yi [Fri, 1 Jun 2018 18:28:39 +0000 (11:28 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: I3e1475f7ceb9b2b0b37ff52297f550c2b2b6cb0d
TreeHugger Robot [Fri, 1 Jun 2018 18:18:35 +0000 (18:18 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Hongming Jin [Fri, 1 Jun 2018 17:15:21 +0000 (17:15 +0000)]
Merge "Enforce permission check before returning application info Test: atest CtsAppSecurityHostTestCases:ApplicationVisibilityTest Bug:
77821568" into pi-dev
Jorim Jaggi [Fri, 1 Jun 2018 12:45:24 +0000 (14:45 +0200)]
Crashing can not override Keyguard transit
If an app crashes during Keyguard transition, make sure to keep
Keyguard transition
Test: AppTransitionTests
Test: go/wm-smoke
Change-Id: I80b80952f93d2b5611754f05a3dc333905cd1c86
Fixes:
80132133
Bill Yi [Fri, 1 Jun 2018 13:50:46 +0000 (06:50 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: I35f7064ae1d2f8bde001b3b201a9107736a077e5
Nicolas Geoffray [Fri, 1 Jun 2018 08:57:34 +0000 (08:57 +0000)]
Merge "Greylist bugbot updated - Thursday edition." into pi-dev
Tiger Huang [Fri, 1 Jun 2018 07:49:56 +0000 (07:49 +0000)]
Merge "Prevent infinite layout while hiding nav bar on keyguard" into pi-dev
TreeHugger Robot [Fri, 1 Jun 2018 06:00:23 +0000 (06:00 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 1 Jun 2018 05:53:35 +0000 (05:53 +0000)]
Merge "Clear IPv4 address on tethering teardown." into pi-dev
Makoto Onuki [Fri, 1 Jun 2018 05:35:02 +0000 (05:35 +0000)]
Merge "Serialize AM.getContentProvider() calls in client side" into pi-dev
Erik Kline [Fri, 18 May 2018 07:09:24 +0000 (16:09 +0900)]
Clear IPv4 address on tethering teardown.
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
- wlan0 in STA mode, wlan1 up/down in AP mode
no lingering IPv4 mode
- USB tethering up/down works
- bluetooth tethering yields:
05-18 17:50:49.726 719 756 D TetherController: untetherInterface(bt-pan)
05-18 17:50:49.729 1194 1230 E Tethering: [bt-pan] ERROR Failed to clear IPv4 address on interface bt-pan: java.lang.IllegalStateException: command '224 interface setcfg bt-pan 0.0.0.0 0' failed with '400 224 Failed to clear address (No such device)'
which is acceptable (no actual crash, just a log message)
Bug:
79905644
Change-Id: Iaf29788a6692d810f3160e3f21d06b7452ecbaa6
Jackal Guo [Thu, 31 May 2018 07:01:34 +0000 (15:01 +0800)]
Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS
Update the logic in PackageParser to avoid unistalled system app
can't be found.
Test: follow steps on b/
80444486 and can add account normally
Test: PackageManagerTest
Bug:
80444486
Change-Id: Ifafac34111d883e51563018be793655c25d09fba
TreeHugger Robot [Fri, 1 Jun 2018 03:15:13 +0000 (03:15 +0000)]
Merge "Don't "notifyAppStopping" when going to sleep." into pi-dev
Tiger Huang [Thu, 17 May 2018 08:45:56 +0000 (16:45 +0800)]
Prevent infinite layout while hiding nav bar on keyguard
By the original logic, if there is a focused window which hides
navigation bar while keyguard is showing, PhoneWindowManager would
hide/show navigation bar frequently, which caused infinite layout.
Bug:
78681867
Bug:
79896018
Bug:
80113279
Test: 1. a. Open a photo in fullscreen mode (hiding navigation bar)
b. Press power key to bring up keyguard
c. See if there is "Performed 6 layouts in a row. Skipping"
log
2. go/wm-smoke
3. Open a video in YouTube in fullscreen mode and then expand
status bar, and see if navigation bar would show; collapse
status bar, and see if navigation bar would hide
Change-Id: Id8c49ac8fc45b98294e48017308dce3117ed1cf8
Merged-In: Id8c49ac8fc45b98294e48017308dce3117ed1cf8
(cherry picked from commit
53e8cfe794ef0e1295e526b21c557c2a17e597ad)
John Reck [Fri, 1 Jun 2018 03:05:51 +0000 (03:05 +0000)]
Merge "Attempting to fix the black flicker" into pi-dev
Derek Sollenberger [Fri, 1 Jun 2018 02:51:51 +0000 (02:51 +0000)]
Merge "Bind correct FBO when drawing a WebView into a layer." into pi-dev
Bill Yi [Fri, 1 Jun 2018 02:29:24 +0000 (19:29 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: Id3ec2d329e661c984e51de0960c46c136ca69627
Winson Chung [Fri, 1 Jun 2018 01:35:27 +0000 (01:35 +0000)]
Merge "Update the task stack state when resizing the tasks after the PiP animation" into pi-dev
Hall Liu [Fri, 1 Jun 2018 01:14:37 +0000 (01:14 +0000)]
Merge "Move the "repeated calls" caveat" into pi-dev
Derek Sollenberger [Wed, 30 May 2018 22:08:57 +0000 (18:08 -0400)]
Bind correct FBO when drawing a WebView into a layer.
The WebView was unable to draw into either a standard clipped
layer or the "fading edges" unclipped layer. This CL and its
companion test cases ensure that both work with simple and
complex clips.
Bug:
79619253
Bug:
80443556
Bug:
80477645
Test: atest CtsUiRenderingTestCases:.LayerTests
Merged-In: I0e16b724f74415a61cc2a841ccf4a491f293ac94
Change-Id: I4900222975fc841b11828916878fb0ea6d87dcda
Winson Chung [Fri, 1 Jun 2018 00:40:46 +0000 (00:40 +0000)]
Merge "Fix regression in virtual key haptics" into pi-dev
Hongming Jin [Fri, 18 May 2018 17:47:57 +0000 (10:47 -0700)]
Enforce permission check before returning application info
Test: atest CtsAppSecurityHostTestCases:ApplicationVisibilityTest
Bug:
77821568
Change-Id: I7554805c36c0c2552163dad7b07cfc5f552b624e
TreeHugger Robot [Fri, 1 Jun 2018 00:08:58 +0000 (00:08 +0000)]
Merge "Skip task overlay in calcuating task description" into pi-dev
Hall Liu [Thu, 31 May 2018 23:26:01 +0000 (16:26 -0700)]
Move the "repeated calls" caveat
Previous CL put the "repeated calls will replace the listener" comment
on the wrong method. Fixing.
Bug:
80493663
Test: None, doc change
Change-Id: I2736a582d79b3b2f204519c649d82d9ba912e1e5
Winson Chung [Thu, 31 May 2018 22:51:47 +0000 (15:51 -0700)]
Update the task stack state when resizing the tasks after the PiP animation
- When the animation into PiP ends, we clear the task stack state and
request a layout prior to resizing the the stack to update the task
bounds to the stack bounds. This triggers a relayout from the client,
which fetches the new configuration prior to handling the PiP mode/config
change scheduled as a part of the PiP mode change.
We can instead update the task stack state when we resize the tasks to
ensure that we don't relayout multiple times.
Bug:
75995355
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests
Change-Id: I58a6e30651f16b85ec160e977554b8d091b461ec
Robert Carr [Thu, 31 May 2018 22:39:07 +0000 (15:39 -0700)]
Don't "notifyAppStopping" when going to sleep.
The WindowManager interprets notifyAppStopping as a signal that the
app surface will be destroyed, but in the visible stopped states
of going to sleep this may not necessarily be true. notifyAppStopping
was only recently introduced for the purposes of handling detach children
which isn't needed when turning the screen off. Simply not executing
it when turning the screen off should be safe, if a little confusing.
Test: Manual of bug + mess around with SV apps a bunch
Bug:
80491358
Bug:
72921025
Change-Id: I7dd5d1e144e12ecfba038e15f84f9ae7c02aadd2
Andrii Kulian [Thu, 31 May 2018 22:35:10 +0000 (22:35 +0000)]
Merge "Don't pause non-top activities when making visible" into pi-dev
Makoto Onuki [Thu, 31 May 2018 18:03:56 +0000 (11:03 -0700)]
Serialize AM.getContentProvider() calls in client side
Th wait() call in AMS.getContentProviderImpl() can cause a deadlock when it
starts a new process for a target provider and all system server binder threads
are reaching out to the same provider at the same time, because AMS won't be
able to receive a callback from the provider process.
Let's serialize access to AM.getContentProvider() to avoid this scenario.
Longer team, we should stop waiting in the system server and instead do so in
the client side.
Bug:
74523247
Test: Boot, add a google account, and let syncs run and finish.
Test: Watch free video on Coursera
Change-Id: If5be2dc4b6f22f72d1bb3aa1b5b4d49f20c8d94d
Alan Viverette [Fri, 18 May 2018 13:44:45 +0000 (13:44 +0000)]
Partial revert of "Align Theme, Theme.Holo, and Theme.Holo.Light with Material attrs"
This partially reverts commit
045abe73e2d61700dda3c6655ca2be75df8e9641.
Basically we're just removing the attributes that were explicitly
defined as null, since apparently they don't have fallback values
unless Holo is overlaid atop Material (blergh).
Bug: b/
79725570
Test: manual against from bug APK
Change-Id: I7a5fe3f96a9720e0657042ce8d5a87b2fb590327
TreeHugger Robot [Thu, 31 May 2018 21:11:24 +0000 (21:11 +0000)]
Merge "Camera: add new detailed error callback" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 20:50:33 +0000 (20:50 +0000)]
Merge "Camera: Document getNumberOfCameras behavior for logical camera" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 20:41:01 +0000 (20:41 +0000)]
Merge "Ensure permission held for MATCH_KNOWN_PACKAGES" into pi-dev
Hall Liu [Thu, 31 May 2018 20:34:42 +0000 (20:34 +0000)]
Merge "Fix MbmsDownloadSession documentation" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 20:21:16 +0000 (20:21 +0000)]
Merge "Don't use stable providers for slices" into pi-dev
John Reck [Thu, 17 May 2018 17:44:00 +0000 (10:44 -0700)]
Attempting to fix the black flicker
Bug:
79231206
Test: Repro steps from bug
Merged-In: I4c2810c42a7a4358f64584da3ab0cdf1499e71b6
Change-Id: I4c2810c42a7a4358f64584da3ab0cdf1499e71b6
Yin-Chia Yeh [Thu, 31 May 2018 19:11:42 +0000 (12:11 -0700)]
Camera: add new detailed error callback
For the legacy shim layer to tell the difference between evction
and disable error.
Test: CTS CameraEvictionTest + IdleUidTest
Bug:
77486868
Change-Id: I5b68f55460287634903c9b8b42188d9dec8744d5
Shuzhen Wang [Thu, 31 May 2018 18:41:39 +0000 (11:41 -0700)]
Camera: Document getNumberOfCameras behavior for logical camera
For camera1 API, framework only exposes one camera id for every
logical/physical camera id group. Document this behavior accordingly.
Test: Build
Bug:
80075565
Change-Id: I32c2de84d27a603d485014255bf1fad5031aa08e
Mady Mellor [Thu, 31 May 2018 18:50:26 +0000 (18:50 +0000)]
Merge "Add a primary action to slices from keyguard slice provider" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 18:49:38 +0000 (18:49 +0000)]
Merge "Don't cause infinite loop if windows manager crashes in safe mode" into pi-dev
Winson Chung [Thu, 31 May 2018 17:56:06 +0000 (10:56 -0700)]
Fix regression in virtual key haptics
- We only want to suppress haptics for virtual keys when using quickstep,
so the default should be to allow vibration for all virtual keys.
Bug:
80531196
Test: On quickstep-enabled device, touch and verify that we only get haptic
on tap and not down
Change-Id: I87000703d0462c3c1d62e829eb36e7a19e7b53d7
Mihai Popa [Wed, 9 May 2018 16:31:48 +0000 (17:31 +0100)]
Optimise the hit test algorithm
Layout#getOffsetForHorizontal was running in O(n^2) time, where n is the
length of the current line. The method is used when a touch event
happens on a text line, to compute the cursor offset (and the character)
where it happened. Although this is not an issue in common usecases,
where the number of characters on a line is relatively small, this can
be very inefficient as a consequence of Unicode containing 0-width
(invisible) characters. Specifically, there are characters defining the
text direction (LTR or RTL), which cause our algorithm to touch the
worst case quadratic runtime. For example, a person is able to send a
message containing a few visible characters, and also a lot of these
direction changing invisible ones. When the receiver touches the message
(causing the Layout#getOffsetForHorizontal method to be called), the
receiver's application would become not responsive.
This CL optimizes the method to run in O(n) worst case. This is achieved
by computing the measurements of all line prefixes at first, which can
be done in a single pass. Then, all the prefix measurement queries will
be answered in O(1), rather than O(n) as it was happening before.
Bug:
79215201
Test: manual testing
Change-Id: Ib66ef392c19c937718e7101f6d48fac3abe51ad0
Merged-In: Ib66ef392c19c937718e7101f6d48fac3abe51ad0
Jason Monk [Thu, 31 May 2018 18:12:52 +0000 (14:12 -0400)]
Don't use stable providers for slices
Because they aren't what we want.
Test: manual + existing tests
Bug:
80532760
Change-Id: Ib69799a2ef9440d0d67cea02e6b3c61844535755
Calin Juravle [Thu, 31 May 2018 17:31:48 +0000 (17:31 +0000)]
Merge "Update the boot image profile and preloaded classes" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 17:20:21 +0000 (17:20 +0000)]
Merge "Protect broadcasts we use to talk to settings" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 16:40:36 +0000 (16:40 +0000)]
Merge "Fix comments to reflect changes in eth service" into pi-dev
Winson Chung [Thu, 31 May 2018 04:13:25 +0000 (21:13 -0700)]
Skip task overlay in calcuating task description
- When a PiP task is dismissed with the PiP menu activity showing, we
use the wrong task description (belonging to the menu activity) to draw
the app theme snapshot. The task overlay is only used from SysUI to
overlay an activity on top of the task, and should not be considered in
the calculation for the task description for the task.
Bug:
77964409
Test: Manual, launch Maps in PiP, dismiss and then open overview
Change-Id: I2d537b9fdd19eb69a8dc20f15ac5b263584d2fad
Jorim Jaggi [Thu, 31 May 2018 15:50:31 +0000 (15:50 +0000)]
Merge "Updates to shared lib for Launcher" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 15:40:16 +0000 (15:40 +0000)]
Merge "Cutout Overlay: Flip color in inverted color mode" into pi-dev
Jason Monk [Thu, 31 May 2018 14:32:57 +0000 (10:32 -0400)]
Protect broadcasts we use to talk to settings
Test: manual
Change-Id: If383f94caccc0221e4a34a388142ff9ca4c00d29
Fixes:
80245419
Nicolas Geoffray [Thu, 31 May 2018 13:53:27 +0000 (14:53 +0100)]
Greylist bugbot updated - Thursday edition.
Bug:
80060097
Bug:
80111179
Test: m
Change-Id: I9543df166da9f5b53ca97d0b3ad62ed89d73b5fe
David Brazdil [Thu, 31 May 2018 13:21:32 +0000 (14:21 +0100)]
More additions to hidden API list greylist
Bug:
80456099
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Change-Id: Iee44f02c83e5d2c68e09b6c4f62c8faff2e74df8
David Brazdil [Thu, 31 May 2018 12:20:57 +0000 (12:20 +0000)]
Merge "Build dark greylist from public + light grey API" into pi-dev
Adrian Roos [Thu, 31 May 2018 12:14:13 +0000 (14:14 +0200)]
Cutout Overlay: Flip color in inverted color mode
Flips the color when the screen is inverted such
that it will end up black again after composition.
Change-Id: I8800c666b60061a58f1345a2609a088a02e82f48
Fixes:
80102202
Test: Enable cutout overlay, enable color inversion, verify overlay is black.
TreeHugger Robot [Thu, 31 May 2018 10:27:18 +0000 (10:27 +0000)]
Merge "Add MediaMuxer APIs to light grey." into pi-dev
Felka Chang [Thu, 31 May 2018 08:41:44 +0000 (08:41 +0000)]
Merge "Fix text is cut off in corner cut out condition" into pi-dev
Nicolas Geoffray [Wed, 30 May 2018 14:50:33 +0000 (15:50 +0100)]
Add MediaMuxer APIs to light grey.
bug:
80338884
Test: m
Change-Id: I076f6033e3b6512a5667d81a09a451bda8853505