OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Associate freezing display with a target display id." into oc-dev
Bryce Lee [Tue, 6 Jun 2017 19:42:40 +0000 (19:42 +0000)]
Merge "Associate freezing display with a target display id." into oc-dev

7 years agoMerge "Add back recents staggering entrance animation" into oc-dev
TreeHugger Robot [Tue, 6 Jun 2017 19:09:12 +0000 (19:09 +0000)]
Merge "Add back recents staggering entrance animation" into oc-dev

7 years agoMerge "Don't show unset score values for AccessPoints." into oc-dev
TreeHugger Robot [Tue, 6 Jun 2017 18:45:11 +0000 (18:45 +0000)]
Merge "Don't show unset score values for AccessPoints." into oc-dev

7 years agoMerge "Fix visibility issue in AccountManager.getAuthTokenByFeatures." into oc-dev
Jian Sun [Tue, 6 Jun 2017 18:29:58 +0000 (18:29 +0000)]
Merge "Fix visibility issue in AccountManager.getAuthTokenByFeatures." into oc-dev

7 years agoMerge "Don't allow removed DividerView to resize stack" into oc-dev
TreeHugger Robot [Tue, 6 Jun 2017 17:46:31 +0000 (17:46 +0000)]
Merge "Don't allow removed DividerView to resize stack" into oc-dev

7 years agoDon't show unset score values for AccessPoints.
Sundeep Ghuman [Mon, 5 Jun 2017 23:10:38 +0000 (16:10 -0700)]
Don't show unset score values for AccessPoints.

Merged-In: I0fd96da6a06dafd8c8ebb435a2725ab155bd26ed

Bug: b/3692675
Test: Visual confirmation
Change-Id: I52909bf55e6efabd2be6c17542f2a15135d25c62

7 years agoMerge "Refer to ShortcutManagerCompat in the javadoc" into oc-dev
Makoto Onuki [Tue, 6 Jun 2017 16:26:05 +0000 (16:26 +0000)]
Merge "Refer to ShortcutManagerCompat in the javadoc" into oc-dev

7 years agoDon't allow removed DividerView to resize stack
Wale Ogunwale [Tue, 6 Jun 2017 15:31:17 +0000 (08:31 -0700)]
Don't allow removed DividerView to resize stack

If a divider view is removed or in the process of been removed, then it
should no longer have any influence on the size of stacks.

Fixes: 62273599
Test: go/wm-smoke
Test: enter split-screen and make sure recents is visible, lock and
unlock the device and verify things look fine.

Change-Id: I79aca82be8a7013328b78e82f508c4ed9fa48a4a

7 years agoMerge "Give Doclava our manifest; more permission docs." into oc-dev
Jeff Sharkey [Tue, 6 Jun 2017 15:19:19 +0000 (15:19 +0000)]
Merge "Give Doclava our manifest; more permission docs." into oc-dev

7 years agoAssociate freezing display with a target display id.
Bryce Lee [Tue, 6 Jun 2017 00:25:59 +0000 (17:25 -0700)]
Associate freezing display with a target display id.

Currently, start/stop freezing is always associated with the default
display. As a result, any animations that result from freezing will
occur on the default display. One situation this happens is during a
configuration change, where a screen rotation can be triggered. In
the case of adding a secondary display, a configuration change is
always triggered to apply the override configuration at the display
level. As a result, the default display exhibits a rotation animation
upon unfreezing during surface placement.

This changelist passes down the display id associated with the action
so that the animations may be applied to the right display. In the
scenario described perviously, the secondary display id is passed down
and therefore is the target of the rotation animation during
unfreezing.

Fixes: 35486733
Test: go/wm-smoke
Test: cts-tradefed run singleCommand cts-dev --module CtsViewTestCases --test android.view.cts.SurfaceViewSyncTest#testSmallRect
Change-Id: I87e56f5901934327fc50b3c7e543b5e36b8ff34f

