OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Random hacks to make QS DND work" into oc-dev
TreeHugger Robot [Tue, 30 May 2017 23:12:25 +0000 (23:12 +0000)]
Merge "Random hacks to make QS DND work" into oc-dev

7 years agoMerge "Set correct task remove mode when reparenting" into oc-dev
TreeHugger Robot [Tue, 30 May 2017 22:05:02 +0000 (22:05 +0000)]
Merge "Set correct task remove mode when reparenting" into oc-dev

7 years agoMerge "Fix ripple on QS Footer" into oc-dev
TreeHugger Robot [Tue, 30 May 2017 22:01:32 +0000 (22:01 +0000)]
Merge "Fix ripple on QS Footer" into oc-dev

7 years agoMerge "Fix crash from concurrent modification" into oc-dev
TreeHugger Robot [Tue, 30 May 2017 21:50:01 +0000 (21:50 +0000)]
Merge "Fix crash from concurrent modification" into oc-dev

7 years agoMerge changes I5762a98d,I39f4e015 into oc-dev
TreeHugger Robot [Tue, 30 May 2017 21:33:24 +0000 (21:33 +0000)]
Merge changes I5762a98d,I39f4e015 into oc-dev

* changes:
  ViewRootImpl: More careful draw accounting.
  SurfaceView: Avoid over-reporting DRAW_FINISHED.

7 years agoMerge "Update Paint#mFontVariationSettings in set() and reset()" into oc-dev
TreeHugger Robot [Tue, 30 May 2017 21:15:13 +0000 (21:15 +0000)]
Merge "Update Paint#mFontVariationSettings in set() and reset()" into oc-dev

7 years agoMerge "Prevent unnecesary Surface preservation." into oc-dev
TreeHugger Robot [Tue, 30 May 2017 20:46:02 +0000 (20:46 +0000)]
Merge "Prevent unnecesary Surface preservation." into oc-dev

7 years agoMerge "AAPT2: Fix <add-resource> tag for overlays" into oc-dev
Adam Lesinski [Tue, 30 May 2017 20:42:00 +0000 (20:42 +0000)]
Merge "AAPT2: Fix <add-resource> tag for overlays" into oc-dev

7 years agoRandom hacks to make QS DND work
Jason Monk [Tue, 30 May 2017 20:08:50 +0000 (16:08 -0400)]
Random hacks to make QS DND work

 - Don't clear out as much state on attach
 - Make sure condition updates trigger a reflecting radio check
 - Assume that null conditions are forever

Test: manual
Fixes: 37944320
Fixes: 36031650

Change-Id: Ie926d16226e7b5431551a33515ac2b847e1d7a93

7 years agoMerge "Work on issue #62095840: NPE in JobParamteres in the background" into oc-dev
Dianne Hackborn [Tue, 30 May 2017 20:21:11 +0000 (20:21 +0000)]
Merge "Work on issue #62095840: NPE in JobParamteres in the background" into oc-dev

7 years agoMerge "Fix #62169466 bug report sharing options empty" into oc-dev
Amit Pawar [Tue, 30 May 2017 20:20:18 +0000 (20:20 +0000)]
Merge "Fix #62169466 bug report sharing options empty" into oc-dev

7 years agoFix #62169466 bug report sharing options empty
Amith Yamasani [Tue, 30 May 2017 19:35:45 +0000 (12:35 -0700)]
Fix #62169466 bug report sharing options empty

Was caused by a new requirement to not offer to show
non-exported intent handlers as options. For first
time warning dialog, don't show a chooser activity.

Change-Id: Ibada9a7a14b77ec0670bf35ba0944f369d42bf69
Fixes: 62169466
Test: manual
Test: mmm -j32 frameworks/base/packages/Shell && adb install -r -g ${OUT}/data/app/ShellTests/ShellTests.apk && adb shell am instrument -e class com.android.shell.BugreportReceiverTest$1 -w com.android.shell.tests/android.support.test.runner.AndroidJUnitRunner

7 years agoMerge "Do not always skip preparing window to display when already visible." into...
Bryce Lee [Tue, 30 May 2017 19:50:49 +0000 (19:50 +0000)]
Merge "Do not always skip preparing window to display when already visible." into oc-dev

