OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 17:40:32 +0000 (17:40 +0000)]
Merge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev

6 years agoMerge "Hiding all views when the notification shade is collapsed" into pi-dev
Selim Cinek [Tue, 15 May 2018 17:38:31 +0000 (17:38 +0000)]
Merge "Hiding all views when the notification shade is collapsed" into pi-dev

6 years agoMerge "Fixed notification shelf not fully visible on lockscreen" into pi-dev
Selim Cinek [Tue, 15 May 2018 17:07:56 +0000 (17:07 +0000)]
Merge "Fixed notification shelf not fully visible on lockscreen" into pi-dev

6 years agoMerge "Keeping the header hidden while the hun is going away" into pi-dev
Selim Cinek [Tue, 15 May 2018 16:47:44 +0000 (16:47 +0000)]
Merge "Keeping the header hidden while the hun is going away" into pi-dev

6 years agoMerge "Fixed that views could be stuck transiently at times" into pi-dev
Selim Cinek [Tue, 15 May 2018 16:47:17 +0000 (16:47 +0000)]
Merge "Fixed that views could be stuck transiently at times" into pi-dev

6 years agoMerge "Fix crash when loading resources without code" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 16:33:20 +0000 (16:33 +0000)]
Merge "Fix crash when loading resources without code" into pi-dev

6 years agoHiding all views when the notification shade is collapsed
Selim Cinek [Tue, 15 May 2018 02:17:06 +0000 (19:17 -0700)]
Hiding all views when the notification shade is collapsed

Non-heads up views could still be visible when the shade
was collapsed. Therefore they would briefly peak out
after heads up views would be swiped away leading
to ugly flickering.

Test: add hun (with notch enabled) and swipe away hun with other views present
Change-Id: I794693d7d5af5591490df7c2f4b95c01043897d2
Fixes:  76150837

6 years agoFix crash when loading resources without code
Jason Monk [Tue, 15 May 2018 15:30:09 +0000 (11:30 -0400)]
Fix crash when loading resources without code

Should use default appComponentFactory, not the actual one from the
app because we have no code.

Test: manual
Change-Id: I982967543c4cf5c28b19b36b6d183a30052bf602
Fixes: 78883500

6 years agoMerge "Let tests enumerate all transports/capabilities." into pi-dev
Jeff Sharkey [Tue, 15 May 2018 15:17:30 +0000 (15:17 +0000)]
Merge "Let tests enumerate all transports/capabilities." into pi-dev

6 years agoMerge "Add RemoteViews.setIsWidgetCollectionChild to light grey." into pi-dev
Nicolas Geoffray [Tue, 15 May 2018 14:59:04 +0000 (14:59 +0000)]
Merge "Add RemoteViews.setIsWidgetCollectionChild to light grey." into pi-dev

6 years agoMerge "clean up comments" into pi-dev
Chris Wren [Tue, 15 May 2018 14:15:09 +0000 (14:15 +0000)]
Merge "clean up comments" into pi-dev

6 years agoclean up comments
Chris Wren [Mon, 14 May 2018 21:16:31 +0000 (17:16 -0400)]
clean up comments

Bug: 79698458
Test: make framework-protos
Change-Id: Ifaac050f2e00912188e3fb999b308101e3b07bf0

6 years agoFixed notification shelf not fully visible on lockscreen
shawnlin [Tue, 15 May 2018 08:39:56 +0000 (16:39 +0800)]
Fixed notification shelf not fully visible on lockscreen

Remove the height limitation of mBackgroundBounds.bottom, and allow min
height of NSSL to be shelf size in keyguard when qs panel fully
expanded.

Test: runtest systemui
Change-Id: I74755f8eefa70beec32db2a66a7a425b7fff0276
Fixes: 79202907

6 years agoMerge "Don't call setAutofillClient() on base Context if it's null." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 05:47:51 +0000 (05:47 +0000)]
Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev

6 years agoMerge "Allow Print subsystem to work with services provided by instant app" into...
Philip P. Moltmann [Tue, 15 May 2018 04:58:00 +0000 (04:58 +0000)]
Merge "Allow Print subsystem to work with services provided by instant app" into pi-dev

6 years agoMerge "Do not immediately perform traversals when executing transition" into pi-dev
Jorim Jaggi [Tue, 15 May 2018 04:13:38 +0000 (04:13 +0000)]
Merge "Do not immediately perform traversals when executing transition" into pi-dev