7 years agoMerge "WifiConfiguration: add local only networkId" into oc-dev
Rebecca Silberstein [Tue, 6 Jun 2017 14:42:54 +0000 (14:42 +0000)]
Merge "WifiConfiguration: add local only networkId" into oc-dev

7 years agoMerge "Coordinate configuration changes and window frame size." into oc-dev
Bryce Lee [Tue, 6 Jun 2017 14:26:28 +0000 (14:26 +0000)]
Merge "Coordinate configuration changes and window frame size." into oc-dev

7 years agoCoordinate configuration changes and window frame size.
Bryce Lee [Thu, 27 Apr 2017 20:42:23 +0000 (13:42 -0700)]
Coordinate configuration changes and window frame size.

Previously, it was possible for the view hierarchy to be measured,
laid out, and drawn around a window frame size that did not match
the current configuration. This stems from new configurations not
always propagating back from WindowSession#relayout, which is
called from ViewRootImpl.

This changelist makes WindowManagerService#relayoutWindow always
return the latest configuration. It also adds rotation to the
configuration.

Fixes: 32839232
Test: go/wm-smoke
Test: Open Camera while rotating phone to landscape. Added
      temporary logs to detect inconsistencies between measurements
      and reported rotation on draw.
Change-Id: I39daca338b4f87eff1a509eb99493f01e710ced1

7 years agoMerge "Revert "Disabled task snapshot for TV"" into oc-dev
Guang Zhu [Tue, 6 Jun 2017 03:29:05 +0000 (03:29 +0000)]
Merge "Revert "Disabled task snapshot for TV"" into oc-dev

7 years agoRevert "Disabled task snapshot for TV"
Guang Zhu [Tue, 6 Jun 2017 03:27:44 +0000 (03:27 +0000)]
Revert "Disabled task snapshot for TV"

Bug: 62360140
Bug: 62040693

This reverts commit 4256422eb6752294a08f4701dd66798652a8059f.

Change-Id: Id89de52c9ad25ef7b3163bd8b4a0c44f97631431

7 years agoMerge "Don't verify instant apps" into oc-dev
TreeHugger Robot [Tue, 6 Jun 2017 01:41:08 +0000 (01:41 +0000)]
Merge "Don't verify instant apps" into oc-dev

7 years agoMerge "Add ERI (enhanced roaming indicator) 66 to list of home ERIs for Verizon"...
TreeHugger Robot [Tue, 6 Jun 2017 00:30:02 +0000 (00:30 +0000)]
Merge "Add ERI (enhanced roaming indicator) 66 to list of home ERIs for Verizon" into oc-dev

7 years agoMerge "Disabled task snapshot for TV" into oc-dev
TreeHugger Robot [Tue, 6 Jun 2017 00:04:31 +0000 (00:04 +0000)]
Merge "Disabled task snapshot for TV" into oc-dev

7 years agoMerge "Reinstate SurfaceView Background from N" into oc-dev
TreeHugger Robot [Mon, 5 Jun 2017 23:57:01 +0000 (23:57 +0000)]
Merge "Reinstate SurfaceView Background from N" into oc-dev

7 years agoGive Doclava our manifest; more permission docs.
Jeff Sharkey [Mon, 5 Jun 2017 23:38:17 +0000 (17:38 -0600)]
Give Doclava our manifest; more permission docs.

We've seen some @SystemApi methods protected with non-system
permissions, so give Doclava the platform AndroidManifest.xml so it
can parse the actual permission protection levels to look for APIs
that are letting in non-system apps.

Also document more @SystemApi permissions.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api
Bug: 62263906
Change-Id: Ie0f0a5fb0033817bcc95060f2183a52ae4ae7b06

7 years agoMerge "Fix icon tint on notification shelf" into oc-dev
TreeHugger Robot [Mon, 5 Jun 2017 23:29:42 +0000 (23:29 +0000)]
Merge "Fix icon tint on notification shelf" into oc-dev

7 years agoMerge "Initialize last-orientation to ensure we don't skip loading config." into...
TreeHugger Robot [Mon, 5 Jun 2017 22:37:02 +0000 (22:37 +0000)]
Merge "Initialize last-orientation to ensure we don't skip loading config." into oc-dev