7 years agoMerge "Check for source activity's task presence before referencing." into oc-dev
Bryce Lee [Tue, 30 May 2017 19:50:11 +0000 (19:50 +0000)]
Merge "Check for source activity's task presence before referencing." into oc-dev

7 years agoFix ripple on QS Footer
Jason Monk [Tue, 30 May 2017 19:37:11 +0000 (15:37 -0400)]
Fix ripple on QS Footer

Needs a background to draw on.

Test: manual
Change-Id: I7239520afc0aab65e9ff83a86dcf28b01a3fa25d
Fixes: 62194142

7 years agoPrevent unnecesary Surface preservation.
Robert Carr [Tue, 30 May 2017 18:25:22 +0000 (11:25 -0700)]
Prevent unnecesary Surface preservation.

We don't save the Surface's pixel format, and so any time
there is a change in the pixel format as described in the params
we trigger a surface preservation. However if an app is switching
from forced translucent (due to HW accel) to explicitly translucent
even though the layout params have changed we don't actually need
to trigger a format change, just toggle the OPAQUE flag.

Bug: 38324871
Test: Launch Chrome Custom Tabs with Lateral Transition Animation from News and Weather App. No black bars. go/wm-smoke
Change-Id: I2151b4470fd7c395fba7aad7d6ffca4c51e55476

7 years agoMerge changes from topic 'hide_passpoint_r2' into oc-dev
TreeHugger Robot [Tue, 30 May 2017 18:47:06 +0000 (18:47 +0000)]
Merge changes from topic 'hide_passpoint_r2' into oc-dev

* changes:
  hotspot2: hide Release 2 APIs
  Voice Messaging Intent API.

7 years agoFix crash from concurrent modification
Jason Monk [Tue, 30 May 2017 18:31:51 +0000 (14:31 -0400)]
Fix crash from concurrent modification

Change zen callbacks to allow for concurrent modification.

Test: runtest systemui
Change-Id: I8233353f617c4537104be2ec7be13247ed7f6ae0
Fixes: 38449656

7 years agoSet correct task remove mode when reparenting
Wale Ogunwale [Tue, 30 May 2017 18:12:20 +0000 (11:12 -0700)]
Set correct task remove mode when reparenting

If we are reparenting a task to a stack and the stack is at the front or will
be at the front, then set the the remove mode to REMOVE_TASK_MODE_MOVING_TO_TOP
so we don't try to move the focus to another stack and resume another activity.

Change-Id: Iddd7464dfff128544f2f70394ccd538b567fe58d
Fixes: 62088341
Test: ActivityManagerAppConfigurationTests
Test: go/wm-smoke

7 years agoWork on issue #62095840: NPE in JobParamteres in the background
Dianne Hackborn [Tue, 30 May 2017 18:04:23 +0000 (11:04 -0700)]
Work on issue #62095840: NPE in JobParamteres in the background

Crash early if an app calls jobFinished() with null params.

Test: manual

Change-Id: Icc2cf241edaad00bc5bd49d07a431627bbd76524

7 years agoMerge "Make QS signal indicator act like a QS signal indicator" into oc-dev
Jason Monk [Tue, 30 May 2017 17:00:57 +0000 (17:00 +0000)]
Merge "Make QS signal indicator act like a QS signal indicator" into oc-dev

7 years agohotspot2: hide Release 2 APIs
Peter Qiu [Fri, 12 May 2017 17:15:12 +0000 (10:15 -0700)]
hotspot2: hide Release 2 APIs

These APIs are based on the design of the legacy OSU app.  Since
the app will be redesigned, hide these APIs for now.

Bug: 38260972
Test: build
Change-Id: I56b9c27305624306773284a7cc1721606037462d

7 years agoVoice Messaging Intent API.
Renat Aksitov [Fri, 28 Apr 2017 20:27:20 +0000 (13:27 -0700)]
Voice Messaging Intent API.

Removing EXTRA_SENDER_ACCOUNT_HASH, needs more work.

Bug 37747843

Test: make -j11 docs

Change-Id: I3046611510f85cf69ceff7c2274cda3b692581b9
(cherry picked from commit 2c4201448eb3c19f9b6d37c8b679f51362cff3a7)

7 years agoMerge "Change brightness dialog theme" into oc-dev
Jason Monk [Tue, 30 May 2017 16:46:12 +0000 (16:46 +0000)]
Merge "Change brightness dialog theme" into oc-dev

