OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "ConnectivityServiceTest: more tweaks to testRequestBenchmark" am: 76efbb30f5...
Hugo Benichi [Wed, 31 May 2017 04:10:03 +0000 (04:10 +0000)]
Merge "ConnectivityServiceTest: more tweaks to testRequestBenchmark" am: 76efbb30f5 am: 5f046cb614
am: 7bbdfcd8eb

Change-Id: I96c39ca1899768d039a108426fb04655aaf8d55f

7 years agoMerge "ConnectivityServiceTest: more tweaks to testRequestBenchmark" am: 76efbb30f5
Hugo Benichi [Wed, 31 May 2017 03:59:41 +0000 (03:59 +0000)]
Merge "ConnectivityServiceTest: more tweaks to testRequestBenchmark" am: 76efbb30f5
am: 5f046cb614

Change-Id: I4bf83bb6b874a6ab82a6dd54228758d204120acc

7 years agoPrune unused static libs and instant apps if space needed
Svet Ganov [Wed, 31 May 2017 03:52:16 +0000 (03:52 +0000)]
Prune unused static libs and instant apps if space needed
am: f36d53cbfc

Change-Id: I0fdca2a5069b6f3572a9cb5fe0d3ead0442b7b46

7 years agoMerge "ConnectivityServiceTest: more tweaks to testRequestBenchmark"
Hugo Benichi [Wed, 31 May 2017 03:52:05 +0000 (03:52 +0000)]
Merge "ConnectivityServiceTest: more tweaks to testRequestBenchmark"
am: 76efbb30f5

Change-Id: I2c7e714af44c31a101fd58be6ebcc540fffd65a1

7 years agoMerge "ConnectivityServiceTest: more tweaks to testRequestBenchmark"
Treehugger Robot [Wed, 31 May 2017 03:43:37 +0000 (03:43 +0000)]
Merge "ConnectivityServiceTest: more tweaks to testRequestBenchmark"

7 years agoMerge "Do not set the divider pos during adjust ime and minimized interaction" into...
Matthew Ng [Wed, 31 May 2017 02:35:02 +0000 (02:35 +0000)]
Merge "Do not set the divider pos during adjust ime and minimized interaction" into oc-dev
am: ddd5458092

Change-Id: I0f4c67f4c960037adc6b222018b30614892a89df

7 years agoPrune unused static libs and instant apps if space needed
Svet Ganov [Wed, 24 May 2017 07:27:21 +0000 (00:27 -0700)]
Prune unused static libs and instant apps if space needed

We are caching unused static shared libs and instant apps
(installed and uninstalled) opportunistically. If space is
needed we delete these to free up space.

Test: manual

bug:62045000

Change-Id: Id992dee5c7c6e36b8e8b81050602dbc4eeafb0f9

7 years agoMerge "Do not set the divider pos during adjust ime and minimized interaction" into...
TreeHugger Robot [Wed, 31 May 2017 02:22:27 +0000 (02:22 +0000)]
Merge "Do not set the divider pos during adjust ime and minimized interaction" into oc-dev

7 years agoMerge "Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals" am: a4982...
Colin Cross [Wed, 31 May 2017 01:37:26 +0000 (01:37 +0000)]
Merge "Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals" am: a4982eb5dd am: aa92f80288
am: 2aa649593b

Change-Id: Ie28b57bd8ed157a7a34a5224bf3f52d7818b6205

7 years agoMerge "Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals" am: a4982...
Colin Cross [Wed, 31 May 2017 01:29:57 +0000 (01:29 +0000)]
Merge "Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals" am: a4982eb5dd
am: aa92f80288

Change-Id: I73efdce859b040eb7e74fa50a96102b5b8a2c3f7

7 years agoMerge "Turn off logspam" into oc-dev
Joe Onorato [Wed, 31 May 2017 01:25:55 +0000 (01:25 +0000)]
Merge "Turn off logspam" into oc-dev
am: 6fb15ea9d4

Change-Id: I975c93d9f110a8a1488e366180da727ad9ec6408

7 years agoConnectivityServiceTest: more tweaks to testRequestBenchmark
Hugo Benichi [Mon, 29 May 2017 04:13:52 +0000 (13:13 +0900)]
ConnectivityServiceTest: more tweaks to testRequestBenchmark

Recent continuous testing runs indicates that commit 849b81b7 did not
completely fixed the issue with testRequestBenchmark.

This patch changes the name of the test to not include "test" and
removes @SmallTest annotation, which should do the job of @Ignore while
ConnectivityServiceTest still extends AndroidTestCase.

In addition timeouts are adjusted to take into account recent failures
observed.

This is the last pending action before turning on FrameworksNetTests on
presubmits.

