OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge changes I4b58610f,Ib758756a into oc-dev
TreeHugger Robot [Wed, 31 May 2017 01:07:21 +0000 (01:07 +0000)]
Merge changes I4b58610f,Ib758756a into oc-dev

* changes:
  Turn off the check in the test because the assertion is off in the implementation.
  Fix typos that cause infinite recursion and CTS test failure.

7 years agoMerge "Compare against correct user id to determine static lib clients" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 00:52:38 +0000 (00:52 +0000)]
Merge "Compare against correct user id to determine static lib clients" into oc-dev

7 years agoMerge "Make NFC AIDL callbacks oneway" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 00:26:30 +0000 (00:26 +0000)]
Merge "Make NFC AIDL callbacks oneway" into oc-dev

7 years agoMerge "Fix issue #62196301: Pre-O background restrictions allow starts..." into oc-dev
Dianne Hackborn [Wed, 31 May 2017 00:12:58 +0000 (00:12 +0000)]
Merge "Fix issue #62196301: Pre-O background restrictions allow starts..." into oc-dev

7 years agoMerge "Fix issue with aspect ratio not applying correctly when PIP is expanded" into...
TreeHugger Robot [Wed, 31 May 2017 00:00:53 +0000 (00:00 +0000)]
Merge "Fix issue with aspect ratio not applying correctly when PIP is expanded" into oc-dev

7 years agoMerge "Fix NPE and wrong behavior of Typeface.isSupportedAxes" into oc-dev
TreeHugger Robot [Tue, 30 May 2017 23:58:01 +0000 (23:58 +0000)]
Merge "Fix NPE and wrong behavior of Typeface.isSupportedAxes" into oc-dev

7 years agoMerge "Fix QS header touch targets" into oc-dev
TreeHugger Robot [Tue, 30 May 2017 23:36:45 +0000 (23:36 +0000)]
Merge "Fix QS header touch targets" into oc-dev

7 years agoMerge "Show date + alarm icon when on lock screen" into oc-dev
TreeHugger Robot [Tue, 30 May 2017 23:29:31 +0000 (23:29 +0000)]
Merge "Show date + alarm icon when on lock screen" into oc-dev

7 years agoMerge "Temporarily enable screen wakelock logging in WM" into oc-dev
Andrii Kulian [Tue, 30 May 2017 23:19:42 +0000 (23:19 +0000)]
Merge "Temporarily enable screen wakelock logging in WM" into oc-dev

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 agoCompare against correct user id to determine static lib clients
Svet Ganov [Wed, 24 May 2017 12:09:46 +0000 (05:09 -0700)]
Compare against correct user id to determine static lib clients

Test: manual, static shared lib CTS tests pass

bug:36632264

Change-Id: I58b2787ff0b95c89f9e9bb9a005b39e3505aefcb

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 agoTemporarily enable screen wakelock logging in WM
Andrii Kulian [Fri, 26 May 2017 21:51:47 +0000 (14:51 -0700)]
Temporarily enable screen wakelock logging in WM

Enable DEBUG_KEEP_SCREEN_ON flag to get additional wakelock logs
to investigate b/38416971.

Bug: 38416971
Test: No change in logic
Change-Id: I83c45a26befb6a767b5d9fc30b1cde07a2432ebe

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 agoFix NPE and wrong behavior of Typeface.isSupportedAxes
Seigo Nonaka [Sat, 27 May 2017 00:50:10 +0000 (17:50 -0700)]
Fix NPE and wrong behavior of Typeface.isSupportedAxes

The Typeface kept by Paint object can be null if nobody calls
setTypeface. The null typeface is equivalent to the Typeface.DEFAULT.
To check whether the passed axis is usable for Typeface.DEFAULT, we
need to pass Typeface.DEFAULT to isSupportedAxes if no typeface was set
on the Paint.

At the same time this CL fixes an issue in isSupportedAxes.
If the requested axis is listed in the first element of axes list,
isSupportedAxes returned false due to wrong handling of binarySearch
result.

Bug: 62146672
Bug: 62147012
Test: am instrument -w -e class android.graphics.cts.PaintTest
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I7c154adfe8a19d6ed24ad645df7c10cee7880461

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 issue #62196301: Pre-O background restrictions allow starts...
Dianne Hackborn [Tue, 30 May 2017 20:17:25 +0000 (13:17 -0700)]
Fix issue #62196301: Pre-O background restrictions allow starts...

...from background apps

The check for whether a calling app was in the foreground was
way too lose, treating anything better than a receive as foreground.
Now we use the same foreground state check as elsewhere.

Test: manual

Change-Id: I6bb621f207204d14abfadc0d425297e7d5efe0f6

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 agoFix QS header touch targets
Jason Monk [Tue, 30 May 2017 16:47:10 +0000 (12:47 -0400)]
Fix QS header touch targets

 - Fix the sizing by removing padding and repositioning
 - Have container absorb clicks so misses don't collapse
   the panel.

Test: manual
Change-Id: I2f7f79ca23105561c4ce8b7ff44f59ae99131f85
Fixes: 37049839
Fixes: 38359316

7 years agoShow date + alarm icon when on lock screen
Jason Monk [Tue, 30 May 2017 19:21:29 +0000 (15:21 -0400)]
Show date + alarm icon when on lock screen

Test: manual
Change-Id: I3b1b9749c0acd029b9f59bf7c21a253ba2e30229
Fixes: 38123822

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 agoFix issue with aspect ratio not applying correctly when PIP is expanded
Winson Chung [Mon, 22 May 2017 18:14:22 +0000 (11:14 -0700)]
Fix issue with aspect ratio not applying correctly when PIP is expanded

- The current code always used the default min edge size to calculate the
  PIP bounds when the aspect ratio changes, so if a PIP app sets the aspect
  ratio in response to the an action, the bounds would be resized down
  incorrectly.
- This CL fixes the issue with current aspect ratio not being initialized
  correctly, and also ensures that SystemUI always updates the min edge
  size when expanding the PIP.

Bug: 38324839
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: go/wm-smoke

Change-Id: Ida0f68b2f8f93f9bf1915dda8762a156704d4709

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 agoTurn off the check in the test because the assertion is off in the implementation.
Joe Onorato [Sat, 27 May 2017 03:04:00 +0000 (20:04 -0700)]
Turn off the check in the test because the assertion is off in the implementation.

Bug: 38350004
Test: bit FrameworksCoreTests:com.android.internal.app.procstats.SparseMappingTableTest
Change-Id: I4b58610fd1ac9ca082479a7d5ba40c69f0a26654

7 years agoFix typos that cause infinite recursion and CTS test failure.
Joe Onorato [Sat, 27 May 2017 02:52:12 +0000 (19:52 -0700)]
Fix typos that cause infinite recursion and CTS test failure.

Bug: 37171450
Test: bit CtsProtoTestCases:*
Change-Id: Ib758756a64fa19eb976dc0a2b1bb1cd6e42fd6f2

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 agoMake NFC AIDL callbacks oneway
Ruchi Kandoi [Fri, 28 Apr 2017 22:48:02 +0000 (15:48 -0700)]
Make NFC AIDL callbacks oneway

Test: Read NFC tags, Android Beam
Bug: 32288773
Change-Id: I6294ec29be2af8feb578e9bfd5e0770ad9c09cc0
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit 5dc487d5888d2bfe7feee102f0753bcbe4464a76)

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