6 years agoMerge "Change quickstep onboarding tip window type to TYPE_NAVIGATION_BAR_PANEL....
TreeHugger Robot [Tue, 15 May 2018 02:18:14 +0000 (02:18 +0000)]
Merge "Change quickstep onboarding tip window type to TYPE_NAVIGATION_BAR_PANEL." into pi-dev

6 years agoFixed that views could be stuck transiently at times
Selim Cinek [Tue, 15 May 2018 01:12:42 +0000 (18:12 -0700)]
Fixed that views could be stuck transiently at times

Removed all references to overlay from the stackscroller
and always using transient views now. We were using
the overlay in places where we shouldn't have been and
therefore views could become stuck.

Change-Id: I8bf455e2d1c4d065d0b3c441606d51b3b96eab9f
Fixes: 78493499
Test: add hun, click on it, observe no transient view stuck behind

6 years agoMerge "Metrics for hardware reliability reporting" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 01:16:33 +0000 (01:16 +0000)]
Merge "Metrics for hardware reliability reporting" into pi-dev

6 years agoChange quickstep onboarding tip window type to
Tracy Zhou [Mon, 14 May 2018 23:58:54 +0000 (16:58 -0700)]
Change quickstep onboarding tip window type to
TYPE_NAVIGATION_BAR_PANEL.

Fixes: 73990691
Test: Go through the talkback flow, "settings cannot verify your
response" toast does not show.

Change-Id: I6f4819eb6ace1260a30589dbcc6c01fa4c8e5c35

6 years agoDon't call setAutofillClient() on base Context if it's null.
Felipe Leme [Tue, 15 May 2018 00:51:58 +0000 (17:51 -0700)]
Don't call setAutofillClient() on base Context if it's null.

Test: atest CtsAutoFillServiceTestCases
Test: changed activity on autofill sample to override attachBaseContext() by
      calling super.attachBaseContext(null) - the activity still crashes, but
      not on attachBaseContext().

Fixes: 79707861

Change-Id: Idfaa9c596cc338ab815441138ce06ba64cd3b4d2

6 years agoMerge "Autofill: allow switch IME when autofill is showing" into pi-dev
Dake Gu [Tue, 15 May 2018 01:02:41 +0000 (01:02 +0000)]
Merge "Autofill: allow switch IME when autofill is showing" into pi-dev

6 years agoMerge "Simplify Javadoc for easier parsing." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 00:48:52 +0000 (00:48 +0000)]
Merge "Simplify Javadoc for easier parsing." into pi-dev

6 years agoMerge "Decrease the inferred auto-brightness adjustment at the extremes." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 00:37:10 +0000 (00:37 +0000)]
Merge "Decrease the inferred auto-brightness adjustment at the extremes." into pi-dev

6 years agoKeeping the header hidden while the hun is going away
Selim Cinek [Tue, 15 May 2018 00:17:31 +0000 (17:17 -0700)]
Keeping the header hidden while the hun is going away

Previously we were showing the Hun header immediately again
when the heads up times out, but we now also factor in
if it's animating away.

Test: add hun, click on it, header is still hidden
Change-Id: I2e5714c9282f0dd76d17511485c002010be169bb
Fixes:  77219603

6 years agoMerge "Update javadoc for setVisualVoicemailSmsFilterSettings" into pi-dev
Ta-wei Yen [Mon, 14 May 2018 23:48:55 +0000 (23:48 +0000)]
Merge "Update javadoc for setVisualVoicemailSmsFilterSettings" into pi-dev

6 years agoMerge "Reset auto-brightness on new BrightnessConfiguration" into pi-dev
Michael Wright [Mon, 14 May 2018 23:33:02 +0000 (23:33 +0000)]
Merge "Reset auto-brightness on new BrightnessConfiguration" into pi-dev

6 years agoMerge "Fixing user tap on suspended widget" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:32:08 +0000 (23:32 +0000)]
Merge "Fixing user tap on suspended widget" into pi-dev

6 years agoMerge "Improve a11y ordering" into pi-dev
Phil Weaver [Mon, 14 May 2018 23:25:07 +0000 (23:25 +0000)]
Merge "Improve a11y ordering" into pi-dev

6 years agoLet tests enumerate all transports/capabilities.
Jeff Sharkey [Mon, 14 May 2018 19:49:07 +0000 (13:49 -0600)]
Let tests enumerate all transports/capabilities.

This gives them a way to collect all included values without
resorting to manual probing of each newly added value.