Bug: 32561414
Test: no functional change
Change-Id: I56ef334e19e99e5a3483418330e5f0ccd6eb31bb

7 years agoMerge "Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals"
Colin Cross [Wed, 31 May 2017 01:22:00 +0000 (01:22 +0000)]
Merge "Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals"
am: a4982eb5dd

Change-Id: Ic7700b1974d2d3aa3df0c55003ee6c16c1ba6ece

7 years agoMerge "Turn off logspam" into oc-dev
Joe Onorato [Wed, 31 May 2017 01:18:01 +0000 (01:18 +0000)]
Merge "Turn off logspam" into oc-dev

7 years agoMerge changes I4b58610f,Ib758756a into oc-dev
Joe Onorato [Wed, 31 May 2017 01:14:54 +0000 (01:14 +0000)]
Merge changes I4b58610f,Ib758756a into oc-dev
am: a9873bc8f6

Change-Id: I07b352ee11492718ee2abb76d48937f39f17125c

7 years agoMerge "Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals"
Treehugger Robot [Wed, 31 May 2017 01:13:05 +0000 (01:13 +0000)]
Merge "Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals"

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
Svet Ganov [Wed, 31 May 2017 00:58:25 +0000 (00:58 +0000)]
Merge "Compare against correct user id to determine static lib clients" into oc-dev
am: 13eef357d6

Change-Id: I94d6ec64d861a687d4bda6ef900d092c3401bc03

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
Ruchi Kandoi [Wed, 31 May 2017 00:33:01 +0000 (00:33 +0000)]
Merge "Make NFC AIDL callbacks oneway" into oc-dev
am: 1573489991

Change-Id: Ie0e8471a3998bdb2fefde6c67823b71a889e0d81

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:21:35 +0000 (00:21 +0000)]
Merge "Fix issue #62196301: Pre-O background restrictions allow starts..." into oc-dev
am: 952d68fa85

Change-Id: Ic1dfd9537fb97bf896ac73709d900023696bf14a

7 years agoMerge "Fix issue with aspect ratio not applying correctly when PIP is expanded" into...
Winson Chung [Wed, 31 May 2017 00:19:06 +0000 (00:19 +0000)]
Merge "Fix issue with aspect ratio not applying correctly when PIP is expanded" into oc-dev
am: 9c1b222fc1

Change-Id: I66e6b3e1b12af493ed7533d67aa013ccee87a11a

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 NPE and wrong behavior of Typeface.isSupportedAxes" into oc-dev
Seigo Nonaka [Wed, 31 May 2017 00:10:56 +0000 (00:10 +0000)]
Merge "Fix NPE and wrong behavior of Typeface.isSupportedAxes" into oc-dev
am: 633b32be55

Change-Id: If19a949458e8791dfb393d9911450226a5969003

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
Jason Monk [Tue, 30 May 2017 23:49:41 +0000 (23:49 +0000)]
Merge "Fix QS header touch targets" into oc-dev
am: 17e512528f

Change-Id: I30166062d1bb53d773d5d187746c65126d5499ed

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
Jason Monk [Tue, 30 May 2017 23:35:24 +0000 (23:35 +0000)]
Merge "Show date + alarm icon when on lock screen" into oc-dev
am: 0c78e8238d

Change-Id: Ic5dfac3c117937dd1ff96653463bc31a22a3c2fc

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 "Merge "Temporarily enable screen wakelock logging in WM" into oc-dev am: ea6c7...
Android Build Merger (Role) [Tue, 30 May 2017 23:29:12 +0000 (23:29 +0000)]
Merge "Merge "Temporarily enable screen wakelock logging in WM" into oc-dev am: ea6c7db229" into oc-dev-plus-aosp

7 years agoMerge "resolve merge conflicts of fc5c78e0ef79 to oc-dev-plus-aosp" into oc-dev-plus...
Todd Kennedy [Tue, 30 May 2017 23:28:55 +0000 (23:28 +0000)]
Merge "resolve merge conflicts of fc5c78e0ef79 to oc-dev-plus-aosp" into oc-dev-plus-aosp

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

Change-Id: I857eb959e7215798a14f7055325c18ca42b1f14b

7 years agoMerge "Random hacks to make QS DND work" into oc-dev
Jason Monk [Tue, 30 May 2017 23:24:52 +0000 (23:24 +0000)]
Merge "Random hacks to make QS DND work" into oc-dev
am: 28355df745