7 years agoMerge "Suppress HUNs according to group alert behavior" into oc-dev
Julia Reynolds [Tue, 30 May 2017 16:43:33 +0000 (16:43 +0000)]
Merge "Suppress HUNs according to group alert behavior" into oc-dev

7 years agoViewRootImpl: More careful draw accounting.
Robert Carr [Fri, 26 May 2017 01:24:42 +0000 (18:24 -0700)]
ViewRootImpl: More careful draw accounting.

The strategy of beginning the count at 1 isn't enough
and we need to explicitly debt each request to report
draw. Imagine the case where a ViewRootImpl reports draw
multiple times, while we are waiting for a SurfaceView draw
completion callback. Without the explicit draw debt, the ViewRoot
would be counted as drawing for the SurfaceView and we could
notify the WM too early.

Test: Open Chrome a few hundred times. go/wm-smoke.
Bug: 38324871
Change-Id: I5762a98d1cc808125033ba3d1db8a3ea39a9e071

7 years agoSurfaceView: Avoid over-reporting DRAW_FINISHED.
Robert Carr [Fri, 26 May 2017 01:20:49 +0000 (18:20 -0700)]
SurfaceView: Avoid over-reporting DRAW_FINISHED.

To some extent we rely on the app to call the draw callback
if they want the app to work properly, but this case is fairly easy
to detect, so why not prevent it and provide a helpful log.

Bug: 62051758
Test: Warm start camera a few times. go/wm-smoke.
Change-Id: I39f4e015bfa15a1e0c37dba70b4a700803a6a274

7 years agoMerge "Fix SurfaceView handler." into oc-dev
Rob Carr [Tue, 30 May 2017 16:17:25 +0000 (16:17 +0000)]
Merge "Fix SurfaceView handler." into oc-dev

7 years agoDo not always skip preparing window to display when already visible.
Bryce Lee [Fri, 5 May 2017 16:58:25 +0000 (09:58 -0700)]
Do not always skip preparing window to display when already visible.

The window flag FLAG_TURN_SCREEN_ON relies on this method to properly
flag the screen to turn on. An optimization was put in place to skip
this method when the window was already visible. As a result, we would
skip turning the screen on if the activity was recreated.

This changelist addresses this issue by causing this method to execute
always if the flag is set.

Change-Id: I82c05c66136f7cc252b8d574d305809d455732ce
Fixes: 37432034
Test: bit FrameworksServicesTests:com.android.server.wm.WindowStateTests#testPrepareWindowToDisplayDuringRelayout
Test: go/wm-smoke

7 years agoCheck for source activity's task presence before referencing.
Bryce Lee [Mon, 22 May 2017 22:57:24 +0000 (15:57 -0700)]
Check for source activity's task presence before referencing.

ActivityStarter guards in all other spots for a null task in the
source activity, which can be the case if said activity is finishing.

This changelist adds the same check to the code when processing a
finishing source.

Change-Id: I78c284f45d96348767d06bb6ce0d78d6b77cb0ad
Fixes: 37428712
Test: manual testing & code inspection
Test: go/wm-smoke

7 years agoMerge "Reduce toast duration for channel warnings." into oc-dev
Geoffrey Pitsch [Tue, 30 May 2017 15:38:59 +0000 (15:38 +0000)]
Merge "Reduce toast duration for channel warnings." into oc-dev

7 years agoChange brightness dialog theme
Yoshinori Hirano [Mon, 22 May 2017 08:34:54 +0000 (17:34 +0900)]
Change brightness dialog theme

Added new theme Theme.DeviceDefault.QuickSettings.Dialog and applied it
to the brightness dialog.

Fixes: 62010126
Test: visual

Change-Id: I3bc1116a227d5e62d8624c9a4911771152f3ced0

7 years agoMerge "Improved autofillHints documentation." into oc-dev
TreeHugger Robot [Sat, 27 May 2017 02:25:02 +0000 (02:25 +0000)]
Merge "Improved autofillHints documentation." into oc-dev

7 years agoMerge "AAPT2: Follow symlinks when compiling" into oc-dev
TreeHugger Robot [Sat, 27 May 2017 01:43:46 +0000 (01:43 +0000)]
Merge "AAPT2: Follow symlinks when compiling" into oc-dev

