OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Move tests added in n-mr2 into new aosp location." am: 5511f7cfc2 am: ac6e0cc7...
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

7 years agoMove tests added in n-mr2 into new aosp location. am: e446acf954 am: 88f3295464 am...
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

7 years agoMerge "Start of UpstreamNetworkMonitor unittests" am: f9a28d7ba4 am: 4bb6f5a418 am...
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

7 years agoMerge "Enable mobile data always on." am: 6e4fe6b37f am: fcfa8c02ad am: cb44b8d85a
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

7 years agoMerge "RecoverySystem: Fix the issue in installPackage()." am: 3b2fe9f7b9 am: 6bb3a9e...
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

7 years agoMerge "VPN reconnection fails after manually disabling VPN" am: ba17ea752b am: 92d16f...
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

7 years agoMerge "Make TelephonyManager.getImei a system APIs." am: dc61ad0ad8 am: e2b306e30e...
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

7 years agoMerge "Add nullable parameter to readEmbeddedBuffer." am: c5e5442acd am: b529858c0b...
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

7 years agoMerge "Extract UpstreamNetworkMonitor to its own file" am: 8df5bd1028 am: c498f6301e...
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

7 years agoMerge "ConnectivityServiceTest: some fixes in CallbackInfo" am: 37727596cc am: 036ab4...
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

7 years agoMerge "Move tests added in n-mr2 into new aosp location." am: 5511f7cfc2 am: ac6e0cc770
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

7 years agoMove tests added in n-mr2 into new aosp location. am: e446acf954 am: 88f3295464
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

7 years agoMerge "Move tests added in n-mr2 into new aosp location." am: 5511f7cfc2
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

7 years agoMove tests added in n-mr2 into new aosp location. am: e446acf954
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

7 years agoMerge "Move tests added in n-mr2 into new aosp location."
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

7 years agoMove tests added in n-mr2 into new aosp location.
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

7 years agoMerge "Propagate revoked permissions in permission review mode"
TreeHugger Robot [Tue, 17 Jan 2017 05:01:36 +0000 (05:01 +0000)]
Merge "Propagate revoked permissions in permission review mode"

7 years agoMerge "Start of UpstreamNetworkMonitor unittests" am: f9a28d7ba4 am: 4bb6f5a418
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

7 years agoMerge "Start of UpstreamNetworkMonitor unittests" am: f9a28d7ba4
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

7 years agoMerge "Move tests added in n-mr2 into new aosp location."
Treehugger Robot [Tue, 17 Jan 2017 04:49:07 +0000 (04:49 +0000)]
Merge "Move tests added in n-mr2 into new aosp location."

7 years agoMerge "Start of UpstreamNetworkMonitor unittests"
Erik Kline [Tue, 17 Jan 2017 04:46:17 +0000 (04:46 +0000)]
Merge "Start of UpstreamNetworkMonitor unittests"
am: f9a28d7ba4

Change-Id: I2dade79427530a04c8e222e4ab2bf26e79ddd578

7 years agoMerge "Start of UpstreamNetworkMonitor unittests"
Treehugger Robot [Tue, 17 Jan 2017 04:38:21 +0000 (04:38 +0000)]
Merge "Start of UpstreamNetworkMonitor unittests"

7 years agoMerge "Enable mobile data always on." am: 6e4fe6b37f am: fcfa8c02ad
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

7 years agoMerge "Enable mobile data always on." am: 6e4fe6b37f
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

7 years agoMerge "Enable mobile data always on."
Lorenzo Colitti [Tue, 17 Jan 2017 04:25:44 +0000 (04:25 +0000)]
Merge "Enable mobile data always on."
am: 6e4fe6b37f

Change-Id: I9758da5105b9a8eac66aaaf9e4a1658685a6a3f7

7 years agoMerge "Enable mobile data always on."
Treehugger Robot [Tue, 17 Jan 2017 04:15:33 +0000 (04:15 +0000)]
Merge "Enable mobile data always on."

7 years agoMerge "Only persist category hint when actually mutated."
TreeHugger Robot [Tue, 17 Jan 2017 03:49:41 +0000 (03:49 +0000)]
Merge "Only persist category hint when actually mutated."

7 years agoPropagate revoked permissions in permission review mode
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

7 years agoMerge "Fix documentaiton formatting errors."
Ashutosh Joshi [Tue, 17 Jan 2017 03:25:00 +0000 (03:25 +0000)]
Merge "Fix documentaiton formatting errors."

