Merge "Address ConnectivityManager API comments." into oc-dev
Lorenzo Colitti
authored and
Android (Google) Code Review
commited 2017-04-28 03:58:16 +00:00
2121eeec48
Address ConnectivityManager API comments.
...
Bug: 36370941
Test: marlin builds and boots
Change-Id: I693ee5270bf186c88c7c5056293519f7237504ff
Lorenzo Colitti
commited 2017-04-28 00:58:00 +09:00
139a48c83c
Merge "NsdManager: unit tests for argument validation" am: 3cff7deecb am: d97e358f7a am: 48947de481
...
am: eebf240d12
Change-Id: I4c4251257c7ddcff82460dd71ff62adecd900420
Hugo Benichi
authored and
android-build-merger
commited 2017-04-27 13:16:11 +00:00
47646a9fc1
Merge "NsdService: disentangle NativeDaemonConnector from ctor" am: fa97f11b20 am: 47748b754c am: 5d0bd13538
...
am: 2018a29a88
Change-Id: Ie0a42ede086cc480830c91e770eaf250bcd2f711
Hugo Benichi
authored and
android-build-merger
commited 2017-04-27 13:14:10 +00:00
95c736783d
Merge "NsdManager: unit tests for argument validation" am: 3cff7deecb am: d97e358f7a
...
am: 48947de481
Change-Id: I8a51ff51071adc60fe9f4d99ec629edabbed353d
Hugo Benichi
authored and
android-build-merger
commited 2017-04-27 13:09:02 +00:00
eebf240d12
Merge "NsdService: disentangle NativeDaemonConnector from ctor" am: fa97f11b20 am: 47748b754c
...
am: 5d0bd13538
Change-Id: Ic8ddf92c7c64d4214a75bea6d6e5083f4612a76a
Hugo Benichi
authored and
android-build-merger
commited 2017-04-27 13:06:59 +00:00
2018a29a88
NsdManager: unit tests for argument validation
...
Test: new tests pass.
Bug: 37013369, 33298084
Change-Id: Ia514d2bbd967d46fed54e379f319b572ade22c62
Hugo Benichi
commited 2017-04-27 16:35:48 +09:00
bad1bfedcd
NsdService: disentangle NativeDaemonConnector from ctor
...
This patch disentangles the creation of NativeDaemonConnector from the
creation of NsdService by introducing a wrapper type DaemonConnection.
This allows to mock this dependency in unit tests.
Test: enhanced previously introduced new tests.
Bug: 37013369, 33298084
Change-Id: I894b7cddfc509f86d0134d214c88c063b81b5e0a
Hugo Benichi
commited 2017-04-27 16:35:30 +09:00
59ade871f8
Merge "NsdService: bootstrap unit tests" am: 0f0ab71fb1 am: dd53c962b2 am: d29ce6ae8c
...
am: a5cd2bc5eb
Change-Id: I018d6fbface4a9d4a568486dedd30d05e0ddd949
Hugo Benichi
authored and
android-build-merger
commited 2017-04-27 06:01:38 +00:00
6ea5a594f4
Merge "NsdService: bootstrap unit tests" am: 0f0ab71fb1 am: dd53c962b2
...
am: d29ce6ae8c
Change-Id: Iaf0679790e934baaaf48bcb04098aa18deca4d60
Hugo Benichi
authored and
android-build-merger
commited 2017-04-27 05:49:47 +00:00
a5cd2bc5eb
Merge "NsdService: bootstrap unit tests"
Hugo Benichi
authored and
Gerrit Code Review
commited 2017-04-27 05:22:54 +00:00
0f0ab71fb1
Merge "Clarify some IpManager/ApfFilter debugging output." into oc-dev am: 40ccb1b5aa
...
am: fecbdc5ce1
Change-Id: Iec4ab9cadefb9de773e73a124d40ac5f69b8136d
Erik Kline
authored and
android-build-merger
commited 2017-04-27 04:08:10 +00:00
6b6e74b571
Merge "Clarify some IpManager/ApfFilter debugging output." into oc-dev
...
am: 40ccb1b5aa
Change-Id: Ie883f62bdc731c8da3b3d5ac1df827e1fd5b44be
Erik Kline
authored and
android-build-merger
commited 2017-04-27 03:58:12 +00:00
fecbdc5ce1
Merge "Clarify some IpManager/ApfFilter debugging output." am: ce94c07ffd am: 3cc7ccfc69 am: b1914ebb50
...
am: a069fc8481
Change-Id: I7ff76ff8602477586d2fd315c730203f28744027
Erik Kline
authored and
android-build-merger
commited 2017-04-27 00:46:41 +00:00
b576b322b3
Merge "Clarify some IpManager/ApfFilter debugging output." am: ce94c07ffd am: 3cc7ccfc69
...
am: b1914ebb50
Change-Id: If64f2b8a5cdf8b946a82a0c97a42cf61ef5e0b08
Erik Kline
authored and
android-build-merger
commited 2017-04-27 00:35:25 +00:00
a069fc8481
Clarify some IpManager/ApfFilter debugging output.
...
Test: as follows
- built
- flashed
- booted
- "runtest frameworks-net" passes
- "adb shell dumpsys wifi ipmanager" shows updated output
Bug: 34793131
Change-Id: I6dec135b97343943efb421ef7b2e84c4751dd5ea
(cherry picked from commit af579eb5b516296a8ec0b02d824f2ba646e60ca2)
Erik Kline
commited 2017-04-26 17:17:04 +09:00
6a14375cc2
Clarify some IpManager/ApfFilter debugging output.
...
Test: as follows
- built
- flashed
- booted
- "runtest frameworks-net" passes
- "adb shell dumpsys wifi ipmanager" shows updated output
Bug: 34793131
Change-Id: I6dec135b97343943efb421ef7b2e84c4751dd5ea
Erik Kline
commited 2017-04-26 17:14:47 +09:00
aca4fac0db
Merge "[AWARE] Add UID checking to WifiAwareNetworkSpecifier" am: 7b6ba2b3ea am: 3c6305cc55 am: 887fd90742
...
am: e6d346bc06
Change-Id: I4ef57924507633315ed0dbd5f18abbd9138de572
Etan Cohen
authored and
android-build-merger
commited 2017-04-25 13:46:42 +00:00
2dec0a707c
Merge "[AWARE] Add UID checking to WifiAwareNetworkSpecifier" am: 7b6ba2b3ea am: 3c6305cc55
...
am: 887fd90742
Change-Id: I8480ac43d89dc85b541e6255c3cdc597393896cf
Etan Cohen
authored and
android-build-merger
commited 2017-04-25 13:40:42 +00:00
e6d346bc06
Merge "[AWARE] Add UID checking to WifiAwareNetworkSpecifier"
Etan Cohen
authored and
Gerrit Code Review
commited 2017-04-25 13:21:36 +00:00
7b6ba2b3ea
Merge "NetworkCapabilities: remove duplicated TRANSPORT_NAMES" into oc-dev-plus-aosp
...
am: c3d2f25a5d
Change-Id: I1e039236d7d4eda6354c81440fbbc43346376f23
Hugo Benichi
authored and
android-build-merger
commited 2017-04-25 08:09:32 +00:00
4aea3e884a
NetworkCapabilities: remove duplicated TRANSPORT_NAMES
...
Due to multi-branch automerging issue, TRANSPORT_NAMES got inserted
twice into NetworkCapabilities both by commits 45670bb37d and
21665ac809 . This patch deletes one of the copy.
Test: no functionality change. Build is fixed.
Change-Id: I2adec1a9cb1ee6f1d61dfeec2d0b92b8141eed88
Hugo Benichi
commited 2017-04-25 16:31:06 +09:00
8e8532c8f3
NsdService: bootstrap unit tests
...
Test: new tests part of $ runtest frameworks-net
Bug: 37013369, 33298084
Change-Id: Ief45f838268380b4b2a128390fbf34d55a3b922b
Hugo Benichi
commited 2017-04-25 10:42:58 +09:00
91c45e4dbb
Merge "Even more auto-doc work." into oc-dev am: 880f4f4cc2
...
am: 1ee1487e29
Change-Id: I96c77c62b6ee3b5acaa45e116d35c7114797a0b8
Jeff Sharkey
authored and
android-build-merger
commited 2017-04-24 22:43:34 +00:00
7a13941935
Merge "Even more auto-doc work." into oc-dev
...
am: 880f4f4cc2
Change-Id: I78199f8366fbda65a4b4917675291d946e29285c
Jeff Sharkey
authored and
android-build-merger
commited 2017-04-24 21:38:03 +00:00
1ee1487e29
Merge "Merge "Move byte logics from ApfFilter into BitsUtil" am: 21b9b3a8ff am: 12c1074c8b am: a80bb82b4e" into oc-dev-plus-aosp
...
am: 79ffb5a284
Change-Id: I9674c965169fd9dfd0412c80d9362f891bdeb59d
Hugo Benichi
authored and
android-build-merger
commited 2017-04-24 21:09:19 +00:00
e57e598e6e
Merge "Merge "Add BitUtils bit packing methods (Connectivity metrics: add transports pretty printing)" am: 10b5024d5e am: 23d41ee68e am: 876ebaa8e1" into oc-dev-plus-aosp
...
am: 584f97470c -s ours
Change-Id: Icb2bf64f15e720dc33c870bc23538b03a0a34dd6
Hugo Benichi
authored and
android-build-merger
commited 2017-04-24 20:51:54 +00:00
bbc0ef654c
Even more auto-doc work.
...
Update docs based on what new lint detector found. Add new @IntDef
to parameters or methods returning constants or flags, and add
@RequiresPermission to methods mentioning permissions.
Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I7f640f7883fcb66b911a52ae93b83f77306571ec
Jeff Sharkey
commited 2017-04-24 13:20:46 -06:00
656584aa8d
Merge "Move byte logics from ApfFilter into BitsUtil" am: 21b9b3a8ff am: 12c1074c8b
...
am: a80bb82b4e
Change-Id: I5f13b006b57cc8a3ab0560626077d003ce4fe8c8
Hugo Benichi
authored and
android-build-merger
commited 2017-04-24 19:07:37 +00:00
50ad9442a8
Merge "Add BitUtils bit packing methods (Connectivity metrics: add transports pretty printing)" am: 10b5024d5e am: 23d41ee68e
...
am: 876ebaa8e1
Change-Id: I0dfcea2b92287115c385f1b7678034f643d5daba
Hugo Benichi
authored and
android-build-merger
commited 2017-04-24 19:06:20 +00:00
b22a842978
Merge changes I5187d17c,I49a76582 am: 8b41dd0318 am: f2e5cf715d am: 31259c219f
...
am: 72ba66b48a
Change-Id: I63b2fe14fe830b1000414328e79bee8c8233d40f
Hugo Benichi
authored and
android-build-merger
commited 2017-04-22 01:07:59 +00:00
8026fefa5f
Move byte logics from ApfFilter into BitsUtil
...
This patch extracts into BitUtils byte manipulation helper methods
and unsigned type manipulation helper methods from ApfFilter into
an independent and reusable structure.
Test: $ runtest frameworks-net
Change-Id: I0f33af10457a63dbde5983f14353a79b8cd877d9
Hugo Benichi
commited 2017-04-22 10:07:03 +09:00
330ae0ac78
Merge "NsdManager: add unit tests" am: dc1684ab07 am: 40ab8401b2 am: d2181235b9
...
am: 3fdd0bf76a
Change-Id: I86a9db7fe4f925162e1632152862c7b246230db9
Hugo Benichi
authored and
android-build-merger
commited 2017-04-22 01:06:17 +00:00
b2dddaefef
Merge changes I5187d17c,I49a76582 am: 8b41dd0318 am: f2e5cf715d
...
am: 31259c219f
Change-Id: I174179db3a08ba51aef737cfb3956d1cf789b362
Hugo Benichi
authored and
android-build-merger
commited 2017-04-22 00:59:36 +00:00
72ba66b48a
Add BitUtils bit packing methods (Connectivity metrics: add transports pretty printing)
...
This patch is a partial cherry-pick from commit
cf83a3f4da for the BitUtils and
NetworkCapabilities classes.
Bug: 34901696
Test: none
(cherry picked from commit cf83a3f4da )
Merged-In: Id04f9080e7f75608deeb49306aec34941e71794c
Change-Id: I64eae49f646365b7cd1683a689315fe03bf0bdd9
Hugo Benichi
commited 2017-04-22 09:58:42 +09:00
21665ac809
Merge "NsdManager: add unit tests" am: dc1684ab07 am: 40ab8401b2
...
am: d2181235b9
Change-Id: I7a5202be0e6a6274f3bd11737f30fee0ef947235
Hugo Benichi
authored and
android-build-merger
commited 2017-04-22 00:57:48 +00:00
3fdd0bf76a
Merge changes I5187d17c,I49a76582
...
* changes:
ConnectivityService: regroup bool <-> int conversions
ConnectivityService: move reportNetworkConnectivity to handler
Hugo Benichi
authored and
Gerrit Code Review
commited 2017-04-22 00:34:07 +00:00
8b41dd0318
Merge "NsdManager: add unit tests"
Hugo Benichi
authored and
Gerrit Code Review
commited 2017-04-22 00:31:28 +00:00
dc1684ab07
Merge "Mark Restricted APN connections as restricted." am: a6a4f5589c am: 1778682242 am: 88a6acb9f6 -s ours
...
am: c99a35d0f7 -s ours
Change-Id: Ieae70ca90bff3747ef66c6f15258fef28d061ce4
Robert Greenwalt
authored and
android-build-merger
commited 2017-04-21 23:50:37 +00:00
09064e6974
Merge "Mark Restricted APN connections as restricted." am: a6a4f5589c am: 1778682242
...
am: 88a6acb9f6 -s ours
Change-Id: I7a0019557721593761ae605db8e28bf4e15c06b0
Robert Greenwalt
authored and
android-build-merger
commited 2017-04-21 23:36:13 +00:00
c99a35d0f7
Merge "Mark Restricted APN connections as restricted."
Treehugger Robot
authored and
Gerrit Code Review
commited 2017-04-21 23:12:52 +00:00
a6a4f5589c
Merge "Use Vpn rules (not firewall) for always-on VPN" am: dcb162176e am: cd8557d15a am: 4de3794c26
...
am: 8fc4ec1ec4
Change-Id: If94864a6320af8ae69777abca0483ce62ff2ebc9
Robin Lee
authored and
android-build-merger
commited 2017-04-21 22:24:31 +00:00
a2f8396835
Merge "Use Vpn rules (not firewall) for always-on VPN" am: dcb162176e am: cd8557d15a
...
am: 4de3794c26
Change-Id: Ic1e96eac68ddc8a713b3c71b5c126cb8b99c59f5
Robin Lee
authored and
android-build-merger
commited 2017-04-21 22:17:15 +00:00
8fc4ec1ec4
Mark Restricted APN connections as restricted.
...
If anything unrestricted is bundled in the whole thing has to be
unrestricted (we can't restrict based on destination or intent)
but the NOT_METERED flag wasn't taken into account.
This wasn't a problem before because telephony set that statically
and late, but a change caused it to be marked NOT_METERED earlier
which exposed this bug.
bug: 37208956
Merged-In: I7b7a1c38621ce0ecde8cf041e82b1ebb7a9c6f15
Test: new NetworkCapabilitiesTest. Fails without fix, works with.
Change-Id: I86c1b2854413a94662aa53e697d32380695ab9ac
Robert Greenwalt
commited 2017-04-21 22:00:17 +00:00
1f4578fa86
Merge "Use Vpn rules (not firewall) for always-on VPN"
Treehugger Robot
authored and
Gerrit Code Review
commited 2017-04-21 21:53:15 +00:00
dcb162176e
[AWARE] Add UID checking to WifiAwareNetworkSpecifier
...
Wifi Aware networks are per app - i.e. a requestor gets
a dedicated network. Change verifies that the only the
original requestor matches the created network (using UID).
Bug: 36053921
Test: Integration (sl4a) tests
Change-Id: I4ff3994731dd7ccb88e2bea333d1e6905b136f02
Etan Cohen
commited 2017-04-21 18:47:35 +00:00
1b6d418785
Merge "Add local-only hotspot info into tether state change broadcast" into oc-dev am: 83e2a25461
...
am: 1712602711
Change-Id: I903e773977787d35ade7c32afffb5e5e009c3a45
Erik Kline
authored and
android-build-merger
commited 2017-04-21 07:06:35 +00:00
b16df0be12
Merge "Add local-only hotspot info into tether state change broadcast" into oc-dev
...
am: 83e2a25461
Change-Id: I5c91199114ee1a48629523377fc06deda48f5579
Erik Kline
authored and
android-build-merger
commited 2017-04-21 07:01:35 +00:00
1712602711
ConnectivityService: regroup bool <-> int conversions
...
This patch cleanups conversion of boolean values to ints when reading
configuration values or sending Messages whose arg1 or arg2 has boolean
semantics.
Test: runtest frameworks-net
Change-Id: I5187d17cd746486f63b1c410d191c30edd93ff6f
Hugo Benichi
commited 2017-04-21 15:18:51 +09:00
f4210294ac
ConnectivityService: move reportNetworkConnectivity to handler
...
This patch moves reportNetworkConnectivity onto the handler of
ConnectivityService.
This allows:
- to inspect NetworkAgentInfo on the ConnectivityService handler,
which is always more correct than doing so on a Binder thread.
- to improve locking policies around NetworkAgentInfo.
Test: $ runtest frameworks-net
Bug: 37119619, 36902662
Change-Id: I49a765826e65c29a1995242290e5e7544112c94e
Hugo Benichi
commited 2017-04-21 15:17:54 +09:00
d6b510a23e