OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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 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

6 years agoMerge "WM: Only update magnification bounds when they are visible" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 13:31:12 +0000 (13:31 +0000)]
Merge "WM: Only update magnification bounds when they are visible" into pi-dev

6 years agoDefer resizing invisible stacks while drag resizing
Adrian Roos [Thu, 19 Apr 2018 16:58:22 +0000 (18:58 +0200)]
Defer resizing invisible stacks while drag resizing

Works around a source of jank when drag resizing in split
screen mode: instead of immediately resizing the (potentially
numerous) invisible secondary stacks, we defer that until
the user lets go of the handle.

Change-Id: I3b9faa83005fa86185d4e51b2849e3a826b7f6a9
Fixes: 78214347
Test: Open a gazillion (resizeable) tasks. Enter split screen. Drag handle, verify there is no jank
Test: atest RectTest

6 years agoAdd way to use sysui as a broadcast relay for slices
Jason Monk [Fri, 20 Apr 2018 02:14:46 +0000 (22:14 -0400)]
Add way to use sysui as a broadcast relay for slices

Test: runtest systemui
Bug: 78139069
Change-Id: I64c4d56cca005cec7204bf45215bb7b0015f4571

6 years agoMerge "AOD: Add additional delayed dozeTimeTick after unpausing" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 12:04:12 +0000 (12:04 +0000)]
Merge "AOD: Add additional delayed dozeTimeTick after unpausing" into pi-dev

6 years agoMerge "Adjust APF interpreter tests to match APFv4" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 11:41:52 +0000 (11:41 +0000)]
Merge "Adjust APF interpreter tests to match APFv4" into pi-dev

6 years agoMerge "Add the list of private DNS addresses to LinkProperties" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 11:23:56 +0000 (11:23 +0000)]
Merge "Add the list of private DNS addresses to LinkProperties" into pi-dev

6 years agoMerge "Fix cutout with temp inset bounds" into pi-dev
Jorim Jaggi [Fri, 20 Apr 2018 11:09:16 +0000 (11:09 +0000)]
Merge "Fix cutout with temp inset bounds" into pi-dev

6 years agoNo divider between floating toolbar item groups
Mihai Popa [Tue, 17 Apr 2018 15:21:10 +0000 (16:21 +0100)]
No divider between floating toolbar item groups

The CL removes the vertical divider that used to exist between adjacent
menu item groups in the floating toolbar, as well as the extra padding
between these, in order to adapt to the new UX requirements. The CL also
centers the text view inside a button, when there is no icon shown at
the left of the text view. This is only relevant when the minimum size
of the button is larger than the text measured width, and we want the
text to be centered inside the button in this case.

Bug: 74032743
Test: manual testing
Change-Id: I309c729eb842d9388066bfb43eb18f33dbfe10b8

6 years agoMerge "Add intrinsics on light greylist" into pi-dev
David Brazdil [Fri, 20 Apr 2018 10:45:26 +0000 (10:45 +0000)]
Merge "Add intrinsics on light greylist" into pi-dev

6 years agoMerge "Light grey java.net.HttpCookie fields." into pi-dev
Nicolas Geoffray [Fri, 20 Apr 2018 09:37:36 +0000 (09:37 +0000)]
Merge "Light grey java.net.HttpCookie fields." into pi-dev

6 years agoMerge "Add some widget APIS to light grey." into pi-dev
Nicolas Geoffray [Fri, 20 Apr 2018 09:37:06 +0000 (09:37 +0000)]
Merge "Add some widget APIS to light grey." into pi-dev

6 years agoAdjust APF interpreter tests to match APFv4
Bernie Innocenti [Mon, 16 Apr 2018 14:27:51 +0000 (23:27 +0900)]
Adjust APF interpreter tests to match APFv4

Change-Id: I4311c754f1cb79633d49c5c1c0b4e27c8dde727e
Bug: 73804303
Test: runtest -x tests/net/java/android/net/apf/ApfTest.java
(cherry picked from commit 545d9367e24d1d55b2539c02273f92c61da74af0)

6 years agoMerge "StrictMode: fix non-SDK API usage detection." into pi-dev
Mathew Inwood [Fri, 20 Apr 2018 08:04:07 +0000 (08:04 +0000)]
Merge "StrictMode: fix non-SDK API usage detection." into pi-dev