7 years agoMerge "DividerView choreographer set earlier to avoid null exception" into oc-dev
TreeHugger Robot [Sat, 27 May 2017 01:29:41 +0000 (01:29 +0000)]
Merge "DividerView choreographer set earlier to avoid null exception" into oc-dev

7 years agoMerge "Add 32 and 128 bit Service Data parsing." into oc-dev
TreeHugger Robot [Sat, 27 May 2017 01:27:57 +0000 (01:27 +0000)]
Merge "Add 32 and 128 bit Service Data parsing." into oc-dev

7 years agoAAPT2: Fix <add-resource> tag for overlays
Adam Lesinski [Sat, 27 May 2017 00:33:38 +0000 (17:33 -0700)]
AAPT2: Fix <add-resource> tag for overlays

Bug: 38355988
Test: make aapt2_tests
Change-Id: Iea8887f55f8ceb2c15bd963405fd132916173c0c

7 years agoMerge "Don’t try to autoSize if TextView is not measured" into oc-dev
Siyamed Sinir [Sat, 27 May 2017 00:13:33 +0000 (00:13 +0000)]
Merge "Don’t try to autoSize if TextView is not measured" into oc-dev

7 years agoMerge changes from topic 'highlight_fixed' into oc-dev
TreeHugger Robot [Sat, 27 May 2017 00:11:01 +0000 (00:11 +0000)]
Merge changes from topic 'highlight_fixed' into oc-dev

* changes:
  Check default focus highlight for ImageView.
  Check state_focus in foreground.

7 years agoAAPT2: Follow symlinks when compiling
Adam Lesinski [Fri, 26 May 2017 23:31:38 +0000 (16:31 -0700)]
AAPT2: Follow symlinks when compiling

Bug: 62144459
Test: make AaptSymlinkTest
Change-Id: Idb3ab1ece17c52bb4fd174ec4c08a9e173289e55

7 years agoMerge "Fixed a bug where min-priority were in the middle" into oc-dev
Selim Cinek [Fri, 26 May 2017 23:32:11 +0000 (23:32 +0000)]
Merge "Fixed a bug where min-priority were in the middle" into oc-dev

7 years agoAdd 32 and 128 bit Service Data parsing.
Jakub Pawlowski [Fri, 26 May 2017 20:59:55 +0000 (13:59 -0700)]
Add 32 and 128 bit Service Data parsing.

Bug: 62078132
Change-Id: I79ff75cd5ccbe346dca79693b074ff3cd09112dd
(cherry picked from commit 45033a7e5799f2d957c7dad22eec0bfef94b3e16)

7 years agoMerge "Refresh screen off timeout when screen lock is released in VR" into oc-dev
Andrii Kulian [Fri, 26 May 2017 23:15:14 +0000 (23:15 +0000)]
Merge "Refresh screen off timeout when screen lock is released in VR" into oc-dev

7 years agoMerge "Fix the back button ripple." into oc-dev
TreeHugger Robot [Fri, 26 May 2017 23:10:44 +0000 (23:10 +0000)]
Merge "Fix the back button ripple." into oc-dev

7 years agoMerge "Add ID_LENGTH field for Empty type record" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 22:51:55 +0000 (22:51 +0000)]
Merge "Add ID_LENGTH field for Empty type record" into oc-dev

7 years agoMerge "Don't show ripple effect on the element replacing "See All"" into oc-dev
Sergey Vasilinets [Fri, 26 May 2017 22:11:22 +0000 (22:11 +0000)]
Merge "Don't show ripple effect on the element replacing "See All"" into oc-dev

7 years agoMerge "Add WearDisplayService to the system server; add a SET_DISPLAY_OFFSET permissi...
TreeHugger Robot [Fri, 26 May 2017 21:48:48 +0000 (21:48 +0000)]
Merge "Add WearDisplayService to the system server; add a SET_DISPLAY_OFFSET permission." into oc-dev

7 years agoMerge "Properly read vibration setting on boot." into oc-dev
TreeHugger Robot [Fri, 26 May 2017 21:43:24 +0000 (21:43 +0000)]
Merge "Properly read vibration setting on boot." into oc-dev

