OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Write UsageEvents Parcel data as a Blob" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 21:38:48 +0000 (21:38 +0000)]
Merge "Write UsageEvents Parcel data as a Blob" into pi-dev

6 years agoMerge "DO NOT MERGE Fix bug when pressing the add user cancel button results in a...
TreeHugger Robot [Wed, 23 May 2018 21:25:00 +0000 (21:25 +0000)]
Merge "DO NOT MERGE Fix bug when pressing the add user cancel button results in a black screen Test: Tested on Mojave Bug: 80187163 Change-Id: Ie46c228dea9de71b97a276f7e4f2d60fe98649b6" into pi-dev

6 years agoMerge "Only animate when the slice is actually animating" into pi-dev
Lucas Dupin [Wed, 23 May 2018 20:15:19 +0000 (20:15 +0000)]
Merge "Only animate when the slice is actually animating" into pi-dev

6 years agoMerge "Add new hardware reliability actions and fields" into pi-dev
Andrew Chant [Wed, 23 May 2018 19:49:41 +0000 (19:49 +0000)]
Merge "Add new hardware reliability actions and fields" into pi-dev

6 years agoMerge "Populate mPackages with system pkg even if installed is better" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 19:45:05 +0000 (19:45 +0000)]
Merge "Populate mPackages with system pkg even if installed is better" into pi-dev

6 years agoMerge "Whitelist ResolveActivity for explicit instant intents" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 19:43:06 +0000 (19:43 +0000)]
Merge "Whitelist ResolveActivity for explicit instant intents" into pi-dev

6 years agoMerge "Initialize color mode if set" into pi-dev
Christine Franks [Wed, 23 May 2018 19:33:06 +0000 (19:33 +0000)]
Merge "Initialize color mode if set" into pi-dev

6 years agoMerge "Dismiss system-windows when opening assistant via voice." into pi-dev
Rob Carr [Wed, 23 May 2018 19:05:16 +0000 (19:05 +0000)]
Merge "Dismiss system-windows when opening assistant via voice." into pi-dev

6 years agoMerge "Add field to set A2DP device volume on connect (1/2)" into pi-dev
Ajay Panicker [Wed, 23 May 2018 18:58:28 +0000 (18:58 +0000)]
Merge "Add field to set A2DP device volume on connect (1/2)" into pi-dev

6 years agoDO NOT MERGE
Aarthi Balachander [Tue, 22 May 2018 01:12:25 +0000 (18:12 -0700)]
DO NOT MERGE
Fix bug when pressing the add user cancel button results in a black screen
Test: Tested on Mojave
Bug: 80187163
Change-Id: Ie46c228dea9de71b97a276f7e4f2d60fe98649b6

6 years agoMerge "Wicked good battery saver + rotation icons!" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 18:46:47 +0000 (18:46 +0000)]
Merge "Wicked good battery saver + rotation icons!" into pi-dev

6 years agoMerge "Use CaptivePortalProbeSpec method in portal app" into pi-dev
Chalard Jean [Wed, 23 May 2018 18:46:43 +0000 (18:46 +0000)]
Merge "Use CaptivePortalProbeSpec method in portal app" into pi-dev

6 years agoInitialize color mode if set
Christine Franks [Tue, 15 May 2018 22:48:10 +0000 (15:48 -0700)]
Initialize color mode if set

ColorDisplayService doesn't start listening for changes until the end
of user setup, and color mode was previously unintialized at service
setup, so restored settings were ignored.

Bug: 79591550
Test: atest FrameworksServicesTest:ColorDisplayServiceTest
Change-Id: I00baed15e1248572d3dfd8f251dee7dc5a355a6c

6 years agoMerge "Replace nav bar assets from png to vector drawables (1/2)" into pi-dev
Winson Chung [Wed, 23 May 2018 18:15:21 +0000 (18:15 +0000)]
Merge "Replace nav bar assets from png to vector drawables (1/2)" into pi-dev

6 years agoMerge "Fix: ConnectivityManager is initialized with a wrong context" into pi-dev
Chalard Jean [Wed, 23 May 2018 17:59:59 +0000 (17:59 +0000)]
Merge "Fix: ConnectivityManager is initialized with a wrong context" into pi-dev

6 years agoMerge "Make the clock font a little thicker" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 17:59:24 +0000 (17:59 +0000)]
Merge "Make the clock font a little thicker" into pi-dev

6 years agoAdd field to set A2DP device volume on connect (1/2)
Eric Laurent [Mon, 21 May 2018 16:28:46 +0000 (09:28 -0700)]
Add field to set A2DP device volume on connect (1/2)

Add a field to setBluetoothA2dpDeviceConnectionStateInt() to allow
Bluetooth to set a volume for the new device when it connects.

Bug: 79529581
Test: Switch repeatedly between devices and see that the old volume isn't
used on the new device or the new volume isn't used on the old device.
Change-Id: I909fa3f40818c595fc977695fbfa1214f9a4de72