Bug: 16207332
Test: atest com.android.cts.net.HostsideVpnTests
Change-Id: I35ca412512dc8515b44d5518e1ca4caa5bdc678f

6 years agoDecrease the inferred auto-brightness adjustment at the extremes.
Michael Wright [Mon, 14 May 2018 22:53:48 +0000 (15:53 -0700)]
Decrease the inferred auto-brightness adjustment at the extremes.

Now that the brightness slider always represents the brightness of the
panel, rather than the auto-brightness adjustments like it did prior to
P, we need to infer the adjustment by comparing the old and new
brightness values. At the extremes, this inferred brightness increases
dramatically towards (+/-) infinity, so we use a different strategy.
Based on dogfood feedback, the current inference seems to have too
strong of an effect, so we're cutting it in half in the hopes that this
is more reasonable.

Change-Id: If6a6c3355f9dcce8588512f1d969c871149ec299
Fixes: 79153846
Test: manual

6 years agoMerge "Allow to create trusted BaseDexClassLoader" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:11:33 +0000 (23:11 +0000)]
Merge "Allow to create trusted BaseDexClassLoader" into pi-dev

6 years agoMerge "Mitigating cache corruption in ArrayMap" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:03:39 +0000 (23:03 +0000)]
Merge "Mitigating cache corruption in ArrayMap" into pi-dev

6 years agoMetrics for hardware reliability reporting
Andrew Chant [Thu, 10 May 2018 21:16:07 +0000 (14:16 -0700)]
Metrics for hardware reliability reporting

Add event metrics for hardware reliability reporting.

Events include:
 - Battery Health Snapshot
 - Battery Charge cycles
 - Physical Drop
 - Hardware Failed
 - USB Audio Device insertion & removal
 - USB Connector insertion & removal

Bug: 69978775
Test: Logged events from Pixelstats HAL
Change-Id: I9389f71ffe85a430273f33650503f714ea308a78

6 years agoMerge "Configurable data error action in value metric" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 22:46:15 +0000 (22:46 +0000)]
Merge "Configurable data error action in value metric" into pi-dev

6 years agoUpdate javadoc for setVisualVoicemailSmsFilterSettings
Ta-wei Yen [Mon, 30 Apr 2018 18:55:47 +0000 (11:55 -0700)]
Update javadoc for setVisualVoicemailSmsFilterSettings

Test: N/A
Change-Id: I024fa5c2947b562e61e693ecb4d8421fe2507c9e
Fixes: 73829091

6 years agoMitigating cache corruption in ArrayMap
Suprabh Shukla [Mon, 14 May 2018 21:22:11 +0000 (14:22 -0700)]
Mitigating cache corruption in ArrayMap

Before calling freeArrays, storing the array reference into a temporary
pointer so that the main pointer doesn't end up corrupting the static
pool of arrays on concurrent access. An earlier change missed a rare
case when removeAt was called for the last element in the map.

Test: atest android.util.ArrayMapTest
atest android.util.cts.ArrayMapTest

Bug: 78898947
Change-Id: I454c5b1600eb0a6c690e746df10f6a0ebcd8aa1d

6 years agoRethrow SecurityExceptions in UsageStatsManager
Amith Yamasani [Mon, 14 May 2018 21:47:19 +0000 (14:47 -0700)]
Rethrow SecurityExceptions in UsageStatsManager

Some of the newer methods were not rethrowing the system server
exceptions. When not returning a default value, rethrow the
RemoteException from the system server.

Bug: 79692228
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Change-Id: I7b2ae735fc97f3e1903903ed5c98ce914aeaa84a

6 years agoMerge "Measuring the content views always at their specified size" into pi-dev
Selim Cinek [Mon, 14 May 2018 21:36:28 +0000 (21:36 +0000)]
Merge "Measuring the content views always at their specified size" into pi-dev

6 years agoMerge "Add 'Snooze' to local context menu for notifications" into pi-dev
Mady Mellor [Mon, 14 May 2018 21:10:49 +0000 (21:10 +0000)]
Merge "Add 'Snooze' to local context menu for notifications" into pi-dev

6 years agoAllow to create trusted BaseDexClassLoader
Philip P. Moltmann [Mon, 14 May 2018 21:00:45 +0000 (14:00 -0700)]
Allow to create trusted BaseDexClassLoader

Currently the API is blacklisted.

Bug: 78235528
Test: Called the API after light-greylisting
Change-Id: I7f094a96262a9c8527b339a175f17f2addc87cda

