OSDN Git Service
Phil Weaver [Sat, 17 Jun 2017 00:56:19 +0000 (00:56 +0000)]
Merge "Separate a11y and autofill view ids" into oc-dev
am:
c91290a6e9
Change-Id: Ib4566c2f0e32477d5f9eb6510edc140c2b66e0a4
Casey Burkhardt [Sat, 17 Jun 2017 00:52:46 +0000 (00:52 +0000)]
Merge "Resolve 3 inconsistencies in accessibility button API - Unify logic for detecting availability of the accessibility button - Ensure the initial visibility state is propagated to A11yMS - Ensure services only receive availability callbacks for changes" into oc-dev
am:
4ab690a50d
Change-Id: I38798fabc99c8db5618a6bd39c8eb6953dbf2bbb
Phil Weaver [Sat, 17 Jun 2017 00:45:59 +0000 (00:45 +0000)]
Merge "Separate a11y and autofill view ids" into oc-dev
Casey Burkhardt [Sat, 17 Jun 2017 00:40:57 +0000 (00:40 +0000)]
Merge "Resolve 3 inconsistencies in accessibility button API - Unify logic for detecting availability of the accessibility button - Ensure the initial visibility state is propagated to A11yMS - Ensure services only receive availability callbacks for changes" into oc-dev
Myles Watson [Fri, 16 Jun 2017 23:47:57 +0000 (23:47 +0000)]
Merge "Add a svc command for enabling/disabling Bluetooth" am:
7d136b777a
am:
c0c6e1243b
Change-Id: Iab78d232230a6d9ef02d40a03558f7967af7f48c
Myles Watson [Fri, 16 Jun 2017 23:40:26 +0000 (23:40 +0000)]
Merge "Add a svc command for enabling/disabling Bluetooth"
am:
7d136b777a
Change-Id: I62158ee728e6c431c21e5de30ecd9b7b33bbc73a
Treehugger Robot [Fri, 16 Jun 2017 23:28:23 +0000 (23:28 +0000)]
Merge "Add a svc command for enabling/disabling Bluetooth"
Bryce Lee [Fri, 16 Jun 2017 23:24:31 +0000 (23:24 +0000)]
Merge "Create native Surface object on updateWindow for legacy apps." into oc-dev
am:
1e1c5d7b77
Change-Id: I35b9aa813c4140cc273272421a05df22b69aeb2e
Bryce Lee [Fri, 16 Jun 2017 23:15:03 +0000 (23:15 +0000)]
Merge "Create native Surface object on updateWindow for legacy apps." into oc-dev
Myles Watson [Tue, 13 Jun 2017 18:42:36 +0000 (11:42 -0700)]
Add a svc command for enabling/disabling Bluetooth
Bug:
62067926
Test: svc bluetooth disable
svc bluetooth enable
Change-Id: I9a53d7ab1805df98d8cf1292cf1061eacc14655d
Felipe Leme [Fri, 16 Jun 2017 22:57:29 +0000 (22:57 +0000)]
Merge "Trim text from autofillvalue when checking for empty." into oc-dev
am:
b3b13ff62c
Change-Id: I4059509efe6cfa0b2f3acdf8fdfb99b4daeca0bb
Tyler Freeman [Fri, 16 Jun 2017 22:51:31 +0000 (22:51 +0000)]
DO NOT MERGE ANYWHERE Vibrator: Allow priority vibrations in low-power mode for accessibility. am:
79613777df -s ours am:
cf82b09998 -s ours
am:
2c3ca52a91 -s ours
Change-Id: Ia77b2954ecafe93cf01381c0c1fe781612187229
TreeHugger Robot [Fri, 16 Jun 2017 22:50:42 +0000 (22:50 +0000)]
Merge "Trim text from autofillvalue when checking for empty." into oc-dev
Tyler Freeman [Fri, 16 Jun 2017 22:43:12 +0000 (22:43 +0000)]
DO NOT MERGE ANYWHERE Vibrator: Allow priority vibrations in low-power mode for accessibility. am:
79613777df -s ours
am:
cf82b09998 -s ours
Change-Id: I128c5a5b07fc2aef5ada9118e3cc491a87970758
Tyler Freeman [Fri, 16 Jun 2017 22:36:26 +0000 (22:36 +0000)]
DO NOT MERGE ANYWHERE Vibrator: Allow priority vibrations in low-power mode for accessibility.
am:
79613777df -s ours
Change-Id: I965bac24a8d62b44b08679bda58b8ba37dbed5b4
Wale Ogunwale [Fri, 16 Jun 2017 22:15:21 +0000 (22:15 +0000)]
Merge "Log last home activity and result we tried to start" into oc-dev
am:
e8f1a74361
Change-Id: I6c9e5fdd75717b1c4fc0ba723afe3ff8797f3a16
Tony Mantler [Fri, 16 Jun 2017 22:12:03 +0000 (22:12 +0000)]
Merge "Disable notification sounds on TV" into oc-dev
am:
b5979092b8
Change-Id: Iec7f207648a7df13c2d963be4b48f3286ded2dc2
Felipe Leme [Fri, 16 Jun 2017 21:59:45 +0000 (21:59 +0000)]
Merge "Use an optimized findViewNodeByAutofillId(id) to get just one node." into oc-dev
am:
a89414962d
Change-Id: Ie4bebf468d564dcf67ed56b6152f49f2c5f5cda1
TreeHugger Robot [Fri, 16 Jun 2017 21:57:20 +0000 (21:57 +0000)]
Merge "Log last home activity and result we tried to start" into oc-dev
TreeHugger Robot [Fri, 16 Jun 2017 21:55:28 +0000 (21:55 +0000)]
Merge "Disable notification sounds on TV" into oc-dev
TreeHugger Robot [Fri, 16 Jun 2017 21:45:39 +0000 (21:45 +0000)]
Merge "Use an optimized findViewNodeByAutofillId(id) to get just one node." into oc-dev
Winson Chung [Fri, 16 Jun 2017 21:41:43 +0000 (21:41 +0000)]
Merge changes I20bdab1b,Id82f9081 into oc-dev
am:
64b044680c
Change-Id: I6bf7127bd9f46855e186e13fc4e06f27535c4916
Phil Weaver [Thu, 15 Jun 2017 17:10:06 +0000 (10:10 -0700)]
Separate a11y and autofill view ids
Autofill seems to need IDs to be preserved across things
like configuration changes, while accessibility will not
function without views with unique ids. Separating out the
two types of IDs. We can re-combine them once it's clear
that both demands can be satisfied.
Bug:
62301218
Test: Run a11y and autofill CTS, and verify that the play
store app functions with TalkBack after a screen rotation.
Change-Id: I17a99de2874768fc0ade3aa354130dd1f6b4cd7e
Winson Chung [Fri, 16 Jun 2017 21:32:39 +0000 (21:32 +0000)]
Merge changes I20bdab1b,Id82f9081 into oc-dev
* changes:
Fix backwards flag causing crash.
Fixing issue with PiP aspect ratio being clobbered.
Bryce Lee [Fri, 16 Jun 2017 14:20:34 +0000 (07:20 -0700)]
Create native Surface object on updateWindow for legacy apps.
There are some apps that use the Surface object itself to indicate
changes. As a result, recycling the existing Surface object for
updates can lead to such apps ignoring events such as size changes.
This changelist restores the original behavior for legacy apps, where
the underlying native Surface object is recreated during updates.
Fixes:
62108743
Test: go/wm-smoke
Test: Open affected application, observe expansion to fullscreen when
nav bar disappears. Rotate to other orientation and observe
expansion to fullscreen.
Change-Id: I874602b6b8686c6ecb05cf7b1a04ec4b700ad3f9
Felipe Leme [Fri, 16 Jun 2017 20:24:32 +0000 (13:24 -0700)]
Trim text from autofillvalue when checking for empty.
Test: VirtualContainerActivityTest#testSaveDialogNotShownWhenBackIsPressed
Fixes:
62667931
Change-Id: I7e673eedd39fff7af89c694d0bfc5a495f14ea26
Tyler Freeman [Fri, 5 May 2017 00:23:35 +0000 (17:23 -0700)]
DO NOT MERGE ANYWHERE Vibrator: Allow priority vibrations in low-power mode for accessibility.
This is mainly for Wear devices that don't have speakers.
Bug:
37543478
Bug:
37257715
Merged-In: Ia6dffa7e528886e7c84390dbb33b44f298c7afa4
Change-Id: Ia6dffa7e528886e7c84390dbb33b44f298c7afa4
Rob Carr [Fri, 16 Jun 2017 20:08:28 +0000 (20:08 +0000)]
Merge "ViewRootImpl: More null checks for performTraversals." into oc-dev
am:
6f87503ed8
Change-Id: I8685f019f33861bffb3b82ef0f494a80a8067d88
Fyodor Kupolov [Fri, 16 Jun 2017 20:05:31 +0000 (20:05 +0000)]
Merge "Always log new user state to event log" into oc-dev
am:
6db4406fbd
Change-Id: I975664bc2943ef95340ce8003a1e78d72c7dc2b5
Rob Carr [Fri, 16 Jun 2017 19:55:07 +0000 (19:55 +0000)]
Merge "ViewRootImpl: More null checks for performTraversals." into oc-dev
Wale Ogunwale [Fri, 16 Jun 2017 19:42:51 +0000 (12:42 -0700)]
Log last home activity and result we tried to start
To help debug ANR.
Bug:
38121026
Test: manual
Change-Id: I484301810d07dcf7330dfdbab7310eac14638b90
Fyodor Kupolov [Fri, 16 Jun 2017 19:51:00 +0000 (19:51 +0000)]
Merge "Always log new user state to event log" into oc-dev
Tony Mantler [Fri, 16 Jun 2017 17:50:00 +0000 (10:50 -0700)]
Disable notification sounds on TV
Bug:
38495875
Test: BuzzBeepBlinkTest
Change-Id: Iffebe2063de3d73c1538a3bbbe9edd2233005ba3
Felipe Leme [Fri, 16 Jun 2017 19:36:07 +0000 (19:36 +0000)]
Merge "Throw IAE when service add null AutofillIds on SaveInfo methods." into oc-dev
am:
6cde68752c
Change-Id: Ia67129efce12d99e566c1987d653fa3956a926db
TreeHugger Robot [Fri, 16 Jun 2017 19:23:37 +0000 (19:23 +0000)]
Merge "Throw IAE when service add null AutofillIds on SaveInfo methods." into oc-dev
Felipe Leme [Fri, 16 Jun 2017 18:49:48 +0000 (11:49 -0700)]
Use an optimized findViewNodeByAutofillId(id) to get just one node.
Session was using findViewNodesByAutofillIds(ids) before, which not only was
not optimal, but error prone (for example, it could return a non-empty array
with an empty value).
Test: CtsAutoFillServiceTestCases pass
Fixes:
62532979
Change-Id: If984f1263cc3f2aac1d1e098687fe02d73c55211
Todd Kennedy [Fri, 16 Jun 2017 18:19:45 +0000 (18:19 +0000)]
Merge "enable/disable dexopt for instant apps remotely" into oc-dev
am:
5d969b9862
Change-Id: Ica29f01779c2bb504d682a2b457f861264cc00b0
TreeHugger Robot [Fri, 16 Jun 2017 18:07:46 +0000 (18:07 +0000)]
Merge "enable/disable dexopt for instant apps remotely" into oc-dev
Winson Chung [Fri, 16 Jun 2017 18:07:29 +0000 (11:07 -0700)]
Fix backwards flag causing crash.
Bug:
62692677
Test: Use an activity options that requires the bitmap copy, ensure
that it does not crash.
Change-Id: I20bdab1b91dfe47f7fe134fd17fe104eb4b27ec1
Fyodor Kupolov [Fri, 16 Jun 2017 17:45:51 +0000 (10:45 -0700)]
Always log new user state to event log
Previously it wasn't logged for stopping users...
Test: manual
Bug:
38121026
Change-Id: I0fc37224ce1043745dfffcc78639f003c35b402e
Winson Chung [Fri, 16 Jun 2017 17:52:40 +0000 (10:52 -0700)]
Fixing issue with PiP aspect ratio being clobbered.
- We should only initialize the initial aspect ratio to the default
aspect ratio once, instead of when the resources are reloaded.
Otherwise, they will be clobbered when the configuration changes.
This is a regression from ag/
2295004.
Bug:
62702553
Test: Set PiP aspect ratio from landscape-locked activity, ensure that
it stays in that aspect ratio after the pip menu dismisses.
Change-Id: Id82f9081c25c7d6482cf7bcf0268fedb9068eabe
Marco Nelissen [Fri, 16 Jun 2017 17:47:09 +0000 (17:47 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours am:
45cd809caa -s ours am:
ce4c7df6a0 -s ours am:
035e2a5c37 -s ours am:
4e5ed845c7 -s ours am:
3cd244e872 -s ours am:
a9bf75f50c -s ours am:
21caf4aee4 -s ours am:
009b3c6aec -s ours
am:
acbd7ba4aa -s ours
Change-Id: I17c0c2beb412135905d48636971ad2099b23fcc7
Marco Nelissen [Fri, 16 Jun 2017 17:38:19 +0000 (17:38 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours am:
45cd809caa -s ours am:
ce4c7df6a0 -s ours am:
035e2a5c37 -s ours am:
4e5ed845c7 -s ours am:
3cd244e872 -s ours am:
a9bf75f50c -s ours am:
21caf4aee4 -s ours
am:
009b3c6aec -s ours
Change-Id: Ied441cf591abb8933a5601c6d36066e0288dfbd7
Marco Nelissen [Fri, 16 Jun 2017 17:24:37 +0000 (17:24 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours am:
45cd809caa -s ours am:
ce4c7df6a0 -s ours am:
035e2a5c37 -s ours am:
4e5ed845c7 -s ours am:
3cd244e872 -s ours am:
a9bf75f50c -s ours
am:
21caf4aee4 -s ours
Change-Id: I25f1f4394b6a5a6b3708df13be41299865e76d52
Marco Nelissen [Fri, 16 Jun 2017 17:12:09 +0000 (17:12 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours am:
45cd809caa -s ours am:
ce4c7df6a0 -s ours am:
035e2a5c37 -s ours am:
4e5ed845c7 -s ours am:
3cd244e872 -s ours
am:
a9bf75f50c -s ours
Change-Id: Ib75388665c3586c09e963917bc54b020aae22dce
Marco Nelissen [Fri, 16 Jun 2017 16:59:57 +0000 (16:59 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours am:
45cd809caa -s ours am:
ce4c7df6a0 -s ours am:
035e2a5c37 -s ours am:
4e5ed845c7 -s ours
am:
3cd244e872 -s ours
Change-Id: I256e1413df73fd577708d5dcb84074e3a8ed61ab
Marco Nelissen [Fri, 16 Jun 2017 16:51:14 +0000 (16:51 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours am:
45cd809caa -s ours am:
ce4c7df6a0 -s ours am:
035e2a5c37 -s ours
am:
4e5ed845c7 -s ours
Change-Id: Iae9f79e4b91c4ef5e844259709e3055607a781b8
Marco Nelissen [Fri, 16 Jun 2017 16:41:20 +0000 (16:41 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours am:
45cd809caa -s ours am:
ce4c7df6a0 -s ours
am:
035e2a5c37 -s ours
Change-Id: Ib6f84a832e27329e0eabf000b89e93145c43a31a
Marco Nelissen [Fri, 16 Jun 2017 16:26:30 +0000 (16:26 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours am:
45cd809caa -s ours
am:
ce4c7df6a0 -s ours
Change-Id: I1fb798481ca56b8c81386792b5642a544aae1c7e
Marco Nelissen [Fri, 16 Jun 2017 16:19:02 +0000 (16:19 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours am:
23118a9b77 -s ours
am:
45cd809caa -s ours
Change-Id: Idd7b2d2536d1c25072794ba228f33fc2459f2aaa
Marco Nelissen [Fri, 16 Jun 2017 16:11:01 +0000 (16:11 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours am:
49fc959be3 -s ours
am:
23118a9b77 -s ours
Change-Id: Id314511cf3e6af08e0f00e84e8945ea404b85c6a
Marco Nelissen [Fri, 16 Jun 2017 16:02:19 +0000 (16:02 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours am:
398d50feeb -s ours
am:
49fc959be3 -s ours
Change-Id: I0eb248911ce1a582a4939e2bd5419659c586128f
Marco Nelissen [Fri, 16 Jun 2017 15:51:48 +0000 (15:51 +0000)]
libmedia_jni.so doesn't need libjhead.so am:
9a4a34afd8 -s ours
am:
398d50feeb -s ours
Change-Id: Ide31821909dde91443cdf650216a6ada7277ce9a
Marco Nelissen [Fri, 16 Jun 2017 15:43:46 +0000 (15:43 +0000)]
libmedia_jni.so doesn't need libjhead.so
am:
9a4a34afd8 -s ours
Change-Id: I557d7e96401b742d916e2eef5aa03949018382c7
Bill Yi [Fri, 16 Jun 2017 15:21:00 +0000 (15:21 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am:
d97c62a1da -s ours
Change-Id: I7414e3510ce29720a40a55c8dbd69c9a34be6d45
TreeHugger Robot [Fri, 16 Jun 2017 15:12:30 +0000 (15:12 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
Neil Fuller [Fri, 16 Jun 2017 15:03:10 +0000 (15:03 +0000)]
Merge "Track movement of some libcore/tzdata files" am:
2ed8b06173
am:
de45dab9ed -s ours
Change-Id: I75073397ee931b4b10c11e369d0081c2b559c91a
Neil Fuller [Fri, 16 Jun 2017 14:51:10 +0000 (14:51 +0000)]
Merge "Track movement of some libcore/tzdata files"
am:
2ed8b06173
Change-Id: Icfe3e6bb1e0d19be462fb47c23cba1cf77c6bf20
Neil Fuller [Fri, 16 Jun 2017 14:37:15 +0000 (14:37 +0000)]
Merge "Track movement of some libcore/tzdata files"
Erik Kline [Fri, 16 Jun 2017 14:10:44 +0000 (14:10 +0000)]
Merge "Fixes for tetheroffload crashes" am:
5ac7a03f9f
am:
eeb0b31afa
Change-Id: I58c467be3482e01f84c9860e2b9d4b03713c1dbd
Erik Kline [Fri, 16 Jun 2017 14:03:10 +0000 (14:03 +0000)]
Merge "Fixes for tetheroffload crashes"
am:
5ac7a03f9f
Change-Id: I08406513912c9fbd383625f10837085abb5c0516
Treehugger Robot [Fri, 16 Jun 2017 13:49:56 +0000 (13:49 +0000)]
Merge "Fixes for tetheroffload crashes"
Android Build Merger (Role) [Fri, 16 Jun 2017 13:38:50 +0000 (13:38 +0000)]
Merge "Merge "Fix two IndexOutOfBoundsException crashes." into oc-dev am:
ded5608f18" into oc-dev-plus-aosp
Julia Reynolds [Fri, 16 Jun 2017 13:36:32 +0000 (13:36 +0000)]
Merge "Fix two IndexOutOfBoundsException crashes." into oc-dev
am:
ded5608f18
Change-Id: I32546aa6f7276a26b4e0419f83253110d83da01d
Julia Reynolds [Fri, 16 Jun 2017 13:30:29 +0000 (13:30 +0000)]
Merge "Fix two IndexOutOfBoundsException crashes." into oc-dev
Bill Yi [Fri, 16 Jun 2017 12:16:09 +0000 (05:16 -0700)]
Import translations. DO NOT MERGE
Change-Id: Icb9547e4d5fb47bfab83f8012358047189787fda
Auto-generated-cl: translation import
Erik Kline [Thu, 15 Jun 2017 09:06:34 +0000 (18:06 +0900)]
Fixes for tetheroffload crashes
Now that we can talk to the HALs (with some out of tree CLs and
"setenforce 0"), several crashes were encountered.
Fixes here include:
- avoid hidl_handle move semantics
- check HIDL method status return value (isOk())
- convert Java short port numbers to ints
- don't pass nulls to HIDL where Strings are required
(limitations in parceling)
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
- "setenforce 0" and start tethering
Bug:
29337859
Bug:
32163131
Merged-In: I5fa930be0c9eda491cf17bd4de9b55ab33672d25
Merged-In: Id1037d22826f4d426bccfa17dce0962c54518d64
Change-Id: I91314440c3a04e5f2502579b5f06dac9f25cf0cd
(cherry picked from commit
1185459c4169891bd7550655218e738c8bf1abe2)
Neil Fuller [Tue, 13 Jun 2017 14:12:17 +0000 (15:12 +0100)]
Track movement of some libcore/tzdata files
Some files in libcore/tzdata are moving to system/timezone
under the package com.android.timezone.distro.
To run tests:
make -j30 FrameworksServicesTests
adb install -r -g "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w com.android.frameworks.servicestests \
"com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"
Test: See above.
Bug:
31008728
Merged-In: I2600dd4bee22a571b9eb7303733591b60d1a8b2a
Change-Id: I2600dd4bee22a571b9eb7303733591b60d1a8b2a
Neil Fuller [Tue, 13 Jun 2017 14:12:17 +0000 (15:12 +0100)]
Track movement of some libcore/tzdata files
Some files in libcore/tzdata are moving to system/timezone
under the package com.android.timezone.distro.
To run tests:
make -j30 FrameworksServicesTests
adb install -r -g "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w com.android.frameworks.servicestests \
"com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"
Test: See above.
Bug:
31008728
Change-Id: I2600dd4bee22a571b9eb7303733591b60d1a8b2a
Shunta Sato [Fri, 16 Jun 2017 01:56:05 +0000 (01:56 +0000)]
Merge "Make RankingHelper$Record.groups thread-safe" into oc-dev
am:
892cd3e1e6
Change-Id: Ie1011f5c27008e50cdf9430669ef1d3ceb1f38e9
TreeHugger Robot [Fri, 16 Jun 2017 01:47:07 +0000 (01:47 +0000)]
Merge "Make RankingHelper$Record.groups thread-safe" into oc-dev
Casey Burkhardt [Wed, 14 Jun 2017 03:12:42 +0000 (20:12 -0700)]
Resolve 3 inconsistencies in accessibility button API
- Unify logic for detecting availability of the accessibility button
- Ensure the initial visibility state is propagated to A11yMS
- Ensure services only receive availability callbacks for changes
Test: Manual, created test accessibility services
targeting specific breakages
Bug:
38345417
Change-Id: I2250b32830cdfc2ecdc1dff7b7130dced2c1db29
Jorim Jaggi [Fri, 16 Jun 2017 01:13:34 +0000 (01:13 +0000)]
Merge "Don't even think about changing keyguard transit" into oc-dev
am:
3e3bb5f762
Change-Id: I5ad8b077de7bbe692ac22e07fd2fb7ccb9264500
TreeHugger Robot [Fri, 16 Jun 2017 01:04:09 +0000 (01:04 +0000)]
Merge "Don't even think about changing keyguard transit" into oc-dev
Dianne Hackborn [Fri, 16 Jun 2017 00:54:21 +0000 (00:54 +0000)]
Merge "Fix issue #
62524613: Background limitation is not working as expected..." into oc-dev
am:
2b20d552bd
Change-Id: Id76ca5b865603af8188c4f85ed77626bd21711c3
TreeHugger Robot [Fri, 16 Jun 2017 00:46:45 +0000 (00:46 +0000)]
Merge "Fix issue #
62524613: Background limitation is not working as expected..." into oc-dev
Jeff Hao [Fri, 16 Jun 2017 00:01:28 +0000 (00:01 +0000)]
Merge "When updating a split app, copy compiled files from base.apk only." into oc-dev
am:
08b3fd966c
Change-Id: Iefd9ddb5703a632438a4ef98bc9ba59e04c35206
Jeff Hao [Thu, 15 Jun 2017 23:53:47 +0000 (23:53 +0000)]
Merge "When updating a split app, copy compiled files from base.apk only." am:
8a945baf4a
am:
47b1f54316
Change-Id: Ie04409229e2f118f1785db46e2c6f3fb0aa7603e
TreeHugger Robot [Thu, 15 Jun 2017 23:52:01 +0000 (23:52 +0000)]
Merge "When updating a split app, copy compiled files from base.apk only." into oc-dev
Jeff Hao [Thu, 15 Jun 2017 23:43:32 +0000 (23:43 +0000)]
Merge "When updating a split app, copy compiled files from base.apk only."
am:
8a945baf4a
Change-Id: I7c2733ac9dfe60ed8a629d5d312b760c53baa76e
Felipe Leme [Thu, 15 Jun 2017 22:29:23 +0000 (15:29 -0700)]
Throw IAE when service add null AutofillIds on SaveInfo methods.
Test: existing CtsAutoFillServiceTestCases pass
Test: manual verification using Contacts app
Test: manual verification adding a CTS test case that crashes the app, but such
test cannot be commit because once the issue is fixed, it crashes the
service (the right way to test this fix is through unit tests against
exceptional conditions, but we don't support those on Autofill yet).
Fixes:
62649290
Change-Id: I8fc01fa929270219cd40035ff02eaf0dda5ecbfa
Treehugger Robot [Thu, 15 Jun 2017 23:32:57 +0000 (23:32 +0000)]
Merge "When updating a split app, copy compiled files from base.apk only."
Todd Kennedy [Thu, 15 Jun 2017 22:17:57 +0000 (22:17 +0000)]
Merge "don't block uninstall of unknown packages" into oc-dev
am:
627fbf8157
Change-Id: I55a0b4906870f08de6b72ef601c151859fc0ccfb
TreeHugger Robot [Thu, 15 Jun 2017 22:05:43 +0000 (22:05 +0000)]
Merge "don't block uninstall of unknown packages" into oc-dev
Winson Chung [Thu, 15 Jun 2017 21:51:52 +0000 (21:51 +0000)]
Merge "Update TV to show custom actions." into oc-dev
am:
1a01d1298f
Change-Id: I841d27de83656a1f8b3bf279401217348569fea7
Eugene Susla [Thu, 15 Jun 2017 21:48:47 +0000 (21:48 +0000)]
Merge "Fix companion uses-permission enforcement" into oc-dev
am:
7a4cf16ce9
Change-Id: Iad09afd86c9e6b3692654083743d5014b978cac8
Dianne Hackborn [Thu, 15 Jun 2017 21:33:16 +0000 (14:33 -0700)]
Fix issue #
62524613: Background limitation is not working as expected...
...for most background services.
Whoops, was only stopping the first service it found!
Test: bit CtsAppTestCases:ActivityManagerProcessStateTest
Change-Id: I42af2872afed8b49fab0f53eff36b62e55d23409
Julia Reynolds [Thu, 15 Jun 2017 19:24:01 +0000 (15:24 -0400)]
Fix two IndexOutOfBoundsException crashes.
Do not remove (sometimes multiple) items from lists
you are iterating over.
Test: runtest systemui-notification
Change-Id: I130cc63ae2f5721e7b434006f4306e0b1eaef77d
Fixes:
62622503
Eino-Ville Talvala [Thu, 15 Jun 2017 21:10:51 +0000 (21:10 +0000)]
Merge "ImageReader: Set BufferItem mGraphicBuffer to null when returning it" into oc-dev
am:
20c2116c1f
Change-Id: I82b234f1fa7ea6b231bacdd99543b68fa8be51c6
Winson Chung [Thu, 15 Jun 2017 21:05:44 +0000 (21:05 +0000)]
Merge "Update TV to show custom actions." into oc-dev
TreeHugger Robot [Thu, 15 Jun 2017 20:57:16 +0000 (20:57 +0000)]
Merge "Fix companion uses-permission enforcement" into oc-dev
TreeHugger Robot [Thu, 15 Jun 2017 20:56:38 +0000 (20:56 +0000)]
Merge "ImageReader: Set BufferItem mGraphicBuffer to null when returning it" into oc-dev
Jorim Jaggi [Thu, 15 Jun 2017 19:10:38 +0000 (15:10 -0400)]
Don't even think about changing keyguard transit
When camera was launched with a lockscreen wallpaper set, the
wallpaper target was launcher in that case, which was also in
mClosingApps because it was first getting shown by keyguard
exit but then immediately hidden by starting the camera,
before the transition started.
Now since lockscreen wasn't the wallpaper target, launcher was
already for some reason, and we changed the transit to
WALLPAPER_CLOSE as a window with the wallpaper target was in
mClosingApps.
Fix this by never ever changing away from keyguard transits.
Test: go/wm-smoke
Test: ActivityManagerTransitionSelectionTests
Test: Set lockscreen wallpaper, set animation duration scale to
0.5, insert a random sleep statement in SystemUI, launch
camera from screen off while in trusted state and camera
wasn't running before.
Fixes:
37677242
Change-Id: I984b66d7f117034f3d55591284dd822b5ec76cbd
Robert Carr [Thu, 15 Jun 2017 19:39:34 +0000 (12:39 -0700)]
ViewRootImpl: More null checks for performTraversals.
Let's first understand how mView could become null. Notice
at the beginning of performTraversals, there is a check that
mView != null, and so it is nulled while we are in the function.
mView is package private and there are only two places which assign
to it, ViewRootImpl#setView and ViewRootImpl#doDie. setView is guarded
by mView == null. But mView was not null (per the check at the beginning
of performTraversals) and so mView is being nulled by doDie().
doDie() only has 3 callpoints:
1. ViewRootImpl#die(). Here though, calling it is guarded by
!mIsInTraversal. !mIsInTraversal is unconditionally set at the
beginning of performTraversals, and so this isn't our caller.
2. ViewRootHandler, handling MSG_DIE. This runs on the same thread
as performTraversal, and so it can't be our nuller.
3. WindowManagerGlobal#addView. This must be our nuller.
We see WindowManagerGlobal#addView will call doDie in the case that
we attempt to add a view which we had previously set to be removed
but deferred removal of. Now we can construct a reasonable sequence
for getting here:
1. requestLayout(). Perform traversals ends up on handler.
2. removeView(). MSG_DIE ends up on handler, View ends up in mDyingViews
3. performTraversals is executed by the handler
4. From a callback initiated by performTraversals (e.g. measure)
the client calls WindowManagerGlobal#addView on the view which
was just removed.
5. We are still in performTraversals so MSG_DIE hasn't been processed
yet. This means that WindowManagerGlobal will perform the doDie
immediately nulling mView.
6. We return to performTraversals and crash.
We can see shortly after the offending call to doDie, a new ViewRoot will be
constructed and so whatever traversal we are doing on the old one doesn't
seem particularly important. It doesn't seem that we can do any better
than letting it fall through without crashing.
Bug:
38421184
Test: go/wm-smoke. Feed to the monkeys.
Change-Id: I55f310a3533175c9df4a82878be5a60fd01b80c1
Ying Xu [Thu, 15 Jun 2017 19:48:07 +0000 (19:48 +0000)]
Merge "Merge "Use java.util.Objects.hashCode to get hashcode." am:
3890689bb2" into stage-aosp-master
am:
fa67fe7a4e
Change-Id: I62d094ce16e65bf613e5e4b9405c87726e175c8f
Ying Xu [Thu, 15 Jun 2017 19:44:45 +0000 (19:44 +0000)]
Merge "Use java.util.Objects.hashCode to get hashcode." am:
3890689bb2
am:
c4f797652c
Change-Id: If7d2093b6ff24bffeeb75a6eb0e91d047b872dad
TreeHugger Robot [Thu, 15 Jun 2017 19:42:47 +0000 (19:42 +0000)]
Merge "resolve merge conflicts of
8c1e6e49f95b to oc-dev-plus-aosp" into oc-dev-plus-aosp
Sudheer Shanka [Thu, 15 Jun 2017 19:34:11 +0000 (19:34 +0000)]
Merge "Use correct timestamps of events for logging." into oc-dev
am:
2ca51820f0
Change-Id: I863f048dd4b95c0f9278fe8aefc432f852b82eae
Sudheer Shanka [Thu, 15 Jun 2017 19:25:02 +0000 (19:25 +0000)]
Merge "Use correct timestamps of events for logging." into oc-dev
Jeff Hao [Tue, 13 Jun 2017 18:09:10 +0000 (11:09 -0700)]
When updating a split app, copy compiled files from base.apk only.
This fixes issues with some splits failing to be recompiled if they
haven't changed, but the dex files they depend on have.
The real fix will be for frameworks to generate the new expected
classpath and check in DexFile.getDexOptNeeded. Then we can undo
this change and copy over all the compiled split files again.
Bug:
62269291
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t android.appsecurity.cts.SplitTests
(cherry-picked from commit
d1235f54d4943a0a3a920013a5875b5193bd0490)
Change-Id: I6e640a966ef3b43054d163326878adebe2329693