OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add configurable captive portal probes" into pi-dev
Remi NGUYEN VAN [Wed, 23 May 2018 14:26:39 +0000 (14:26 +0000)]
Merge "Add configurable captive portal probes" into pi-dev

6 years agoMerge "WM: Prevent secondary display focus while keyguard is up" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 14:15:25 +0000 (14:15 +0000)]
Merge "WM: Prevent secondary display focus while keyguard is up" into pi-dev

6 years agoMerge "Change notification interruption calculation" into pi-dev
Julia Reynolds [Wed, 23 May 2018 13:56:07 +0000 (13:56 +0000)]
Merge "Change notification interruption calculation" into pi-dev

6 years agoMerge "Fix NPE in restoring network policies" into pi-dev
Annie Meng [Wed, 23 May 2018 13:22:01 +0000 (13:22 +0000)]
Merge "Fix NPE in restoring network policies" into pi-dev

6 years agoWM: Prevent secondary display focus while keyguard is up
Adrian Roos [Tue, 22 May 2018 14:56:35 +0000 (16:56 +0200)]
WM: Prevent secondary display focus while keyguard is up

Fixes an issue where input intended for the keyguard could end up going
to a different display.

To prevent this, make sure that only the default display can get focused
when the keyguard is showing.

Change-Id: I6463c44aedca06930d2c9bda7c45ffd93141308c
Fixes: 71786287
Test: atest DisplayContentTests

6 years agoMerge "Set static Dependency ref after all the Deps are set up." into pi-dev
Alison Cichowlas [Wed, 23 May 2018 12:39:55 +0000 (12:39 +0000)]
Merge "Set static Dependency ref after all the Deps are set up." into pi-dev

6 years agoMerge "Uncanonicalize URIs before comparing them." into pi-dev
Michael Wright [Wed, 23 May 2018 12:39:34 +0000 (12:39 +0000)]
Merge "Uncanonicalize URIs before comparing them." into pi-dev

6 years agoMerge "Limit number of notification etc dots to 1" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 12:25:28 +0000 (12:25 +0000)]
Merge "Limit number of notification etc dots to 1" into pi-dev

6 years agoMerge "Only apply wallpaper anim if top most app is wallpaper target" into pi-dev
Jorim Jaggi [Wed, 23 May 2018 12:01:38 +0000 (12:01 +0000)]
Merge "Only apply wallpaper anim if top most app is wallpaper target" into pi-dev

6 years agoMerge "[WindowManager] Perform relayout after hiding-window animation" into pi-dev
Jorim Jaggi [Wed, 23 May 2018 12:01:15 +0000 (12:01 +0000)]
Merge "[WindowManager] Perform relayout after hiding-window animation" into pi-dev

6 years agoAdd configurable captive portal probes
Remi NGUYEN VAN [Tue, 22 May 2018 01:01:53 +0000 (10:01 +0900)]
Add configurable captive portal probes

The probes allow testing for a configurable status code and location
header (regexes). They are disabled by default, so this CL is a
no-op unless the probe configurations are pushed.

Bug: b/79499239
Test: tests in CL pass, manual: captive portal login works
Change-Id: I785723aaed06054b9aa8ebff77803f23d7836db9

6 years agoMerge "Use AI_ADDRCONFIG for most DNS requests" into pi-dev
Remi NGUYEN VAN [Wed, 23 May 2018 10:39:46 +0000 (10:39 +0000)]
Merge "Use AI_ADDRCONFIG for most DNS requests" into pi-dev

6 years agoMerge "Fixup SntpClient to bypass Private DNS" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 10:27:28 +0000 (10:27 +0000)]
Merge "Fixup SntpClient to bypass Private DNS" into pi-dev

6 years agoMerge "Fix User unable to view the keyboard input" into pi-dev
Sanry Huang [Wed, 23 May 2018 07:39:27 +0000 (07:39 +0000)]
Merge "Fix User unable to view the keyboard input" into pi-dev

6 years agoFix User unable to view the keyboard input
sanryhuang [Fri, 18 May 2018 07:57:43 +0000 (15:57 +0800)]
Fix User unable to view the keyboard input

revert extracted mode solution and using commandQueue to implement
setRemoteInputActive

Test: manual test
Test: atest
Change-Id: I82c63843dd38c19c1f88af15abcc137be4f72c83
Fixes:73275201