6 years agoMerge "Add CallAudioState ctor as TestApi" into pi-dev
Hall Liu [Mon, 14 May 2018 20:56:57 +0000 (20:56 +0000)]
Merge "Add CallAudioState ctor as TestApi" into pi-dev

6 years agoConfigurable data error action in value metric
Chenjie Yu [Mon, 14 May 2018 17:14:16 +0000 (10:14 -0700)]
Configurable data error action in value metric

Right now in value metric, if a later pull produces a smaller number
than the previous one, we use absolute value of the current value.
This is not correct for some atoms as listed in the CL, which should
just take 0.
For some other atoms, this is unexpected error and should just dump
stale data.

Test: manual test
Bug: 79265262
Change-Id: I59fbfd96cbb57be22cd8d21cb57a7c60ca6856ee

6 years agoMerge "Allow device/profile owners to change app ops modes." into pi-dev
Dianne Hackborn [Mon, 14 May 2018 20:43:31 +0000 (20:43 +0000)]
Merge "Allow device/profile owners to change app ops modes." into pi-dev

6 years agoMerge "Fix Notification panel flickers comes from ag/4008279" into pi-dev
Selim Cinek [Mon, 14 May 2018 20:25:40 +0000 (20:25 +0000)]
Merge "Fix Notification panel flickers comes from ag/4008279" into pi-dev

6 years agoImprove a11y ordering
Phil Weaver [Fri, 11 May 2018 01:00:18 +0000 (18:00 -0700)]
Improve a11y ordering

We use ids to break ties when sorting views just to
guarantee that we won't break sorting. But we don't
want to have our swipe order determined by arbitrary
ids.

Before resorting to such a crude tie-breaker, look at
a view's children to try to break a tie using their
bounds. That sort is more based on what's on the
screen, and will also produce the same result from
the same ui.

Bug: 78348191
Test: Switch access order is much more sensible on
Recents. Also ran a11y cts.

Change-Id: I918eae3b0d27e889a53d05a6ebe925e38ce5d7b4

6 years agoAdd 'Snooze' to local context menu for notifications
Mady Mellor [Fri, 11 May 2018 20:24:07 +0000 (13:24 -0700)]
Add 'Snooze' to local context menu for notifications

Bug: 34840333
Test: manual - 1. turn talkback on
               2. have a notification focused
               3. invoke local context menu, note that 'snooze' is an option
               4. select snooze, note that notification is snoozed

Change-Id: Id3ea62a0a9e5c2b8893aa5b548e64bb2b341d7a2

6 years agoMerge "Prevent IME from targeting home when closing app is still animating" into...
Chavi Weingarten [Mon, 14 May 2018 19:48:56 +0000 (19:48 +0000)]
Merge "Prevent IME from targeting home when closing app is still animating" into pi-dev

6 years agoMerge "Add user event logging for recents onboarding > Actual logging will happen...
Hyunyoung Song [Mon, 14 May 2018 19:29:20 +0000 (19:29 +0000)]
Merge "Add user event logging for recents onboarding > Actual logging will happen in launcher side" into pi-dev

6 years agoAllow device/profile owners to change app ops modes.
Dianne Hackborn [Sat, 12 May 2018 01:02:58 +0000 (18:02 -0700)]
Allow device/profile owners to change app ops modes.

This allows them to continue to have this capability the
same as before we locked down access to it.

Bug: 78480444
Test: manual
Change-Id: If2b0722945235eb67676ace3f54efaa71a64bcde

6 years agoPrevent IME from targeting home when closing app is still animating
Chavi Weingarten [Mon, 14 May 2018 17:32:42 +0000 (17:32 +0000)]
Prevent IME from targeting home when closing app is still animating

There were a few issues that caused the IME target to get set to home.
1. Home is considered above the other apps since it's getting launched.
However, the visual representation is actually below the closing app.
IME tries to target the highest app, but it's not necessarily the
highest visual app
2. computeIme was called before all apps were set up. This caused the
IME target to get recomputed before adding the closing apps
3. The condition for a WS.isClosing was based on previous versions so
it was incorrect

Test: IME closes on top of current target when going home with IME open
Change-Id: Ia9b0cc913eeb76a4af20f9ac7b667c5a3d1eafc7
Fixes: 78214125

6 years agoMerge "Update boot image profile and preloaded classes" into pi-dev
Mathieu Chartier [Mon, 14 May 2018 17:36:19 +0000 (17:36 +0000)]
Merge "Update boot image profile and preloaded classes" into pi-dev

