Commit Graph

365774 Commits

Author SHA1 Message Date
Adrian Roos
30a2ae6209 Keyguard: Fix threading issues in KeyguardUpdateMonitor
Fixes a bug where KeyguardViewMediator called into KeyguardUpdateMonitor
on the wrong thread. Also adds assertions to make sure we only touch
mCallbacks on the right thread.

Change-Id: I9524b6c182cb70134fbc9a28df8148043fec8c1e
Fixes: 78128789
Test: Device boots successfully.
2018-04-27 15:00:56 +02:00
Nicolas Geoffray
bbfe498aef Merge "Add APIs to light grey." into pi-dev 2018-04-23 08:58:24 +00:00
Nicolas Geoffray
d7b98e1033 Merge "Add SELinux->getFileContext to light grey." into pi-dev 2018-04-23 08:57:07 +00:00
Nicolas Geoffray
b6f9d40495 Merge "Light grey some APIs." into pi-dev 2018-04-23 08:56:52 +00:00
Mathew Inwood
87f521ffe9 Merge "Enforce permission when disabling API checks." into pi-dev 2018-04-23 08:02:32 +00:00
TreeHugger Robot
2a915264a6 Merge "Let DnsManager fill in LinkProperties for private DNSes" into pi-dev 2018-04-23 07:22:12 +00:00
Chalard Jean
f0f364f2c5 Let DnsManager fill in LinkProperties for private DNSes
Test: new tests pass
Bug: 73641539
Change-Id: I971ef4d27b22a435d7459e1c4b31a8715ef6e610
2018-04-23 13:58:42 +09:00
Yu-Han Yang
c9ae78dcde Merge "Use settings flag to control HAL location request" into pi-dev 2018-04-23 04:20:04 +00:00
TreeHugger Robot
c8303adb47 Merge "Add nullchecks to ScreenPinningRequest." into pi-dev 2018-04-23 03:13:03 +00:00
Selim Cinek
cf893ac40c Merge "Made the DrawableWrapper return the right ColorFilter" into pi-dev 2018-04-23 02:26:58 +00:00
TreeHugger Robot
e71fb69ec9 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 2018-04-22 04:06:59 +00:00
TreeHugger Robot
9036d61647 Merge "Use updated override config to notify listeners." into pi-dev 2018-04-21 21:49:24 +00:00
TreeHugger Robot
e9549d0804 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-04-21 18:11:36 +00:00
TreeHugger Robot
d1eb0c0d91 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-04-21 17:52:04 +00:00
Jack Yu
8f6568f908 Merge "Fixed CTS CtsUsageStatsTestCases test cases" into pi-dev 2018-04-21 17:18:52 +00:00
Jovana Knezevic
1bcc95ef99 Merge "Fixing issues with alpha 0.0 on parent view." into pi-dev 2018-04-21 15:23:15 +00:00
Bill Yi
7bfe85eb17 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I42a13b075c1517f0ec1f8f79fd46ec54ee26008e
2018-04-21 02:18:07 -07:00
TreeHugger Robot
58b8ca51d6 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-04-21 05:42:29 +00:00
Bill Yi
92de9cd141 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic17792437048be044201531e491b4ef280cf37f4
2018-04-20 21:40:27 -07:00
TreeHugger Robot
46fca44ee5 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.
2018-04-21 02:29:55 +00:00
Aarthi Balachander
0e0e92153b 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: 78244241, 78309816, 78297334,
Change-Id: Iec44eb93ec4456be6d39d08940bb6ba2050eac7a
2018-04-21 02:11:23 +00:00
Jack Yu
4755c56965 Merge "DO NOT MERGE - Set country code even when device is not registered on network" into pi-dev 2018-04-21 01:22:51 +00:00
Yao Chen
49954cd681 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
2018-04-20 17:41:25 -07:00
Jack Yu
1e9793f926 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: 74540336, 77504652
Change-Id: Ib098e80d2bfd10e74c0b0dacf2cf2f217a66f7e4
2018-04-20 16:55:25 -07:00
Jack Yu
65ee3064df 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
2018-04-20 16:36:43 -07:00
Salvador Martinez
a6b7a6fb33 Merge "Add composite string for battery summary in settings" into pi-dev 2018-04-20 23:27:25 +00:00
TreeHugger Robot
427e41bd07 Merge "Add a function to get the secondary split screen bounds" into pi-dev 2018-04-20 23:27:12 +00:00
Jeff Sharkey
130a2503d8 Merge "Extend adoptable override to force on or off." into pi-dev 2018-04-20 23:24:28 +00:00
Andrii Kulian
5007c67a70 Merge "Don't require post-execution state for onActivityResult" into pi-dev 2018-04-20 23:21:25 +00:00
Garfield Tan
20c34565f2 Use updated override config to notify listeners.
Bug: 77919579
Test: go/wm-smoke
Change-Id: I961aba587b9e193fbb9351aaa42c5633de49a367
2018-04-20 16:21:08 -07:00
Jorim Jaggi
a93ab56ed8 Merge "Fix issue with translucent animations" into pi-dev 2018-04-20 22:32:59 +00:00
Yao Chen
f7bc6ab7fa 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
2018-04-20 14:52:01 -07:00
TreeHugger Robot
46e58e1b40 Merge "Give CTS a way to force-poll network stats." into pi-dev 2018-04-20 20:40:32 +00:00
Julia Reynolds
66dfd01292 Merge "GetActiveNotifications should never return null" into pi-dev 2018-04-20 20:21:41 +00:00
jovanak
9c177200b4 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
2018-04-20 13:03:28 -07:00
Andrii Kulian
e55b009a3d 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
2018-04-20 12:58:49 -07:00
TreeHugger Robot
6c2af1afa2 Merge "Catch double unbind of dead service" into pi-dev 2018-04-20 19:31:42 +00:00
TreeHugger Robot
12a6cd7457 Merge "Fix layering of non-IME target windows in IME-target app in split-screen." into pi-dev 2018-04-20 19:29:15 +00:00
Jeff Sharkey
901c04270f 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: 77849654, 74132243
Test: manual
Change-Id: Ieda317396624ca081e5dd9568795483f684f9297
2018-04-20 13:11:23 -06:00
Matthew Ng
c603a5012f 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
2018-04-20 12:00:57 -07:00
TreeHugger Robot
1a12311433 Merge "Fix fraction and dimension type in Resource.proto" into pi-dev 2018-04-20 18:59:11 +00:00
Julia Reynolds
94a38b35e9 GetActiveNotifications should never return null
Test: runtest systemui-notification
Change-Id: I53e7a4a2a9f05318dd97ffb096658a4f8bcebc8a
Fixes: 70396956
2018-04-20 14:46:43 -04:00
TreeHugger Robot
686fab1464 Merge "SmartLinkify - handle keyboard clicks" into pi-dev 2018-04-20 18:44:02 +00:00
Jeff Sharkey
c3c8d16380 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
2018-04-20 12:18:23 -06:00
Michael Wachenschwanz
8b74927e9e 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
2018-04-20 10:46:47 -07:00
Jovana Knezevic
e44eb9201f Merge ""Guest" icon should be a default user icon." into pi-dev 2018-04-20 17:21:52 +00:00
Tobias Lindskog
33ecd1bca7 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
2018-04-20 13:14:35 -04:00
TreeHugger Robot
cbfe423122 Merge "No divider between floating toolbar item groups" into pi-dev 2018-04-20 16:53:31 +00:00
TreeHugger Robot
2cb02549dd Merge "Ensure QS tile secondary text marquees." into pi-dev 2018-04-20 16:52:42 +00:00
Amin Shaikh
4c9048c364 Ensure QS tile secondary text marquees.
Update the logic to marquee only the currently selected page.

Change-Id: Idc2398e1c67c614414ae4298c43a1609431c62fa
Fixes: 78159844
Test: visual
2018-04-20 11:33:20 -04:00