7 years agoMerge "Annotate @SystemApi with required permissions." into oc-dev
Jeff Sharkey [Mon, 5 Jun 2017 22:19:41 +0000 (22:19 +0000)]
Merge "Annotate @SystemApi with required permissions." into oc-dev

7 years agoMerge "Revert "Fix race condition triggered by quick stop/start of Dream"" into cw...
Erik Wolsheimer [Mon, 5 Jun 2017 21:46:36 +0000 (21:46 +0000)]
Merge "Revert "Fix race condition triggered by quick stop/start of Dream"" into cw-f-dev am: 7a5dd1c3ff
am: 51a89ee90c

Change-Id: I982b94c155849061a667b1bf90f7a511bb81b1c5

7 years agoMerge "Revert "Fix race condition triggered by quick stop/start of Dream"" into cw...
Erik Wolsheimer [Mon, 5 Jun 2017 21:38:33 +0000 (21:38 +0000)]
Merge "Revert "Fix race condition triggered by quick stop/start of Dream"" into cw-f-dev
am: 7a5dd1c3ff

Change-Id: Ida35556f6d57113ad06c736ef780580b814f673e

7 years agoMerge "Fix tinting of guest icon in QS footer" into oc-dev
TreeHugger Robot [Mon, 5 Jun 2017 21:26:39 +0000 (21:26 +0000)]
Merge "Fix tinting of guest icon in QS footer" into oc-dev

7 years agoMerge "Revert "Fix race condition triggered by quick stop/start of Dream"" into cw...
TreeHugger Robot [Mon, 5 Jun 2017 21:24:44 +0000 (21:24 +0000)]
Merge "Revert "Fix race condition triggered by quick stop/start of Dream"" into cw-f-dev

7 years agoMerge "Ignore entries for isolated uids if there's no mapping for them." into oc-dev
Sudheer Shanka [Mon, 5 Jun 2017 21:22:32 +0000 (21:22 +0000)]
Merge "Ignore entries for isolated uids if there's no mapping for them." into oc-dev

7 years agoAdd back recents staggering entrance animation
Matthew Ng [Fri, 2 Jun 2017 19:46:33 +0000 (12:46 -0700)]
Add back recents staggering entrance animation

Since there was a change in ValueAnimator that did not allow setting
initial play time per interpolator grouped in an AnimatorSet, set the
initial play time for each animation to allow the same effect.

Change-Id: I05445bde6e185a99250d7d193bd0e74d5ce98fa0
Fixes: 36175824
Test: manual - launch recents

7 years agoFix visibility issue in AccountManager.getAuthTokenByFeatures.
sunjian [Thu, 11 May 2017 22:42:31 +0000 (15:42 -0700)]
Fix visibility issue in AccountManager.getAuthTokenByFeatures.

Bug: 34679769
Test: manual, APCT
Change-Id: I7270a5a5dd681ad088fa28e48d849ba3541e45cd

7 years agoMerge "Fix up some jank from unnecessary reinflation" into oc-dev
Jason Monk [Mon, 5 Jun 2017 19:50:06 +0000 (19:50 +0000)]
Merge "Fix up some jank from unnecessary reinflation" into oc-dev

7 years agoAnnotate @SystemApi with required permissions.
Jeff Sharkey [Fri, 2 Jun 2017 23:36:26 +0000 (17:36 -0600)]
Annotate @SystemApi with required permissions.

Most @SystemApi methods should be protected with system (or higher)
permissions, so annotate common methods with @RequiresPermission to
make automatic verification easier.

Verification is really only relevant when calling into system
services (where permissions checking can happen on the other side of
a Binder call), so annotate managers with the new @SystemService
annotation, which is now automatically documented.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api && make -j32 offline-sdk-docs
Bug: 62263906
Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651

7 years agoMerge "Added mising sendToTarget message for dismissing docked stack" into oc-dev
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

7 years agoDisabled task snapshot for TV
Keyvan Amiri [Sat, 3 Jun 2017 00:28:31 +0000 (17:28 -0700)]
Disabled task snapshot for TV