7 years agoCheck default focus highlight for ImageView.
Jiaquan He [Mon, 1 May 2017 21:18:39 +0000 (14:18 -0700)]
Check default focus highlight for ImageView.

This commit specially checks isDefaultFocusHighlightNeeded for
ImageView. We should also check with the content drawable of the
ImageView besides its foreground or background.

Bug: 62141891
Test: cts-tradefed run singleCommand cts --skip-device-info
--skip-preconditions --abi armeabi-v7a -m CtsViewTestCases -t
android.view.cts.View_DefaultFocusHighlightTest#testIsDefaultFocusHighlightNeeded

Change-Id: Iaf12a5863d7760d9361d0196a46de07a9ccda74e

7 years agoMerge "Disable autofill while user setup is not completed." into oc-dev
TreeHugger Robot [Fri, 26 May 2017 21:29:41 +0000 (21:29 +0000)]
Merge "Disable autofill while user setup is not completed." into oc-dev

7 years agoFix the back button ripple.
Jiaquan He [Wed, 24 May 2017 23:00:10 +0000 (16:00 -0700)]
Fix the back button ripple.

Bug: 62141426
Test: Manually checked that the default highlight doesn't show up
when tapping on the back button on the navigation bar.
Change-Id: Iedef32077c869e55f14dbd0aa92c4ce3220e0d1a

7 years agoFix SurfaceView handler.
John Reck [Fri, 26 May 2017 20:57:14 +0000 (13:57 -0700)]
Fix SurfaceView handler.

The UI Thread is whatever we happen to be attached to, or the current thread if we are unattached.

Bug: 38180075
Test: Repro from bug. go/wm-smoke.
Change-Id: I3f75882aa13de2b781c71ebbc7b09888981521b3

7 years agoMerge "Use uptime instead of elapsed for measuring duration" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 20:56:05 +0000 (20:56 +0000)]
Merge "Use uptime instead of elapsed for measuring duration" into oc-dev

7 years agoMerge "Resolve inflate attr against default package" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 20:54:49 +0000 (20:54 +0000)]
Merge "Resolve inflate attr against default package" into oc-dev

7 years agoAdd ID_LENGTH field for Empty type record
Yuka Anami [Mon, 15 May 2017 04:53:04 +0000 (13:53 +0900)]
Add ID_LENGTH field for Empty type record

If ID_LENGTH field is omitted from Empty Type record, it cannot be
detected as Ndef since the data is strictly checked by e3fc7d9954.
But it is not possible to create raw bytes of Empty Type record
which can meet this condition by using NdefRecord/NdefMessage.
To fix this issue, added ID_LENGTH field to Empty type record.

Bug: 38299566
Test: Write and read NDEF tag with empty type record
Change-Id: Idb58c80cf8562a8b314f4ddeccdc627dc0c6f5b4
(cherry picked from commit ef9d0a480ef72a4ff0de5b5afa3661cff81fd8b5)

7 years agoMerge "Fix QS Detail header touch target" into oc-dev
Jason Monk [Fri, 26 May 2017 20:44:10 +0000 (20:44 +0000)]
Merge "Fix QS Detail header touch target" into oc-dev

7 years agoProperly read vibration setting on boot.
Julia Reynolds [Fri, 26 May 2017 18:43:47 +0000 (14:43 -0400)]
Properly read vibration setting on boot.

Test: runtest systemui-notification
Change-Id: I400bc3df441524abe4973d4d6bccc7ef30a2e1c7
Fixes: 37865035

7 years agoSuppress HUNs according to group alert behavior
Julia Reynolds [Fri, 26 May 2017 17:36:31 +0000 (13:36 -0400)]
Suppress HUNs according to group alert behavior

Test: runtest systemui, systemui-notification
Change-Id: I9f987bc0ba22f2d48b02585fd722880bb5c2a9b5
Fixes: 62126386

7 years agoMerge "Fixed broken ImageFloatingTextViewTests" into oc-dev
Selim Cinek [Fri, 26 May 2017 19:45:00 +0000 (19:45 +0000)]
Merge "Fixed broken ImageFloatingTextViewTests" into oc-dev

7 years agoMerge "Make volume dialog pick up on theme changes" into oc-dev
Jason Monk [Fri, 26 May 2017 19:03:39 +0000 (19:03 +0000)]
Merge "Make volume dialog pick up on theme changes" into oc-dev

