Delete test that depends on an external server.

This is correctly tested in libcore.java.net.URLConnectionTest
so there's no need for a badly written duplicate test.

bug: 12864018

(cherry picked from commit 4dd526880a8bf351508fe0d4b2b5cabc3d107527)

Change-Id: I0016298b8970bb937900a8e39aca2f4f252a7a1c
OpenSSLECPrivateKey: no encoding for ENGINE-backed keys

ENGINE-backed keys can't be encoded, so check their status before trying
to return anything in getEncoded or getFormat.

Bug: 12877721
Change-Id: I067172b864202e4fb2043e76ad51fc56af356da1
When decoding enum annotation value, treat it as a field name, not enum value

Bug: 13078746

(cherry picked from commit cc346026b56ca68149b9f1cbbb42136e09ef0be3)

Change-Id: I647b2121c20072f9872ef010b9ced88874af9fb9
Return SSL_TLSEXT_ERR_NOACK with no NPN/ALPN

We were returning SSL_TLSEXT_ERR_OK even if we did not select any
NPN/ALPN support.

(cherry-picked from changes fc7924bc78afc46c3c75722a735fe4db65c33304
and 2a5460fc2ab3453b54d3f6b01f6c83dc7502fbdc)

Bug: https://code.google.com/p/android/issues/detail?id=66562
Bug: 13396322
Change-Id: Id38e9af3c8f7cc00bac19ba3aebdc103d4b5f09a
SSLSocketTest: test NPN/ALPN socket reuse

(cherry-picked from change 9f7c676c1937bdafce079cf02a67ac121296a335)

Bug: https://code.google.com/p/android/issues/detail?id=66562
Bug: 13396322
Change-Id: I9d8758d4b00cbf3ed332b8290cf48aacea01e00f
CA certificates update

REMOVE   expired
         SHA1      : A9:62:8F:4B:98:A9:1B:48:35:BA:D2:C1:46:32:86:BB:66:64:6A:8C
         Subject   : C=ES, L=C/ Muntaner 244 Barcelona, CN=Autoridad de Certificacion Firmaprofesional CIF A62634068/emailAddress=ca@firmaprofesional.com
         Not Before: Oct 24 22:00:00 2001 GMT
         Not After : Oct 24 22:00:00 2013 GMT

ADDED    Repository imported
         SHA1      : 4D:23:78:EC:91:95:39:B5:00:7F:75:8F:03:3B:21:1E:C5:4D:8B:CF
         Subject   : C=SE, O=AddTrust AB, OU=AddTrust TTP Network, CN=AddTrust Qualified CA Root
         Not Before: May 30 10:44:50 2000 GMT
         Not After : May 30 10:44:50 2020 GMT

ADDED    Repository imported
         SHA1      : F3:73:B3:87:06:5A:28:84:8A:F2:F3:4A:CE:19:2B:DD:C7:8E:9C:AC
         Subject   : C=IT, L=Milan, O=Actalis S.p.A./03358520967, CN=Actalis Authentication Root CA
         Not Before: Sep 22 11:22:02 2011 GMT
         Not After : Sep 22 11:22:02 2030 GMT

ADDED    Repository imported
         SHA1      : 4A:65:D5:F4:1D:EF:39:B8:B8:90:4A:4A:D3:64:81:33:CF:C7:A1:D1
         Subject   : C=GB, ST=Greater Manchester, L=Salford, O=Comodo CA Limited, CN=Secure Certificate Services
         Not Before: Jan  1 00:00:00 2004 GMT
         Not After : Dec 31 23:59:59 2028 GMT

ADDED    Repository imported
         SHA1      : CC:AB:0E:A0:4C:23:01:D6:69:7B:DD:37:9F:CD:12:EB:24:E3:94:9D
         Subject   : C=SE, O=AddTrust AB, OU=AddTrust TTP Network, CN=AddTrust Class 1 CA Root
         Not Before: May 30 10:38:31 2000 GMT
         Not After : May 30 10:38:31 2020 GMT