6 years agoAdd the list of private DNS addresses to LinkProperties
Chalard Jean [Wed, 11 Apr 2018 07:36:41 +0000 (16:36 +0900)]
Add the list of private DNS addresses to LinkProperties

Test: atest android.net.LinkPropertiesTest, also new tests pass
Bug: 73641539
Change-Id: If33a35b1354a67db09411ff098f20064797296ad

6 years agoMerge changes I7c48a326,I7395ecd4 into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 07:26:35 +0000 (07:26 +0000)]
Merge changes I7c48a326,I7395ecd4 into pi-dev

* changes:
  Fix wrong bouncer translation during hint animation
  Keep animating bouncer when fingerprint

6 years agoFix wrong bouncer translation during hint animation
Lucas Dupin [Fri, 20 Apr 2018 04:08:52 +0000 (12:08 +0800)]
Fix wrong bouncer translation during hint animation

It's not correct to assume that the bouncer translation is 0 when the
unlock hint animation is running. The correct translation is 1 since
the view is completely hidden.

FalsingManager was receiving the wrong bouncer state, and this caused
the rejection swipe gestures.

Change-Id: I7c48a326f054a2c09809e5a1096ca42907472eac
Fixes: 78108854
Test: tap on scrim, swipe notification
Test: turn on flasing logs, look at logcat
Test: go/sysui-bouncer-tests

6 years agoMerge "ExifInterface: Prevent infinite loop" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 02:43:54 +0000 (02:43 +0000)]
Merge "ExifInterface: Prevent infinite loop" into pi-dev

6 years agoMerge "Never interact with "phone" while holding locks." into pi-dev
Jeff Sharkey [Fri, 20 Apr 2018 02:38:09 +0000 (02:38 +0000)]
Merge "Never interact with "phone" while holding locks." into pi-dev

6 years agoMerge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev
Jeff Sharkey [Fri, 20 Apr 2018 02:38:01 +0000 (02:38 +0000)]
Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev

6 years agoKeep animating bouncer when fingerprint
Lucas Dupin [Fri, 20 Apr 2018 02:28:07 +0000 (10:28 +0800)]
Keep animating bouncer when fingerprint

Before we wouldn't update the bouncer expansion after being unlocked,
this leads to a border case where the bouncer would be stuck if the user
authenticates with fingerprint while dragging up.

Change-Id: I7395ecd400957c656671640c7510fb279c671af3
Fixes: 78035213
Test: go/sysui-bouncer-tests

6 years agoMerge "Add more trace categories." into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 02:12:44 +0000 (02:12 +0000)]
Merge "Add more trace categories." into pi-dev

6 years agoMerge "Fix the implementation of BluetoothCodecStatus.equals()" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 02:12:09 +0000 (02:12 +0000)]
Merge "Fix the implementation of BluetoothCodecStatus.equals()" into pi-dev

6 years agoMerge "Workaround to ensure we cancel the recents animation prior to starting home...
Winson Chung [Fri, 20 Apr 2018 01:54:09 +0000 (01:54 +0000)]
Merge "Workaround to ensure we cancel the recents animation prior to starting home" into pi-dev

6 years agoExifInterface: Prevent infinite loop
Jin Seok Park [Fri, 30 Mar 2018 09:07:30 +0000 (18:07 +0900)]
ExifInterface: Prevent infinite loop

A corrupted image file may create two problems.
1. A corrupted IFD pointer may point to an IFD that has already
been read, thus creating an infinite loop and a stack overflow.
2. A corrupted IFD offset value may have a negative value, thus
prompting a random reading of the file and creating an infinite
loop.
This CL addresses these issues.

Bug: 63800695
Test: Run cts (ExifInterfaceTest)
Change-Id: I706a0c3eae6af8301af69407333ea88e5681df3c

6 years agoMerge "Add support for reading a snapshot of the APF data" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 01:26:49 +0000 (01:26 +0000)]
Merge "Add support for reading a snapshot of the APF data" into pi-dev

6 years agoMerge "Allow more than one temp view to be registered at a time" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 01:23:05 +0000 (01:23 +0000)]
Merge "Allow more than one temp view to be registered at a time" into pi-dev