7 years agoDon’t try to autoSize if TextView is not measured
Siyamed Sinir [Fri, 26 May 2017 02:37:06 +0000 (19:37 -0700)]
Don’t try to autoSize if TextView is not measured

This CL early returns from auto sizing text if the view is not measured
yet.

Test: run cts --test android.widget.cts.TextViewTest -m CtsWidgetTestCases
Test: Added cts.TextViewTest#testAutosizeWithMaxLines_shouldNotThrowException
Test: Manual test with sample app for the failing case.

Bug: 38440435
Change-Id: Ic03c991f33a2b7701623f00f44cba7fb6cdfce46

7 years agoResolve inflate attr against default package
Alan Viverette [Tue, 23 May 2017 15:33:42 +0000 (11:33 -0400)]
Resolve inflate attr against default package

Change-Id: I2de0f79fb4918770c9f816934b1fc4953073a4f1
Fixes: 38456890
Test: LayoutInflaterTest#testInclude

7 years agoMerge "Moar Autofill Framework javadoc improvements:" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 18:55:32 +0000 (18:55 +0000)]
Merge "Moar Autofill Framework javadoc improvements:" into oc-dev

7 years agoMerge "Add ResourceId validation helper method" into oc-dev
Adam Lesinski [Fri, 26 May 2017 18:45:24 +0000 (18:45 +0000)]
Merge "Add ResourceId validation helper method" into oc-dev

7 years agoMerge "AAPT2: Implement attribute compat versioning" into oc-dev
Adam Lesinski [Fri, 26 May 2017 18:42:43 +0000 (18:42 +0000)]
Merge "AAPT2: Implement attribute compat versioning" into oc-dev

7 years agoMerge "HIDL: C++ Java parity" into oc-dev
Steven Moreland [Fri, 26 May 2017 18:31:53 +0000 (18:31 +0000)]
Merge "HIDL: C++ Java parity" into oc-dev

7 years agoDisable autofill while user setup is not completed.
Felipe Leme [Fri, 26 May 2017 16:24:33 +0000 (09:24 -0700)]
Disable autofill while user setup is not completed.

Test: manual verification with experimental app
Test: manual verification with Autofill with Google on flashed deviced
Test: existing CtsAutoFillServiceTestCases pass
Test: new LoginActivityTest.testSetupComplete pass

Fixes: 62049772

Change-Id: I1e914c44062755f8c88656482338e76aeaafd543

7 years agoMerge "Playback activity monitoring: add player types" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 18:06:16 +0000 (18:06 +0000)]
Merge "Playback activity monitoring: add player types" into oc-dev

7 years agoMerge "Add logging and null check for SkColorSpace serialization" into oc-dev
Matt Sarett [Fri, 26 May 2017 17:54:09 +0000 (17:54 +0000)]
Merge "Add logging and null check for SkColorSpace serialization" into oc-dev

7 years agoMake QS signal indicator act like a QS signal indicator
Jason Monk [Fri, 26 May 2017 17:52:59 +0000 (13:52 -0400)]
Make QS signal indicator act like a QS signal indicator

It had the behavior of the status bar before, so switch it over to
QS behavior but keep status bar icons for the appearance. Ditch
the old QS data icons because we no longer need them.

Test: runtest systemui
Change-Id: I1356bbc19c4874ae467e192b9129136ebd0a37c8
Fixes: 62128809

7 years agoFix QS Detail header touch target
Jason Monk [Fri, 26 May 2017 17:19:38 +0000 (13:19 -0400)]
Fix QS Detail header touch target

Move around some spacings and paddings to make sure the whole area
counts as a touch for the header.

Test: manual
Change-Id: I3d7515767cc3624efb195481886dc03c69cc39c9
Fixes: 38250837

7 years agoMake volume dialog pick up on theme changes
Jason Monk [Fri, 26 May 2017 14:38:54 +0000 (10:38 -0400)]
Make volume dialog pick up on theme changes

Test: change theme, view volume
Change-Id: I3f5b6ea7fd949e72624458a13b6c953629fcd1b5
Fixes: 38408033

7 years agoUse uptime instead of elapsed for measuring duration
Amith Yamasani [Fri, 26 May 2017 16:46:58 +0000 (09:46 -0700)]
Use uptime instead of elapsed for measuring duration