7 years agoOnly persist category hint when actually mutated.
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

7 years agoStart of UpstreamNetworkMonitor unittests
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

7 years agoEnable mobile data always on.
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

7 years agoCreate GraphicsEnvironment for communicating with driver loaders am: 79bf392dc6 ...
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

7 years agoCreate GraphicsEnvironment for communicating with driver loaders
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

7 years agoMerge "Stop preloading EGL/GLES in Zygote" into nyc-mr2-dev am: a959ccbc33 -s ours
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

7 years agoStop preloading EGL/GLES in Zygote am: 93f630e1c3
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

7 years agoMerge "Merge "Add WearCellularMediatorService to the system server." into cw-f-dev...
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

7 years agoMerge "Add WearCellularMediatorService to the system server." into cw-f-dev am: 7a6c5...
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

7 years agoMerge "Add WearCellularMediatorService to the system server." into cw-f-dev am: 7a6c5...
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

7 years agoMerge "Add WearCellularMediatorService to the system server. am: d741f3de81 am: e0d2c...
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

7 years agoAdd WearCellularMediatorService to the system server. am: d741f3de81 am: e0d2c77a50
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

7 years agoMerge "resolve merge conflicts of 989b267015b9 to master"
TreeHugger Robot [Tue, 17 Jan 2017 01:35:29 +0000 (01:35 +0000)]
Merge "resolve merge conflicts of 989b267015b9 to master"

7 years agoresolve 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

7 years agoMerge "Add supportsDismissingSelfWindow attribute of IME"
TreeHugger Robot [Mon, 16 Jan 2017 23:09:43 +0000 (23:09 +0000)]
Merge "Add supportsDismissingSelfWindow attribute of IME"

7 years agoMerge "Adds annotations to Intent, and enables ChooserActivity to rank apps according...
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."

7 years agoMerge "RecoverySystem: Fix the issue in installPackage()." am: 3b2fe9f7b9 am: 6bb3a9e6df
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

7 years agoMerge "RecoverySystem: Fix the issue in installPackage()." am: 3b2fe9f7b9
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

7 years agoMerge "RecoverySystem: Fix the issue in installPackage()."
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

7 years agoMerge "Use screenshotToBuffer"
TreeHugger Robot [Mon, 16 Jan 2017 18:26:20 +0000 (18:26 +0000)]
Merge "Use screenshotToBuffer"

7 years agoMerge "VPN reconnection fails after manually disabling VPN" am: ba17ea752b am: 92d16f70d7
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

7 years agoMerge "RecoverySystem: Fix the issue in installPackage()."
Tao Bao [Mon, 16 Jan 2017 18:19:25 +0000 (18:19 +0000)]
Merge "RecoverySystem: Fix the issue in installPackage()."

7 years agoMerge "VPN reconnection fails after manually disabling VPN" am: ba17ea752b
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

7 years agoMerge "Make TelephonyManager.getImei a system APIs." am: dc61ad0ad8 am: e2b306e30e
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

7 years agoMerge "Make device wide DO features available if all users affiliated"
TreeHugger Robot [Mon, 16 Jan 2017 18:09:47 +0000 (18:09 +0000)]
Merge "Make device wide DO features available if all users affiliated"

7 years agoMerge changes Ia7a8a27f,I0646aab6,Ia324f18d,I38c6c6df,Ic9214929, ...
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

7 years agoMerge "Make TelephonyManager.getImei a system APIs." am: dc61ad0ad8
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

7 years agoMerge "VPN reconnection fails after manually disabling VPN"
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

7 years agoMerge "Make TelephonyManager.getImei a system APIs."
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

7 years agoMerge "VPN reconnection fails after manually disabling VPN"
Treehugger Robot [Mon, 16 Jan 2017 17:51:04 +0000 (17:51 +0000)]
Merge "VPN reconnection fails after manually disabling VPN"

7 years agoMerge "Make TelephonyManager.getImei a system APIs."
Treehugger Robot [Mon, 16 Jan 2017 17:49:58 +0000 (17:49 +0000)]
Merge "Make TelephonyManager.getImei a system APIs."

7 years agoMerge "Call layout when doing an only-measure pass"
Jerome Gaillard [Mon, 16 Jan 2017 17:40:12 +0000 (17:40 +0000)]
Merge "Call layout when doing an only-measure pass"