6 years agoFixup SntpClient to bypass Private DNS
Erik Kline [Tue, 22 May 2018 12:15:49 +0000 (21:15 +0900)]
Fixup SntpClient to bypass Private DNS

NTP may be necessary in order to validate Private DNS certificates,
so it should be allowed to bypass Private DNS.

Test: as follows
    - built, flashed, booted
    - tcpdump for port 53; adb shell am restart
      queries for the NTP hostname appear in the clear
    - runtest frameworks-net passes
Bug: 64133961
Bug: 80118648
Change-Id: Id9ceb3fcaaffb48cbbd4cd381d48cae991572c9e

6 years agoFix fullscreen notification to support RTL
felkachang [Tue, 22 May 2018 04:53:50 +0000 (12:53 +0800)]
Fix fullscreen notification to support RTL

In the FullScreen notification condition, HeadsUpStatusBarView
doesn't support RTL funcationality and show nothing on status bar.

There are three part need to support RTL:
* HeadsUpAppearanceController count translationX
* HeadsUpStatusBarView count the new padding start
* Consider more about the SystemWindow(Navigation Bar + cut out)

In normal case(LTR), to count the new padding start needs to know
both of the NavigationBar's width and cut out in the left hand
side. But, in RTL, to count the new Padding start needs to know both
of the NavigationBar's width and cut out in the right hand side.
To change from mLeftInset to mSysWinInset and from mLeftCutOutInset
to mCutOutInset.

Add HeadsUpAppearanceController.getRtlTranslation to count the RTL
tranlationX by the following formula:
  Y = screenSize - (SystemWindow's width + Scroller.getRight())
And, let HeadsUpStatusBarView.setPanelTranslation to handle the
right cut out width and then complete the real
HeadsUpStatusBarView.setTranslationX.

Bug: 79957423
Test: atest SystemUITests
Change-Id: I26b3cf8a73a2bcd2916847d72e66c16ca9063efd
Fix: 79957423

6 years agoMerge "Hiding the icon of notifications that were replied to" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 05:51:30 +0000 (05:51 +0000)]
Merge "Hiding the icon of notifications that were replied to" into pi-dev

6 years agoMerge "Allowing the notification to be a bit bigger for the remote input history...
TreeHugger Robot [Wed, 23 May 2018 05:43:16 +0000 (05:43 +0000)]
Merge "Allowing the notification to be a bit bigger for the remote input history" into pi-dev

6 years agoMerge "Adding hidden APIs for assigning Admin flag to users." into pi-dev
Jovana Knezevic [Wed, 23 May 2018 05:16:55 +0000 (05:16 +0000)]
Merge "Adding hidden APIs for assigning Admin flag to users." into pi-dev

6 years agoMerge "Revert hiding user 0 in user picker/switcher." into pi-dev
Ying Zheng [Wed, 23 May 2018 04:00:19 +0000 (04:00 +0000)]
Merge "Revert hiding user 0 in user picker/switcher." into pi-dev

6 years agoUse AI_ADDRCONFIG for most DNS requests
Remi NGUYEN VAN [Tue, 22 May 2018 09:20:51 +0000 (18:20 +0900)]
Use AI_ADDRCONFIG for most DNS requests

Not using it doubles the number of DNS lookups for single-stack
networks.
Private DNS hostname resolution still does not use this flag so that we
get all address families in advance, in case of LinkProperties changes.
Bug: b/79811321
Test: manual: Captive portal, 464xlat, networking in apps working

Change-Id: Ib46756e5e5f8d8d2698c90c5183c368d2d44be7a

6 years agoMerge "canRequestPackageInstalls returns false for instant apps" into pi-dev
Suprabh Shukla [Wed, 23 May 2018 03:34:45 +0000 (03:34 +0000)]
Merge "canRequestPackageInstalls returns false for instant apps" into pi-dev

6 years agoMerge "Fix a ConcurrentModificationException crash." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 03:06:43 +0000 (03:06 +0000)]
Merge "Fix a ConcurrentModificationException crash." into pi-dev

6 years agoHiding the icon of notifications that were replied to
Selim Cinek [Wed, 23 May 2018 01:49:36 +0000 (18:49 -0700)]
Hiding the icon of notifications that were replied to

Because those notifications now stay around but the user
has already seen them, were hiding the icon instead.

Change-Id: I6b8590e31295ed79218698b1ac54df33b273d38c
Fixes: 78486801
Test: add notification, reply, observe icon gone