in time taken to read cpu stats.

This should avoid super long durations > 10 secs that are occasionally
seen in system logs.

Bug: 62104524
Test: manual
Change-Id: I9ed985a61125a207b6d4f6297091bd11b4c78616

7 years agoMerge "Collapse QS panel forcibly after dismissing Keyguard" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 16:20:45 +0000 (16:20 +0000)]
Merge "Collapse QS panel forcibly after dismissing Keyguard" into oc-dev

7 years agoMerge "Send notification state event more frequently" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 16:19:18 +0000 (16:19 +0000)]
Merge "Send notification state event more frequently" into oc-dev

7 years agoMerge "Create a new drawable after caching the DrawableContainer" into oc-dev
Tenghui Zhu [Fri, 26 May 2017 16:10:19 +0000 (16:10 +0000)]
Merge "Create a new drawable after caching the DrawableContainer" into oc-dev

7 years agoMerge "Properly battery blame throttled location requests" into oc-dev
Soonil Nagarkar [Fri, 26 May 2017 16:05:09 +0000 (16:05 +0000)]
Merge "Properly battery blame throttled location requests" into oc-dev

7 years agoAdd logging and null check for SkColorSpace serialization
Matt Sarett [Fri, 26 May 2017 14:55:38 +0000 (10:55 -0400)]
Add logging and null check for SkColorSpace serialization

Test: Compiled and flashed device.

BUG:38502480

Change-Id: Iaae74d8485ef88d85b634ddf86999e5cac60028f

7 years agoMerge "Fix RTL for SignalDrawable" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 15:30:18 +0000 (15:30 +0000)]
Merge "Fix RTL for SignalDrawable" into oc-dev

7 years agoMerge "Removed deprecated setAutofill() method for virtual children." into oc-dev
TreeHugger Robot [Fri, 26 May 2017 15:08:14 +0000 (15:08 +0000)]
Merge "Removed deprecated setAutofill() method for virtual children." into oc-dev

7 years agoReduce toast duration for channel warnings.
Geoffrey Pitsch [Fri, 26 May 2017 14:50:05 +0000 (10:50 -0400)]
Reduce toast duration for channel warnings.

Test: manual
Fixes: 38380608
Change-Id: Ia91dae29362bf59b6bf8927d195bacf4a2eb36cb

7 years agoMerge "Check for false touches when determining if the notif menu should be shown...
TreeHugger Robot [Fri, 26 May 2017 14:40:21 +0000 (14:40 +0000)]
Merge "Check for false touches when determining if the notif menu should be shown" into oc-dev

7 years agoMerge "AOD: Fix AOD background bug" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 14:39:46 +0000 (14:39 +0000)]
Merge "AOD: Fix AOD background bug" into oc-dev

7 years agoMerge "Allow some system notifications to be blocked." into oc-dev
Julia Reynolds [Fri, 26 May 2017 14:39:26 +0000 (14:39 +0000)]
Merge "Allow some system notifications to be blocked." into oc-dev

7 years agoMerge "Add 2 hours as an option for snoozing, update default to 1 hour" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 14:37:17 +0000 (14:37 +0000)]
Merge "Add 2 hours as an option for snoozing, update default to 1 hour" into oc-dev

7 years agoCollapse QS panel forcibly after dismissing Keyguard
Yoshinori Hirano [Fri, 14 Apr 2017 02:29:38 +0000 (11:29 +0900)]
Collapse QS panel forcibly after dismissing Keyguard

The Quick Settings panel is not collapsed when the screen lock is
unlocked by using TileService APIs (unlockAndRun() and
startActivityAndCollapse()).
To fix this issue, the QS panel should be collapsed forcibly when
startActivityAndCollapse() is called.

Bug: 38252721
Test: manual - install an app which calls startActivityAndCollapse()
               inside the runnable passed to unlockAndRun().

Author: Yuta Yamada <yuta.x.yamada@sonymobile.com>
Change-Id: I82d1df368d5024283f58ee5cc2d42559aac28467

7 years agoFix RTL for SignalDrawable
Jason Monk [Thu, 25 May 2017 20:11:52 +0000 (16:11 -0400)]
Fix RTL for SignalDrawable

Test: visual
Change-Id: I685125dff96829159d78983ad4b7c7f91d095c5c
Fixes: 38487767

