OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Exposing setRecentsVisibility method and associated callbacks to the Recents...
TreeHugger Robot [Mon, 23 Apr 2018 18:43:32 +0000 (18:43 +0000)]
Merge "Exposing setRecentsVisibility method and associated callbacks to the Recents components" into pi-dev

6 years agoMerge "Global actions visuals:" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:27:14 +0000 (18:27 +0000)]
Merge "Global actions visuals:" into pi-dev

6 years agoMerge "Update Emoji.java for emoji 11" into pi-dev
Siyamed Sinir [Mon, 23 Apr 2018 18:19:22 +0000 (18:19 +0000)]
Merge "Update Emoji.java for emoji 11" into pi-dev

6 years agoMerge "Update fontchain_linter for emoji 11" into pi-dev
Siyamed Sinir [Mon, 23 Apr 2018 18:19:22 +0000 (18:19 +0000)]
Merge "Update fontchain_linter for emoji 11" into pi-dev

6 years agoMerge "Actually read config_showActivity in the signal policy" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:16:21 +0000 (18:16 +0000)]
Merge "Actually read config_showActivity in the signal policy" into pi-dev

6 years agoMerge "Don't consider resources < 0 as invalid" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:14:32 +0000 (18:14 +0000)]
Merge "Don't consider resources < 0 as invalid" into pi-dev

6 years agoMerge "AOD: Fix WakeLock leak" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:09:09 +0000 (18:09 +0000)]
Merge "AOD: Fix WakeLock leak" into pi-dev

6 years agoMerge "Do not allow elevating system_server priority for remote anim" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:03:07 +0000 (18:03 +0000)]
Merge "Do not allow elevating system_server priority for remote anim" into pi-dev

6 years agoMerge "Enabled aggregated per-uid stats collection by default" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 17:49:06 +0000 (17:49 +0000)]
Merge "Enabled aggregated per-uid stats collection by default" into pi-dev

6 years agoMerge "AodPolicy: Fix service leak" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 17:44:10 +0000 (17:44 +0000)]
Merge "AodPolicy: Fix service leak" into pi-dev

6 years agoGlobal actions visuals:
Alison Cichowlas [Thu, 19 Apr 2018 22:19:58 +0000 (18:19 -0400)]
Global actions visuals:

- Un-round corners on global actions separator.
- Scoot closer to edge (GA & volume)
- Padding tweaks

Test: Manual (examine corners of power menu)
Bug: 72404596
Change-Id: Ie16d62f387ac598bef0ada8b10d24ae2740aa503

6 years agoDo not allow elevating system_server priority for remote anim
Jorim Jaggi [Wed, 18 Apr 2018 16:17:56 +0000 (18:17 +0200)]
Do not allow elevating system_server priority for remote anim

Test: go/wm-smoke
Bug: 77908520
Change-Id: I45f47d73bedb7317c9e80907930f8d4d628f212a

6 years agoExposing setRecentsVisibility method and associated callbacks to the Recents components
Sunny Goyal [Sat, 21 Apr 2018 00:13:33 +0000 (17:13 -0700)]
Exposing setRecentsVisibility method and associated callbacks to the Recents components

Bug: 78125098
Test: Verified with Launcher as the recents component
Change-Id: Ic369d336f9caa3c8bdc565ff6931c78c9914e23e

6 years agoAodPolicy: Fix service leak
Adrian Roos [Mon, 23 Apr 2018 15:48:08 +0000 (17:48 +0200)]
AodPolicy: Fix service leak

Fixes an issue where the AlwaysOnDisplayPolicy leaked a service
context, and with it the entirety of DozeMachine, preventing
wakelocks from being GCed and preventing them from being
fallback-released.

Bug: 78402666
Test: Toggle screen on and off a few times, verify that DozeService is not being leaked.
Change-Id: Ie3ad67c2d0c83760f4d04a53394fab4a3a35d6bc

6 years agoAOD: Fix WakeLock leak
Adrian Roos [Mon, 23 Apr 2018 15:41:17 +0000 (17:41 +0200)]
AOD: Fix WakeLock leak

Bug: 78402666
Test: Toggle screen off and on again real quick. Verify "Doze" wake lock was not leaked.
Change-Id: Ie34f8aeeb5d10628f2a40567267ab36e694e21bb