6 years agoMerge "Reduce spacing between notification icons" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:48:25 +0000 (02:48 +0000)]
Merge "Reduce spacing between notification icons" into pi-dev

6 years agoMerge "Wait a little longer to hide wallpaper" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:47:17 +0000 (02:47 +0000)]
Merge "Wait a little longer to hide wallpaper" into pi-dev

6 years agoMerge "MediaPlayer: sanity check track before dereferencing" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:35:15 +0000 (02:35 +0000)]
Merge "MediaPlayer: sanity check track before dereferencing" into pi-dev

6 years agoMerge "Stop using unsupported Canvas operations in IME" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:23:46 +0000 (02:23 +0000)]
Merge "Stop using unsupported Canvas operations in IME" into pi-dev

6 years agoMerge "Bumping BatteryStats report version." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:19:20 +0000 (02:19 +0000)]
Merge "Bumping BatteryStats report version." into pi-dev

6 years agoMerge "Update security-related WebView documentation." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:19:16 +0000 (02:19 +0000)]
Merge "Update security-related WebView documentation." into pi-dev

6 years agoMerge "Vibrate when ringer changes to vibrate" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:18:24 +0000 (02:18 +0000)]
Merge "Vibrate when ringer changes to vibrate" into pi-dev

6 years agoMerge "Fix RTL actions alignment" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:09:19 +0000 (02:09 +0000)]
Merge "Fix RTL actions alignment" into pi-dev

6 years agoAllowing the notification to be a bit bigger for the remote input history
Selim Cinek [Tue, 22 May 2018 05:06:43 +0000 (22:06 -0700)]
Allowing the notification to be a bit bigger for the remote input history

This also fixed the squishing when heads-upped by only allowing
one remote input text to be visible when heads upped.

Change-Id: I0c77931233b452420dee4dcf4772092d96d214c9
Fixes: 78877946
Test: add inbox style with 6 entries, reply a few times, observe no squishing

6 years agoFix a ConcurrentModificationException crash.
Chalard Jean [Wed, 23 May 2018 00:07:51 +0000 (09:07 +0900)]
Fix a ConcurrentModificationException crash.

This is a pinpoint fix against the bug listed below. While a client
is synchronously reading the LinkProperties of a network, the
ConnectivityServiceThread is updating its properties. Make sure
that update is done atomically.

This is a stopgap countermeasure against a problem that is
pervasive with usage of LinkProperties, but fixing the problem
itself will happen later.

Bug: 80077223
Test: runtest frameworks-net
Change-Id: I9302f8fb5303cb39aa82691d4f6d7f38707a41fa

6 years agoWait a little longer to hide wallpaper
Lucas Dupin [Wed, 23 May 2018 01:42:49 +0000 (18:42 -0700)]
Wait a little longer to hide wallpaper

Test: visual
Bug: 63868547
Change-Id: Ic9f8419baadac60839f54c22d7b9f86eb83b4f42

6 years agoMerge "Fixes the collapsed view with images and different densities" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 01:40:39 +0000 (01:40 +0000)]
Merge "Fixes the collapsed view with images and different densities" into pi-dev

6 years agoMerge "Adds support for hardware buffers in ImageWriter Images." into pi-dev
Marius Renn [Wed, 23 May 2018 01:35:11 +0000 (01:35 +0000)]
Merge "Adds support for hardware buffers in ImageWriter Images." into pi-dev

6 years agoMerge "Teach PinnerService to pin parts of APKs" into pi-dev
Daniel Colascione [Wed, 23 May 2018 00:12:28 +0000 (00:12 +0000)]
Merge "Teach PinnerService to pin parts of APKs" into pi-dev

6 years agoAdding hidden APIs for assigning Admin flag to users.
jovanak [Fri, 18 May 2018 19:15:59 +0000 (12:15 -0700)]
Adding hidden APIs for assigning Admin flag to users.

Also fixing method for requiring both MANAGE_USERS
and INTERACT_ACROSS_USERS_FULL permissions.

Fixes: 80001332
Bug: 25935510
Test: unit test
Change-Id: If10166b4379ddc6a5f004eab77fa1f93abf6ac2a

6 years agoMerge "Add Settings Slice Whitelist key" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 23:40:24 +0000 (23:40 +0000)]
Merge "Add Settings Slice Whitelist key" into pi-dev