Change-Id: I71750f986834cf7391520f956cfec7183cc45758

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 agoresolve merge conflicts of fc5c78e0ef79 to oc-dev-plus-aosp
Todd Kennedy [Tue, 30 May 2017 23:19:36 +0000 (16:19 -0700)]
resolve merge conflicts of fc5c78e0ef79 to oc-dev-plus-aosp

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic9e83a568e992ea1444bb321ca9dda2f7002e4aa

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 agoTurn off logspam
Joe Onorato [Thu, 27 Apr 2017 23:18:05 +0000 (16:18 -0700)]
Turn off logspam

For more information, see https://source.android.com/source/code-style#log-sparingly

Bug: 37252687
Test: development/tools/logblame/app_switch_test
Test: development/tools/logblame/power_toggle_test
Test: development/tools/logblame/medium_idle_test
Change-Id: Ie2f6ef33df7b6c1ea976a8180945651ac9482976

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 "Allow ManagedProvisioning to silently uninstall apps" am: cfc68b6661
insight.lee [Tue, 30 May 2017 22:41:56 +0000 (22:41 +0000)]
Merge "Allow ManagedProvisioning to silently uninstall apps" am: cfc68b6661
am: 6683494c94

Change-Id: I9f0092630e3b89f708b3f157e1c36052297458db

7 years agoMerge "Allow ManagedProvisioning to silently uninstall apps"
insight.lee [Tue, 30 May 2017 22:34:47 +0000 (22:34 +0000)]
Merge "Allow ManagedProvisioning to silently uninstall apps"
am: cfc68b6661

Change-Id: I2fed72cf026733b8976b4b8a113d1eb0db27fcaa

7 years agoMerge "Allow ManagedProvisioning to silently uninstall apps"
Treehugger Robot [Tue, 30 May 2017 22:21:12 +0000 (22:21 +0000)]
Merge "Allow ManagedProvisioning to silently uninstall apps"

7 years agoMerge "Set correct task remove mode when reparenting" into oc-dev
Wale Ogunwale [Tue, 30 May 2017 22:18:48 +0000 (22:18 +0000)]
Merge "Set correct task remove mode when reparenting" into oc-dev
am: 7b64dbd529

Change-Id: Iec0d1817e29d1ea1b06f0da10f42de2bb55c40dc

7 years agoMerge "Fix ripple on QS Footer" into oc-dev
Jason Monk [Tue, 30 May 2017 22:16:02 +0000 (22:16 +0000)]
Merge "Fix ripple on QS Footer" into oc-dev
am: 13af917690

Change-Id: I59107dec864b0676c44476324c6dd0a6f3ee5394

7 years agoMerge "use FgThread.class instead of UiThread.class for lock object" am: e2fddf56a4...
yangbingqian [Tue, 30 May 2017 22:05:53 +0000 (22:05 +0000)]
Merge "use FgThread.class instead of UiThread.class for lock object" am: e2fddf56a4 am: a7d45cf3f0
am: 26d6431106

Change-Id: I666af86709586df062e323d58915605f68b6ca46

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
Jason Monk [Tue, 30 May 2017 21:56:55 +0000 (21:56 +0000)]
Merge "Fix crash from concurrent modification" into oc-dev
am: e3f2f29cde

Change-Id: I8fa6d484066f6b7286b08983b5c6edce7caac9f9

7 years agoMerge "use FgThread.class instead of UiThread.class for lock object" am: e2fddf56a4
yangbingqian [Tue, 30 May 2017 21:56:43 +0000 (21:56 +0000)]
Merge "use FgThread.class instead of UiThread.class for lock object" am: e2fddf56a4
am: a7d45cf3f0

Change-Id: If9a509ff24e5ea52602f50eb977ac94652bf2978

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 "use FgThread.class instead of UiThread.class for lock object"
yangbingqian [Tue, 30 May 2017 21:48:15 +0000 (21:48 +0000)]
Merge "use FgThread.class instead of UiThread.class for lock object"
am: e2fddf56a4

Change-Id: Ia6d2154bf46d61ea55ef7e41abd538b1c71972b5

7 years agoMerge changes I5762a98d,I39f4e015 into oc-dev
Robert Carr [Tue, 30 May 2017 21:39:09 +0000 (21:39 +0000)]
Merge changes I5762a98d,I39f4e015 into oc-dev
am: c56b1d3c98

Change-Id: I4e6931609d4a3fc8a0c80b58f9d279f1f65d6a10

7 years agoMerge "use FgThread.class instead of UiThread.class for lock object"
Treehugger Robot [Tue, 30 May 2017 21:35:11 +0000 (21:35 +0000)]
Merge "use FgThread.class instead of UiThread.class for lock object"

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
Roozbeh Pournader [Tue, 30 May 2017 21:25:23 +0000 (21:25 +0000)]
Merge "Update Paint#mFontVariationSettings in set() and reset()" into oc-dev
am: d865c624bd