6 years agoMerge "Light greylist additions." into pi-dev
Mathew Inwood [Mon, 23 Apr 2018 15:57:27 +0000 (15:57 +0000)]
Merge "Light greylist additions." into pi-dev

6 years agoMerge "Metrics constants for new zen screen" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 15:56:04 +0000 (15:56 +0000)]
Merge "Metrics constants for new zen screen" into pi-dev

6 years agoMerge "Fixed ConcurrentModificationException with HearingAids profile" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 15:53:47 +0000 (15:53 +0000)]
Merge "Fixed ConcurrentModificationException with HearingAids profile" into pi-dev

6 years agoActually read config_showActivity in the signal policy
Evan Laird [Mon, 23 Apr 2018 15:37:04 +0000 (11:37 -0400)]
Actually read config_showActivity in the signal policy

Test: visual
Change-Id: Ieff1de97ee0c79eba1f98024b5a3339033b65714
Fixes: 78265329

6 years agoMerge "Add more light grey APIs." into pi-dev
Nicolas Geoffray [Mon, 23 Apr 2018 15:27:43 +0000 (15:27 +0000)]
Merge "Add more light grey APIs." into pi-dev

6 years agoMerge "Revert "Temporarily whitelist platform test packages for hidden API"" into...
David Brazdil [Mon, 23 Apr 2018 15:01:49 +0000 (15:01 +0000)]
Merge "Revert "Temporarily whitelist platform test packages for hidden API"" into pi-dev

6 years agoMerge "Make settings icon invisible when QS is collapsed." into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 14:56:01 +0000 (14:56 +0000)]
Merge "Make settings icon invisible when QS is collapsed." into pi-dev

6 years agoMetrics constants for new zen screen
Julia Reynolds [Mon, 23 Apr 2018 13:41:21 +0000 (09:41 -0400)]
Metrics constants for new zen screen

Test: make
Bug: 78448988
Change-Id: Iaf3b35b3f22dd81c372683042372681f4086f1c8

6 years agoMerge "Thaw input dispatching immediately after unfreezing." into pi-dev
Bryce Lee [Mon, 23 Apr 2018 14:09:54 +0000 (14:09 +0000)]
Merge "Thaw input dispatching immediately after unfreezing." into pi-dev

6 years agoMerge "Consider lock state when determining next activity to become visible." into...
Bryce Lee [Mon, 23 Apr 2018 14:08:29 +0000 (14:08 +0000)]
Merge "Consider lock state when determining next activity to become visible." into pi-dev

6 years agoLight greylist additions.
Mathew Inwood [Mon, 23 Apr 2018 12:31:17 +0000 (13:31 +0100)]
Light greylist additions.

These are scraped from bugreports attached to numerous bugs. They all
related to reflective API accesses (not linking).

Test: m
Bug: 64382372
Bug: 33010617
Bug: 62090571
Bug: 69061609
Bug: 73554018
Bug: 73741036
Bug: 74234537
Bug: 74240254
Bug: 76097575
Bug: 76134480
Bug: 76231474
Bug: 76390527
Bug: 77154412
Bug: 77289927
Bug: 77319364
Bug: 77481479
Bug: 77675425
Bug: 77735374
Bug: 78045614
Bug: 78242776
Bug: 78322423
Bug: 78436746
Bug: 78437951
Bug: 78438371
Change-Id: Ibe00e41e7c8cb4e79a245a41fc50a1744266ecb5

6 years agoMerge "Add null check for wireless charging animation." into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 13:44:01 +0000 (13:44 +0000)]
Merge "Add null check for wireless charging animation." into pi-dev

6 years agoAdd more light grey APIs.
Nicolas Geoffray [Mon, 23 Apr 2018 12:54:50 +0000 (13:54 +0100)]
Add more light grey APIs.

bug: 64382372
Test: m
Change-Id: I1d36c4d1087e8b9a184487ede4f567e778e1589e

6 years agoMake settings icon invisible when QS is collapsed.
Amin Shaikh [Mon, 23 Apr 2018 12:52:38 +0000 (08:52 -0400)]
Make settings icon invisible when QS is collapsed.

