Lorenzo Colitti
963aa432c8
Merge changes I0d0c0fac,Ifb9b00b6 am: 3fbfac269b am: bfaf963337
...
am: f0c515477e
Change-Id: I919f21566d5caff9fb35f57c439048b9b48f0971
2018-01-16 18:59:02 +00:00
Lorenzo Colitti
f0c515477e
Merge changes I0d0c0fac,Ifb9b00b6 am: 3fbfac269b
...
am: bfaf963337
Change-Id: Ie943428132fbcfcc565d54b46830ed297227ef35
2018-01-16 18:41:46 +00:00
Treehugger Robot
3fbfac269b
Merge changes I0d0c0fac,Ifb9b00b6
...
* changes:
Split updateCapabilities into two methods.
More strictly check NetworkCapabilities callbacks.
2018-01-16 14:25:13 +00:00
Lorenzo Colitti
d4f6b43b19
Merge "Update netId to nethandle mapping in NetworkTest." am: 75c5e3dcb5 am: 503135596b
...
am: d38b9f7acf
Change-Id: I6feaa589fc43ff8ee1635be0fbd58aaa25679a5a
2018-01-16 13:46:46 +00:00
Lorenzo Colitti
d38b9f7acf
Merge "Update netId to nethandle mapping in NetworkTest." am: 75c5e3dcb5
...
am: 503135596b
Change-Id: I5e8e57f38580742eae38f63f43e37cc647412212
2018-01-16 13:34:46 +00:00
Lorenzo Colitti
46f96cb694
Split updateCapabilities into two methods.
...
This makes the code a bit easier to follow.
Test: ConnectivityServiceTest continues to pass
Change-Id: I0d0c0facc1e3ba07b53542b35da40ddc096ff92e
2018-01-16 21:25:10 +09:00
Treehugger Robot
75c5e3dcb5
Merge "Update netId to nethandle mapping in NetworkTest."
2018-01-16 12:23:02 +00:00
Hugo Benichi
cc1f4b9dba
Merge "MacAddress: add @NonNull annotations" am: bc3edde9c6 am: a7c125e5b2
...
am: e1c0b97447
Change-Id: Ib525e2429609ce12c2be5bbeacffa217b65bebe3
2018-01-16 10:40:56 +00:00
Hugo Benichi
e1c0b97447
Merge "MacAddress: add @NonNull annotations" am: bc3edde9c6
...
am: a7c125e5b2
Change-Id: Icaa08c082797c6dbc3382e0662e24e1c84114175
2018-01-16 10:30:20 +00:00
Lorenzo Colitti
959f60b710
Update netId to nethandle mapping in NetworkTest.
...
Bug: 63052780
Test: NetworkTest now passes
Change-Id: I5f1cb3055b7042a19afb5dd62f082912157612ba
2018-01-16 17:19:04 +09:00
Hugo Benichi
bc3edde9c6
Merge "MacAddress: add @NonNull annotations"
2018-01-16 07:10:50 +00:00
Lorenzo Colitti
b25b5d4f81
Merge "Change the netId to nethandle mapping." am: 35bd74cfd3 am: feaf412e19
...
am: fb91426d12
Change-Id: I06e09bfaeb1040b97afa392faace339eb5bab4ad
2018-01-16 05:32:55 +00:00
Lorenzo Colitti
fb91426d12
Merge "Change the netId to nethandle mapping." am: 35bd74cfd3
...
am: feaf412e19
Change-Id: Idd1b2f462c1c78bdb68b43a4aa77bf2358f7cb52
2018-01-16 05:16:34 +00:00
Hugo Benichi
8f21758d4a
MacAddress: add @NonNull annotations
...
This patch adds to the MacAddress class:
- getAddressType() method which replaces addressType(), for naming
consistency
- @NonNull annotations on all input and output reference values for
all public methods (@hide and public).
TYPE_UNKNOWN, which currently cannot be observed with a non @hide
method, is also removed from the public api.
Bug: 71866627
Test: $ runtest frameworks-net
Change-Id: I2af70408d46f431b7b32183e6b48ddae9a261a2c
2018-01-16 13:32:59 +09:00
Treehugger Robot
35bd74cfd3
Merge "Change the netId to nethandle mapping."
2018-01-16 02:58:56 +00:00
Hugo Benichi
2466fd29e6
Merge "ConnectivityService: synchronize access on mLockdownEnabled" am: dca465ab21 am: 2d59e3cab0
...
am: 9c8cc85a3d
Change-Id: I7cb4d1e9e1fc3dc5ca116dcc94840920cd4a3d64
2018-01-16 02:42:53 +00:00
Hugo Benichi
9c8cc85a3d
Merge "ConnectivityService: synchronize access on mLockdownEnabled" am: dca465ab21
...
am: 2d59e3cab0
Change-Id: Icadee616fc95e1c126285524dfe49331fcf87462
2018-01-16 02:31:48 +00:00
Hugo Benichi
dca465ab21
Merge "ConnectivityService: synchronize access on mLockdownEnabled"
2018-01-16 00:20:52 +00:00
Lorenzo Colitti
5183e57449
Change the netId to nethandle mapping.
...
Being able to update this handle is necessary to ensure that
system-only OTAs do not break vendor code that relies on
nethandles.
Bug: 63052780
Test: walleye builds, boots, networking works
Test: MultinetworkApiTest CTS tests passes
Change-Id: I049a4ad2610ca68b8f56377b63be7e5e8ce76039
2018-01-16 02:08:09 +09:00
Lorenzo Colitti
7045d61b50
More strictly check NetworkCapabilities callbacks.
...
This change more strictly accounts for onCapabilitiesChanged
callbaks and their values. It exposes several cases where we the
callbacks we send are spurious.
Test: ConnectivityServiceTest continues to pass
Change-Id: Ifb9b00b6f0cae48f8ed41a525100d1744b5f429b
2018-01-16 00:25:13 +09:00
Erik Kline
08f286894d
Merge "change NMS removeNetwork to netd binder variant" am: e61ee4198e am: b73571b981
...
am: 898092a149
Change-Id: I38905b12f24f16860de1db18cd12d93fc661c684
2018-01-15 14:54:30 +00:00
Erik Kline
898092a149
Merge "change NMS removeNetwork to netd binder variant" am: e61ee4198e
...
am: b73571b981
Change-Id: I6de7f38c7081e14d817cc7aad44cb5b6a978328b
2018-01-15 14:38:08 +00:00
Erik Kline
454b42eced
change NMS removeNetwork to netd binder variant
...
Also: require NETWORK_STACK instead of CONNECTIVITY_INTERNAL.
Bug: 34953048
Bug: 64133961
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net
Change-Id: I26f07f51a8a2f4a8bb43a276da7c5e66c355c848
2018-01-15 19:51:37 +09:00
Erik Kline
292453458a
Merge changes I47ccfa99,I5db1de3e am: f98f97fe92 am: 03f3294103
...
am: 420d020689
Change-Id: Ic774b944238d6df07511df8e467d66cefcd4fa81
2018-01-11 12:52:19 +00:00
Erik Kline
420d020689
Merge changes I47ccfa99,I5db1de3e am: f98f97fe92
...
am: 03f3294103
Change-Id: I311f6c299daf1c8d21731187d8e78e55c5767564
2018-01-11 12:43:38 +00:00
Treehugger Robot
f98f97fe92
Merge changes I47ccfa99,I5db1de3e
...
* changes:
Extract DNS setting logic into DnsManager class
Add minimal test for setting DNS properties
2018-01-11 11:33:30 +00:00
Erik Kline
3212008036
Extract DNS setting logic into DnsManager class
...
In future, managing DNS-over-TLS hostname lookup and netd programming
can be encapsulated here.
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
Bug: 64133961
Change-Id: I47ccfa99c30c780524c45c4af605e720ccba34a0
2018-01-11 18:16:50 +09:00
Erik Kline
6e0347d6df
Add minimal test for setting DNS properties
...
Test: as follows
Change-Id: I5db1de3ee8e179edd56c93988b821242b81c2387
2018-01-11 18:16:20 +09:00
Lorenzo Colitti
389812c768
Merge "Move more core networking tests to framework/base/tests/net." am: d207b1faa3 am: 8f852c341f
...
am: 291e7c4fce
Change-Id: I1eb98a82426d7b7e085316f8a67cdd1e81912538
2018-01-11 04:17:51 +00:00
Lorenzo Colitti
291e7c4fce
Merge "Move more core networking tests to framework/base/tests/net." am: d207b1faa3
...
am: 8f852c341f
Change-Id: Iab87e7ce5b62a1ff21c7aee5d0f25597713f6c65
2018-01-11 04:10:01 +00:00
Lorenzo Colitti
d207b1faa3
Merge "Move more core networking tests to framework/base/tests/net."
2018-01-11 03:09:40 +00:00
Lorenzo Colitti
a4fdc1204e
Move more core networking tests to framework/base/tests/net.
...
Test: "runtest frameworks-net" passes except for already-failing IpConnectivityMetricsTest
Change-Id: I2a20d546089699ac67bc819f10a8fcd50c637ac4
2018-01-10 23:35:16 +09:00
Malcolm Chen
3652b8b2c1
Merge "Add isMobileDataEnabled in TelephonyManager." am: 278fb634c1 am: 6b943d5deb
...
am: 180c8da8ff -s ours
Change-Id: Id32dd08ebec6e0f90a08a360ce1b6488adbeab40
2018-01-10 00:18:56 +00:00
Malcolm Chen
180c8da8ff
Merge "Add isMobileDataEnabled in TelephonyManager." am: 278fb634c1
...
am: 6b943d5deb
Change-Id: I132cc6d3de77f20717a40884683fb0c81fbb7083
2018-01-10 00:06:27 +00:00
Treehugger Robot
278fb634c1
Merge "Add isMobileDataEnabled in TelephonyManager."
2018-01-09 23:46:55 +00:00
TreeHugger Robot
be6e23ea7b
Merge "incidentd: dumping jobscheduler to proto"
2018-01-09 23:15:19 +00:00
Benedict Wong
d49e808b8e
Merge "Add validation to IpSecConfig algorithm setters" am: a954f20f46 am: c93df5ca1c
...
am: f85202f016
Change-Id: I7ff85771945c68025ce8d66ca85313bac087b3a5
2018-01-09 21:23:35 +00:00
Kweku Adams
2ee6dc1979
incidentd: dumping jobscheduler to proto
...
Bug: 65750819
Test: flash device and check incident.proto output
Also test: $ cts-tradefed run cts-dev --module CtsIncidentHostTestCases --test com.android.server.cts.JobSchedulerIncidentTest
Change-Id: I4abc01ca893edcbaf4d2254e4f807e06f5cb91f8
2018-01-09 12:05:39 -08:00
Benedict Wong
f85202f016
Merge "Add validation to IpSecConfig algorithm setters" am: a954f20f46
...
am: c93df5ca1c
Change-Id: I45289bc8e8b93f7eb912a76a10b951b1a615338a
2018-01-09 19:51:19 +00:00
Malcolm Chen
acf59b8403
Add isMobileDataEnabled in TelephonyManager.
...
Added a new hidden API isMobileDataEnabled in TelephonyManager.
Rename related APIs to isUserMobileDataEnabled,
isUserMobileDataEnabled and setUserMobileDataEnabled to better
clarify their functionality.
Bug: 69814555
Test: build
Change-Id: I2f186f1e7550cafbe4ee3a5af293c39274cbfeaa
Merged-In: I2f186f1e7550cafbe4ee3a5af293c39274cbfeaa
2018-01-08 18:08:22 -08:00
Benedict Wong
a708eec031
Add validation to IpSecConfig algorithm setters
...
Adds checks to ensure that users can only set the correct types of
algorithms for the Authentication, Encryption and Authenticated
Encryption algorithms.
Bug: 65223935
Test: Added tests in IpSecConfigTest, and passed on aosp_marlin-eng
Change-Id: I462c77d9eb5710b8d03a48866453649d3b6fc6bf
2018-01-04 16:56:40 -08:00
Hugo Benichi
1f3ce3f31a
MacAddress: address api review comments
...
1) toSafeString() is renamed to toOuiString()
2) toOuiString() returns a String that only contains the first 3 bytes
of the mac address.
Bug: 70336442
Test: runtest frameworks-net
Change-Id: I798d8fec32dbff5687a682028e5d90eb941f81c1
Merged-In: I798d8fec32dbff5687a682028e5d90eb941f81c1
(cherry pick from commit 3f83b8ad4e )
2017-12-21 08:34:05 +09:00
Benedict Wong
08faba25e6
Merge "[ipsec-doze] Add fchown to IpSecService to support doze" am: 4edb4c8ec4 am: 5949912523
...
am: a7d1b22d6d
Change-Id: Id6a5ff71ead4566b9a91b9e9b6c78d81f1ac0f54
2017-12-20 18:58:30 +00:00
Benedict Wong
a7d1b22d6d
Merge "[ipsec-doze] Add fchown to IpSecService to support doze" am: 4edb4c8ec4
...
am: 5949912523
Change-Id: I9036fc2768dd9664ab7407b359f3c689c7ce700e
2017-12-20 18:42:26 +00:00
Benedict Wong
6b42407013
Merge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets" am: 0b8bf40ae4 am: 8caa274ade
...
am: b72b41b121
Change-Id: I4140f386687c579044f9b5fe59dd7e05f86000fe
2017-12-19 00:41:55 +00:00
Benedict Wong
b72b41b121
Merge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets" am: 0b8bf40ae4
...
am: 8caa274ade
Change-Id: I2f27c76a1f493ff4f0bd423c06f159e629866d4d
2017-12-19 00:27:57 +00:00
Hugo Benichi
a811cc7c27
Merge changes I798d8fec,I4a2d5866 am: c5212b6654 am: 99be302c71
...
am: be36e5929e -s ours
Change-Id: Ib8024661997e84e64cd56a3ca9ee17c514122ead
2017-12-19 00:23:04 +00:00
Hugo Benichi
be36e5929e
Merge changes I798d8fec,I4a2d5866 am: c5212b6654
...
am: 99be302c71
Change-Id: I41b507c4e4bf9b8b9082f5e7eaab8985b5bbef41
2017-12-19 00:06:00 +00:00
Benedict Wong
42e3fa137d
[ipsec-doze] Add fchown to IpSecService to support doze
...
Encap sockets are currently created as the system server, and should be
fchown'd to the user for whom it was created on behalf of.
Bug: 62994731
Test: New tests added and run to IpSecService
Change-Id: Icc49e709ae588981e69765fdb77537d7ffbac5fe
2017-12-18 16:01:58 -08:00
Benedict Wong
0b8bf40ae4
Merge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets"
2017-12-18 23:50:52 +00:00