OSDN Git Service
TreeHugger Robot [Tue, 17 Jan 2017 19:03:38 +0000 (19:03 +0000)]
Merge "Have better separation between adding, positioning, and reparenting task"
Phil Weaver [Tue, 17 Jan 2017 18:11:18 +0000 (18:11 +0000)]
Merge "Provide hint text to accessibility."
TreeHugger Robot [Tue, 17 Jan 2017 17:49:20 +0000 (17:49 +0000)]
Merge "Properly track fragments from pop operations."
TreeHugger Robot [Tue, 17 Jan 2017 17:48:33 +0000 (17:48 +0000)]
Merge "Fix focus problems when using optimized fragment transactions."
Wale Ogunwale [Fri, 13 Jan 2017 21:26:16 +0000 (13:26 -0800)]
Have better separation between adding, positioning, and reparenting task
Several methods in activity manager and window manager performed adding,
positioning, and reparenting a task operation and sometimes failed silently
when things don't work due the callers using the methods for a particular
operation, but getting a different operation due to programmer error.
This CL better separate the methods responsible for adding, positioning, and
reparenting a task and also fails hard when there is an error.
Test: bit FrameworksServicesTests:com.android.server.wm.TaskWindowContainerControllerTests
Test: Manual testing existing PiP doesn't leave the device in a bad state.
Bug:
34260633
Change-Id: Id64367da30fc6214eb6f95b2bd5e58ed0e953a88
Ben Wagner [Tue, 17 Jan 2017 17:10:03 +0000 (17:10 +0000)]
Merge "Remove SkDevice.h includes."
TreeHugger Robot [Tue, 17 Jan 2017 17:06:56 +0000 (17:06 +0000)]
Merge "Move navigation bar logic to its own class"
Fabien Sanglard [Tue, 17 Jan 2017 16:34:01 +0000 (16:34 +0000)]
Merge "AAPT2: Convert Android.mk to Android.bp"
TreeHugger Robot [Tue, 17 Jan 2017 15:58:21 +0000 (15:58 +0000)]
Merge "Allow removing non-enabled profiles"
Jason Monk [Wed, 11 Jan 2017 14:21:56 +0000 (09:21 -0500)]
Move navigation bar logic to its own class
Start hacking away at PhoneStatusBar by trying to pull out
as much NavigationBar logic as possible.
Test: runtest systemui
Change-Id: I23b904428be31b91f0747fd60c9f6e0dd323eb44
TreeHugger Robot [Tue, 17 Jan 2017 14:01:17 +0000 (14:01 +0000)]
Merge "Readd missing null check"
TreeHugger Robot [Tue, 17 Jan 2017 12:04:47 +0000 (12:04 +0000)]
Merge "Unit tests for wipeData for a managed profile."
TreeHugger Robot [Tue, 17 Jan 2017 11:54:06 +0000 (11:54 +0000)]
Merge "Clarify what a "work lock screen" is"
Nicolas Prevot [Thu, 12 Jan 2017 10:52:50 +0000 (10:52 +0000)]
Unit tests for wipeData for a managed profile.
BUG:
31952368
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest
-w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: If3cf2fee3edf5b16fe169e65337f215544557815
Robin Lee [Tue, 17 Jan 2017 10:28:36 +0000 (10:28 +0000)]
Clarify what a "work lock screen" is
Change-Id: I285bfaac24e2733033e95139e0bf5661516ee2ae
Test: make -j30
Fix:
34263937
Diego Perez [Tue, 17 Jan 2017 10:21:38 +0000 (10:21 +0000)]
Merge changes I7d112dda,I4374faac,I3b773d07,I421b5495
* changes:
Adds test to collect performance metrics
Add Main back to run in buildbot
Refactor tests structure
Update Config.getTime method after the N release
Jorim Jaggi [Tue, 17 Jan 2017 10:15:37 +0000 (11:15 +0100)]
Readd missing null check
Test: adb shell am instrument -w -r
android.test.appsmoke/android.support.test.runner.AndroidJUnitRunner
Change-Id: I8f7c325cf73805ed7137792479f5f348c74f85e4
Fixes:
34333370
Donghyun Cho [Tue, 17 Jan 2017 07:20:23 +0000 (07:20 +0000)]
Merge "CEC: Use isConnected() to check ARC transmission feasibility"
Lorenzo Colitti [Tue, 17 Jan 2017 07:01:18 +0000 (07:01 +0000)]
Merge "Delete dead code." am:
cf59ff79c5 am:
d305a7c894 am:
8cf7169564
am:
bb79257dbf
Change-Id: I97102d587cfc8699fd36f18e4072a5baaa7e2d11
Erik Kline [Tue, 17 Jan 2017 07:00:08 +0000 (07:00 +0000)]
Merge "Move tests added in n-mr2 into new aosp location." am:
5511f7cfc2 am:
ac6e0cc770 am:
b1d4313777
am:
b4f96a3172
Change-Id: I04b0b4d9ddea904a03f66a14f0b6cdfcc4ca752b
Erik Kline [Tue, 17 Jan 2017 06:59:06 +0000 (06:59 +0000)]
Move tests added in n-mr2 into new aosp location. am:
e446acf954 am:
88f3295464 am:
4e9ffd6e91
am:
545049be25
Change-Id: I99dbe36c20f5a33f1607cd2f9c0a66ae3eee1331
Erik Kline [Tue, 17 Jan 2017 06:57:59 +0000 (06:57 +0000)]
Merge "Start of UpstreamNetworkMonitor unittests" am:
f9a28d7ba4 am:
4bb6f5a418 am:
5eba88cf44
am:
abeb9205fe
Change-Id: Ib1f2f813eec62e702455d60946f7d4d789ff9c88
Lorenzo Colitti [Tue, 17 Jan 2017 06:56:53 +0000 (06:56 +0000)]
Merge "Enable mobile data always on." am:
6e4fe6b37f am:
fcfa8c02ad am:
cb44b8d85a
am:
59d48b7310
Change-Id: I8d61c1a22a702cbd23638d46dfad36365b29180c
Tao Bao [Tue, 17 Jan 2017 06:55:46 +0000 (06:55 +0000)]
Merge "RecoverySystem: Fix the issue in installPackage()." am:
3b2fe9f7b9 am:
6bb3a9e6df am:
5c610492c8
am:
448716eec1
Change-Id: Ib36b7e990e7ae545f6b58f7a425c8f9aa19ad9aa
Hisanobu Watanabe [Tue, 17 Jan 2017 06:54:16 +0000 (06:54 +0000)]
Merge "VPN reconnection fails after manually disabling VPN" am:
ba17ea752b am:
92d16f70d7 am:
f9c48fad75
am:
d521b10c5f
Change-Id: I315ce05d3563cb167177e3908709950300591405
Polina Bondarenko [Tue, 17 Jan 2017 06:52:59 +0000 (06:52 +0000)]
Merge "Make TelephonyManager.getImei a system APIs." am:
dc61ad0ad8 am:
e2b306e30e am:
d4c48e911e
am:
55745eca73
Change-Id: I273a1a3ae6d59e52bae6c529a6c0ef43c904b78a
Martijn Coenen [Tue, 17 Jan 2017 06:50:39 +0000 (06:50 +0000)]
Merge "Add nullable parameter to readEmbeddedBuffer." am:
c5e5442acd am:
b529858c0b am:
714c8596ad
am:
098bbc455d
Change-Id: I44b1ed7a8561ee234d6a55a9ed02eb3876c4a7fc
Erik Kline [Tue, 17 Jan 2017 06:49:24 +0000 (06:49 +0000)]
Merge "Extract UpstreamNetworkMonitor to its own file" am:
8df5bd1028 am:
c498f6301e am:
55d1997d51
am:
4c9f111a6d
Change-Id: I8e487ef6b725f0380548fcb4af47e04b12eb5704
Hugo Benichi [Tue, 17 Jan 2017 06:48:05 +0000 (06:48 +0000)]
Merge "ConnectivityServiceTest: some fixes in CallbackInfo" am:
37727596cc am:
036ab4d193 am:
a5e0160f03
am:
2c05563e78 -s ours
Change-Id: I2877281247a78e4d814a1df8bea71fd3c37b1962
Lorenzo Colitti [Tue, 17 Jan 2017 06:08:28 +0000 (06:08 +0000)]
Merge "Delete dead code." am:
cf59ff79c5 am:
d305a7c894
am:
8cf7169564
Change-Id: Ia662fd845fcfb4ade631d8aacf6bcff3c92a1543
Lorenzo Colitti [Tue, 17 Jan 2017 06:02:30 +0000 (06:02 +0000)]
Merge "Delete dead code." am:
cf59ff79c5
am:
d305a7c894
Change-Id: Icdb4d429fcdf4060feab8a25cf67b3a230a35eb7
Lorenzo Colitti [Tue, 17 Jan 2017 05:55:50 +0000 (05:55 +0000)]
Merge "Delete dead code."
am:
cf59ff79c5
Change-Id: Ifbb591a7bbed9c2a8f83fe321c3d12f08e096fe3
Treehugger Robot [Tue, 17 Jan 2017 05:44:57 +0000 (05:44 +0000)]
Merge "Delete dead code."
Erik Kline [Tue, 17 Jan 2017 05:20:52 +0000 (05:20 +0000)]
Merge "Move tests added in n-mr2 into new aosp location." am:
5511f7cfc2 am:
ac6e0cc770
am:
b1d4313777
Change-Id: I62688cacb486f55bb48ea55b14e4e3416493ea30
Erik Kline [Tue, 17 Jan 2017 05:19:56 +0000 (05:19 +0000)]
Move tests added in n-mr2 into new aosp location. am:
e446acf954 am:
88f3295464
am:
4e9ffd6e91
Change-Id: I3b4f9303c5d4495e4b8556b1db6d5cad5543a10c
Erik Kline [Tue, 17 Jan 2017 05:09:33 +0000 (05:09 +0000)]
Merge "Move tests added in n-mr2 into new aosp location." am:
5511f7cfc2
am:
ac6e0cc770
Change-Id: I9f6c96c47ae63e4f812427317592e9994b1d72fd
Erik Kline [Tue, 17 Jan 2017 05:08:24 +0000 (05:08 +0000)]
Move tests added in n-mr2 into new aosp location. am:
e446acf954
am:
88f3295464
Change-Id: Iaf574661aa658df1285f69bfad62285bd531206a
Erik Kline [Tue, 17 Jan 2017 05:01:52 +0000 (05:01 +0000)]
Merge "Move tests added in n-mr2 into new aosp location."
am:
5511f7cfc2
Change-Id: I30161c31529fc0c5254353f4329cbd5165fcbd82
Erik Kline [Tue, 17 Jan 2017 05:01:49 +0000 (05:01 +0000)]
Move tests added in n-mr2 into new aosp location.
am:
e446acf954
Change-Id: I69c76aaf4c8d03ce4b33d9c16c47f2c83141e255
TreeHugger Robot [Tue, 17 Jan 2017 05:01:36 +0000 (05:01 +0000)]
Merge "Propagate revoked permissions in permission review mode"
Erik Kline [Tue, 17 Jan 2017 04:56:55 +0000 (04:56 +0000)]
Merge "Start of UpstreamNetworkMonitor unittests" am:
f9a28d7ba4 am:
4bb6f5a418
am:
5eba88cf44
Change-Id: I67c8df63d390ac77e626286a34e82b3bbc82c29e
Erik Kline [Tue, 17 Jan 2017 04:51:48 +0000 (04:51 +0000)]
Merge "Start of UpstreamNetworkMonitor unittests" am:
f9a28d7ba4
am:
4bb6f5a418
Change-Id: I6a9106fd4fef85451104593ab8c37d4539cb9223
Treehugger Robot [Tue, 17 Jan 2017 04:49:07 +0000 (04:49 +0000)]
Merge "Move tests added in n-mr2 into new aosp location."
Erik Kline [Tue, 17 Jan 2017 04:46:17 +0000 (04:46 +0000)]
Merge "Start of UpstreamNetworkMonitor unittests"
am:
f9a28d7ba4
Change-Id: I2dade79427530a04c8e222e4ab2bf26e79ddd578
Treehugger Robot [Tue, 17 Jan 2017 04:38:21 +0000 (04:38 +0000)]
Merge "Start of UpstreamNetworkMonitor unittests"
Lorenzo Colitti [Tue, 17 Jan 2017 04:36:21 +0000 (04:36 +0000)]
Merge "Enable mobile data always on." am:
6e4fe6b37f am:
fcfa8c02ad
am:
cb44b8d85a
Change-Id: Iaf4f84f53be65800c95a4f1b456a0d2d142c8c87
Lorenzo Colitti [Tue, 17 Jan 2017 04:31:00 +0000 (04:31 +0000)]
Merge "Enable mobile data always on." am:
6e4fe6b37f
am:
fcfa8c02ad
Change-Id: Ie2b6887021585a2e7246d66603dadc8d0fa1bd94
Lorenzo Colitti [Tue, 17 Jan 2017 04:25:44 +0000 (04:25 +0000)]
Merge "Enable mobile data always on."
am:
6e4fe6b37f
Change-Id: I9758da5105b9a8eac66aaaf9e4a1658685a6a3f7
Treehugger Robot [Tue, 17 Jan 2017 04:15:33 +0000 (04:15 +0000)]
Merge "Enable mobile data always on."
TreeHugger Robot [Tue, 17 Jan 2017 03:49:41 +0000 (03:49 +0000)]
Merge "Only persist category hint when actually mutated."
Svet Ganov [Tue, 17 Jan 2017 03:22:37 +0000 (19:22 -0800)]
Propagate revoked permissions in permission review mode
In permission review mode we represent install permissions for legacy
apps as constantly granted runtime ones since we need to keep per
user flags associated with a permission. We were not propagating
a revoked permission for a legacy app when the later is upgraded to
a modern app when permission review is enabled.
Test: CTS test passes and manual testing worked fine
Change-Id: I32b8ffee89cc034661f8eb5a172dbe2349ea4a18
Ashutosh Joshi [Tue, 17 Jan 2017 03:25:00 +0000 (03:25 +0000)]
Merge "Fix documentaiton formatting errors."
Jeff Sharkey [Tue, 17 Jan 2017 02:19:27 +0000 (19:19 -0700)]
Only persist category hint when actually mutated.
Otherwise we're churning disk.
Test: builds, boots
Bug:
34328134
Change-Id: Iabc485b9ce3644e914240b5de5bcea98d939b2cb
Erik Kline [Mon, 16 Jan 2017 07:27:22 +0000 (16:27 +0900)]
Start of UpstreamNetworkMonitor unittests
Test only the ConnectivityManager request and callback registering
and releasing. Testing behaviour triggered by activating these
callbacks will be in a separate change.
Test: runtest frameworks-net
Bug:
32163131
Change-Id: Ibfe66bbe2e61d81e8f13ac3b98e000d0d4534efa
Lorenzo Colitti [Tue, 17 Jan 2017 02:07:10 +0000 (11:07 +0900)]
Enable mobile data always on.
Test: has been on in fishfood several months.
Bug:
23113288
Change-Id: I73ba432f619d28dab78e2d865d56aa7e7c5a67f9
Jesse Hall [Tue, 17 Jan 2017 01:58:39 +0000 (01:58 +0000)]
Create GraphicsEnvironment for communicating with driver loaders am:
79bf392dc6 -s ours
am:
f389983277 -s ours
Change-Id: I8000b70ea5acbfc5c4b0d3c07b97734a2de3696f
Jesse Hall [Tue, 17 Jan 2017 01:56:59 +0000 (01:56 +0000)]
Create GraphicsEnvironment for communicating with driver loaders
am:
17ee3aac28
Change-Id: I7ff1c3b646a7b71595e7daac90caefcc55020727
Jesse Hall [Tue, 17 Jan 2017 01:55:50 +0000 (01:55 +0000)]
Merge "Stop preloading EGL/GLES in Zygote" into nyc-mr2-dev am:
a959ccbc33 -s ours
am:
5274672467 -s ours
Change-Id: I37c8b54bc4cfbb6c9a823002a0052ea1ba84e089
Jesse Hall [Tue, 17 Jan 2017 01:52:07 +0000 (01:52 +0000)]
Stop preloading EGL/GLES in Zygote am:
93f630e1c3
am:
4f6a5b7c43 -s ours
Change-Id: Iad1675753bf2c5034b64e2fe1b6db858b4cd0ea9
Wei Liu [Tue, 17 Jan 2017 01:44:52 +0000 (01:44 +0000)]
Merge "Merge "Add WearCellularMediatorService to the system server." into cw-f-dev am:
7a6c54128a am:
692089376b" into nyc-mr2-dev-plus-aosp
am:
9b02272ce5
Change-Id: I8027b976059f8a653ad62eef5d5ef13500999e81
Wei Liu [Tue, 17 Jan 2017 01:44:41 +0000 (01:44 +0000)]
Merge "Add WearCellularMediatorService to the system server." into cw-f-dev am:
7a6c54128a am:
692089376b
am:
fc1eb260ea
Change-Id: I206437deb7870706912acdfe7ddfe3e108ba3020
Wei Liu [Tue, 17 Jan 2017 01:43:30 +0000 (01:43 +0000)]
Merge "Add WearCellularMediatorService to the system server." into cw-f-dev am:
7a6c54128a am:
8ca47c7746
am:
d2ee16096f
Change-Id: I9a3747bca5ea4eff8a8c7d81cb98c41f8a34e983
Wei Liu [Tue, 17 Jan 2017 01:41:13 +0000 (01:41 +0000)]
Merge "Add WearCellularMediatorService to the system server. am:
d741f3de81 am:
e0d2c77a50" into nyc-mr2-dev-plus-aosp
am:
6a5bf5ef71
Change-Id: I72d10becb6deecc259dbb888c59f3449f0a1cf22
Wei Liu [Tue, 17 Jan 2017 01:39:12 +0000 (01:39 +0000)]
Add WearCellularMediatorService to the system server. am:
d741f3de81 am:
e0d2c77a50
am:
bd538c2e96
Change-Id: I7dbc21fed9cd72b13e02d50dc63993f6ba4656ff
TreeHugger Robot [Tue, 17 Jan 2017 01:35:29 +0000 (01:35 +0000)]
Merge "resolve merge conflicts of
989b267015b9 to master"
Zach Johnson [Mon, 16 Jan 2017 23:15:25 +0000 (15:15 -0800)]
resolve merge conflicts of
989b267015b9 to master
Change-Id: I0c967e85eb73664e236c0b7286ed14facdb327fa
TreeHugger Robot [Mon, 16 Jan 2017 23:09:43 +0000 (23:09 +0000)]
Merge "Add supportsDismissingSelfWindow attribute of IME"
Kang Li [Mon, 16 Jan 2017 21:36:06 +0000 (21:36 +0000)]
Merge "Adds annotations to Intent, and enables ChooserActivity to rank apps according to annotations."
Tao Bao [Mon, 16 Jan 2017 18:36:43 +0000 (18:36 +0000)]
Merge "RecoverySystem: Fix the issue in installPackage()." am:
3b2fe9f7b9 am:
6bb3a9e6df
am:
5c610492c8
Change-Id: Ic9fa3bb8c7d4c04fa6e55b600cd7cccc9b186db1
Tao Bao [Mon, 16 Jan 2017 18:32:22 +0000 (18:32 +0000)]
Merge "RecoverySystem: Fix the issue in installPackage()." am:
3b2fe9f7b9
am:
6bb3a9e6df
Change-Id: I9919e1a37853290dc052a21267cea57ae2a0aacf
Tao Bao [Mon, 16 Jan 2017 18:27:39 +0000 (18:27 +0000)]
Merge "RecoverySystem: Fix the issue in installPackage()."
am:
3b2fe9f7b9
Change-Id: I2ac84a2204b78e422d33095a3637e379031eec04
TreeHugger Robot [Mon, 16 Jan 2017 18:26:20 +0000 (18:26 +0000)]
Merge "Use screenshotToBuffer"
Hisanobu Watanabe [Mon, 16 Jan 2017 18:22:27 +0000 (18:22 +0000)]
Merge "VPN reconnection fails after manually disabling VPN" am:
ba17ea752b am:
92d16f70d7
am:
f9c48fad75
Change-Id: If2b80355bc3ebee6723a1f9b49bce1d267f0a085
Tao Bao [Mon, 16 Jan 2017 18:19:25 +0000 (18:19 +0000)]
Merge "RecoverySystem: Fix the issue in installPackage()."
Diego Perez [Wed, 14 Dec 2016 17:03:15 +0000 (17:03 +0000)]
Adds test to collect performance metrics
Test: Adds performance tests
Change-Id: I7d112ddad4efb2c1c84ac177d230225cc031f7f3
Diego Perez [Thu, 15 Dec 2016 17:19:46 +0000 (17:19 +0000)]
Add Main back to run in buildbot
Main is now a Suite that contains all the test needed for CI
Test: No new tests needed
Change-Id: I4374faacfa38f00d404151276580de636984638c
Diego Perez [Tue, 13 Dec 2016 18:10:03 +0000 (18:10 +0000)]
Refactor tests structure
Move all the render test utility methods to a separate class and leave
only tests in RenderTests class (old Main).
The idea is to improve the organization to allow to create a set of
performance tests and also to allow the tests to grow more structured.
Test: Just moved tests around
Change-Id: I3b773d0745700dd2a52f937b9b668a2d374b8686
Jerome Gaillard [Tue, 15 Nov 2016 13:54:49 +0000 (13:54 +0000)]
Update Config.getTime method after the N release
And update the relevant golden files as the time in the status bar
is changed.
Test: Run layoutlib tests
Change-Id: I421b5495291f2d62091366bc0c066e77e0f3e107
Hisanobu Watanabe [Mon, 16 Jan 2017 18:11:33 +0000 (18:11 +0000)]
Merge "VPN reconnection fails after manually disabling VPN" am:
ba17ea752b
am:
92d16f70d7
Change-Id: I505d89ecfd486c1a1105bb2fe847d891ed540b6d
Polina Bondarenko [Mon, 16 Jan 2017 18:10:40 +0000 (18:10 +0000)]
Merge "Make TelephonyManager.getImei a system APIs." am:
dc61ad0ad8 am:
e2b306e30e
am:
d4c48e911e
Change-Id: Iac1e5f257d6a8263c78af8d9199848244fe6d93c
TreeHugger Robot [Mon, 16 Jan 2017 18:09:47 +0000 (18:09 +0000)]
Merge "Make device wide DO features available if all users affiliated"
Diego Perez [Mon, 16 Jan 2017 18:05:48 +0000 (18:05 +0000)]
Merge changes Ia7a8a27f,I0646aab6,Ia324f18d,I38c6c6df,Ic9214929, ...
* changes:
Add missing attributes to old themes
Fix plurals support in layoutlib
Do not log errors while loading string arrays
Hack to deal with android:pointerIcon in layoutlib
Force animateFirstValue to false
Avoid passing antialias when measuring scaled text
Catch all exceptions in NativeAllocationRegistry free
Polina Bondarenko [Mon, 16 Jan 2017 18:02:32 +0000 (18:02 +0000)]
Merge "Make TelephonyManager.getImei a system APIs." am:
dc61ad0ad8
am:
e2b306e30e
Change-Id: Ida4807876ce741a211189e41e92383404b6a3a3c
Hisanobu Watanabe [Mon, 16 Jan 2017 17:59:55 +0000 (17:59 +0000)]
Merge "VPN reconnection fails after manually disabling VPN"
am:
ba17ea752b
Change-Id: I8ff02f8d1fe4989cb92949ab85aade598c8cff00
Polina Bondarenko [Mon, 16 Jan 2017 17:57:04 +0000 (17:57 +0000)]
Merge "Make TelephonyManager.getImei a system APIs."
am:
dc61ad0ad8
Change-Id: Iaffe54fdf263eaf1cc248ceb0dad9b8787861475
Treehugger Robot [Mon, 16 Jan 2017 17:51:04 +0000 (17:51 +0000)]
Merge "VPN reconnection fails after manually disabling VPN"
Treehugger Robot [Mon, 16 Jan 2017 17:49:58 +0000 (17:49 +0000)]
Merge "Make TelephonyManager.getImei a system APIs."
Jerome Gaillard [Mon, 16 Jan 2017 17:40:12 +0000 (17:40 +0000)]
Merge "Call layout when doing an only-measure pass"
Jorim Jaggi [Wed, 11 Jan 2017 23:44:33 +0000 (00:44 +0100)]
Use screenshotToBuffer
To avoid copying buffers. Yay!
Test: Open app, go to recents, make sure screenshot is showing.
Bug:
31339431
Change-Id: I62736b8ba9ca45155d602286de8280304160bbd6
Diego Perez [Fri, 9 Dec 2016 13:59:57 +0000 (13:59 +0000)]
Add missing attributes to old themes
Because we always use the latest framework code, some resources might
fail to resolve when using old themes (they haven't been backported).
Since this is an artifact caused by us using always the latest code, we
check for some of those values and replace them here.
Bug: http://b.android.com/225105
Test: Included new testActivityOnOldTheme
Change-Id: Ia7a8a27fb81fe0b4a1e0c9610a2033a87720864d
Diego Perez [Mon, 5 Dec 2016 17:47:23 +0000 (17:47 +0000)]
Fix plurals support in layoutlib
Bug: http://b.android.com/213000
Test: Manually tested on Android Studio. Adding tests for this specific
case requires bringing a new sdk-common prebuilt to the the maintenance
branch so it's not really practical.
Change-Id: I0646aab656d5d5769355c6cc026e877b8784d173
Diego Perez [Fri, 2 Dec 2016 11:16:26 +0000 (11:16 +0000)]
Do not log errors while loading string arrays
When arrays contain references, if we can not resolve them, just return
the reference string. This matches the behaviour of resource resolution
in BridgeTypeArray.
Bug: http://b.android.com/228620
Test: Updates existing tests
Change-Id: Ia324f18d9128b8abf2ba676a83d4b424914e2c88
Jerome Gaillard [Fri, 25 Nov 2016 17:28:05 +0000 (17:28 +0000)]
Hack to deal with android:pointerIcon in layoutlib
android:pointerIcon is a View attribute that can be an enum or a
reference. Layoutlib cannot easily deal with the way that is handled
in the platform. As the property would not have any impact on the
result in layoutlib, that property is bypassed.
Test: Main.testAllWidgets
Change-Id: I38c6c6df45c1836d44b4f80245a453fb432ea251
Diego Perez [Thu, 10 Nov 2016 16:29:22 +0000 (16:29 +0000)]
Force animateFirstValue to false
This CL forces both animateFirstValue and animateLayoutChanges to false
in themes when running layoutlib. This helps with the rendering of some
widgets so they do not rely on animations.
Test: Test as part of testActivity
Change-Id: Ic9214929d3582bc3e0a196d198cc4fb36347c782
Diego Perez [Tue, 2 Aug 2016 12:48:08 +0000 (13:48 +0100)]
Avoid passing antialias when measuring scaled text
This is a workaround for a JDK bug that crashes the VM when
measuring scaled antialsed text.
This disables antialiasing when measuring scaled text in a specific
version of the VM.
Bug: http://b.android.com/211659
Change-Id: I637ed03cf827b65c993550998ac55d42869237ad
Diego Perez [Thu, 21 Jul 2016 16:54:42 +0000 (17:54 +0100)]
Catch all exceptions in NativeAllocationRegistry free
The NativeAllocationRegistry delegate free calls might run in the
context of the finalizer thread. If a crash happens during the free
call, it might bring down the finalizer thread and the VM.
Bug: http://b.android.com/213927
Change-Id: I8d4b8ab5b8d0532aad46f27d039a943894e021a0
Jerome Gaillard [Mon, 16 Jan 2017 15:16:20 +0000 (15:16 +0000)]
Delete Canvas_Delegate.nClipRegion after Change I71f9bd68
Test: layoutlib tests
Change-Id: I9c04fa258cdaf06972b205e5dd5d3b505e5bea17
Benjamin Franz [Fri, 6 Jan 2017 14:16:41 +0000 (14:16 +0000)]
Allow removing non-enabled profiles
Bug:
31668514
Test: runtest -c
com.android.server.pm.UserManagerServiceCreateProfileTest
frameworks-services
Change-Id: If8db670d6f253a44b2aa91df97349dd0ffd85f02
Martijn Coenen [Mon, 16 Jan 2017 15:06:01 +0000 (15:06 +0000)]
Merge "Add nullable parameter to readEmbeddedBuffer." am:
c5e5442acd am:
b529858c0b
am:
714c8596ad
Change-Id: I792c4ac6a20e4665b152a5ebea1227b549cca7ef
Martijn Coenen [Mon, 16 Jan 2017 15:01:31 +0000 (15:01 +0000)]
Merge "Add nullable parameter to readEmbeddedBuffer." am:
c5e5442acd
am:
b529858c0b
Change-Id: I4a04a1e766551d0c15e3b4c14226363c97daf032