Also fix calling super#onAttachedToWindow in QuickStatusBarHeader.

Change-Id: I2eb8c31b2d3a9ca20ac76608650a0e42ec25e504
Fixes: 78203022
Test: visual

6 years agoRevert "Temporarily whitelist platform test packages for hidden API"
David Brazdil [Mon, 23 Apr 2018 10:43:32 +0000 (11:43 +0100)]
Revert "Temporarily whitelist platform test packages for hidden API"

This reverts commit 6c5f36d3d9d82a390048eb386e0eca46cd9e1e2e.

Bug: 64382372
Bug: 74963051
Test: N/A
Change-Id: I8dc2b19c5d1ceee051791b639f30a1175b373117

6 years agoMerge "Remove prolonged animations" into pi-dev
Jorim Jaggi [Mon, 23 Apr 2018 12:17:37 +0000 (12:17 +0000)]
Merge "Remove prolonged animations" into pi-dev

6 years agoMerge "Greylist test API for CtsSliceTestCases" into pi-dev
David Brazdil [Mon, 23 Apr 2018 10:51:14 +0000 (10:51 +0000)]
Merge "Greylist test API for CtsSliceTestCases" into pi-dev

6 years agoMerge "Add light grey APIs." into pi-dev
Nicolas Geoffray [Mon, 23 Apr 2018 10:42:17 +0000 (10:42 +0000)]
Merge "Add light grey APIs." into pi-dev

6 years agoGreylist test API for CtsSliceTestCases
David Brazdil [Thu, 19 Apr 2018 15:32:48 +0000 (16:32 +0100)]
Greylist test API for CtsSliceTestCases

The test invokes two hidden methods inside a ContentProvider.
Since we cannot exempt those, add the two methods to light greylist
until they are made @TestApi.

Bug: 64382372
Test: run cts --module CtsSliceTestCases
Change-Id: I9bc0c23282c1744f4b93b9d84fcdd022f70859c2

6 years agoMerge "Add java.io.File fields to light grey." into pi-dev
Nicolas Geoffray [Mon, 23 Apr 2018 10:33:39 +0000 (10:33 +0000)]
Merge "Add java.io.File fields to light grey." into pi-dev

6 years agoMerge "Add camera APIs to light grey." into pi-dev
Nicolas Geoffray [Mon, 23 Apr 2018 10:30:01 +0000 (10:30 +0000)]
Merge "Add camera APIs to light grey." into pi-dev

6 years agoMerge "Add light grey APIs." into pi-dev
Nicolas Geoffray [Mon, 23 Apr 2018 10:23:09 +0000 (10:23 +0000)]
Merge "Add light grey APIs." into pi-dev

6 years agoMerge "Add APIs to light grey." into pi-dev
Nicolas Geoffray [Mon, 23 Apr 2018 08:58:24 +0000 (08:58 +0000)]
Merge "Add APIs to light grey." into pi-dev

6 years agoMerge "Add SELinux->getFileContext to light grey." into pi-dev
Nicolas Geoffray [Mon, 23 Apr 2018 08:57:07 +0000 (08:57 +0000)]
Merge "Add SELinux->getFileContext to light grey." into pi-dev

6 years agoMerge "Light grey some APIs." into pi-dev
Nicolas Geoffray [Mon, 23 Apr 2018 08:56:52 +0000 (08:56 +0000)]
Merge "Light grey some APIs." into pi-dev

6 years agoMerge "Enforce permission when disabling API checks." into pi-dev
Mathew Inwood [Mon, 23 Apr 2018 08:02:32 +0000 (08:02 +0000)]
Merge "Enforce permission when disabling API checks." into pi-dev

6 years agoMerge "Let DnsManager fill in LinkProperties for private DNSes" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 07:22:12 +0000 (07:22 +0000)]
Merge "Let DnsManager fill in LinkProperties for private DNSes" into pi-dev

6 years agoLet DnsManager fill in LinkProperties for private DNSes
Chalard Jean [Wed, 11 Apr 2018 09:58:52 +0000 (18:58 +0900)]
Let DnsManager fill in LinkProperties for private DNSes