7 years agoUse screenshotToBuffer
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

7 years agoAdd missing attributes to old themes
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

7 years agoFix plurals support in layoutlib
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

7 years agoDo not log errors while loading string arrays
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

7 years agoHack to deal with android:pointerIcon in layoutlib
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

7 years agoForce animateFirstValue to false
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

7 years agoAvoid passing antialias when measuring scaled text
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

7 years agoCatch all exceptions in NativeAllocationRegistry free
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

7 years agoDelete Canvas_Delegate.nClipRegion after Change I71f9bd68
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

7 years agoMerge "Add nullable parameter to readEmbeddedBuffer." am: c5e5442acd am: b529858c0b
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

7 years agoMerge "Add nullable parameter to readEmbeddedBuffer." am: c5e5442acd
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

7 years agoMerge "Add nullable parameter to readEmbeddedBuffer."
Martijn Coenen [Mon, 16 Jan 2017 14:56:57 +0000 (14:56 +0000)]
Merge "Add nullable parameter to readEmbeddedBuffer."
am: c5e5442acd

Change-Id: Ic5d73aba5da7bd74522a46d710465ebb67030d01

7 years agoMerge "Add nullable parameter to readEmbeddedBuffer."
Martijn Coenen [Mon, 16 Jan 2017 14:48:09 +0000 (14:48 +0000)]
Merge "Add nullable parameter to readEmbeddedBuffer."

7 years agoCall layout when doing an only-measure pass
Diego Perez [Mon, 21 Nov 2016 15:10:34 +0000 (15:10 +0000)]
Call layout when doing an only-measure pass

Test: Modified testScrolled to check the only-measure behaviour
Change-Id: Ie86c329e0f7d9135d53274977e24f431f5edc201
(cherry picked from commit 2d657bc344717281e470430b05adaa32fbd0af00)

7 years agoMerge "Update layoutlib following Change Id10ca97f on FontFamily"
Jerome Gaillard [Mon, 16 Jan 2017 14:24:51 +0000 (14:24 +0000)]
Merge "Update layoutlib following Change Id10ca97f on FontFamily"

7 years agoMerge "Add measure only call to layoutlib"
Jerome Gaillard [Mon, 16 Jan 2017 14:24:09 +0000 (14:24 +0000)]
Merge "Add measure only call to layoutlib"

7 years agoMerge "Create a mock Display Mode"
Jerome Gaillard [Mon, 16 Jan 2017 14:20:46 +0000 (14:20 +0000)]
Merge "Create a mock Display Mode"

7 years agoMerge "PackageParser: Disable package cache on "eng" builds."
Narayan Kamath [Mon, 16 Jan 2017 13:28:44 +0000 (13:28 +0000)]
Merge "PackageParser: Disable package cache on "eng" builds."

7 years agoMake device wide DO features available if all users affiliated
Esteban Talavera [Thu, 15 Dec 2016 08:51:45 +0000 (08:51 +0000)]
Make device wide DO features available if all users affiliated

Currently, those features are available on single user devices only
(since they collect privacy sensitive data device wide). Now making
them available as long as all users are affiliated.