ADDED    Repository imported
         SHA1      : E1:9F:E3:0E:8B:84:60:9E:80:9B:17:0D:72:A8:C5:BA:6E:14:09:BD
         Subject   : C=GB, ST=Greater Manchester, L=Salford, O=Comodo CA Limited, CN=Trusted Certificate Services
         Not Before: Jan  1 00:00:00 2004 GMT
         Not After : Dec 31 23:59:59 2028 GMT

ADDED    Repository imported
         SHA1      : 4F:99:AA:93:FB:2B:D1:37:26:A1:99:4A:CE:7F:F0:05:F2:93:5D:1E
         Subject   : C=CN, O=China Internet Network Information Center, CN=China Internet Network Information Center EV Certificates Root
         Not Before: Aug 31 07:11:25 2010 GMT
         Not After : Aug 31 07:11:25 2030 GMT

ADDED    Repository imported
         SHA1      : F1:7F:6F:B6:31:DC:99:E3:A3:C8:7F:FE:1C:F1:81:10:88:D9:60:33
         Subject   : CN=T\xC3\x9CRKTRUST Elektronik Sertifika Hizmet Sa\xC4\x9Flay\xC4\xB1c\xC4\xB1s\xC4\xB1, C=TR, L=Ankara, O=T\xC3\x9CRKTRUST Bilgi \xC4\xB0leti\xC5\x9Fim ve Bili\xC5\x9Fim G\xC3\xBCvenli\xC4\x9Fi Hizmetleri A.\xC5\x9E. (c) Aral\xC4\xB1k 2007
         Not Before: Dec 25 18:37:19 2007 GMT
         Not After : Dec 22 18:37:19 2017 GMT

ADDED    Repository imported
         SHA1      : E7:A1:90:29:D3:D5:52:DC:0D:0F:C6:92:D3:EA:88:0D:15:2E:1A:6B
         Subject   : C=ch, O=Swisscom, OU=Digital Certificate Services, CN=Swisscom Root EV CA 2
         Not Before: Jun 24 09:45:08 2011 GMT
         Not After : Jun 25 08:45:08 2031 GMT

ADDED    Repository imported
         SHA1      : 8E:1C:74:F8:A6:20:B9:E5:8A:F4:61:FA:EC:2B:47:56:51:1A:52:C6
         Subject   : C=SK, L=Bratislava, O=Disig a.s., CN=CA Disig Root R1
         Not Before: Jul 19 09:06:56 2012 GMT
         Not After : Jul 19 09:06:56 2042 GMT

ADDED    Repository imported
         SHA1      : B5:61:EB:EA:A4:DE:E4:25:4B:69:1A:98:A5:57:47:C2:34:C7:D9:71
         Subject   : C=SK, L=Bratislava, O=Disig a.s., CN=CA Disig Root R2
         Not Before: Jul 19 09:15:30 2012 GMT
         Not After : Jul 19 09:15:30 2042 GMT

ADDED    Repository imported
         SHA1      : 2A:B6:28:48:5E:78:FB:F3:AD:9E:79:10:DD:6B:DF:99:72:2C:96:E5
         Subject   : C=SE, O=AddTrust AB, OU=AddTrust TTP Network, CN=AddTrust Public CA Root
         Not Before: May 30 10:41:50 2000 GMT
         Not After : May 30 10:41:50 2020 GMT

ADDED    Repository imported
         SHA1      : 3B:C0:38:0B:33:C3:F6:A6:0C:86:15:22:93:D9:DF:F5:4B:81:C0:04
         Subject   : C=GB, O=Trustis Limited, OU=Trustis FPS Root CA
         Not Before: Dec 23 12:14:06 2003 GMT
         Not After : Jan 21 11:36:54 2024 GMT

ADDED    Repository imported
         SHA1      : 51:C6:E7:08:49:06:6E:F3:92:D4:5C:A0:0D:6D:A3:62:8F:C3:52:39
         Subject   : C=TR, L=Ankara, O=E-Tu\xC4\x9Fra EBG Bili\xC5\x9Fim Teknolojileri ve Hizmetleri A.\xC5\x9E., OU=E-Tugra Sertifikasyon Merkezi, CN=E-Tugra Certification Authority
         Not Before: Mar  5 12:09:48 2013 GMT
         Not After : Mar  3 12:09:48 2023 GMT