Test: new tests pass
Bug: 73641539
Change-Id: I971ef4d27b22a435d7459e1c4b31a8715ef6e610

6 years agoMerge "Use settings flag to control HAL location request" into pi-dev
Yu-Han Yang [Mon, 23 Apr 2018 04:20:04 +0000 (04:20 +0000)]
Merge "Use settings flag to control HAL location request" into pi-dev

6 years agoMerge "Add nullchecks to ScreenPinningRequest." into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 03:13:03 +0000 (03:13 +0000)]
Merge "Add nullchecks to ScreenPinningRequest." into pi-dev

6 years agoMerge "Made the DrawableWrapper return the right ColorFilter" into pi-dev
Selim Cinek [Mon, 23 Apr 2018 02:26:58 +0000 (02:26 +0000)]
Merge "Made the DrawableWrapper return the right ColorFilter" into pi-dev

6 years agoMerge "Refactoring the User Switcher layout files to use dimensions in dimens_car...
TreeHugger Robot [Sun, 22 Apr 2018 04:06:59 +0000 (04:06 +0000)]
Merge "Refactoring the User Switcher layout files to use dimensions in dimens_car.xml and colors_car.xml so that overlays will be easier. Also, added a dialog when adding a user.  Fixed the issue where coming back to the user picker makes the buttons unresponsive" into pi-dev