7 years agoMerge "Remove the old version of setAffiliationIds" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 13:00:35 +0000 (13:00 +0000)]
Merge "Remove the old version of setAffiliationIds" into oc-dev

7 years agoMerge "WifiManager: add iface name and mode labels" into oc-dev
Erik Kline [Fri, 26 May 2017 09:49:20 +0000 (09:49 +0000)]
Merge "WifiManager: add iface name and mode labels" into oc-dev

7 years agoPlayback activity monitoring: add player types
Jean-Michel Trivi [Thu, 25 May 2017 22:11:07 +0000 (15:11 -0700)]
Playback activity monitoring: add player types

Add player types for playback activity monitoring:
 - AAudio
 - hardware sources
 - proxy for external players
Fix some declarations that do not follow coding guidelines

Test: n/a
Bug: 62027849
Change-Id: I14088a071a296fa8d342b36b550f1dc4e3388653

7 years agoMerge "Add extra debug logging to WifiTracker." into oc-dev
TreeHugger Robot [Fri, 26 May 2017 02:47:51 +0000 (02:47 +0000)]
Merge "Add extra debug logging to WifiTracker." into oc-dev

7 years agoFixed a bug where min-priority were in the middle
Selim Cinek [Fri, 26 May 2017 01:30:10 +0000 (18:30 -0700)]
Fixed a bug where min-priority were in the middle

The recent intrusiveness could elevate min priority notifications
temporarily and the reordering was also blocked while looking at it.
We're now allowing the shade to reorder if a notification updates to
min-priority.

Test: manual, add intrusive notification, update while looking at the shade to min
Change-Id: I75b23a7cbaecc8ae941d6680a924c79371c95991
Fixes: 37515606

7 years agoMerge "Fix issue #62103358: ProcessRecord dump formatting problem" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 01:12:13 +0000 (01:12 +0000)]
Merge "Fix issue #62103358: ProcessRecord dump formatting problem" into oc-dev

7 years agoMerge "SelectionActionModeHelper should use target view's thread" into oc-dev
TreeHugger Robot [Fri, 26 May 2017 00:45:38 +0000 (00:45 +0000)]
Merge "SelectionActionModeHelper should use target view's thread" into oc-dev

7 years agoAdd extra debug logging to WifiTracker.
Sundeep Ghuman [Thu, 11 May 2017 00:45:13 +0000 (17:45 -0700)]
Add extra debug logging to WifiTracker.

Bug: b/38212080
Test: NA
Change-Id: I1f5d1a1d43a1dd4d9ce2235d3a53d043d4e2120d

7 years agoRefresh screen off timeout when screen lock is released in VR
Andrii Kulian [Wed, 24 May 2017 19:24:09 +0000 (12:24 -0700)]
Refresh screen off timeout when screen lock is released in VR

When evaluating conditions for user activity with no lights change,
treat POLICY_VR the same way as for POLICY_BRIGHT, so new activity
timeout will be set.

Bug: 37968591
Test: Set screen timeout to 15s, launch Daydream, wait, launch Welcome flow.
Change-Id: I3185cc97364ae5631ef53906958b16d41f326c3b

7 years agoMerge "Relayout when base inner insets change" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 23:25:43 +0000 (23:25 +0000)]
Merge "Relayout when base inner insets change" into oc-dev

7 years agoMerge "Port Ic9d9d65c66325904c95ab3966bdcc16e7668278b to oc-dev" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 23:19:51 +0000 (23:19 +0000)]
Merge "Port Ic9d9d65c66325904c95ab3966bdcc16e7668278b to oc-dev" into oc-dev

7 years agoMerge "Removing unused SecureTouchListener" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 23:17:43 +0000 (23:17 +0000)]
Merge "Removing unused SecureTouchListener" into oc-dev

7 years agoMoar Autofill Framework javadoc improvements:
Felipe Leme [Thu, 25 May 2017 18:24:23 +0000 (11:24 -0700)]
Moar Autofill Framework javadoc improvements:

- Fixed WebView < > and API calls.
- Improved description of virtual views.
- Described how to set boundaries of virtual views.
- Improved AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS doc.

Bug: 37567048
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML

Change-Id: Ic0d1e9ff2703c87d4007f0092a2f8dfe0efca6db