OSDN Git Service

android-x86/frameworks-base.git
7 years agoRevert "always adjust per-user application info"
Adam Lesinski [Thu, 8 Jun 2017 20:16:39 +0000 (20:16 +0000)]
Revert "always adjust per-user application info"

This reverts commit e0046cecb079ec4d063444cee64795a6b734e6e7.

Reason for revert: Regresses UI theme

Bug: 62445682
Bug: 36561125
Change-Id: I9b60bd8e4eb89129368d38e83c0036ab459a524e

7 years agoalways adjust per-user application info
Todd Kennedy [Tue, 6 Jun 2017 14:51:10 +0000 (07:51 -0700)]
always adjust per-user application info

Test: manual; it runs
Change-Id: I98db17ebe9ebe34a5affad44300a55ed68adb565
Fixes: 36561125

7 years agoMerge "Protect instant apps from full apps" 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

7 years agoMerge "Annotate locks" into oc-dev
Julia Reynolds [Mon, 5 Jun 2017 15:22:53 +0000 (15:22 +0000)]
Merge "Annotate locks" into oc-dev

7 years agoMerge "Don't allow blocked apps to post notifications" into oc-dev
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

7 years agoFix captive portal login ssl error overflow
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

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 3 Jun 2017 21:49:40 +0000 (21:49 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "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

7 years agoMerge "Move strings to SettingsLib so TV can use them" 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

7 years agoMerge "Import translations. DO NOT MERGE" 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

7 years agoMerge "Workaround to ensure that PIP activities have a visible shadow." 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

7 years agoImport translations. DO NOT MERGE
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

7 years agoImport translations. DO NOT MERGE
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

7 years agoImport translations. DO NOT MERGE
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

7 years agoMerge "Add media.codec to native stack dump list" into oc-dev
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

7 years agoMerge "Handling cases with a null bitmap." 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

7 years agoMerge "Workaround glitches from SOFT_INPUT_ADJUST_PAN" 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

7 years agoMerge "Fix issue with jumping PIP when IME shows." 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

7 years agoAdd media.codec to native stack dump list
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

7 years agoWorkaround to ensure that PIP activities have a visible shadow.
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

7 years agoWorkaround glitches from SOFT_INPUT_ADJUST_PAN
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

7 years agoMerge "add channel and group tags to the notificaiton logs" into oc-dev
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

7 years agoMove strings to SettingsLib so TV can use them
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

7 years agoMerge "Notify keyguard of when power button is pressed." into oc-dev
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

7 years agoHandling cases with a null bitmap.
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

7 years agoMerge "Avoid excessive logging when the necessary proc file is unavailable." into...
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

7 years agoMerge "wifi: add utility function to return saved configurations" 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

7 years agoadd channel and group tags to the notificaiton logs
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

7 years agoProtect instant apps from full apps
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

7 years agoMerge "Use a PopupWindow to show tooltips" into oc-dev
Manu Cornet [Fri, 2 Jun 2017 20:02:44 +0000 (20:02 +0000)]
Merge "Use a PopupWindow to show tooltips" into oc-dev

7 years agoNotify keyguard of when power button is pressed.
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

7 years agoMerge "QS vis tweaks" into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 19:28:32 +0000 (19:28 +0000)]
Merge "QS vis tweaks" into oc-dev

7 years agoAvoid excessive logging when the necessary proc file is unavailable.
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

7 years agoMerge "Track added/removed window when focus is null" into oc-dev
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

7 years agoMerge "Improve consistency in focusAfterDescendants behavior" 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

7 years agoMerge "Annotate test method visibility in WindowManager" 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

7 years agoQS vis tweaks
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

7 years agowifi: add utility function to return saved configurations
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

7 years agoMerge "Prevent showing voice session when it is already queued to be hidden." into...
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

7 years agoFix issue with jumping PIP when IME shows.
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

7 years agoMerge "Allow force resize message activity to be resumed" into oc-dev
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

7 years agoMerge "Handle Wi-Fi passing explicit interface name and AP/IP mode" 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

7 years agoTrack added/removed window when focus is null
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

7 years agoAnnotate locks
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

7 years agoDon't allow blocked apps to post notifications
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

7 years agoMerge "Fix night display activation behavior after reboot" into oc-dev
Christine Franks [Fri, 2 Jun 2017 15:07:19 +0000 (15:07 +0000)]
Merge "Fix night display activation behavior after reboot" into oc-dev

7 years agoMerge "Mock out usageStats in NotificationManagerServiceTests" 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

7 years agoHandle Wi-Fi passing explicit interface name and AP/IP mode
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)

7 years agoMerge "AAPT2: Allow any value type for <item> without format attr" into oc-dev
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

7 years agoAllow force resize message activity to be resumed
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

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 00:57:46 +0000 (00:57 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Enabled (asymmetric) tab selection in GridView" 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

7 years agoMerge "AutoSize TextView - major fixes" into oc-dev
Siyamed Sinir [Fri, 2 Jun 2017 00:18:03 +0000 (00:18 +0000)]
Merge "AutoSize TextView - major fixes" into oc-dev

7 years agoAAPT2: Allow any value type for <item> without format attr
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

7 years agoMerge "Fix AVD memory leak" into oc-dev
Doris Liu [Thu, 1 Jun 2017 23:46:18 +0000 (23:46 +0000)]
Merge "Fix AVD memory leak" into oc-dev

7 years agoMerge "Fix ANR & Crash on Ryu" 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

7 years agoMerge "Directly focus button in touchmode coretests" 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

7 years agoPrevent showing voice session when it is already queued to be hidden.
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

7 years agoMerge "Add channel group for alert windows notifications" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 22:03:10 +0000 (22:03 +0000)]
Merge "Add channel group for alert windows notifications" into oc-dev