6 years agoMerge "Use updated override config to notify listeners." into pi-dev
TreeHugger Robot [Sat, 21 Apr 2018 21:49:24 +0000 (21:49 +0000)]
Merge "Use updated override config to notify listeners." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sat, 21 Apr 2018 18:11:36 +0000 (18:11 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sat, 21 Apr 2018 17:52:04 +0000 (17:52 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Fixed CTS CtsUsageStatsTestCases test cases" into pi-dev
Jack Yu [Sat, 21 Apr 2018 17:18:52 +0000 (17:18 +0000)]
Merge "Fixed CTS CtsUsageStatsTestCases test cases" into pi-dev

6 years agoMerge "Fixing issues with alpha 0.0 on parent view." into pi-dev
Jovana Knezevic [Sat, 21 Apr 2018 15:23:15 +0000 (15:23 +0000)]
Merge "Fixing issues with alpha 0.0 on parent view." into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 21 Apr 2018 09:18:07 +0000 (02:18 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I42a13b075c1517f0ec1f8f79fd46ec54ee26008e

6 years agoThaw input dispatching immediately after unfreezing.
Bryce Lee [Sat, 21 Apr 2018 05:56:01 +0000 (22:56 -0700)]
Thaw input dispatching immediately after unfreezing.

Currently, we thaw after taking a number of steps post-unfreezing,
including setting up screen animations for rotation. If there is an
exception in this intermediate code, the input dispatching will not
be thawed even though the display has unfrozen.

This changelist moves thawing to immediately after unfreezing to
prevent it from being skipped due to an exception.

Bug: 78301580
Test: atest CtsActivityManagerDeviceTestCases
Change-Id: I32a3ca909fe1a495b361f9e5ba7b3a158837bc3a

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sat, 21 Apr 2018 05:42:29 +0000 (05:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 21 Apr 2018 04:40:27 +0000 (21:40 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic17792437048be044201531e491b4ef280cf37f4

6 years agoMerge changes from topic "statsd_socket_review" into pi-dev
TreeHugger Robot [Sat, 21 Apr 2018 02:29:55 +0000 (02:29 +0000)]
Merge changes from topic "statsd_socket_review" into pi-dev

* changes:
  Add socket listener to statsd. And remove Davey atom.
  Allow StatsLog to directly write to statsd's socket.

6 years agoRefactoring the User Switcher layout files to use dimensions in
Aarthi Balachander [Fri, 20 Apr 2018 02:25:33 +0000 (19:25 -0700)]
Refactoring the User Switcher layout files to use dimensions in
dimens_car.xml and colors_car.xml so that overlays will be easier.
Also, added a dialog when adding a user.  Fixed the issue where coming
back to the user picker makes the buttons unresponsive

Test: tested on Mojave
Bug: 782442417830981678297334,
Change-Id: Iec44eb93ec4456be6d39d08940bb6ba2050eac7a

6 years agoMerge "DO NOT MERGE - Set country code even when device is not registered on network...
Jack Yu [Sat, 21 Apr 2018 01:22:51 +0000 (01:22 +0000)]
Merge "DO NOT MERGE - Set country code even when device is not registered on network" into pi-dev

6 years agoAdd socket listener to statsd. And remove Davey atom.
Yao Chen [Wed, 18 Apr 2018 20:48:02 +0000 (13:48 -0700)]
Add socket listener to statsd. And remove Davey atom.

+ The socket listener is behind a flag. It's disabled until we get sepolicy changes in.
+ Data parsing code is from logd, because we use the same format.

+ Removed Davey from JankTracker because it violates our new sepolicy

Test: manually
Bug: 78239479

Change-Id: Ib17729fbc362cdb13385f780e2d636a95adf9bc3

6 years agoFixed CTS CtsUsageStatsTestCases test cases
Jack Yu [Fri, 20 Apr 2018 23:13:51 +0000 (16:13 -0700)]
Fixed CTS CtsUsageStatsTestCases test cases

We used the current RAT to load different carrier configuration to
determine whether the connection of a certain APN type is metered or
not. When the device is switched to IWLAN, the existing default
APN connection on cellular will be marked as unmetered based on
the current logic. This logic will be refactored when IWLAN full mode
is supported in Q.

For the short term workaround for P, we'll just mark default APN as
metered when the device is on IWLAN.

Test: CtsUsageStatsTestCases
Bug: 7454033677504652
Change-Id: Ib098e80d2bfd10e74c0b0dacf2cf2f217a66f7e4

6 years agoDO NOT MERGE - Set country code even when device is not registered on network
Jack Yu [Fri, 13 Apr 2018 21:05:32 +0000 (14:05 -0700)]
DO NOT MERGE - Set country code even when device is not registered on network

Extends the functionality of getNetworkCountryIso to support
no SIM/no service case. When no SIM/no service, it returns
the country code of nearby network (unregistered but cell info
is available to the device).

Test: Manual
Bug: 64335394
Change-Id: Ic7c9e903cc497b7e43b557cb593407ff3e9305b5

6 years agoMerge "Add composite string for battery summary in settings" into pi-dev
Salvador Martinez [Fri, 20 Apr 2018 23:27:25 +0000 (23:27 +0000)]
Merge "Add composite string for battery summary in settings" into pi-dev

6 years agoMerge "Add a function to get the secondary split screen bounds" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 23:27:12 +0000 (23:27 +0000)]
Merge "Add a function to get the secondary split screen bounds" into pi-dev

6 years agoMerge "Extend adoptable override to force on or off." into pi-dev
Jeff Sharkey [Fri, 20 Apr 2018 23:24:28 +0000 (23:24 +0000)]
Merge "Extend adoptable override to force on or off." into pi-dev

6 years agoMerge "Don't require post-execution state for onActivityResult" into pi-dev
Andrii Kulian [Fri, 20 Apr 2018 23:21:25 +0000 (23:21 +0000)]
Merge "Don't require post-execution state for onActivityResult" into pi-dev

6 years agoUse updated override config to notify listeners.
Garfield Tan [Fri, 20 Apr 2018 23:19:03 +0000 (16:19 -0700)]
Use updated override config to notify listeners.

Bug: 77919579
Test: go/wm-smoke
Change-Id: I961aba587b9e193fbb9351aaa42c5633de49a367

6 years agoEnabled aggregated per-uid stats collection by default
Fyodor Kupolov [Thu, 19 Apr 2018 00:26:43 +0000 (17:26 -0700)]
Enabled aggregated per-uid stats collection by default

Enabled collection of number of calls per-uid. It has relatively small
overhead. Memory impact is minimal and cpu overhead is also small -
250 ns vs 1500 ns with detailed tracking

Detailed tracking is disabled by default. Controlled by
persist.sys.binder_calls_detailed_tracking

Added commands to reset and enable/disable detailed stats:
dumpsys binder_calls_stats --reset
dumpsys binder_calls_stats --enable-detailed-tracking
dumpsys binder_calls_stats --disable-detailed-tracking

Test: manual
Bug: 75318418
Change-Id: I7c1280c025001b6d2b46e4a37bad841712b6da2f

6 years agoDon't consider resources < 0 as invalid
Todd Kennedy [Thu, 19 Apr 2018 22:17:24 +0000 (15:17 -0700)]
Don't consider resources < 0 as invalid

The only invalid resource ID is '0'. All other resource IDs are
valid; even negative resource IDs.

With the introduction of namespaces in AAPT2, resource IDs start with
0x80, 0x81, ... [ie. because Java only supports signed types, they are
considered negative]. For app transition animations negative resource
IDs were incorrectly considered "invalid".

Change-Id: Ic8837975d8811826bb9b6635d44a0ac004daad36
Fixes: 70716301
Test: Manual. Run multi-split APK and see that transition animations work when defined in a split
Test: Manual. Open a textbox and see the keyboard animates correctly.

6 years agoMerge "Fix issue with translucent animations" into pi-dev
Jorim Jaggi [Fri, 20 Apr 2018 22:32:59 +0000 (22:32 +0000)]
Merge "Fix issue with translucent animations" into pi-dev

6 years agoAllow StatsLog to directly write to statsd's socket.
Yao Chen [Wed, 18 Apr 2018 20:45:48 +0000 (13:45 -0700)]
Allow StatsLog to directly write to statsd's socket.

+ Reuse the log_event_list from liblog. StatsLog's binary format remains unchanged
+ Copied socket write code from liblog, including the retry logic.
+ Added build flags to control the StatsLog channel (logd, statsd, or both for debugging)

Bug: 78239479
Test: locally tested and saw logs being written to statsd

Change-Id: I7b1f0069ead00bbf3c29e4bd5b7f363a7ce26abe

6 years agoFixed ConcurrentModificationException with HearingAids profile
Stanley Tng [Fri, 20 Apr 2018 18:54:36 +0000 (11:54 -0700)]
Fixed ConcurrentModificationException with HearingAids profile

Prevent ConcurrentModificationException crash when traversing the
mCachedDevices list by removing entries outside of the loop.

Bug: 78357837
Test: Runs ROBOTEST_FILTER=CachedBluetoothDeviceManagerTest make -j40 RunSettingsLibRoboTests
Change-Id: I27db2dc94a7d0108e9b848d187d4e5bc9f5b567c

6 years agoAdd null check for wireless charging animation.
Andrew Zeng [Fri, 20 Apr 2018 21:13:16 +0000 (14:13 -0700)]
Add null check for wireless charging animation.

StatusBarManagerService is not started in SystemServer on
wearable devices.

Bug: 78357692
Change-Id: I0e30a4996addb599b8c90aa86b5ccb5ee7d80490

6 years agoMerge "Give CTS a way to force-poll network stats." into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 20:40:32 +0000 (20:40 +0000)]
Merge "Give CTS a way to force-poll network stats." into pi-dev

6 years agoMerge "GetActiveNotifications should never return null" into pi-dev
Julia Reynolds [Fri, 20 Apr 2018 20:21:41 +0000 (20:21 +0000)]
Merge "GetActiveNotifications should never return null" into pi-dev

6 years agoFixing issues with alpha 0.0 on parent view.
jovanak [Fri, 20 Apr 2018 19:35:09 +0000 (12:35 -0700)]
Fixing issues with alpha 0.0 on parent view.

Parent view should remain with 1.0 alpha.
Container view should fade when switching starts, and come back
to alpha of 1.0 once the switching has been completed.

Fixes: 78309123
Fixes: 78309400
Test: Visual confirmation of various flows. Switching to user with a pin. Canceling bouncer. Switching to user without a pin. Turning the screen off and back on after unlocking the user first.
Change-Id: I17946a1feea20bcb2fd2603c8cba0f2f51acd65d

6 years agoDon't require post-execution state for onActivityResult
Andrii Kulian [Thu, 19 Apr 2018 22:29:22 +0000 (15:29 -0700)]
Don't require post-execution state for onActivityResult

According to the documentation, onActivityResult() should be called
immediately before onResume(). This, however, was not always the case
in previous releases and fixing this caused some app compatibility
issues.
This CL removes required post execution state for ActivityResultItem.

Bug: 77695691
Test: ActivityLifecycleTests
Change-Id: Id8c02e9b49f9758aac616e37948570722d802de8

6 years agoMerge "Catch double unbind of dead service" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 19:31:42 +0000 (19:31 +0000)]
Merge "Catch double unbind of dead service" into pi-dev

6 years agoMerge "Fix layering of non-IME target windows in IME-target app in split-screen....
TreeHugger Robot [Fri, 20 Apr 2018 19:29:15 +0000 (19:29 +0000)]
Merge "Fix layering of non-IME target windows in IME-target app in split-screen." into pi-dev

6 years agoExtend adoptable override to force on or off.
Jeff Sharkey [Fri, 20 Apr 2018 19:11:20 +0000 (13:11 -0600)]
Extend adoptable override to force on or off.

Virtual disks are adoptable by default, but for debugging purposes
we want to treat them as unadoptable in some cases.  Add the ability
for the "sm" shell command to force on/off, or return to default.

Bug: 7784965474132243
Test: manual
Change-Id: Ieda317396624ca081e5dd9568795483f684f9297

6 years agoAdd a function to get the secondary split screen bounds
Matthew Ng [Thu, 19 Apr 2018 00:14:22 +0000 (17:14 -0700)]
Add a function to get the secondary split screen bounds

Access through the overview proxy to get the bounds of the secondary
split screen app when split screen is enabled.

Test: manual
Fixes: 77678123
Change-Id: Iabbcf30dc7194ac6fff9b4d7cad8a9fe5ee48a2b

6 years agoMerge "Fix fraction and dimension type in Resource.proto" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 18:59:11 +0000 (18:59 +0000)]
Merge "Fix fraction and dimension type in Resource.proto" into pi-dev

6 years agoGetActiveNotifications should never return null
Julia Reynolds [Fri, 20 Apr 2018 17:33:36 +0000 (13:33 -0400)]
GetActiveNotifications should never return null

Test: runtest systemui-notification
Change-Id: I53e7a4a2a9f05318dd97ffb096658a4f8bcebc8a
Fixes: 70396956

6 years agoMerge "SmartLinkify - handle keyboard clicks" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 18:44:02 +0000 (18:44 +0000)]
Merge "SmartLinkify - handle keyboard clicks" into pi-dev