6 years agoFixes the collapsed view with images and different densities
Selim Cinek [Tue, 22 May 2018 23:30:56 +0000 (16:30 -0700)]
Fixes the collapsed view with images and different densities

Previously the collapsed view could contain a message even before
the messaging imaging image and the display would look very distored.
This now makes sure that any groups with isolated messages always
are the last ones displayed.

Test: add group with image, adjust display settings to large
Change-Id: If9e69f72ce117687898dcaea591e61c6fb49ef46
Fixes: 78490082

6 years agoLimit number of notification etc dots to 1
Evan Laird [Tue, 22 May 2018 23:14:50 +0000 (19:14 -0400)]
Limit number of notification etc dots to 1

Paramterize the total space consumed by the overflow area

Changed MAX_DOTS to 1

Also changed the overflow logic in the static case so that the overflow
dots in the status bar will always show up the same distance from the
last visible icon.

Test: visual
Change-Id: I5849cbea2e4e4251c96dd40100a763ac71429c65
Fixes: 79937209

6 years agoAdd Settings Slice Whitelist key
Matthew Fritze [Mon, 21 May 2018 21:42:36 +0000 (14:42 -0700)]
Add Settings Slice Whitelist key

Bug: 79779103
Test: None - only a flag.
Change-Id: I764f2fddf05bf2b9df4e633c7f6c6c7e781c1149
Merged-In: I794159db4ff8aba7b6dcd91e13a984db40da47e7

6 years agoRevert hiding user 0 in user picker/switcher.
Ying Zheng [Tue, 22 May 2018 22:37:36 +0000 (15:37 -0700)]
Revert hiding user 0 in user picker/switcher.

Bug: 80141620
Test: Manual
Change-Id: I704e4091b22bca2c70e7ca5b19a17a49de316156

6 years agoMediaPlayer: sanity check track before dereferencing
Wei Jia [Tue, 22 May 2018 01:48:25 +0000 (18:48 -0700)]
MediaPlayer: sanity check track before dereferencing

Test: media post submit tests passed
Bug: 78175875
Change-Id: I6a23fc859a077eba03a17a562a7c3bb01d97e85b

6 years agoFix RTL actions alignment
Lucas Dupin [Tue, 22 May 2018 22:02:01 +0000 (15:02 -0700)]
Fix RTL actions alignment

Change-Id: I5a81e0386ef7d98ddbe6751cf3ca560f45b2e8ec
Fixes: 79532161
Test: manual

6 years agoMerge "DO NOT MERGE - Defer migration to CarUserManagerHelper, until CarSysUI" into...
Ying Zheng [Tue, 22 May 2018 22:04:57 +0000 (22:04 +0000)]
Merge "DO NOT MERGE - Defer migration to CarUserManagerHelper, until CarSysUI" into pi-dev

6 years agoBumping BatteryStats report version.
Kweku Adams [Tue, 22 May 2018 22:02:50 +0000 (15:02 -0700)]
Bumping BatteryStats report version.

Bug: 80147518
Test: Android builds
Change-Id: I663557cdf54dff3184681cf8584b22ad9b9939fe

6 years agoTeach PinnerService to pin parts of APKs
Daniel Colascione [Thu, 22 Mar 2018 02:13:57 +0000 (19:13 -0700)]
Teach PinnerService to pin parts of APKs

This change teaches PinnerService how to pin parts of APK files, with
the specific regions of interest described by a small metadata file in
the APK root directory. Apksig has been modified to annotate signed APKs
with pinning metadata.

This CL also fixes a few resource management bugs and enhances the
dumpsys output.

Test: built dummy camera app, pinned stuff, verified log output
Change-Id: If72709ad2c0f2ec748f547a48a289473e4c60bab
Bug: 65316207

6 years agoAdd theme mode design let user can choose theme self
Tony Huang [Wed, 2 May 2018 02:53:52 +0000 (10:53 +0800)]
Add theme mode design let user can choose theme self

Add a ContentObserver on WallpaperManagerService to
listen THEME_MODE value change. When changed, call
notifyWallpaperColorsChanged and set WallpaperColors
color hint by the current mode.

Bug: 63903361
Test: manual
Change-Id: I4f7aa7b184565b1bb23c7f4f1f07fc310dac7546