7 years agoUse a PopupWindow to show tooltips
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

7 years agoMerge "Fix plugin reloading" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 21:39:42 +0000 (21:39 +0000)]
Merge "Fix plugin reloading" into oc-dev

7 years agoMerge "Fix camera launch delay from Keyguard" 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

7 years agoFix AVD memory leak
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

7 years agoImprove consistency in focusAfterDescendants behavior
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

7 years agoMerge "Delay notification vibration to synchronize with notif sound" into oc-dev
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

7 years agoFix ANR & Crash on Ryu
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

7 years agoMock out usageStats in NotificationManagerServiceTests
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

7 years agoMerge "Keyguard: Fix date capitalization context" into oc-dev
Adrian Roos [Thu, 1 Jun 2017 19:44:42 +0000 (19:44 +0000)]
Merge "Keyguard: Fix date capitalization context" into oc-dev

7 years agoMerge "Add checks against incorrect context use in sysui tests" 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

7 years agoMerge "Fixed an issue where heads up where invisible in qs edit" 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

7 years agoFix plugin reloading
Jason Monk [Thu, 1 Jun 2017 19:20:33 +0000 (15:20 -0400)]
Fix plugin reloading

Change-Id: I2209e98628b50416b910cda7ace10a06dbdceaa9
Test: manual
Fixes: 38424850

7 years agoMerge "Fix crash from non-default sims in QS" into oc-dev
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

7 years agoAdd channel group for alert windows notifications
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

7 years agoFix camera launch delay from Keyguard
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

7 years agoDelay notification vibration to synchronize with notif sound
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

7 years agoMerge "Avoid pixel rounding issue during animation" into oc-dev
Lucas Dupin [Thu, 1 Jun 2017 18:08:28 +0000 (18:08 +0000)]
Merge "Avoid pixel rounding issue during animation" into oc-dev

7 years agoMerge "Fixed an issue where the shade would jump" 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

7 years agoMerge "Fixed an issue where the panel could be stuck tracking" 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

7 years agoMerge "Fix an NPE when FileCollector runs." 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

7 years agoMerge "Handle not having main window in createThumbnailAppAnimator." 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

7 years agoMerge "Remove starting window logging" into oc-dev
Jorim Jaggi [Thu, 1 Jun 2017 16:54:16 +0000 (16:54 +0000)]
Merge "Remove starting window logging" into oc-dev

7 years agoMerge "Create ActivityDisplay if its registered in DisplayManager" 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

7 years agoAdd checks against incorrect context use in sysui tests
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

7 years agoMerge "Fix setRequestedOrientation() freeze on Android Wear." into oc-dev
Ivan Podogov [Thu, 1 Jun 2017 15:06:28 +0000 (15:06 +0000)]
Merge "Fix setRequestedOrientation() freeze on Android Wear." into oc-dev

7 years agoHandle not having main window in createThumbnailAppAnimator.
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

7 years agoFix crash from non-default sims in QS
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

7 years agoAutoSize TextView - major fixes
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

7 years agoMerge "Dump info about all RemoteViews in a Notification." into oc-dev
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

7 years agoFix setRequestedOrientation() freeze on Android Wear.
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

7 years agoMerge "Prettify the captive portal sign-in activity" into oc-dev
Hugo Benichi [Thu, 1 Jun 2017 09:32:24 +0000 (09:32 +0000)]
Merge "Prettify the captive portal sign-in activity" into oc-dev

7 years agoMerge "Update documentation of MediaCodec regarding partial frame." 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

7 years agoMerge "Fix TimePickerDialog positive button clicks." 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

7 years agoMerge "SystemUI: fix notification redaction logic." 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

7 years agoMerge "SystemUI: fix incorrect redaction of profile notifications." into oc-dev
Charles He [Thu, 1 Jun 2017 07:56:23 +0000 (07:56 +0000)]
Merge "SystemUI: fix incorrect redaction of profile notifications." into oc-dev

7 years agoMerge "Add BottomLabelLayout for battery graph" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 07:26:40 +0000 (07:26 +0000)]
Merge "Add BottomLabelLayout for battery graph" into oc-dev

7 years agoMerge "Support multi-window on low-memory watches." into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 07:19:41 +0000 (07:19 +0000)]
Merge "Support multi-window on low-memory watches." into oc-dev

7 years agoMerge "Ensure null/empty phone number does not crash international number check....
TreeHugger Robot [Thu, 1 Jun 2017 07:07:18 +0000 (07:07 +0000)]
Merge "Ensure null/empty phone number does not crash international number check." into oc-dev

7 years agoMerge "Fix dequeus outside of frame drawing" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 06:11:28 +0000 (06:11 +0000)]
Merge "Fix dequeus outside of frame drawing" into oc-dev

7 years agoRemove starting window logging
Jorim Jaggi [Thu, 1 Jun 2017 05:14:44 +0000 (22:14 -0700)]
Remove starting window logging

No evidence so far that the screen-on latency bug hasn't been
fixed yet. Thus, we can remove the logspam.

Test: Inspect logs
Change-Id: I891077b3b8edaa68c748eeef8ecc6469c8eb4a90
Fixes: 62049093

7 years agoPrettify the captive portal sign-in activity
Hugo Benichi [Wed, 17 May 2017 00:26:30 +0000 (09:26 +0900)]
Prettify the captive portal sign-in activity

- fuses url bar with activity header: url is now the subtitle
- url appears as text and not as editable content
- url only shows host name
- header style is the device default for Settings
- Material progress bar
- progress bar disappears at page load finished
- webview does not jump at page load finished

Bug: 62107381
Bug: 38197949
Test: tested by manually triggering the sign-in activity
Change-Id: Id75023acad04f444dbfc41de56814a09e70cc6f9