6 years agoGive CTS a way to force-poll network stats.
Jeff Sharkey [Fri, 20 Apr 2018 16:59:09 +0000 (10:59 -0600)]
Give CTS a way to force-poll network stats.

Collecting network statistics is pretty heavy, which is why we're
throttling callers.  However, to keep CTS running fast, we provide a
way for tests to force a poll event, instead of making them wait for
the throttle timeout.

Bug: 77908520
Test: atest cts/tests/tests/app.usage/src/android/app/usage/cts/NetworkUsageStatsTest.java
Change-Id: Ia792f0cd495023366ff8c4839df54e7da2ae8331

6 years agoFix fraction and dimension type in Resource.proto
Michael Wachenschwanz [Thu, 19 Apr 2018 01:52:47 +0000 (18:52 -0700)]
Fix fraction and dimension type in Resource.proto

Change fraction and dimnesion type from float to uint32

Change-Id: I641dc42cf7b6bdd8bc16c8cdbd573ec3281a084a
Fixes: 78182701
Test: aapt2_tests

6 years agoMerge ""Guest" icon should be a default user icon." into pi-dev
Jovana Knezevic [Fri, 20 Apr 2018 17:21:52 +0000 (17:21 +0000)]
Merge ""Guest" icon should be a default user icon." into pi-dev