6 years agoAdd more trace categories.
gopinath [Fri, 20 Apr 2018 00:54:06 +0000 (17:54 -0700)]
Add more trace categories.

Add tracing for additional filters as well.

Bug : b/78244687, b/78301352

Test: atest hot-nodropcache-stable-test
Change-Id: Ie6fd109b645c92dcfa414e3c41cc5f43032fe6fd

6 years agoMerge "Clock padding and motion adjustments" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 00:43:53 +0000 (00:43 +0000)]
Merge "Clock padding and motion adjustments" into pi-dev

6 years agoMerge "Actually resolve all IPs for Private DNS hostname" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 00:39:14 +0000 (00:39 +0000)]
Merge "Actually resolve all IPs for Private DNS hostname" into pi-dev

6 years agoFix the implementation of BluetoothCodecStatus.equals()
Pavlin Radoslavov [Thu, 19 Apr 2018 21:16:15 +0000 (14:16 -0700)]
Fix the implementation of BluetoothCodecStatus.equals()

Previously, the BluetoothCodecStatus.equals() implementation
was incorrect when comparing arrays of capabilities.
In the new implementation, the arrays are compared correctly,
and also the ordering of the capabilities in each array is ignored.

Also, added unit tests for class BluetoothCodecConfig and class
BluetoothCodecStatus.

Bug: 73404858
Bug: 73379307
Test: Unit tests (in frameworks/base)
  runtest --path core/tests/bluetoothtests/src/android/bluetooth/BluetoothCodecConfigTest.java
  runtest --path core/tests/bluetoothtests/src/android/bluetooth/BluetoothCodecStatusTest.java

Change-Id: If22087465397b7c4175c33f7d1909a15d957fb24
Merged-In: If22087465397b7c4175c33f7d1909a15d957fb24
(cherry picked from commit 9d36e6babc38cf7017726a587b656bdd6f8b0051)

6 years agoMerge "Add ability to set onShowListener to custom dialog pref" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 00:15:45 +0000 (00:15 +0000)]
Merge "Add ability to set onShowListener to custom dialog pref" into pi-dev

6 years agoMerge "Fix b/77867175: Clear all of NavigationPanel is missing" into pi-dev
Sanry Huang [Fri, 20 Apr 2018 00:03:33 +0000 (00:03 +0000)]
Merge "Fix b/77867175: Clear all of NavigationPanel is missing" into pi-dev

6 years agoMerge "AudioService: Add warning log when handleDeviceConnection failed" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 23:37:40 +0000 (23:37 +0000)]
Merge "AudioService: Add warning log when handleDeviceConnection failed" into pi-dev

6 years agoMerge changes from topic "revert_save_info" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 23:32:46 +0000 (23:32 +0000)]
Merge changes from topic "revert_save_info" into pi-dev

* changes:
  Document compatibility mode limitations.
  Revert "Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode."

6 years agoMerge "Update wifi enabled state when connected." into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 23:30:08 +0000 (23:30 +0000)]
Merge "Update wifi enabled state when connected." into pi-dev

6 years agoMerge "Allow QS expansion in switch access mode." into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 23:29:13 +0000 (23:29 +0000)]
Merge "Allow QS expansion in switch access mode." into pi-dev

6 years agoMerge "Reset sticky navbar timeout when rotate btn shown" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 22:32:10 +0000 (22:32 +0000)]
Merge "Reset sticky navbar timeout when rotate btn shown" into pi-dev

6 years agoDocument compatibility mode limitations.
Felipe Leme [Thu, 19 Apr 2018 17:33:20 +0000 (10:33 -0700)]
Document compatibility mode limitations.

Test: mmm -j108 frameworks/base/:doc-comment-check-docs

Fixes: 77655074

Change-Id: I527d882850442c7e6e9379b1b423673885e07f2b

6 years agoRevert "Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode."
Felipe Leme [Wed, 18 Apr 2018 23:12:04 +0000 (16:12 -0700)]
Revert "Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode."

Save has many limitations on compat mode, so we better not change the SaveInfo
behavior but rather document then.

This reverts commit 4f74a018c8ee9801f1d5ce2c7ec726251efc4fbf.

Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityTest \
CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest

Bug: 77655074

Change-Id: I36bd28ca546dcedefe75de7815b76b8b5827aee3