ADDED    Repository imported
         SHA1      : 2B:B1:F5:3E:55:0C:1D:C5:F1:D4:E6:B7:6A:46:4B:55:06:02:AC:21
         Subject   : CN=Atos TrustedRoot 2011, O=Atos, C=DE
         Not Before: Jul  7 14:58:30 2011 GMT
         Not After : Dec 31 23:59:59 2030 GMT

ADDED    Repository imported
         SHA1      : 43:13:BB:96:F1:D5:86:9B:C1:4E:6A:92:F6:CF:F6:34:69:87:82:37
         Subject   : O=TeliaSonera, CN=TeliaSonera Root CA v1
         Not Before: Oct 18 12:00:50 2007 GMT
         Not After : Oct 18 12:00:50 2032 GMT

ADDED    Repository imported
         SHA1      : A3:F1:33:3F:E2:42:BF:CF:C5:D1:4E:8F:39:42:98:40:68:10:D1:A0
         Subject   : C=IL, O=StartCom Ltd., OU=Secure Digital Certificate Signing, CN=StartCom Certification Authority
         Not Before: Sep 17 19:46:37 2006 GMT
         Not After : Sep 17 19:46:36 2036 GMT

ADDED    Repository imported
         SHA1      : C9:A8:B9:E7:55:80:5E:58:E3:53:77:A7:25:EB:AF:C3:7B:27:CC:D7
         Subject   : C=EE, O=AS Sertifitseerimiskeskus, CN=EE Certification Centre Root CA/emailAddress=pki@sk.ee
         Not Before: Oct 10 30:10:10 2020 GMT
         Not After : 20301217235959Z

ADDED    Repository imported
         SHA1      : 9C:BB:48:53:F6:A4:F6:D3:52:A4:E8:32:52:55:60:13:F5:AD:AF:65
         Subject   : C=TW, O=TAIWAN-CA, OU=Root CA, CN=TWCA Global Root CA
         Not Before: Jun 27 06:28:33 2012 GMT
         Not After : Dec 31 15:59:59 2030 GMT

REMOVE   unused and removed, see https://bugzilla.mozilla.org/show_bug.cgi?id=407396
         SHA1      : 56:E0:FA:C0:3B:8F:18:23:55:18:E5:D3:11:CA:E8:C2:43:31:AB:66
         Subject   : C=CH, O=SwissSign AG, CN=SwissSign Platinum CA - G2
         Not Before: Oct 25 08:36:00 2006 GMT
         Not After : Oct 25 08:36:00 2036 GMT

REMOVE   removed after 2010, see https://bugzilla.mozilla.org/show_bug.cgi?id=530853 https://bugzilla.mozilla.org/show_bug.cgi?id=617664
         SHA1      : 3C:71:D7:0E:35:A5:DA:A8:B2:E3:81:2D:C3:67:74:17:F5:99:0D:F3
         Subject   : C=ES, ST=Madrid, L=Madrid, O=IPS Certification Authority s.l. ipsCA, OU=ipsCA, CN=ipsCA Global CA Root/emailAddress=global01@ipsca.com
         Not Before: Sep  7 14:38:44 2009 GMT
         Not After : Dec 25 14:38:44 2029 GMT

REMOVE   unused, see https://bugzilla.mozilla.org/show_bug.cgi?id=850740
         SHA1      : 96:56:CD:7B:57:96:98:95:D0:E1:41:46:68:06:FB:B8:C6:11:06:87
         Subject   : C=DE, O=TC TrustCenter GmbH, OU=TC TrustCenter Universal CA, CN=TC TrustCenter Universal CA III
         Not Before: Sep  9 08:15:27 2009 GMT
         Not After : Dec 31 23:59:59 2029 GMT

REMOVE   Marked as no longer in use, see https://bugzilla.mozilla.org/show_bug.cgi?id=708009
         SHA1      : 0B:77:BE:BB:CB:7A:A2:47:05:DE:CC:0F:BD:6A:02:FC:7A:BD:9B:52
         Subject   : C=US, O=VeriSign, Inc., OU=Class 4 Public Primary Certification Authority - G2, OU=(c) 1998 VeriSign, Inc. - For authorized use only, OU=VeriSign Trust Network
         Not Before: May 18 00:00:00 1998 GMT
         Not After : Aug  1 23:59:59 2028 GMT