Change-Id: I45e58aa1a1ac7b5319a891e3d4f449099b13384d

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
Robert Carr [Tue, 30 May 2017 20:55:56 +0000 (20:55 +0000)]
Merge "Prevent unnecesary Surface preservation." into oc-dev
am: bf7f23cc9c

Change-Id: Ia88d0b9658d9804187cf053ae83338b978ffa69b

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

Change-Id: Icc420eea48a8379723c0bc84a5f30c03ac2a2492

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:31:33 +0000 (20:31 +0000)]
Merge "Work on issue #62095840: NPE in JobParamteres in the background" into oc-dev
am: 1399d3abf5

Change-Id: I49169ce6f6559d9bfad36693b1582b2d810380b6

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

Change-Id: I13b21aa8b731e09d22955d177589635427c1fb39

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 agoMerge "Do not always skip preparing window to display when already visible." into...
Bryce Lee [Tue, 30 May 2017 20:04:37 +0000 (20:04 +0000)]
Merge "Do not always skip preparing window to display when already visible." into oc-dev
am: 4dfc067b2c

Change-Id: I07eb33fe8df60b34b86380d6dbe8a3d03c7c6baa

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 "Check for source activity's task presence before referencing." into oc-dev
Bryce Lee [Tue, 30 May 2017 19:58:32 +0000 (19:58 +0000)]
Merge "Check for source activity's task presence before referencing." into oc-dev
am: cdb7e6d507

Change-Id: I75aed0fd10eb95d06f89c48cdda7fd1658a3ad2c

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 agoMerge "Merge changes from topic 'hide_passpoint_r2' into oc-dev am: 4bd47fce86" into...
Android Build Merger (Role) [Tue, 30 May 2017 19:07:59 +0000 (19:07 +0000)]
Merge "Merge changes from topic 'hide_passpoint_r2' into oc-dev am: 4bd47fce86" into oc-dev-plus-aosp

7 years agoMerge changes from topic 'hide_passpoint_r2' into oc-dev
Peter Qiu [Tue, 30 May 2017 19:06:38 +0000 (19:06 +0000)]
Merge changes from topic 'hide_passpoint_r2' into oc-dev
am: 4bd47fce86

Change-Id: I05ef978d28a69419e8ffe2ca4c357de5900e4049

7 years agoMerge changes from topic 'hide_passpoint_r2' into oc-dev
Peter Qiu [Tue, 30 May 2017 18:55:37 +0000 (18:55 +0000)]
Merge changes from topic 'hide_passpoint_r2' into oc-dev
am: 4bd47fce86

Change-Id: I71fe905c7842384d7700f02f923b12cdae9bf594

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 agoDo not set the divider pos during adjust ime and minimized interaction
Matthew Ng [Tue, 23 May 2017 20:00:24 +0000 (13:00 -0700)]
Do not set the divider pos during adjust ime and minimized interaction

When launching an app in splitscreen with while ime is up will trigger
an animation that is trying to minimize the docked stack (this bug is
tracked in b/36603383) with the end result in incorrect bounds for the
docked and fullscreen tasks (leaving visual glitches in their apps).
This was caused by setting the divider position while there was
interaction with the minimized state. Therefore ignore setting divider
while adjusting for ime and minimized interaction for the tasks to end
with the correct bounds.

Fixes: 38428386
Test: manual - dock something in split screen, use the launcher search
to bring up ime, launch any app (like gmail)
Change-Id: Ic3547b02a39f40698db07d1c0946e0991b69f5d3

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 agoUse LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals
Colin Cross [Tue, 30 May 2017 17:57:34 +0000 (10:57 -0700)]
Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals

Instead of directly adding dependencies to full_classes_compiled_jar
and full_classes_jack, just use LOCAL_ADDITIONAL_DEPENDENCIES and
let the build system take care of where the dependencies are needed.

Test: builds
Change-Id: Ia3078fe0aa54b2d69821a9879cfe43414e1e9c4f

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

Change-Id: I9e90d2b0afd99b103fb4d5d6e1a81a7110f95529

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 agoMerge "Change brightness dialog theme" into oc-dev
Jason Monk [Tue, 30 May 2017 16:53:15 +0000 (16:53 +0000)]
Merge "Change brightness dialog theme" into oc-dev
am: 3b5934b267

Change-Id: I0ea5462db449403c6a1a03267c87b7be9bc66174

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

Change-Id: I86f65c9f8ae331d5b3cc4a35af6a48aa2b04dce1

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:23:49 +0000 (16:23 +0000)]
Merge "Fix SurfaceView handler." into oc-dev
am: 5366cfbef3

Change-Id: I29980e5255957c1830a72707bb20c2de128d76ac

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