6 years agoAllow more than one temp view to be registered at a time
Brad Stenning [Wed, 18 Apr 2018 17:28:24 +0000 (10:28 -0700)]
Allow more than one temp view to be registered at a time

Without this we can't put the status bar above the full screen user
selection page

Bug:77148007

Test: with a second set of hvac

Change-Id: If422ad4cd2c3ad6ef4beb1d919327fed96184ba6

6 years agoMerge "Fix non-unique PendingIntent issue with TCImpl." into pi-dev
Abodunrinwa Toki [Thu, 19 Apr 2018 22:05:17 +0000 (22:05 +0000)]
Merge "Fix non-unique PendingIntent issue with TCImpl." into pi-dev

6 years agoAudioService: Add warning log when handleDeviceConnection failed
Jack He [Thu, 19 Apr 2018 22:03:43 +0000 (15:03 -0700)]
AudioService: Add warning log when handleDeviceConnection failed

Bug: 78284878
Test: make, no functional change
Change-Id: I3c0b90afe8f345fa63812a1f91350baccb59516e

6 years agoCleanup documentation for LE CoC in BluetoothAdapter
Stanley Tng [Thu, 5 Apr 2018 01:33:46 +0000 (18:33 -0700)]
Cleanup documentation for LE CoC in BluetoothAdapter

Test: Compile
Bug: 77631591
Change-Id: Ic3c7f13e560534a048bf5c8b274fe62190c214c7
(cherry picked from commit dac8e140184f3ac52210ff3638af3f53edca1ba0)

6 years agoMerge "Clarify API doc for BluetoothGattServer::addService" into pi-dev
Stanley Tng [Thu, 19 Apr 2018 21:56:38 +0000 (21:56 +0000)]
Merge "Clarify API doc for BluetoothGattServer::addService" into pi-dev

6 years agoProtect usage data with OP_GET_USAGE_STATS.
Jeff Sharkey [Thu, 19 Apr 2018 17:20:57 +0000 (11:20 -0600)]
Protect usage data with OP_GET_USAGE_STATS.

APIs that return package usage data (such as the new ArtManager)
must ensure that callers hold both the PACKAGE_USAGE_STATS permission
and the OP_GET_USAGE_STATS app-op.

Bug: 77662908
Test: atest vendor/xts/gts-tests/hostsidetests/dexapis/host/
Change-Id: I7a85d959f1682d2bd5cf3684415e368fece88101

6 years agoMerge "AAPT2: Support id reference chaining from AAPT" into pi-dev
Ryan Mitchell [Thu, 19 Apr 2018 21:35:59 +0000 (21:35 +0000)]
Merge "AAPT2: Support id reference chaining from AAPT" into pi-dev

6 years agoDon't check program selector's type for equality.
Tomasz Wasilczyk [Thu, 19 Apr 2018 21:04:08 +0000 (14:04 -0700)]
Don't check program selector's type for equality.

As the comments of the whole class says, primary ID is the field used
for checking for equality of the selectors. Current implementation also
checks program type, which is a deprecated field that can be inferred
from primary ID.

Test: open car.Media, add AM station to favorites
Bug: 78296701
Change-Id: I0423f831c2fdca2d1d126ed8a3b8fe40f28022ac

6 years agoMerge "[DO NOT MERGE] [Companion] Call notifyDataSetChanged on main thread" into...
TreeHugger Robot [Thu, 19 Apr 2018 21:11:57 +0000 (21:11 +0000)]
Merge "[DO NOT MERGE] [Companion] Call notifyDataSetChanged on main thread" into pi-dev

6 years agoWorkaround to ensure we cancel the recents animation prior to starting home
Winson Chung [Thu, 19 Apr 2018 00:53:15 +0000 (17:53 -0700)]
Workaround to ensure we cancel the recents animation prior to starting home

- It is possible for the call from SystemUI to cancel the recents animation
  to be processed and handled after the virtual key has been processed in
  PhoneWindowManager. This causes a misordering in which the canceling of
  the Recents animation clears the pending start activity remote animation
  (which is waiting for app transition ready).

  Instead, move the canceling of the Recents animation to PhoneWindowManager
  where the nav button is handled, to ensure that we cancel the animation
  on the same thread before we start the activity.