6 years agoMerge "Make "am set-standby-bucket" reset active/working left time" into pi-dev
Makoto Onuki [Wed, 23 May 2018 17:21:29 +0000 (17:21 +0000)]
Merge "Make "am set-standby-bucket" reset active/working left time" into pi-dev

6 years agoMerge "Handle managed profile with unified challenge in getHashFactor()" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 17:17:44 +0000 (17:17 +0000)]
Merge "Handle managed profile with unified challenge in getHashFactor()" into pi-dev

6 years agoPopulate mPackages with system pkg even if installed is better
Patrick Baumann [Tue, 22 May 2018 22:34:38 +0000 (15:34 -0700)]
Populate mPackages with system pkg even if installed is better

System initialization relied on the system package living in mPackages
in order to build the expectingBetter map and successfully recover in
the case that we fail to scan / parse the updated APK. With this change
we properly populate mPackages in this scenario.

Test: manual - artificially force scan failure and reboot
Change-Id: Id86b579722bdfde8d4e660da3b680b0305a1d7e2
Fixes: 79428784
Fixes: 79360948

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 17:00:24 +0000 (17:00 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 16:48:33 +0000 (16:48 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 16:48:26 +0000 (16:48 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Fix crash when creating overview proxy service from background thread" into...
Winson Chung [Wed, 23 May 2018 16:37:27 +0000 (16:37 +0000)]
Merge "Fix crash when creating overview proxy service from background thread" into pi-dev

6 years agoMerge "Last-ditch clamping of negative NetworkStats." into pi-dev
Jeff Sharkey [Wed, 23 May 2018 16:30:25 +0000 (16:30 +0000)]
Merge "Last-ditch clamping of negative NetworkStats." into pi-dev

6 years agoMerge "Send broadcast to verifier" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 16:05:11 +0000 (16:05 +0000)]
Merge "Send broadcast to verifier" into pi-dev

6 years agoMerge "Avoid race condition when broadcasting device list changed." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 15:24:23 +0000 (15:24 +0000)]
Merge "Avoid race condition when broadcasting device list changed." into pi-dev

6 years agoMake "am set-standby-bucket" reset active/working left time
Makoto Onuki [Tue, 22 May 2018 23:32:23 +0000 (16:32 -0700)]
Make "am set-standby-bucket" reset active/working left time

This is needed for manual testing the fix for b/72443754.

Test: atest cts/tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest.java
Test: atest cts/tests/tests/batterysaving
Bug: 72443754
Change-Id: I13ac03917c0a5a08859c44930406e7a82ebf1a07

6 years agoMerge "Avoid NPE in AM.getMyMemoryState()" into pi-dev
Makoto Onuki [Wed, 23 May 2018 15:13:54 +0000 (15:13 +0000)]
Merge "Avoid NPE in AM.getMyMemoryState()" into pi-dev

6 years agoWicked good battery saver + rotation icons!
Evan Laird [Wed, 23 May 2018 15:10:29 +0000 (11:10 -0400)]
Wicked good battery saver + rotation icons!

Still drawing battery saver QS icon in code, though it's gaining some
hackery

Test: visual
Change-Id: Id773c036a5823dcb6c679fa0e6b649f26da4e017
Fixes: 80152065

6 years agoMerge "On orientation change, update rounded corners" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 14:35:29 +0000 (14:35 +0000)]
Merge "On orientation change, update rounded corners" into pi-dev

6 years agoHandle managed profile with unified challenge in getHashFactor()
Rubin Xu [Wed, 23 May 2018 13:27:53 +0000 (14:27 +0100)]
Handle managed profile with unified challenge in getHashFactor()

Settings passes null into getHashFactor() when a profile user has
unified challenge. In this case getHashFactor() needs to derive the real
profile password before it can calculate the hash factor.

Bug: 80077655
Test: runtest frameworks-services -c com.android.server.locksettings.SyntheticPasswordTests
Change-Id: Ifa1d88818b58f914fd3560bb6ef44012facde87b

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 agoOn orientation change, update rounded corners
Beverly [Tue, 15 May 2018 18:40:47 +0000 (14:40 -0400)]
On orientation change, update rounded corners

When rotating landscape/seascape/upsidedown, the 'top' and 'bottom'
corners are in the correct place

Change-Id: I19858ca42939d81911c5f45bd80d163d0c22eee9
Fixes: 79163187
Test: manual, ScreenDecorationsTest

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 agoUse CaptivePortalProbeSpec method in portal app
Remi NGUYEN VAN [Tue, 22 May 2018 08:04:17 +0000 (17:04 +0900)]
Use CaptivePortalProbeSpec method in portal app

This only changes behavior if the EXTRA_CAPTIVE_PORTAL_PROBE_SPEC extra
is passed, which only happens if extra probe specs have been defined in
settings.