It'll take a certain amount of time between user creation and the DPC
of that new user setting the appropriate affiliation ids. The DO won't
be able to access the logs during that time (and won't get any "logs
ready" callback). Once the affiliation ids are set, if they match,
logs become available again - this includes logs collected while the
user was being setup. Some logs might be lost though if the amount of
data exceeds the internal limit.

Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services

Test: cts-tradefed run cts -a armeabi-v7a --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest

Bug: 32326223

Change-Id: Idfe881dd6497d3ad2bead10addfd37b98b8a6e2b

7 years agoMerge "IP connectivity metrics: fix tests"
Hugo Benichi [Mon, 16 Jan 2017 08:28:43 +0000 (08:28 +0000)]
Merge "IP connectivity metrics: fix tests"

7 years agoMove tests added in n-mr2 into new aosp location.
Erik Kline [Fri, 16 Dec 2016 07:19:34 +0000 (16:19 +0900)]
Move tests added in n-mr2 into new aosp location.

Test: runtest frameworks-net
Change-Id: I3ca0d7e01a3f31be05d4a1a72a95c7e37a0a567e

7 years agoStricter NetworkNotificationManagerTest
Hugo Benichi [Tue, 20 Dec 2016 00:57:43 +0000 (09:57 +0900)]
Stricter NetworkNotificationManagerTest

This patch changes NetworkNotificationManagerTest to populate extraInfo
of NetworkInfo in order to catch regressions in malformed format Strings
of log statements in NetworkNotificationManager.

Test: verified that the test fails when reintroducing the format String
bug.
Bug: 33737715

(cherry picked from commit a865790a5b30a2d5e29e3d443e7b02a5d8aa01a4)

Change-Id: Ic2f23e860a17cb83b90edcfd2ba365134cacfe36

7 years agoMerge "Extract UpstreamNetworkMonitor to its own file" am: 8df5bd1028 am: c498f6301e
Erik Kline [Mon, 16 Jan 2017 05:55:05 +0000 (05:55 +0000)]
Merge "Extract UpstreamNetworkMonitor to its own file" am: 8df5bd1028 am: c498f6301e
am: 55d1997d51

Change-Id: Id51d28940e7ba95ee3896404d58ec2972f0e2ba7

7 years agoMerge "Extract UpstreamNetworkMonitor to its own file" am: 8df5bd1028
Erik Kline [Mon, 16 Jan 2017 05:51:03 +0000 (05:51 +0000)]
Merge "Extract UpstreamNetworkMonitor to its own file" am: 8df5bd1028
am: c498f6301e

Change-Id: I79421b04547c0ac3ea39d7222e21597668bddd49

7 years agoMerge "Extract UpstreamNetworkMonitor to its own file"
Erik Kline [Mon, 16 Jan 2017 05:47:06 +0000 (05:47 +0000)]
Merge "Extract UpstreamNetworkMonitor to its own file"
am: 8df5bd1028

Change-Id: I7973c74952efb1abe9309eedfdf829af39467463

7 years agoIP connectivity metrics: fix tests
Hugo Benichi [Mon, 16 Jan 2017 05:42:56 +0000 (14:42 +0900)]
IP connectivity metrics: fix tests

Change 4e89a026292338761838b33fc83b250f3519819c did not update the unit
tests checking serialization of ipconnectivity.proto protobufs.

This patch updates the tests expectations to make them pass again

Test: $ runtest frameworks-net
Bug: 34232829
Change-Id: Iccc4e1a7714c9ce1eba995dc47a2961216efc87d

7 years agoMerge "Extract UpstreamNetworkMonitor to its own file"
Treehugger Robot [Mon, 16 Jan 2017 05:36:05 +0000 (05:36 +0000)]
Merge "Extract UpstreamNetworkMonitor to its own file"

7 years agoMerge "ConnectivityServiceTest: some fixes in CallbackInfo" am: 37727596cc am: 036ab4d193
Hugo Benichi [Mon, 16 Jan 2017 05:13:01 +0000 (05:13 +0000)]
Merge "ConnectivityServiceTest: some fixes in CallbackInfo" am: 37727596cc am: 036ab4d193
am: a5e0160f03

Change-Id: Ifc208e00e05efb29eaa2ab37abdc66d8c7ed8f4f

7 years agoMerge "ConnectivityServiceTest: some fixes in CallbackInfo" am: 37727596cc
Hugo Benichi [Mon, 16 Jan 2017 05:04:39 +0000 (05:04 +0000)]
Merge "ConnectivityServiceTest: some fixes in CallbackInfo" am: 37727596cc
am: 036ab4d193

Change-Id: I839ed526e802b88bbed490b611f90d829b952f26

7 years agoMerge "ConnectivityServiceTest: some fixes in CallbackInfo"
Hugo Benichi [Mon, 16 Jan 2017 05:00:30 +0000 (05:00 +0000)]
Merge "ConnectivityServiceTest: some fixes in CallbackInfo"
am: 37727596cc

Change-Id: I636b7b0ef210aaa3e130e1c1a162a35cdc099295

7 years agoMerge "ConnectivityServiceTest: some fixes in CallbackInfo"
Treehugger Robot [Mon, 16 Jan 2017 04:52:44 +0000 (04:52 +0000)]
Merge "ConnectivityServiceTest: some fixes in CallbackInfo"

7 years agoMerge "GNSS O Features according to go/o-gps-hal"
TreeHugger Robot [Mon, 16 Jan 2017 03:38:56 +0000 (03:38 +0000)]
Merge "GNSS O Features according to go/o-gps-hal"

7 years agoAdd supportsDismissingSelfWindow attribute of IME
Tadashi G. Takaoka [Wed, 11 Jan 2017 06:51:44 +0000 (15:51 +0900)]
Add supportsDismissingSelfWindow attribute of IME

When a virtual keyboard is shown on some configurations (e.g. Phone),
the System UI may change the back navigation button to a different UI
element in order to dismiss the virtual keyboard. Such UI modification
is unnecessary when the virtual keyboard has a dismissing button on
its own window. This new attribute hints the System UI that the
virtual keyboard may have a UI element to dismiss itself. This will be
also useful for Tablet System UI which may not show a navigation bar
when a virtual keyboard is shown.

Bug: 34133139
Test: Add unit test InputMethodInfoTest
Change-Id: I0f6b130a7df57557e40b52a7b7ac00be965a17c3

7 years agoExtract UpstreamNetworkMonitor to its own file
Erik Kline [Fri, 13 Jan 2017 07:46:52 +0000 (16:46 +0900)]
Extract UpstreamNetworkMonitor to its own file

Test: as follows:
    - built (bullhead)
    - flashed
    - booted
    - runtest framworks-net passes
Bug: 32163131

Change-Id: I87ff041e008e45065c9722de8130df53684fb2a9

7 years agoConnectivityServiceTest: some fixes in CallbackInfo
Hugo Benichi [Tue, 20 Dec 2016 08:05:06 +0000 (17:05 +0900)]
ConnectivityServiceTest: some fixes in CallbackInfo

- CallbackInfo becomes a static class so that it can be instantiated
  and looked at more easily than before.
- CallbackInfo gains hashCode() because it has equals().
- effectively final field are qualified final
- fixes bug when polling the next callback: poll() on a LinkedBlockingQueue
  returns null when timing out, which was not failing the test cleanly.

Test: ConnectivityServiceTest passes
Bug: 32561414
Change-Id: I64d382a35fe83f21bded98e6906c1ec70a8f1085

7 years agoGNSS O Features according to go/o-gps-hal
gomo [Wed, 11 Jan 2017 21:20:13 +0000 (13:20 -0800)]
GNSS O Features according to go/o-gps-hal

Added "Tow Known" as a possible gnss measurement state. As well added Automatic Gain Control (AGC)
to allow jammer detection. Also added the GNSS carrier frequeny to SV status. Also added vertical
GPS position uncertainty, speed uncertainty and bearing uncertainty. Also propagate locaton new
fields to geofence engine.
Test: Existing unit tests still pass.

Change-Id: I472b2fd2516cb7614877dea4bb054a34f50844dc

7 years agoCreate GraphicsEnvironment for communicating with driver loaders
Jesse Hall [Sun, 15 Jan 2017 05:58:41 +0000 (05:58 +0000)]
Create GraphicsEnvironment for communicating with driver loaders
am: 79bf392dc6  -s ours

Change-Id: I05f1376ac2fcf5ae59aac213b39bd3b8f4d02ed9

7 years agoCreate GraphicsEnvironment for communicating with driver loaders
Jesse Hall [Mon, 12 Dec 2016 20:53:02 +0000 (12:53 -0800)]
Create GraphicsEnvironment for communicating with driver loaders

The GraphicsEnvironment class is given information during application
start, and makes it available to EGL/GLES/Vulkan loaders that don't
have easy access to the VM or to the application Context. Currently
only the driver path is handled, but the existing support for setting
library paths (for Vulkan extensions) and cache directory information
should move here.

Bug: 33531483
Test: various apps w/ and w/o driver package installed
Change-Id: I5820d3d1301d5461e10706f551b268c54d4f8926
(cherry picked from commit b12249b67193df07a8ffc3cad0c41643662b887b)

7 years agoCreate GraphicsEnvironment for communicating with driver loaders
Jesse Hall [Mon, 12 Dec 2016 20:53:02 +0000 (12:53 -0800)]
Create GraphicsEnvironment for communicating with driver loaders

The GraphicsEnvironment class is given information during application
start, and makes it available to EGL/GLES/Vulkan loaders that don't
have easy access to the VM or to the application Context. Currently
only the driver path is handled, but the existing support for setting
library paths (for Vulkan extensions) and cache directory information
should move here.

Bug: 33531483
Change-Id: I4e4e7fb21f1bcc67122e9173514af5f18c063991
Merged-In: I5820d3d1301d5461e10706f551b268c54d4f8926