This was causing memory leaks when opening/closing Apps view. Will
disable this feature on TV since we are running low on RAM.

Bug: 62040693
Test: Compiles
Change-Id: Ifc43118dd072f17a047003d1797004bd441669b8

7 years agoMerge changes from topic 'dungeon' 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.

7 years agoMerge "Remove ptp from persist config on boot" into oc-dev
Jerry Zhang [Mon, 5 Jun 2017 18:36:58 +0000 (18:36 +0000)]
Merge "Remove ptp from persist config on boot" into oc-dev

7 years agoDon't verify instant apps
Todd Kennedy [Fri, 2 Jun 2017 19:49:34 +0000 (12:49 -0700)]
Don't verify instant apps

Change-Id: I07bc45bc82d1cbd2012c4605d5ca19f2ef36d615
Fixes: 62202471
Test: Manual; install instant app, see verification is disabled
Test: Manual; install full app, see verification is enabled

7 years agoIgnore entries for isolated uids if there's no mapping for them.
Sudheer Shanka [Fri, 2 Jun 2017 23:48:13 +0000 (16:48 -0700)]
Ignore entries for isolated uids if there's no mapping for them.

Bug: 25195548
Test: manual
Change-Id: If5aa7e194f4d43f2a7068899b9aa6584bfb2b7cc

7 years agoMerge "DO NOT MERGE: AAPT2: Allow undefined resources (placeholders)" 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

7 years agoFix tinting of guest icon in QS footer
Jason Monk [Mon, 5 Jun 2017 16:59:49 +0000 (12:59 -0400)]
Fix tinting of guest icon in QS footer

Test: visual
Change-Id: I1daaac94e6bbff2e94583e1501c43beb4d9f757f
Fixes: 62339982

7 years agoFix up some jank from unnecessary reinflation
Jason Monk [Mon, 5 Jun 2017 15:33:48 +0000 (11:33 -0400)]
Fix up some jank from unnecessary reinflation

Don't need to re-inflate fragments because of ui mode change.

Test: manual
Change-Id: I8cb8ff4f64b5c1cb5982d39c6acced682eaa4d41
Fixes: 62041537

7 years agoRevert "Fix race condition triggered by quick stop/start of Dream"
Erik Wolsheimer [Mon, 5 Jun 2017 16:49:28 +0000 (16:49 +0000)]
Revert "Fix race condition triggered by quick stop/start of Dream"

Causes another race condition

This reverts commit 69515b2261335be4bd8510ed5a40a6bed3d7b48f.

Bug: 62147987
Change-Id: Ibe6f9bc14ed6cc35d3a23d52300657eaed9bb6d8

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 agoHide redundant foreground service notifications.
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

7 years agoUpdates to Dianne's Dungeon.
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

7 years agoAdded mising sendToTarget message for dismissing docked stack
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

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 agoDO NOT MERGE: AAPT2: Allow undefined resources (placeholders)
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

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 agoReinstate SurfaceView Background from N
Robert Carr [Fri, 2 Jun 2017 21:21:03 +0000 (14:21 -0700)]
Reinstate SurfaceView Background from N

In N we used a Dim-Layer to add a background to SurfaceView, from
the WM side. In O we forgot to reimplment this with the new SurfaceView
and so we once again can have holes for apps which don't implement
surfaceRedrawNeeded.

Bug: 62113351
Test: Manual from bug. go/wm-smoke
Change-Id: If3dac51886b9a8083140da7b5bc1b349da57860f

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 agoRemove ptp from persist config on boot
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

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 agoInitialize last-orientation to ensure we don't skip loading config.
Winson Chung [Fri, 2 Jun 2017 16:58:00 +0000 (09:58 -0700)]
Initialize last-orientation to ensure we don't skip loading config.

- This was a regression introduced in ag/2297883

Bug: 62191663
Test: Launch PiP, open settings
Change-Id: I66c28b57361143f2df927776dba5bc58a022bcb4

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