6 years agoMerge "Fixed a issue where notification icons don't align vertically while peeking...
TreeHugger Robot [Tue, 22 May 2018 21:26:30 +0000 (21:26 +0000)]
Merge "Fixed a issue where notification icons don't align vertically while peeking" into pi-dev

6 years agoMerge "Autofill: fix ClassCastException in SaveUi" into pi-dev
Dake Gu [Tue, 22 May 2018 21:25:49 +0000 (21:25 +0000)]
Merge "Autofill: fix ClassCastException in SaveUi" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 21:23:56 +0000 (21:23 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Change directory where apns-conf.xml is stored" into pi-dev
Jordan Liu [Tue, 22 May 2018 21:12:31 +0000 (21:12 +0000)]
Merge "Change directory where apns-conf.xml is stored" into pi-dev

6 years agoSet static Dependency ref after all the Deps are set up.
Alison Cichowlas [Wed, 9 May 2018 23:35:11 +0000 (19:35 -0400)]
Set static Dependency ref after all the Deps are set up.

Test: atest SystemUITests
Bug: 79444334
Change-Id: I1a0cb5a25f4cf13b876a9cad66fc74f82ebdc143

6 years agoMerge "ResStringPool: Prevenet boot loop from se fix" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 21:00:45 +0000 (21:00 +0000)]
Merge "ResStringPool: Prevenet boot loop from se fix" into pi-dev

6 years agoMerge "Build browse intents based on target user." into pi-dev
Jeff Sharkey [Tue, 22 May 2018 20:43:27 +0000 (20:43 +0000)]
Merge "Build browse intents based on target user." into pi-dev

6 years agoAdds support for hardware buffers in ImageWriter Images.
renn [Mon, 7 May 2018 17:18:05 +0000 (10:18 -0700)]
Adds support for hardware buffers in ImageWriter Images.

This allows dequeuing private image buffers from ImageWriters,
and accessing their hardware buffers.

Bug: 79422702
Test: verified cts locally
Change-Id: Ia003ffa0af305fad8ca9407f5379a3c9c1ab07b5

6 years agoDO NOT MERGE - Defer migration to CarUserManagerHelper, until CarSysUI
Ying Zheng [Tue, 22 May 2018 19:36:23 +0000 (12:36 -0700)]
DO NOT MERGE - Defer migration to CarUserManagerHelper, until CarSysUI

Bug: 80136426,80141620
Test: Manual
Change-Id: I589919b5ff238d6ac1bb94373b9eb0f215b1372f

6 years agoMerge "[Notif] Don't show bouncer on dismiss" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 20:36:51 +0000 (20:36 +0000)]
Merge "[Notif] Don't show bouncer on dismiss" into pi-dev

6 years agoReduce spacing between notification icons
Evan Laird [Tue, 22 May 2018 19:49:25 +0000 (15:49 -0400)]
Reduce spacing between notification icons

They shrunk 2dp, so shall the spacing. Also reduce the battery height
since it got skipped in the initial shrink.

Test: visual
Bug: 77822905
Bug: 74985733
Change-Id: I468536d2bbbcbc1ff0714a817e89e819c4bfc0a1

6 years agoUpdate security-related WebView documentation.
Torne (Richard Coles) [Wed, 16 May 2018 14:51:56 +0000 (10:51 -0400)]
Update security-related WebView documentation.

Add a number of notes for application developers related to using the
WebView securely.