REMOVE   marked as no longer in use, see https://bugzilla.mozilla.org/show_bug.cgi?id=617664
         SHA1      : 5D:98:9C:DB:15:96:11:36:51:65:64:1B:56:0F:DB:EA:2A:C2:3E:F1
         Subject   : C=US, ST=UT, L=Salt Lake City, O=The USERTRUST Network, OU=http://www.usertrust.com, CN=UTN-USERFirst-Network Applications
         Not Before: Jul  9 18:48:39 1999 GMT
         Not After : Jul  9 18:57:49 2019 GMT

REMOVE   marked as no longer in use, see https://bugzilla.mozilla.org/show_bug.cgi?id=856718
         SHA1      : 81:96:8B:3A:EF:1C:DC:70:F5:FA:32:69:C2:92:A3:63:5B:D1:23:D3
         Subject   : C=US, O=Digital Signature Trust Co., OU=DSTCA E1
         Not Before: Dec 10 18:10:23 1998 GMT
         Not After : Dec 10 18:40:23 2018 GMT

REMOVE   removing CA that was included via legacy import script
         SHA1      : A4:34:89:15:9A:52:0F:0D:93:D0:32:CC:AF:37:E7:FE:20:A8:B4:19
         Subject   : OU=Copyright (c) 1997 Microsoft Corp., OU=Microsoft Corporation, CN=Microsoft Root Authority
         Not Before: Jan 10 07:00:00 1997 GMT
         Not After : Dec 31 07:00:00 2020 GMT

REMOVE   marked as no longer in use, see https://bugzilla.mozilla.org/show_bug.cgi?id=856718
         SHA1      : 87:81:C2:5A:96:BD:C2:FB:4C:65:06:4F:F9:39:0B:26:04:8A:0E:01
         Subject   : C=DK, O=TDC, CN=TDC OCES CA
         Not Before: Feb 11 08:39:30 2003 GMT
         Not After : Feb 11 09:09:30 2037 GMT

REMOVE   superseded by an X.509v3 certificate 5B:F8:4D:4F:B2:A5:86:D4:3A:D2:F1:63:9A:A0:BE:09:F6:57:B7:DE
         SHA1      : CA:BB:51:67:24:00:58:8E:64:19:F1:D4:08:78:D0:40:3A:A2:02:64
         Subject   : C=JP, O=Japan Certification Services, Inc., CN=SecureSign RootCA1
         Not Before: Sep 15 15:00:01 1999 GMT
         Not After : Sep 15 14:59:59 2020 GMT

REMOVE   marked as no longer in use, see https://bugzilla.mozilla.org/show_bug.cgi?id=856718
         SHA1      : AB:48:F3:33:DB:04:AB:B9:C0:72:DA:5B:0C:C1:D0:57:F0:36:9B:46
         Subject   : C=US, O=Digital Signature Trust Co., OU=DSTCA E2
         Not Before: Dec  9 19:17:26 1998 GMT
         Not After : Dec  9 19:47:26 2018 GMT

REMOVE   marked as no longer in use, see https://bugzilla.mozilla.org/show_bug.cgi?id=856718
         SHA1      : 39:4F:F6:85:0B:06:BE:52:E5:18:56:CC:10:E1:80:E8:82:B3:85:CC
         Subject   : C=US, O=Equifax Secure, OU=Equifax Secure eBusiness CA-2
         Not Before: Jun 23 12:14:45 1999 GMT
         Not After : Jun 23 12:14:45 2019 GMT

(cherry picked from commit dc004c54f6b60b0340cc7fb51fce158acee52ec4)

Bug: 13436913
Change-Id: I6df8decf778b5c18729e944b82d3cdd669bb04b6
Test that icu4c only uses the Gregorian calendar when formatting date ranges for us.

(cherry picked from commit 6adedf966a3c9f5ae0118053c90bf67d870aa221)

Bug: 12004664
Change-Id: I89998748bf5724d5e13d6b31b9bbd55b1875fa28