6 years agoMerge "Revert "Prevent IME from targeting home when closing app is still animating...
TreeHugger Robot [Mon, 14 May 2018 17:22:34 +0000 (17:22 +0000)]
Merge "Revert "Prevent IME from targeting home when closing app is still animating"" into pi-dev

6 years agoRevert "Prevent IME from targeting home when closing app is still animating"
Chavi Weingarten [Mon, 14 May 2018 16:10:59 +0000 (16:10 +0000)]
Revert "Prevent IME from targeting home when closing app is still animating"

This reverts commit 5e004f2798c81a0d24d4416afc5680ac0d6f4fe1.

Reason for revert: NPE crash
Fixes: 79672031
Fixes: 79670207

Change-Id: I0620d7ce182b6ee85d8c474e67ea8a899adde2b8

6 years agoMerge "Rework battery saver synchronization logic" into pi-dev
Makoto Onuki [Mon, 14 May 2018 15:42:14 +0000 (15:42 +0000)]
Merge "Rework battery saver synchronization logic" into pi-dev

6 years agoAdd RemoteViews.setIsWidgetCollectionChild to light grey.
Nicolas Geoffray [Mon, 14 May 2018 15:26:07 +0000 (16:26 +0100)]
Add RemoteViews.setIsWidgetCollectionChild to light grey.

bug: 79611661
Test: m
Change-Id: I6606c0469315116cda04994d4db94a0163679a47

6 years agoMerge "Add some Settings APIs to light grey." into pi-dev
Nicolas Geoffray [Mon, 14 May 2018 14:43:43 +0000 (14:43 +0000)]
Merge "Add some Settings APIs to light grey." into pi-dev

6 years agoMerge "Add some related NetworkStatsService APIs in light grey." into pi-dev
Nicolas Geoffray [Mon, 14 May 2018 14:43:26 +0000 (14:43 +0000)]
Merge "Add some related NetworkStatsService APIs in light grey." into pi-dev

6 years agoMerge "Bugreport greylist updates." into pi-dev
Nicolas Geoffray [Mon, 14 May 2018 14:43:06 +0000 (14:43 +0000)]
Merge "Bugreport greylist updates." into pi-dev

6 years agoMerge "Fix QS secondary text color." into pi-dev
TreeHugger Robot [Mon, 14 May 2018 13:54:24 +0000 (13:54 +0000)]
Merge "Fix QS secondary text color." into pi-dev

6 years agoMerge "Fix height of keyguard status bar" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 13:48:34 +0000 (13:48 +0000)]
Merge "Fix height of keyguard status bar" into pi-dev

6 years agoAdd some Settings APIs to light grey.
Nicolas Geoffray [Mon, 14 May 2018 12:03:22 +0000 (13:03 +0100)]
Add some Settings APIs to light grey.

bug: 79509209
Test: m
Change-Id: I7ca846623baa1b72fc45dd4a79c886bed8177e21

6 years agoAdd some related NetworkStatsService APIs in light grey.
Nicolas Geoffray [Mon, 14 May 2018 12:00:15 +0000 (13:00 +0100)]
Add some related NetworkStatsService APIs in light grey.

bug: 74474835
Test: m
Change-Id: I37f53663d0d5fdb11f9d366e17072ac4506266ac

6 years agoBugreport greylist updates.
Nicolas Geoffray [Mon, 14 May 2018 10:29:56 +0000 (11:29 +0100)]
Bugreport greylist updates.

Monday edition.
Manual as it looks the tables haven't been populated yet.

bug:79630776
bug:79577968
bug:79604623
Test: m
Change-Id: I569b827821ed5651afab409a66704ba61a572a7c
Merged-in: I569b827821ed5651afab409a66704ba61a572a7c

6 years agoMerge "Remove custom schema parsing in favor of Uri" into pi-dev
Jan Althaus [Mon, 14 May 2018 08:21:40 +0000 (08:21 +0000)]
Merge "Remove custom schema parsing in favor of Uri" into pi-dev

6 years agoUpdate boot image profile and preloaded classes
Mathieu Chartier [Sun, 13 May 2018 18:45:58 +0000 (11:45 -0700)]
Update boot image profile and preloaded classes

Data obtained from dogfood device.

Also updated system server profile.

Bug: 73313191
Test: make and flash sailfish

Change-Id: I9cf059f177a10e940e7cda1d12a8ed7429019c3c