Change-Id: I7dba78d35bc36dd719ed0629224fe3a1d197f52c
Bug: 8009550779169416791693977917005279170398
Fixes: 78941917
Test: m offline-sdk-docs

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 22 May 2018 19:26:11 +0000 (12:26 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia64d541d43542bffd17cb0cfba7e23419a84cfdc

6 years agoVibrate when ringer changes to vibrate
Beverly [Tue, 22 May 2018 17:02:15 +0000 (13:02 -0400)]
Vibrate when ringer changes to vibrate

Test: manual
Change-Id: Icf7bf0d1dfa632d674b9e6aaff0c98099a4b2eb3
Fixes: 78665512

6 years agoStop using unsupported Canvas operations in IME
Tarandeep Singh [Fri, 18 May 2018 20:53:53 +0000 (13:53 -0700)]
Stop using unsupported Canvas operations in IME

KeyboardView relies on deprecated Canvas#clipRect(Rect, Op.REPLACE).
This method is now unsupported and throws runtime exception.
Operations other than Difference and Intersect are unsupported.
This method call can be replaced by saving initial Canvas and calling
intersect operation of Canvas#clipRect(Rect).
Saving initial state can be achieved using Canvas.save() and
Canvas.restore().

Fixes: 79777033
Test: Manually verified with SoftKeyboard (which uses KeyboardView)
1. m SoftKeyboard
2. Set current keyboard to SoftKeyboard
3. SoftKeyboard runs fine
Test: Tested Canvas.getClipBounds() is consistent across save() &
.restore() operations

Change-Id: Id34c289f152b2ec06f37fffa9f940a909153447c

6 years agoChange notification interruption calculation
Julia Reynolds [Tue, 22 May 2018 18:58:39 +0000 (14:58 -0400)]
Change notification interruption calculation

Updates that change notification text will only be counted if the
user sees the update, so apps that are silently keeping their
notification data fresh will not be punished.

Test: runtest systemui-notification
Change-Id: I3d494417e92296ad9a1742db2ab949132ebac18f
Fixes: 78643290

6 years agoMerge "Optimize slice permission checks a bit" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 18:50:24 +0000 (18:50 +0000)]
Merge "Optimize slice permission checks a bit" into pi-dev

6 years agoUncanonicalize URIs before comparing them.
Michael Wright [Sat, 19 May 2018 01:07:09 +0000 (18:07 -0700)]
Uncanonicalize URIs before comparing them.

In order to ensure we maintain compatibility, we now configure the
canonical URIs instead of the raw URIs. Correspondingly, we need to
uncanonicalize before comparing them.

Note that we uncanonicalize the configured URI, rather than
canonicalizing the one given to us. This is because the canonicalization
format might change (e.g. add extra parameters) at which point they'll
no longer by equal, but should always uncanonicalize to the same value.

Bug: 75947705
Test: manual
Merged-In: If3b02dfef480245210fd2c585c7c727de77a4a73
Change-Id: I53dece42424a6629e0fb406845f57ebbb06dffcb

6 years agoMerge "Allow restore of settings with nullable components" into pi-dev
Annie Meng [Tue, 22 May 2018 18:38:19 +0000 (18:38 +0000)]
Merge "Allow restore of settings with nullable components" into pi-dev

6 years agoMerge "Hide status bar icons if showing bouncer on keyguard activity" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 18:35:27 +0000 (18:35 +0000)]
Merge "Hide status bar icons if showing bouncer on keyguard activity" into pi-dev

6 years agoMerge "Disable direct share on low ram devices" into pi-dev
Zhi An Ng [Tue, 22 May 2018 18:08:22 +0000 (18:08 +0000)]
Merge "Disable direct share on low ram devices" into pi-dev

6 years agoBuild browse intents based on target user.
Jeff Sharkey [Tue, 22 May 2018 18:01:31 +0000 (12:01 -0600)]
Build browse intents based on target user.

SystemUI runs under a single user (user 0), and needs to build
browse intents for secondary users.  To accommodate this, the safety
check recently added to buildBrowseIntent() needs to be relaxed
when building for a non-current user.

Bug: 79733193
Test: builds, boots
Change-Id: Icce014bf824d0a0ee15e3d84c34f1c2b73d213c1

6 years agoMerge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev
Ricardo Garcia [Tue, 22 May 2018 18:00:06 +0000 (18:00 +0000)]
Merge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev

6 years ago[Notif] Don't show bouncer on dismiss
Rohan Shah [Tue, 22 May 2018 17:06:23 +0000 (10:06 -0700)]
[Notif] Don't show bouncer on dismiss

For blocking helper, when user dismisses by interacting with elements
outside the current notification, we should not show the bouncer.

Changed the logic to only show bouncer/use the checksaverunnable when
the user hits 'stop notifications'

Test: Added test cases, ran via atest, verified manually too
Bug: 80132806
Change-Id: Ic204e1794360684cd6359ff93e77e184e39ad57e

6 years agoMerge "Add more hidden API to light greylist" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:28:38 +0000 (17:28 +0000)]
Merge "Add more hidden API to light greylist" into pi-dev

6 years agoMerge "Marks deprecated StatsManager APIs." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:20:34 +0000 (17:20 +0000)]
Merge "Marks deprecated StatsManager APIs." into pi-dev

6 years agoMerge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:17:51 +0000 (17:17 +0000)]
Merge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev

