OSDN Git Service
TreeHugger Robot [Mon, 5 Jun 2017 19:18:05 +0000 (19:18 +0000)]
Merge "Added mising sendToTarget message for dismissing docked stack" into oc-dev
Daniel Sandler [Mon, 5 Jun 2017 19:03:26 +0000 (19:03 +0000)]
Merge changes from topic 'dungeon' into oc-dev
* changes:
Hide redundant foreground service notifications.
Updates to Dianne's Dungeon.
Jerry Zhang [Mon, 5 Jun 2017 18:36:58 +0000 (18:36 +0000)]
Merge "Remove ptp from persist config on boot" into oc-dev
Adam Lesinski [Mon, 5 Jun 2017 17:34:57 +0000 (17:34 +0000)]
Merge "DO NOT MERGE: AAPT2: Allow undefined resources (placeholders)" into oc-dev
TreeHugger Robot [Mon, 5 Jun 2017 16:35:22 +0000 (16:35 +0000)]
Merge "Protect instant apps from full apps" into oc-dev
Julia Reynolds [Mon, 5 Jun 2017 15:22:53 +0000 (15:22 +0000)]
Merge "Annotate locks" into oc-dev
Dan Sandler [Sun, 28 May 2017 16:18:53 +0000 (12:18 -0400)]
Hide redundant foreground service notifications.
If an app with a foreground service has (at least one)
FLAG_FOREGROUND notification shown to the user, we allow
that to satisfy the requirement that the user be informed
about such things. But if the fg notification or its channel
is blocked by the user, we show the NOTE_FOREGROUND_SERVICES
notification (a/k/a Dianne's Dungeon) provided to us by the
activity manager.
Note that if even one of the foreground processes for the
current user is missing its disclosure notification, the
user will see the whole dungeon.
Bug:
36891897
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ForegroundServiceControllerTest.java
Change-Id: I4f5d96f80b7c1901faadb56661a42d26f746aa88
Dan Sandler [Thu, 25 May 2017 04:15:49 +0000 (00:15 -0400)]
Updates to Dianne's Dungeon.
- new EKG icon
- set the notification timestamp to the oldest service
start time, so you have some idea how long things have been
this way
- minor text fixes
Bug:
36891897
Test: runtest -x cts/tests/app/src/android/app/cts/ServiceTest.java
Change-Id: I99db280cde8ca3ecd7205cd44fac159d8f652ca2
Wale Ogunwale [Mon, 5 Jun 2017 14:09:35 +0000 (07:09 -0700)]
Added mising sendToTarget message for dismissing docked stack
Toast that an app doesn't support split screen wasn't displaying because
of missing line to actually send the
NOTIFY_ACTIVITY_DISMISSING_DOCKED_STACK_MSG message.
Test: Dock an app and the launch an other app that doesn't support
split-screen and make sure the "doesn't support split-screen" toast
shows up.
Test: go/wm-smoke
Fixes:
62281412
Change-Id: Ia2cb3085b6c6bfd27cf9e825315b8ddc89cf5bcd
Julia Reynolds [Mon, 5 Jun 2017 13:12:51 +0000 (13:12 +0000)]
Merge "Don't allow blocked apps to post notifications" into oc-dev
Hugo Benichi [Fri, 2 Jun 2017 01:12:09 +0000 (10:12 +0900)]
Fix captive portal login ssl error overflow
This patch fixes the built-in html page shown in the captive portal
login activity when there is an ssl error. The page is now scaled
correctly with respect to the device screen, and text wraps as
expected.
This patch also cleanups the hardcoded page by:
- formatting it for better reading,
- inlining the "px" css rules,
- using string concatenation instead of format for including the
localized text.
Bug:
62269512
Bug:
36532213
Test: manually triggered the activity to load the error page
Merged-In: I9d037222798bd9d4c1736923afb71e3e14c68bcc
(cherry pick from commit
60d5f46d89038a6a46c38ac0e57d0762a67732cb)
Change-Id: I5cb6e53f5af9dc4b93be8da1d9b6e0e8958e561f
TreeHugger Robot [Sat, 3 Jun 2017 21:49:40 +0000 (21:49 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 21:43:40 +0000 (21:43 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 21:40:58 +0000 (21:40 +0000)]
Merge "Move strings to SettingsLib so TV can use them" into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 21:31:40 +0000 (21:31 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 20:41:10 +0000 (20:41 +0000)]
Merge "Workaround to ensure that PIP activities have a visible shadow." into oc-dev
Bill Yi [Sat, 3 Jun 2017 17:05:08 +0000 (10:05 -0700)]
Import translations. DO NOT MERGE
Change-Id: I8a02b8e0c5b650bb2194c2e510db310060f2cab9
Auto-generated-cl: translation import
Bill Yi [Sat, 3 Jun 2017 12:10:59 +0000 (05:10 -0700)]
Import translations. DO NOT MERGE
Change-Id: Id173840acdf93c20e287471bb51ea2127df0469e
Auto-generated-cl: translation import
Bill Yi [Sat, 3 Jun 2017 10:14:54 +0000 (03:14 -0700)]
Import translations. DO NOT MERGE
Change-Id: I6f16f808f5ab850fb3bb459ea63548471d44eeca
Auto-generated-cl: translation import
TreeHugger Robot [Sat, 3 Jun 2017 02:20:17 +0000 (02:20 +0000)]
Merge "Add media.codec to native stack dump list" into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 01:37:49 +0000 (01:37 +0000)]
Merge "Handling cases with a null bitmap." into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 01:01:21 +0000 (01:01 +0000)]
Merge "Workaround glitches from SOFT_INPUT_ADJUST_PAN" into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 00:35:38 +0000 (00:35 +0000)]
Merge "Fix issue with jumping PIP when IME shows." into oc-dev
Adam Lesinski [Thu, 1 Jun 2017 22:22:57 +0000 (15:22 -0700)]
DO NOT MERGE: AAPT2: Allow undefined resources (placeholders)
A resource defined like so:
<item type="drawable" name="foo" />
should be assigned the value @null.
The only exception is for <string> resources, which are given the
empty string value (since <string></string> is ambiguous). The decision
to use "" is based off the fact that old AAPT used to assign "" to all
undefined resources, even non-string ones.
Bug:
38425050
Test: make aapt2_tests
Change-Id: Ib3e0f6f83d16ddd8b279c9fd44a07a37867b85e9
Chong Zhang [Fri, 2 Jun 2017 17:52:04 +0000 (10:52 -0700)]
Add media.codec to native stack dump list
This is still needed for non-treble devices.
Test: do 'adb shell bugreport' on angler, and check that
'Cmd line: media.codec' and the stacks should be there.
bug:
62297059
Change-Id: Ic46b044e471a2ec3c432bb2fdc6afd6fb1f8090e
Winson Chung [Tue, 23 May 2017 23:22:08 +0000 (16:22 -0700)]
Workaround to ensure that PIP activities have a visible shadow.
- When the window for the activity enters PIP, update the outline provider
to override the alpha of the shadow (to be opaque) to ensure that is is
visible. Only applies to the task root activity.
Bug:
36741700
Test: Launch YT, ensure that there is a shadow when after it enters PIP
Test: go/wm-smoke
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: If089dae84e4916d3d0e7bbeb316215b46e522e05
John Reck [Fri, 2 Jun 2017 22:50:09 +0000 (15:50 -0700)]
Workaround glitches from SOFT_INPUT_ADJUST_PAN
Change-Id: I1ee0c7d434eb03667bd5e838ea891db73651a994
Fixes:
62073166
Test: Repro app in bug
TreeHugger Robot [Fri, 2 Jun 2017 22:34:06 +0000 (22:34 +0000)]
Merge "add channel and group tags to the notificaiton logs" into oc-dev
Tony Mantler [Fri, 26 May 2017 20:34:46 +0000 (13:34 -0700)]
Move strings to SettingsLib so TV can use them
Bug:
38496265
Test: Compiles
Change-Id: I68b535ba490e979a1869b7ea7e2be7737aaaff95
Merged-In: I68b535ba490e979a1869b7ea7e2be7737aaaff95
TreeHugger Robot [Fri, 2 Jun 2017 21:54:10 +0000 (21:54 +0000)]
Merge "Notify keyguard of when power button is pressed." into oc-dev
Winson Chung [Fri, 2 Jun 2017 21:34:52 +0000 (14:34 -0700)]
Handling cases with a null bitmap.
- This can happen either if an app creates an ActivityOptions without a
thumbnail, or if the call to create a hardware bitmap fails for any
reason. Just ignore the thumbnail for the transition in this case.
Bug:
62296016
Test: Have not been able to reproduce, but this is just a logical change
Change-Id: I30776b651df1f42118fe1d317fa4817261a6e977
Sudheer Shanka [Fri, 2 Jun 2017 21:10:32 +0000 (21:10 +0000)]
Merge "Avoid excessive logging when the necessary proc file is unavailable." into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 20:25:12 +0000 (20:25 +0000)]
Merge "wifi: add utility function to return saved configurations" into oc-dev
Chris Wren [Thu, 1 Jun 2017 17:34:46 +0000 (13:34 -0400)]
add channel and group tags to the notificaiton logs
Change-Id: Icf029e42fca46262c9d9f8ff63f26de098f888bf
Fixes:
37714086
Test: runtest systemui-notification
Todd Kennedy [Thu, 1 Jun 2017 20:18:09 +0000 (13:18 -0700)]
Protect instant apps from full apps
Bug:
35871369
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Test: Manual; install instant app and ensure it runs
Change-Id: I1835fe58256377f901db38fcc3e4c98886d799ac
Merged-In: I1835fe58256377f901db38fcc3e4c98886d799ac
Manu Cornet [Fri, 2 Jun 2017 20:02:44 +0000 (20:02 +0000)]
Merge "Use a PopupWindow to show tooltips" into oc-dev
Andrew Zeng [Fri, 17 Mar 2017 00:25:07 +0000 (17:25 -0700)]
Notify keyguard of when power button is pressed.
This is done on wear power button doesn't turn off the screen,
when the device wakes from keyguard UI isn't visible yet, so
it needs to react to power press in some way.
Bug:
35147955
Change-Id: I22619ea446770d09b53370e9244215646b60a9db
TreeHugger Robot [Fri, 2 Jun 2017 19:28:32 +0000 (19:28 +0000)]
Merge "QS vis tweaks" into oc-dev
Jerry Zhang [Fri, 2 Jun 2017 19:05:03 +0000 (12:05 -0700)]
Remove ptp from persist config on boot
We got a report from a user in which ptp was set in the
persistent config, likely from a previous version.
This causes errors in the usb state and is not removed
by an ota. To fix, remove ptp in the same place that mtp
is removed from the persistent config.
Bug:
62202885
Test: Add ptp to persistent config, verify removed.
Change-Id: I5ebd93b9c8a49bcaca5a3362e49ed1e1acf50a9b
Sudheer Shanka [Fri, 2 Jun 2017 00:39:40 +0000 (17:39 -0700)]
Avoid excessive logging when the necessary proc file is unavailable.
Bug:
34133340
Test: manual
Change-Id: Ic00e58a5b7bb7f92a0467df1cab8df5cab7dffda
TreeHugger Robot [Fri, 2 Jun 2017 17:58:04 +0000 (17:58 +0000)]
Merge "Track added/removed window when focus is null" into oc-dev
Evan Rosky [Fri, 2 Jun 2017 17:56:22 +0000 (17:56 +0000)]
Merge "Improve consistency in focusAfterDescendants behavior" into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 17:26:47 +0000 (17:26 +0000)]
Merge "Annotate test method visibility in WindowManager" into oc-dev
Jason Monk [Fri, 2 Jun 2017 17:17:27 +0000 (13:17 -0400)]
QS vis tweaks
- QS Header status centering 24dp -> 32dp
- Several fonts condensed -> medium
Test: visual
Change-Id: Ic8bc08d6a4d78ee708c4a890140b87716a883373
Fixes:
38199857
Peter Qiu [Wed, 31 May 2017 17:18:17 +0000 (10:18 -0700)]
wifi: add utility function to return saved configurations
The saved configurations included saved Wi-Fi networks and
Passpoint profiles.
Bug:
62048284
Test: manual test
Change-Id: I55be798d5f36fa678bf69d9f910ca10ed952518a
Winson Chung [Fri, 2 Jun 2017 16:04:46 +0000 (16:04 +0000)]
Merge "Prevent showing voice session when it is already queued to be hidden." into oc-dev
Winson Chung [Wed, 31 May 2017 23:25:30 +0000 (16:25 -0700)]
Fix issue with jumping PIP when IME shows.
- Removing extraneous content frame adjustment for the visible IME in
WindowState, which conflicts with new IME adjustment logic in the
PinnedStackController.
Bug:
36820637
Test: Launch YT PIP, bring up IME
Test: go/wm-smoke
Change-Id: I6d5e647aa0cd75ff48c1efff50cc42093dcb1129
TreeHugger Robot [Fri, 2 Jun 2017 15:55:34 +0000 (15:55 +0000)]
Merge "Allow force resize message activity to be resumed" into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 15:44:42 +0000 (15:44 +0000)]
Merge "Handle Wi-Fi passing explicit interface name and AP/IP mode" into oc-dev
Wale Ogunwale [Fri, 2 Jun 2017 13:50:50 +0000 (06:50 -0700)]
Track added/removed window when focus is null
Improves the blaming of ANRs by determining if an app added windows
after it was launched.
Bug:
38121026
Test: Log inspection
Change-Id: Id86c1981150cf546c92d786ad45d5c2dda5573e0
Julia Reynolds [Thu, 1 Jun 2017 20:55:49 +0000 (16:55 -0400)]
Annotate locks
And update what object ManagedServices should lock on; mNotificationList
is so passe.
Bug:
62163074
Test: make, boot
Change-Id: I3b732a6f72f2e3c2b116c68759eeb341882cb2a4
Julia Reynolds [Thu, 1 Jun 2017 15:06:10 +0000 (11:06 -0400)]
Don't allow blocked apps to post notifications
Change-Id: I82ed7d954746e65c086ba43c3f4733f9edeae081
Fixes:
62217679
Test: runtest sysmui-notification
Christine Franks [Fri, 2 Jun 2017 15:07:19 +0000 (15:07 +0000)]
Merge "Fix night display activation behavior after reboot" into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 14:44:21 +0000 (14:44 +0000)]
Merge "Mock out usageStats in NotificationManagerServiceTests" into oc-dev
Erik Kline [Wed, 31 May 2017 06:53:53 +0000 (15:53 +0900)]
Handle Wi-Fi passing explicit interface name and AP/IP mode
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
Bug:
31466854
Bug:
32163131
Bug:
62018531
Bug:
62076211
Merged-In: I599813c4b4d866623344df56f62ed6a40b4025d6
Merged-In: I8f1d172a3514e4fb9230af9e09aeaf638f03091c
Change-Id: I3557a9c14f4e9f1de1869084566a179003d98ffe
(cherry picked from commit
2efb827f61db989ab55792052c99713ef5f5eefa)
TreeHugger Robot [Fri, 2 Jun 2017 02:30:57 +0000 (02:30 +0000)]
Merge "AAPT2: Allow any value type for <item> without format attr" into oc-dev
Andrii Kulian [Fri, 2 Jun 2017 00:49:02 +0000 (17:49 -0700)]
Allow force resize message activity to be resumed
"Activity may not work with split-screen" message is not showing
because the overlay activity is not allowed to resume without
user action.
Bug:
36205249
Test: Launch an activity with target SDK < 25, enable split-screen
Test: go/wm-smoke
Change-Id: Ic796f4449df1307c75ca5445cbffab218f0f8ae3
TreeHugger Robot [Fri, 2 Jun 2017 00:57:46 +0000 (00:57 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
Evan Rosky [Fri, 2 Jun 2017 00:45:09 +0000 (00:45 +0000)]
Merge "Enabled (asymmetric) tab selection in GridView" into oc-dev
Siyamed Sinir [Fri, 2 Jun 2017 00:18:03 +0000 (00:18 +0000)]
Merge "AutoSize TextView - major fixes" into oc-dev
Adam Lesinski [Fri, 2 Jun 2017 00:16:44 +0000 (17:16 -0700)]
AAPT2: Allow any value type for <item> without format attr
TO bring AAPT2 behavior in-line with AAPT, <item> has a default
format of "any", and only becomes restricted with an explicit format
attribute.
Bug:
62260121
Test: make aapt2_tests
Change-Id: Ife416f520e6c2710bb30e3ba3f2d4463794bfa06
Doris Liu [Thu, 1 Jun 2017 23:46:18 +0000 (23:46 +0000)]
Merge "Fix AVD memory leak" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 23:43:55 +0000 (23:43 +0000)]
Merge "Fix ANR & Crash on Ryu" into oc-dev
Evan Rosky [Thu, 1 Jun 2017 23:21:25 +0000 (23:21 +0000)]
Merge "Directly focus button in touchmode coretests" into oc-dev
Winson Chung [Thu, 1 Jun 2017 22:35:48 +0000 (15:35 -0700)]
Prevent showing voice session when it is already queued to be hidden.
- It is possible for the session to be requested to be hidden before it
gets the message to be shown and completes showing. This leads to an
inconsistency where the voice interaction service implementation will be
in a different state than the system for the session. Instead, we can
cancel any pending show messages, and also clean up the pending show
callback list immediately when the session is hidden.
- Also fixing up some error message codes when starting the assistant
activity.
Bug:
38379130
Test: android.server.cts.ActivityManagerAssistantStackTests
Test: CtsVoiceInteractionTestCases
Test: CtsAlarmClockTestCases
Change-Id: I0d0e9c024367a47bda82d6a29ca89e18b7d69527
TreeHugger Robot [Thu, 1 Jun 2017 22:03:10 +0000 (22:03 +0000)]
Merge "Add channel group for alert windows notifications" into oc-dev
Manu Cornet [Thu, 1 Jun 2017 21:44:13 +0000 (14:44 -0700)]
Use a PopupWindow to show tooltips
This allows tooltips to work even in a context where they don't belong
in any activity (and therefore no window token to use). It also
simplifies a tiny bit the logic of how to get the view to show up.
Test: Checked tooltip behavior in and outside an app
Bug:
62065980
Change-Id: I6c02009c4fdd6d4bc4fa2cf8019955360506f0ee
TreeHugger Robot [Thu, 1 Jun 2017 21:39:42 +0000 (21:39 +0000)]
Merge "Fix plugin reloading" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 21:11:51 +0000 (21:11 +0000)]
Merge "Fix camera launch delay from Keyguard" into oc-dev
Doris Liu [Wed, 31 May 2017 01:52:26 +0000 (18:52 -0700)]
Fix AVD memory leak
The memory leak was caused by a lingering internal listener
that held a global ref to the AVD java object when the AVD is
infinite. As a result, the native VectorDrawable Tree can
not be destroyed, and therefore leak bitmaps.
This memory leak is fixed by removing all the internal listeners
for all the unfinished AVDs when the animation context is
destroyed.
BUG:
37518414
Test: follow steps in comment #1 of the bug, and inspect memory heap.
Change-Id: Ibbd1547a083b83d0cebd8e304d9b01abda4950ef
Evan Rosky [Thu, 11 May 2017 18:18:45 +0000 (11:18 -0700)]
Improve consistency in focusAfterDescendants behavior
- focusAfterDescendant ViewGroups that were also clusters would
continue to be remembered for restoreFocusedInCluster after
gaining focusable children. This caused undesired cluster-focus
loops
- focusableViewAvailable wasn't being called in all cases (specifically
when views were added). This meant focusAfterDescendant views
wouldn't transfer focus to children in some cases.
- 0-area views which became focusable weren't reporting
focusableViewAvailable. Since views gaining area doesn't report
focusableViewAvailable, this was another case of state change not
being accounted for. Also, this restriction doesn't exist for
gaining focus so these views are actually focusable despite having
0 area.
- focusableViewAvailable was reporting focusable views even when
ancestors (and therefore the new focusables) were not visible.
- restoreFocusNotInCluster tried to focus invisible views
- restoreFocusNotInCluster was sending focus to focusAfterDescendant
viewgroups which had focusable children IN a cluster.
Bug:
38010274
Bug:
38009598
Bug:
38352147
Test: cycling works in situations reported in bugs.
Added CTS tests around focusableViewAvailable and
FOCUS_AFTER_DESCENDANTS
Change-Id: I77f214f5384dcf9092324e08fc1daa3f1155bbad
TreeHugger Robot [Thu, 1 Jun 2017 20:34:01 +0000 (20:34 +0000)]
Merge "Delay notification vibration to synchronize with notif sound" into oc-dev
John Reck [Thu, 1 Jun 2017 19:44:58 +0000 (12:44 -0700)]
Fix ANR & Crash on Ryu
Fixes impossible dequeue crash as the wrong
start point of the frame was used. We need
to use the start point for RT, not the start
point for the frame.
Workaround for sysui ANR caused by what appears
to be a driver bug. Drivers with the bug
will have transiently higher memory usage.
Drivers without the bug will be unaffected.
Bug:
62213889
Bug:
62250550
Test: Manual
Change-Id: I9992b224f84bc1c40834bafff7e0013b38270ae0
Geoffrey Pitsch [Thu, 1 Jun 2017 19:45:35 +0000 (15:45 -0400)]
Mock out usageStats in NotificationManagerServiceTests
Shouldn't be doing this db work in tests
Change-Id: Idadadd83bfe984bd0e1c991534f1fba93ca34b53
Fixes:
62251669
Test: runtest systemui-notification
Adrian Roos [Thu, 1 Jun 2017 19:44:42 +0000 (19:44 +0000)]
Merge "Keyguard: Fix date capitalization context" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 19:43:42 +0000 (19:43 +0000)]
Merge "Add checks against incorrect context use in sysui tests" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 19:43:05 +0000 (19:43 +0000)]
Merge "Fixed an issue where heads up where invisible in qs edit" into oc-dev
Jason Monk [Thu, 1 Jun 2017 19:20:33 +0000 (15:20 -0400)]
Fix plugin reloading
Change-Id: I2209e98628b50416b910cda7ace10a06dbdceaa9
Test: manual
Fixes:
38424850
TreeHugger Robot [Thu, 1 Jun 2017 19:08:06 +0000 (19:08 +0000)]
Merge "Fix crash from non-default sims in QS" into oc-dev
Wale Ogunwale [Thu, 1 Jun 2017 17:22:36 +0000 (10:22 -0700)]
Add channel group for alert windows notifications
Bug:
62256269
Test: manual
Change-Id: If4253cb8303124c5c6d974e9680486d77f314059
Jorim Jaggi [Tue, 30 May 2017 23:16:01 +0000 (16:16 -0700)]
Fix camera launch delay from Keyguard
When we launch the camera from the lockscreen, we launch a
trampoline activity that launches a real activity. Now, under
certain race conditions the trampoline activity was resumed but
then set to invisible immediately again such that the window
was never relayouted. Thus, the activity was stuck in
WAITING_RELAYOUT state in UnknownAppVisibilityController, leading
to a app transition timeout.
To fix this, we immediately remove the app from the unknown
visibility controller as soon as it gets set to invisible again.
Test: Set animation scale multiplier to 0, open camera, finish
activity by pressing back, turn off screen, launch camera via
double tap, observe no delay.
Test: go/wm-smoke
Fixes:
37677242
Change-Id: I103a89af5fb515d6635f86abe2c67a02d90abd79
Jean-Michel Trivi [Fri, 26 May 2017 01:32:40 +0000 (18:32 -0700)]
Delay notification vibration to synchronize with notif sound
Delay the vibration associated with a notification by the length
of the ramp time preceding a notification sound. Do this only
for notifications that play a sound.
Tests: verify that calls to Vibrator.vibrate() method are within the
max delay that could be applied to a notification sound/vibration.
Test: play notification with vibration, verify vibration syncs with sound
Test: runtest systemui-notification
Bug:
35152866
Change-Id: I571eb5620d654265d19f45aca2073e8ccc4799df
Lucas Dupin [Thu, 1 Jun 2017 18:08:28 +0000 (18:08 +0000)]
Merge "Avoid pixel rounding issue during animation" into oc-dev
Selim Cinek [Thu, 1 Jun 2017 17:44:53 +0000 (17:44 +0000)]
Merge "Fixed an issue where the shade would jump" into oc-dev
Selim Cinek [Thu, 1 Jun 2017 17:40:42 +0000 (17:40 +0000)]
Merge "Fixed an issue where the panel could be stuck tracking" into oc-dev
Daniel Nishi [Thu, 1 Jun 2017 17:29:54 +0000 (17:29 +0000)]
Merge "Fix an NPE when FileCollector runs." into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 17:14:15 +0000 (17:14 +0000)]
Merge "Handle not having main window in createThumbnailAppAnimator." into oc-dev
Jorim Jaggi [Thu, 1 Jun 2017 16:54:16 +0000 (16:54 +0000)]
Merge "Remove starting window logging" into oc-dev
Andrii Kulian [Thu, 1 Jun 2017 16:50:56 +0000 (16:50 +0000)]
Merge "Create ActivityDisplay if its registered in DisplayManager" into oc-dev
Jason Monk [Thu, 1 Jun 2017 15:21:14 +0000 (11:21 -0400)]
Add checks against incorrect context use in sysui tests
Fix incorrect usages found by this check.
Test: runtest systemui
Bug:
62251903
Change-Id: I45a762f96838e617833c1cbe003e583087bb8176
Ivan Podogov [Thu, 1 Jun 2017 15:06:28 +0000 (15:06 +0000)]
Merge "Fix setRequestedOrientation() freeze on Android Wear." into oc-dev
Bryce Lee [Wed, 31 May 2017 17:27:42 +0000 (10:27 -0700)]
Handle not having main window in createThumbnailAppAnimator.
A recent code change associated the SurfaceControl with the main
window owner id. However, it is possible for the an AppWindowToken to
not have a main window. This case is handled later in the method.
This CL restores the original behavior of using the calling uid in
the cases no main window is present.
Change-Id: I8255be9e0d68adc75fda0947c64f869b7eeb76c9
Fixes:
62096254
Test: go/wm-smoke
Jason Monk [Thu, 1 Jun 2017 15:00:00 +0000 (11:00 -0400)]
Fix crash from non-default sims in QS
Test: runtest systemui
Change-Id: Icdb063589258a6b4bd94634cc9f41f788a7d2299
Fixes:
62209034
Andrei Stingaceanu [Fri, 26 May 2017 14:57:04 +0000 (15:57 +0100)]
AutoSize TextView - major fixes
* splits the auto-size setup part from the execution
function:
** in TextView CTOR we only setup and we leave the
actual auto-sizing execution to happen in the
view||text layout phase
** encapsulated the conditions needed to start
applying auto-size in the execution function
* introduces a private way to set the text size
without requesting a new layout pass; auto-size
always uses this practically setting the text
size on the paint object and creating a new
layout
* calls execution autoSizeText() from within
TextView#checkForRelayout() if not requestLayout()
is needed => this makes sure that auto-size will be
performed even if a view layout is not requested,
but only a text layout
* fixes the calculation of the sizes available for
auto-size when configured via granularity
Bug:
62050646
Bug:
38409622
Bug:
38440435
Bug:
62109627
Test: run cts --test android.widget.cts.TextViewTest -m \
CtsWidgetTestCases
Test: manually tested the new behaviors in demo apps
Test: new test attached in topic
Change-Id: I4ccaa0a0afa3b5aa47213442d0029da2c74e7eb4
TreeHugger Robot [Thu, 1 Jun 2017 14:29:42 +0000 (14:29 +0000)]
Merge "Dump info about all RemoteViews in a Notification." into oc-dev
Ivan Podogov [Fri, 26 May 2017 16:42:15 +0000 (17:42 +0100)]
Fix setRequestedOrientation() freeze on Android Wear.
In ag/
1460784 and ag/
1551198, logic of
ActivityManagerService.updateConfigurationLocked
(now updateDisplayOverrideConfigurationLocked) was changed a bit:
before those CL's, with (changes == 0) we were still calling
mWindowManager.setNewConfiguration(mGlobalConfiguration)
(which is now mWindowManager.setNewDisplayOverrideConfiguration).
Now, when there was a call to Activity.setRequestedOrientation, the
window becomes frozen and waiting for configuration, which is never sent
since there are no changes detected (which we don't know in advance when
freezing the window). This is important for watches, since they have
"square" screens, and resources configuration for them doesn't change
after requesting landscape orientation, i.e. display rotates 90 degrees,
yet the layout stays portrait. As a result, device becomes frozen.
This CL only moves mWindowManager.setNewDisplayOverrideConfiguration
call outside of the (changes == 0) check to restore the old logic.
Bug:
37684680
Test: go/wm-smoke (on Pixel), manual (on Wear)
Change-Id: Idf1f5989173494d51437b9a66296b4cac82d15c2
Hugo Benichi [Thu, 1 Jun 2017 09:32:24 +0000 (09:32 +0000)]
Merge "Prettify the captive portal sign-in activity" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 09:05:33 +0000 (09:05 +0000)]
Merge "Update documentation of MediaCodec regarding partial frame." into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 08:02:44 +0000 (08:02 +0000)]
Merge "Fix TimePickerDialog positive button clicks." into oc-dev
Charles He [Thu, 1 Jun 2017 07:56:49 +0000 (07:56 +0000)]
Merge "SystemUI: fix notification redaction logic." into oc-dev