6 years agoFix Notification panel flickers comes from ag/4008279
felkachang [Mon, 14 May 2018 04:22:40 +0000 (12:22 +0800)]
Fix Notification panel flickers comes from ag/4008279

The flickr is come from the quick setting panel appear. The root
cause is ag/4008279. Because FingerprintUnlockController.showBouncer
will be called after fingerprint authentication, to show the bouncer
without considerating the mode is the problem.

The solution is to use FingerprintUnlockController.calculateMode()
to get whether the mode is MODE_SHOW_BOUNCER or not. The program call
mStatusBarKeyguardViewManager.showBouncer in
FingerprintUnlockController.showBouncer when the mode is
MODE_SHOW_BOUNCER.

Bug: 79614864
Test: atest SystemUITests
Change-Id: I9dc031628d51eb80a05e16f5520c75a74b81d9dc
Fix: 79614864

6 years agoMerge "Do not parcel legacy TextClassification fields" into pi-dev
TreeHugger Robot [Sun, 13 May 2018 21:32:20 +0000 (21:32 +0000)]
Merge "Do not parcel legacy TextClassification fields" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 13 May 2018 04:52:28 +0000 (04:52 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 12 May 2018 17:29:46 +0000 (10:29 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I8b4031e16a8aaf7ae199721f134c90a023a5e563

6 years agoMerge "Guardrail the max gauge atoms per dimension in one bucket." into pi-dev
TreeHugger Robot [Sat, 12 May 2018 03:03:01 +0000 (03:03 +0000)]
Merge "Guardrail the max gauge atoms per dimension in one bucket." into pi-dev

6 years agoMerge "Fixes statsd reports missing strings and SCS." into pi-dev
TreeHugger Robot [Sat, 12 May 2018 02:42:40 +0000 (02:42 +0000)]
Merge "Fixes statsd reports missing strings and SCS." into pi-dev

6 years agoMerge "autofill save: do not focus on custom sub title for TV" into pi-dev
Dake Gu [Sat, 12 May 2018 01:50:03 +0000 (01:50 +0000)]
Merge "autofill save: do not focus on custom sub title for TV" into pi-dev

6 years agoMerge "Fixes splitscreen when executed from fullscreen app" into pi-dev
Matthew Ng [Sat, 12 May 2018 00:27:28 +0000 (00:27 +0000)]
Merge "Fixes splitscreen when executed from fullscreen app" into pi-dev

6 years agoDo not immediately perform traversals when executing transition
Jorim Jaggi [Sat, 12 May 2018 00:23:58 +0000 (17:23 -0700)]
Do not immediately perform traversals when executing transition

Such that we don't block the binder client, leading to delays.

Test: Cold start app
Test: AppTransitionTests
Change-Id: If39d679ca2461b2c1b488616149397604b2d0765
Fixes: 78646173

6 years agoMerge "Prevent IME from targeting home when closing app is still animating" into...
TreeHugger Robot [Sat, 12 May 2018 00:25:43 +0000 (00:25 +0000)]
Merge "Prevent IME from targeting home when closing app is still animating" into pi-dev

6 years agoGuardrail the max gauge atoms per dimension in one bucket.
Yangster-mac [Fri, 11 May 2018 00:13:12 +0000 (17:13 -0700)]
Guardrail the max gauge atoms per dimension in one bucket.

Test: statsd
BUG: b/78603347
Change-Id: Ide77cc8ff0cde6cf6cc9e56034727ed27dd7be88

6 years agoAdd CallAudioState ctor as TestApi
Hall Liu [Sat, 12 May 2018 00:14:08 +0000 (17:14 -0700)]
Add CallAudioState ctor as TestApi

Needed for CTS testing

Bug: 79528185
Test: CTS
Change-Id: Iad154257a93cc776d5800527e46e777fd6c88220

6 years agoFilter instant app resolution based on logical UID
Svet Ganov [Fri, 11 May 2018 00:25:29 +0000 (17:25 -0700)]
Filter instant app resolution based on logical UID

Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases
          -t android.appsecurity.cts.EphemeralTest
      cts-tradefed run cts-dev -m CtsActivityManagerDeviceTestCases

bug: 79487366

Change-Id: I51157410d944bc3252de29b4143bb2c7fe7fcefe

6 years agoFixes statsd reports missing strings and SCS.
David Chen [Fri, 11 May 2018 23:00:22 +0000 (16:00 -0700)]
Fixes statsd reports missing strings and SCS.

Reports written to disk don't contain the strings used, which will
make this report unusable if there are strings that don't show up
again. We should always include the strings, so this option is
removed entirely.

Also, we hard-coded the wrong number of fields when pulling
ModemActivityInfo. There are actually 10 fields, not 6.

Bug: 79601503
Test: Tested unit-tests pass on marlin-eng.
Change-Id: I6834b096ced77418a9cc2ddd79b08d1c9c447fae

6 years agoAdd user event logging for recents onboarding
Hyunyoung Song [Thu, 10 May 2018 17:45:25 +0000 (10:45 -0700)]
Add user event logging for recents onboarding
> Actual logging will happen in launcher side

Bug: 73784423
Test: Builds

Change-Id: I99ae31a74c2e5921915dc3bbf6d08669b5c98584

6 years agoautofill save: do not focus on custom sub title for TV
Dake Gu [Fri, 11 May 2018 23:46:30 +0000 (16:46 -0700)]
autofill save: do not focus on custom sub title for TV

Custom sub title is put in a ScrollView, which steals the
initial focus from Yes/No button when lauching save dialog.

The ScrollView is focusable so it can scroll large views.
But it's quite useless at this point because layout use
"wrap_content" in height, unless the custom subtitle is
higher than fullscreen, we never uses the ScrollView's scroll
feature.

The problem for using ScrollView is:
- TV UX does not allow custom sub title to be focusable or
  scrollable.
- If changes TV UX to allow scrollable custom title view,
  focus indicator of ScrollView is missing, needs to be fixed.

Based on these reasons, disable scrollable feature for TV.

Bug: 79591730
Test: manually tested on AndroidTV
Change-Id: Ib6022daf822b8b977e9a2d4a831a8ba714fb321c

6 years agoMerge "Wait for the user to fully stop before starting" into pi-dev
Fyodor Kupolov [Fri, 11 May 2018 23:57:14 +0000 (23:57 +0000)]
Merge "Wait for the user to fully stop before starting" into pi-dev

6 years agoMerge "BluetoothManager: Continue when BLE not supported" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 23:30:34 +0000 (23:30 +0000)]
Merge "BluetoothManager: Continue when BLE not supported" into pi-dev

6 years agoFix QS secondary text color.
Amin Shaikh [Fri, 11 May 2018 23:10:35 +0000 (19:10 -0400)]
Fix QS secondary text color.

Should be 54% black.

Change-Id: Ie9dafe2f185b201b4d4d8670518c6197ea1febb3
Fixes: 79582302
Test: visual

6 years agoMerge "Make right nav button container unselectable" into pi-dev
Mike Digman [Fri, 11 May 2018 22:24:21 +0000 (22:24 +0000)]
Merge "Make right nav button container unselectable" into pi-dev

6 years agoPrevent IME from targeting home when closing app is still animating
chaviw [Fri, 11 May 2018 16:32:22 +0000 (09:32 -0700)]
Prevent IME from targeting home when closing app is still animating

There were a few issues that caused the IME target to get set to home.
1. Home is considered above the other apps since it's getting launched.
However, the visual representation is actually below the closing app.
IME tries to target the highest app, but it's not necessarily the
highest visual app
2. computeIme was called before all apps were set up. This caused the
IME target to get recomputed before adding the closing apps
3. The condition for a WS.isClosing was based on previous versions so
it was incorrect

Test: IME closes on top of current target when going home with IME open
Change-Id: Id3bee8b8b6c0fba98159b65784b4b8c5b66c27fb
Fixes: 78214125

6 years agoMerge changes from topic "sysui_flags_drop" into pi-dev
Winson Chung [Fri, 11 May 2018 22:18:37 +0000 (22:18 +0000)]
Merge changes from topic "sysui_flags_drop" into pi-dev

* changes:
  Clean up Recents animation api
  Expose the system ui visibility flags and translucent state with snapshot

6 years agoMerge "Pass Uri in SliceBroadcastRelay" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 22:05:36 +0000 (22:05 +0000)]
Merge "Pass Uri in SliceBroadcastRelay" into pi-dev