Bug: b/79499239
Test: manual: on 2 different portals, works w/ and w/o the setting
Change-Id: I70acfd9213bf620cbb79ad999b8ad03472e8d43f

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 agoImport translations. DO NOT MERGE
Bill Yi [Wed, 23 May 2018 11:34:15 +0000 (04:34 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I37c44d9cddded200016a5e61b8739ccf0b33693e

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 agoImport translations. DO NOT MERGE
Bill Yi [Wed, 23 May 2018 09:48:51 +0000 (02:48 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I85b178508c84cebb20aa94617295b7a73cbaf28e

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 agoImport translations. DO NOT MERGE
Bill Yi [Wed, 23 May 2018 07:30:01 +0000 (00:30 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I716180822e327616fcdf37facadf16a75d5d59c9

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 agoOnly animate when the slice is actually animating
Lucas Dupin [Wed, 23 May 2018 01:08:35 +0000 (18:08 -0700)]
Only animate when the slice is actually animating

It's not correct to always animate if there is a layout transition.
The transition might not be triggered when the view is invisible
for example. It's necessary to check if we have pending/running
animations.

Change-Id: I75dbc9f8a152a162a3c77c9b316f653e665b8842
Fixes: 79773596
Test: manual
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardSliceViewTest.java

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 agoMake the clock font a little thicker
Lucas Dupin [Tue, 22 May 2018 23:31:31 +0000 (16:31 -0700)]
Make the clock font a little thicker

By adding an outline after the last animation frame

Test: visual
Change-Id: Id49b4d936a57f151d145918f0049b1edce91bd29
Fixes: 77541080

6 years agoAvoid race condition when broadcasting device list changed.
jiabin [Tue, 22 May 2018 22:44:21 +0000 (15:44 -0700)]
Avoid race condition when broadcasting device list changed.

Since broadcastDeviceListChanged could be called in different threads,
there would be race condition causing mutilple callback due to
mPreviousPorts is not thread safe.

Bug: 80138804
Test: run TestDeviceList app in toolbox and cts
Change-Id: I0aa70dc45594bca263ea6f36703f22fe0293f679

6 years agoFix crash when creating overview proxy service from background thread
Winson Chung [Wed, 23 May 2018 00:44:19 +0000 (17:44 -0700)]
Fix crash when creating overview proxy service from background thread

Bug: 80132561
Test: Switch users, ensure that the overview service connects without
      crashing and updates accordingly from the interaction flags from
      the new launcher

Change-Id: Ia7f3fd77f6bd8fd1f2aeacb0956ce1a37db04428

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 new hardware reliability actions and fields
Andrew Chant [Fri, 18 May 2018 17:52:00 +0000 (10:52 -0700)]
Add new hardware reliability actions and fields

Add ACTION_BATTERY_CAUSED_SHUTDOWN, ACTION_SLOW_IO,
ACTION_SPEAKER_IMPEDANCE, and associated new fields.

For pre-existing actions, add FIELD_SPEAKER_LOCATION,
 FIELD_BATTERY_RESISTANCE_UOHMS, FIELD_BATTERY_CURRENT_UA,
 FIELD_HARDWARE_LOCATION.

ACTION_BATTERY_CAUSED_SHUTDOWN
Fired after a boot if the previous boot was detected to be caused
by shutdown due to low battery, this reports the last recorded
low battery voltage.

It uses FIELD_BATTERY_VOLTAGE_UV to report the voltage.

ACTION_SLOW_IO
Daily aggregated count of IO operations that exceed max expected
threshelds, indicating hardware failures.

FIELD_IO_OPERATION_TYPE indicates the type of slow operation, and
FIELD_COUNT indicates how many occured aggregated over 24hrs.

ACTION_SPEAKER_IMPEDANCE
Last recorded speaker impdenace, reported daily.

Uses FIELD_SPEAKER_IMPEDANCE_MILLIOHMS and FIELD_SPEAKER_LOCATION
to report the impedance of each speaker.

Bug: 79996489
Bug: 79881385
Test: Booted and issued ACTIONs via pixelstats HAL.
Change-Id: I95b85fbd38e3a03ebeb146b65ffce17d982d4d6a

6 years agoWhitelist ResolveActivity for explicit instant intents
Patrick Baumann [Mon, 21 May 2018 20:46:40 +0000 (13:46 -0700)]
Whitelist ResolveActivity for explicit instant intents

This change allows the resolver and its children (ChooserActivity) to
start an explicit intent on behalf of an instant app that started an
implicit intent. Without it, the result to an instant app would be an
ActivityNotFoundException once a result was selected.

Test: atest EphemeralTest
Test: manual - launch chooser from instant app
Change-Id: If601e86bbf83c57e2c34938ac5de06353302b239
Fixes: 79775649

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 agoDismiss system-windows when opening assistant via voice.
Robert Carr [Tue, 22 May 2018 21:53:17 +0000 (14:53 -0700)]
Dismiss system-windows when opening assistant via voice.

As is done when opening the assistant via other triggers.

Bug: 80119551
Test: Manual.
Change-Id: I1c1101855968b7b6bd29848a0f2fcc91b44d87ec

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