6 years agoMerge "wifi.proto score experiment id" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:15:01 +0000 (17:15 +0000)]
Merge "wifi.proto score experiment id" into pi-dev

6 years agoHide status bar icons if showing bouncer on keyguard activity
Evan Laird [Tue, 22 May 2018 14:35:17 +0000 (10:35 -0400)]
Hide status bar icons if showing bouncer on keyguard activity

When in a keyguard activity, we want to hide the status bar icons when
the status bar window is hidden or the bounce is showing.

Test: launch camera from keyguard, press home to show bouncer, don't see
icons
Fixes: 80107240

Change-Id: I66dd923da2b63b20fd766f8223de90f19e86b36e

6 years agoMerge "Fix issue with home activity started with standard activity type" into pi-dev
Winson Chung [Tue, 22 May 2018 16:50:00 +0000 (16:50 +0000)]
Merge "Fix issue with home activity started with standard activity type" into pi-dev

6 years agoAutofill: fix ClassCastException in SaveUi
Dake Gu [Tue, 22 May 2018 16:17:16 +0000 (09:17 -0700)]
Autofill: fix ClassCastException in SaveUi

Bug: 80127061
Test: atest CtsAutoFillServiceTestCases on tv
Change-Id: I4f031b6f2dcb7b261f0d514b87332d0539df0bbc

6 years agoAdd more hidden API to light greylist
David Brazdil [Tue, 22 May 2018 16:04:58 +0000 (17:04 +0100)]
Add more hidden API to light greylist

Bug: 64382372
Bug: 73996629
Bug: 79871934
Bug: 79576591
Bug: 78034693
Bug: 74355140
Bug: 79580933
Bug: 79560744
Bug: 79560739
Bug: 79571047
Test: make
Change-Id: I5606cd3f1649a5cbb9a47484c22c88d3f57a463f

6 years agoMerge "Do not throw IllegalArgumentException in slice manager." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 15:16:26 +0000 (15:16 +0000)]
Merge "Do not throw IllegalArgumentException in slice manager." into pi-dev

6 years ago[WindowManager] Perform relayout after hiding-window animation
Tetsutoki Shiozawa [Fri, 18 May 2018 01:55:01 +0000 (10:55 +0900)]
[WindowManager] Perform relayout after hiding-window animation

Symptom:
If navibar has been hidden by SYSTEM_UI_FLAG_HIDE_NAVIGATION flag,
it's hard to be shown again. Even though you perform a swipe-from-bottom
gesture, the navibar is not shown.

Root cause:
NavigationBar transition status is not updated. BarController waits for
the next hiding event but it's not notified. And then, BarController
gets a showing request before the previous hiding request is completed.
BarController loses the right transition status.

Solution:
Perform layout after hiding-window animation even if the window does
not have a focus. Relayout makes a chance to BarController to check
whether the navibar is completely hidden or not.

Bug: 80064019
Change-Id: I4c9511643992ea2db250c1deaf18c8d94cc5b61f

6 years agoOnly apply wallpaper anim if top most app is wallpaper target
Jorim Jaggi [Tue, 22 May 2018 14:30:13 +0000 (16:30 +0200)]
Only apply wallpaper anim if top most app is wallpaper target

If it's not the top app it doesn't make a lot of sense to use
that animation, as it doesn't really work for these other
use-cases when Launcher is behind a translucent activity.

Fix: 78995541
Test: go/wm-smoke
Test: Open Assistant, click explore button, click back, observe
no freeze.
Change-Id: I0bc0f4e066f55c545ac2d3254b7391ec97db425f

6 years agoInitialize mPendingAutoBrightnessAdjustment to NaN.
Michael Wright [Tue, 22 May 2018 14:35:05 +0000 (15:35 +0100)]
Initialize mPendingAutoBrightnessAdjustment to NaN.

It currently defaults to 0 which is a valid adjustment, so if you have
a pre-existing adjustment it will get reset at every reboot and look
like a user adjustment.

Also, go ahead and set the pending adjustment to NaN if we've seen it
before so we don't try to apply it again in the future.

Bug: 80119319
Test: manual
Change-Id: I206f6d631ec2977a2c1a44f91e0c6c6a09ccd7ec

6 years agoMerge "GM2 Icons (3 of (?3?))" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 14:42:17 +0000 (14:42 +0000)]
Merge "GM2 Icons (3 of (?3?))" into pi-dev