6 years agoBluetoothManager: Continue when BLE not supported
Myles Watson [Fri, 11 May 2018 15:47:24 +0000 (08:47 -0700)]
BluetoothManager: Continue when BLE not supported

Bluetooth should turn on completely (without GATT) when the chip
does not support Bluetooth Low Energy.

Bug: 77495521
Test: Remove vendor/etc/permissions/android.hardware.bluetooth_le.xml
      Reboot
      Toggle Bluetooth
Change-Id: I9314ee473b4a5a158196bab3037b1452247ba466
(cherry picked from commit 5123ebd75647d3e67487de69cd0381f325a0adc9)

6 years agoMerge "GM2 icon updates" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 21:38:21 +0000 (21:38 +0000)]
Merge "GM2 icon updates" into pi-dev

6 years agoFixing user tap on suspended widget
Suprabh Shukla [Thu, 10 May 2018 22:54:08 +0000 (15:54 -0700)]
Fixing user tap on suspended widget

Widgets get masked with separate remove views when suspended. Need to
update them with the correct pending intent. Moved around the logic
creating the suspended alert activity to make it reusable.

Test: Manually, "pm suspend <app-with-widget>", followed by tap on
widget
Existing tests pass:
atest GtsSuspendAppsTestCases
atest com.android.server.am.ActivityStartInterceptorTest