6 years agoCatch double unbind of dead service
Tobias Lindskog [Mon, 12 Mar 2018 14:44:47 +0000 (15:44 +0100)]
Catch double unbind of dead service

If a service receives onBindingDied after it has successfully connected
once, unbindService would be called once from the onBindingDied and then
again from registerServiceLocked when the service was rebound.  This
second attempt would typically crash.

The first unbindService call has a try/catch, add one around the second
call as well.

Fixes: 78345567
Test: Manual.  Boots and reboots without problems.
Change-Id: Ie9eabbcb6ee89c05abc565427465cfd6906f3fa3
Merged-In: Ie9eabbcb6ee89c05abc565427465cfd6906f3fa3

6 years agoMerge "No divider between floating toolbar item groups" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 16:53:31 +0000 (16:53 +0000)]
Merge "No divider between floating toolbar item groups" into pi-dev

6 years agoMerge "Ensure QS tile secondary text marquees." into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 16:52:42 +0000 (16:52 +0000)]
Merge "Ensure QS tile secondary text marquees." into pi-dev

6 years agoEnsure QS tile secondary text marquees.
Amin Shaikh [Fri, 20 Apr 2018 15:27:46 +0000 (11:27 -0400)]
Ensure QS tile secondary text marquees.

Update the logic to marquee only the currently selected page.