6 years agoMerge "Override getDrawingRect for wifi and mobile views" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 14:38:27 +0000 (14:38 +0000)]
Merge "Override getDrawingRect for wifi and mobile views" into pi-dev

6 years agoMerge "Update light greylist from bug scrape." into pi-dev
Mathew Inwood [Tue, 22 May 2018 14:25:36 +0000 (14:25 +0000)]
Merge "Update light greylist from bug scrape." into pi-dev

6 years agoMerge "End the TC session on terminal selection event actions" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 13:56:22 +0000 (13:56 +0000)]
Merge "End the TC session on terminal selection event actions" into pi-dev

6 years agoDo not throw IllegalArgumentException in slice manager.
Steven Wu [Tue, 22 May 2018 13:08:22 +0000 (09:08 -0400)]
Do not throw IllegalArgumentException in slice manager.

Test: manual
Bug: 80087497
Change-Id: Ic05c812f41d0153c8745b08718513d4e095ab27b

6 years agoMerge "Fix slider interaction collection." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 12:09:17 +0000 (12:09 +0000)]
Merge "Fix slider interaction collection." into pi-dev

6 years agoMerge "Unify behavior of various cases of "no underlying networks"" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 12:07:53 +0000 (12:07 +0000)]
Merge "Unify behavior of various cases of "no underlying networks"" into pi-dev

6 years agoUpdate light greylist from bug scrape.
Mathew Inwood [Tue, 22 May 2018 09:54:53 +0000 (10:54 +0100)]
Update light greylist from bug scrape.

This now includes APIs seen during linking (from logcat messages from
dex2oat) as well as those seen at runtime using reflection.

Test: m
Bug: 64382372
Bug: 72979236
Bug: 74002300
Bug: 74240254
Bug: 77276180
Bug: 77533294
Bug: 77612705
Bug: 77638233
Bug: 78439615
Bug: 78441094
Bug: 78442580
Bug: 78482621
Bug: 78484047
Bug: 78484886
Bug: 79265613
Bug: 79780657
Bug: 79847479
Bug: 79885782
Bug: 79898172
Bug: 80029535
Bug: 80058256
Bug: 80060295
Bug: 80106076
Merged-In: I030fbea87730dbab7362581d4559f838e38e86d3
Change-Id: I2ff01b8163f436c337079c9d0de5b2680a6fd7be

6 years agoMerge "Fix crash after smart selection animation" into pi-dev
Mihai Popa [Tue, 22 May 2018 11:19:24 +0000 (11:19 +0000)]
Merge "Fix crash after smart selection animation" into pi-dev

6 years agoEnd the TC session on terminal selection event actions
Abodunrinwa Toki [Thu, 17 May 2018 16:36:25 +0000 (17:36 +0100)]
End the TC session on terminal selection event actions

This regressed when introducing TC sessions in
I3c9ceea0863099fc4f0a5ce5e823c648ee9c4521
When the user triggers a terminal selection event such as "Copy",
we should immediately end the session instead of waiting for the
"Abandon" event (i.e. selection dismissed) to be included in the
logs. Terminal selection events implicitly dismiss a selection and
we'd rather distiguish between an actual "selection dismiss" from
one that happened because of a "terminal" selection event.

This cl also removes the "*" marker used to distinguish the new
logging from the old ones. The code for the old logging has already
been deleted so no more need for a marker.

Bug: 78541105
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: Iac7d45dbc63e7076683742bd045766a1d927cfc9

6 years agoMerge "Reduce LoadedApkAssets LRU cache size." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 11:09:18 +0000 (11:09 +0000)]
Merge "Reduce LoadedApkAssets LRU cache size." into pi-dev

6 years agoMerge changes Ic8231b18,I30009f88 into pi-dev
TreeHugger Robot [Tue, 22 May 2018 10:57:27 +0000 (10:57 +0000)]
Merge changes Ic8231b18,I30009f88 into pi-dev

* changes:
  Fix: VPNs update caps upon underlying network disconnect.
  Add tests for setUnderlyingNetworks.

6 years agoFix slider interaction collection.
Kenny Guy [Tue, 22 May 2018 10:41:17 +0000 (11:41 +0100)]
Fix slider interaction collection.

Brightness changes were always considered temporary
so we skipped notifying the tracker.

Bug: 79990855
Test: atest android.display.cts.BrightnessTest
Change-Id: I5702694218c9811f9f1413d8aed3cb57063ea1c8