Bug: 79474038
Change-Id: Ic75ee762434bf92c54bda307e9cb6018f94a914c

6 years agoFix height of keyguard status bar
Evan Laird [Fri, 11 May 2018 21:16:17 +0000 (17:16 -0400)]
Fix height of keyguard status bar

The keyguard status bar was getting set to the height of the regular
status bar, and aligning itself with the top of the screen, causing
alignment issues

Test: visual
Change-Id: I5d75f89585010dc73bdedb133246412704706c64
Fixes: 77563515

6 years agoMerge "Show settings suggestion" into pi-dev
Beverly Tai [Fri, 11 May 2018 20:59:49 +0000 (20:59 +0000)]
Merge "Show settings suggestion" into pi-dev

6 years agoMerge "[Notif] Fix a11y when guts is open" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 20:54:34 +0000 (20:54 +0000)]
Merge "[Notif] Fix a11y when guts is open" into pi-dev

6 years agoMerge "Rename settings category." into pi-dev
TreeHugger Robot [Fri, 11 May 2018 20:49:35 +0000 (20:49 +0000)]
Merge "Rename settings category." into pi-dev

6 years agoFixes splitscreen when executed from fullscreen app
Matthew Ng [Fri, 13 Apr 2018 18:36:34 +0000 (11:36 -0700)]
Fixes splitscreen when executed from fullscreen app

Fixes splitscreen from the right for launching splitscreen from
fullscreen app including pixel launcher and 3rd party launchers. With
3rd party launchers, the experience is the same as Android O. With pixel
launcher since launcher and recents are merged, it will split to
minimized mode. When pixel launcher is used, the recents stack is
ignored.

Fixes: 73250406
Fixes: 78247419
Test: use split screen; invoke command with supportapp.apk in b/78247419
adb shell am broadcast -a launcher-acc --ei cmd 1
Change-Id: I70b0551c517465b3a059ff7d0641c27f71e8114e

6 years agoRework battery saver synchronization logic
Makoto Onuki [Thu, 10 May 2018 20:41:39 +0000 (13:41 -0700)]
Rework battery saver synchronization logic

- Stop using individual lock instances and use use the power manager lock.
- Make sure not to access external components with the lock held,
*except for settings provider*, which is already touched by the power manager
and the battery service

(I'm planning to re-organize things for Q: b/79580230)

Fixes: 79486713

Test: atest /android/pi-dev/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/Battery*Test.java /android/pi-dev/frameworks/base/services/tests/servicestests/src/com/android/server/power/*Test.java
Test: Manual test with ./development/scripts/battery_simulator.py with toggling
battery saver on and off and then watch
adb logcat -b all | grep -P '(battery_saving_stats|battery_saver_mode)'

Change-Id: I8ecdfefe978de348ee979d765c82e3d8f0280082

6 years agoMerge "Fix issue #79541100: [Blueline][PI][SPT]: Watchdog killing process and SIGSEGV...
Makoto Onuki [Fri, 11 May 2018 20:08:16 +0000 (20:08 +0000)]
Merge "Fix issue #79541100: [Blueline][PI][SPT]: Watchdog killing process and SIGSEGV" into pi-dev

6 years agoMake right nav button container unselectable
Mike Digman [Fri, 11 May 2018 19:27:32 +0000 (12:27 -0700)]
Make right nav button container unselectable

Container can be selected via Talkback with no visible children.
Ensure container will never be selected.

Change-Id: I09d2f0a587fe4ecc71f73bb7f8be098abfbb11d5
Fixes: 79488376
Test: manual: empty and visible a11y, rotate, IME button