Change-Id: Idc2398e1c67c614414ae4298c43a1609431c62fa
Fixes: 78159844
Test: visual

6 years agoConsider lock state when determining next activity to become visible.
Bryce Lee [Sat, 14 Apr 2018 00:58:02 +0000 (17:58 -0700)]
Consider lock state when determining next activity to become visible.

When an activity shown on top of the lock screen finishes, the next
activity to become visible is considered. This activity is determined
by the supervisor's top running activity. When the focused stack does
not have a top running activity, the top most non-focused stack's
top running activity is considered. In the case the device is locked,
this value may be an activity that does not show on lock screen. As
a result, the finishing activity will wait indefinitely for an
activity that will never appear.

This changelist introduces the ability to ask for the top running
activity taking the current locked state into consideration. When
locked, only activities that can show on top of the lock screen will
be returned if we consider non-focused stacks.

Change-Id: I235e345c0b1d255b44d147bc71069c164389db4f
Fixes: 76424176
Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests#testNonFocusedTopRunningActivity

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 20 Apr 2018 15:07:46 +0000 (08:07 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I55740883147a59ce27b7321edca8030298ecc729

6 years agoRemove prolonged animations
Jorim Jaggi [Fri, 20 Apr 2018 14:23:48 +0000 (16:23 +0200)]
Remove prolonged animations

Didn't work anymore since the animation refactoring. Doesn't look
like we still need it, and only causing issues with stuck
animations.

Test: go/wm-smoke
Test: Dock task from recents
Change-Id: Ibb3543d15f42fc7689c3ad705aee693eba93e8b7
Fixes: 77993227

6 years agoMerge "Defer resizing invisible stacks while drag resizing" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 14:43:38 +0000 (14:43 +0000)]
Merge "Defer resizing invisible stacks while drag resizing" into pi-dev

6 years agoLight grey some APIs.
Nicolas Geoffray [Fri, 20 Apr 2018 14:40:58 +0000 (15:40 +0100)]
Light grey some APIs.

bug: 64382372
Test: m
Change-Id: I95fc5850ddfab08715bdbe4f2457965638d4a5d7

6 years agoMerge "Add way to use sysui as a broadcast relay for slices" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 13:54:15 +0000 (13:54 +0000)]
Merge "Add way to use sysui as a broadcast relay for slices" into pi-dev

6 years agoMerge "Don't check program selector's type for equality." into pi-dev
Tomasz Wasilczyk [Fri, 20 Apr 2018 13:49:39 +0000 (13:49 +0000)]
Merge "Don't check program selector's type for equality." into pi-dev

6 years agoFix issue with translucent animations
Jorim Jaggi [Thu, 19 Apr 2018 15:48:38 +0000 (17:48 +0200)]
Fix issue with translucent animations

If a translucent has overridden their activityOpenEnter/exit
animation in the resources, they won't be used anymore because the
system always forces the translucent animations, which is a bug.

Instead, we only use the translucent animation in case the app has
not overridden their animations manually.

Test: Open WhatsApp profile picture.
Test: go/wm-smoke
Change-Id: I7e81815e78453392773ac2ac96c47540e6146381
Fixes: 78270476

6 years agoSmartLinkify - handle keyboard clicks
Abodunrinwa Toki [Mon, 16 Apr 2018 09:05:16 +0000 (10:05 +0100)]
SmartLinkify - handle keyboard clicks

Bug: 77998709
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: Ibb95a736248643949a7b521368374084f9f133ca