Bug: 73188263
Test: Only able to reproduce so far artificially, which points to this
      misordering

Change-Id: I1f3477acdf988953a5b3cef2e3b2b402af2d9909
Signed-off-by: Winson Chung <winsonc@google.com>
6 years agoMerge "Fix channels --stats dump" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 20:55:49 +0000 (20:55 +0000)]
Merge "Fix channels --stats dump" into pi-dev

6 years agoNever interact with "phone" while holding locks.
Jeff Sharkey [Wed, 18 Apr 2018 21:42:57 +0000 (15:42 -0600)]
Never interact with "phone" while holding locks.

We've seen devices where heavy communication between "system_server"
and the "phone" process can exhuast Binder threads, especially when
calling while holding locks.  To mitigate this, we now interact with
the "phone" process before acquiring any locks.

Update our internal data structures either when we see a connectivity
change, or when SubscriptionManager tells us something changed.

Fix bug in resolveSubscriptionPlan() that always picked the 0'th
SubscriptionPlan instead of looking for the currently active plan;
we now use the same logic for both NSS and NPMS.

Bug: 7790852077154412
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Test: atest com.android.server.net.NetworkStatsServiceTest
Change-Id: I177d3fa6cddc78d745b35a9ede12451d458b892c

6 years agoMerge "Fix screen on count text dump" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 20:16:28 +0000 (20:16 +0000)]
Merge "Fix screen on count text dump" into pi-dev

6 years agoMerge "Don't crash during layout of non-attached but focused view" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 20:13:32 +0000 (20:13 +0000)]
Merge "Don't crash during layout of non-attached but focused view" into pi-dev

6 years agoAdd composite string for battery summary in settings
Salvador Martinez [Thu, 19 Apr 2018 01:23:32 +0000 (18:23 -0700)]
Add composite string for battery summary in settings

We needed a string with the percentage in the front. This CL
adds a composite string to create it out of an already exisitng
string rather than trying to make another power remaining
variant.

Test: robotests is sister CL
Bug: 77874406
Change-Id: I31edcc06f3a504c6400c506f961fb35b6afc6abd

6 years agoFix layering of non-IME target windows in IME-target app in split-screen.
Robert Carr [Mon, 16 Apr 2018 18:09:22 +0000 (11:09 -0700)]
Fix layering of non-IME target windows in IME-target app in split-screen.

In split-screen mode we elevate child windows of the IME target with relative
layering to ensure they and the IME can exist above the docked divider while
the IME target itself still exists below. For behavior compatibility with O
we need to give this same treatment to all windows with the same token as the
IME target.

Bug: 70811741
Test: Manual. go/wm-smoke.
Change-Id: Ife174069ec2571c95d546981d196b7f519bb08ca

6 years agoFix channels --stats dump
Julia Reynolds [Thu, 19 Apr 2018 19:50:31 +0000 (15:50 -0400)]
Fix channels --stats dump

Test: manual inspection
Bug: 78292990
Change-Id: Iab75627494213870184e503bc2585cc8644ca1dd

6 years ago"Guest" icon should be a default user icon.
jovanak [Thu, 19 Apr 2018 19:17:12 +0000 (12:17 -0700)]
"Guest" icon should be a default user icon.

Needed to call getDefaultUserIcon with UserHandle.USER_NULL.
Guest icon should not have individual user coloring.

Bug: 77870451
Test: Visual tests on mojave.
Change-Id: I164e2dcb78cdd40e899b3005b220be564565f6d2

6 years agoFix non-unique PendingIntent issue with TCImpl.
Abodunrinwa Toki [Wed, 18 Apr 2018 20:21:27 +0000 (21:21 +0100)]
Fix non-unique PendingIntent issue with TCImpl.

As per the referenced bug, we're running into issues where apps are
being fired with stale intents. The reason is because we need intents we
fire to be unique by Intent.filterEquals. Some of the intents we
generate put unique data in the intent extra which is not considered by
filterEquals. The solution here is to create PendingIntents with unique
request codes (using classifiedText.hashCode()).
See more info about this in
https://developer.android.com/reference/android/app/PendingIntent.html

Bug: 77930684
Test: manually tested broken scenarios. See referenced bug
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: Ib7275f94ca5ada51e4ba191742d4b614df12e1ea