Commit graph

5,799 commits

Message SHA1
Merge "Add uid information in PackageListObserver"
am: 63e0701ecb

Change-Id: I4fef26fed802902d6a69563c19704a94916ff834

Chenbo Feng   authored and   android-build-merger   commited 2019-03-19 14:42:14 -07:00
b6972b2566
Merge "Add uid information in PackageListObserver"
Treehugger Robot   authored and   Gerrit Code Review   commited 2019-03-19 21:19:16 +00:00
63e0701ecb
Merge "Add unit tests related to data accounting for VPNs with one underlying network."
am: 0572cf6752

Change-Id: I91971112870c7a3a2d4786c25125204de7e008f5

Varun Anand   authored and   android-build-merger   commited 2019-03-19 09:28:22 -07:00
42db9375aa
Merge "Add unit tests related to data accounting for VPNs with one underlying network."
Treehugger Robot   authored and   Gerrit Code Review   commited 2019-03-19 16:18:28 +00:00
0572cf6752
Merge "Move the IpMemoryStore to the network stack."
am: 3b3aabfb68

Change-Id: I672d07ca2d0a251c246993ab8c7c3075de385570

Xiao Ma   authored and   android-build-merger   commited 2019-03-19 06:35:31 -07:00
e0f77826f7
Merge "Move the IpMemoryStore to the network stack."
Xiao Ma   authored and   Gerrit Code Review   commited 2019-03-19 13:21:12 +00:00
3b3aabfb68
Merge "Replace Handler with Executor for async DNS API"
am: 44bd665c9e

Change-Id: I5fb0d659d27894ca9f243654f9283764f1369745

Luke Huang   authored and   android-build-merger   commited 2019-03-18 23:05:15 -07:00
b856fc1410
Merge "Refactor answer callback for async DNS query JAVA API"
am: b65af07286

Change-Id: I26eb642cc04e3804cd82a56e45a890689b3c643f

Luke Huang   authored and   android-build-merger   commited 2019-03-18 22:55:37 -07:00
9ddf2c10aa
Merge "Replace Handler with Executor for async DNS API"
Luke Huang   authored and   Gerrit Code Review   commited 2019-03-19 05:35:39 +00:00
44bd665c9e
Merge "Refactor answer callback for async DNS query JAVA API"
Luke Huang   authored and   Gerrit Code Review   commited 2019-03-19 05:35:18 +00:00
b65af07286
Merge "Remove deprecated entitlement API"
am: 9d9850ae30

Change-Id: I6b19b684a1dfa509ee77304d6acfe3fcdb6ca69c

Mark Chien   authored and   android-build-merger   commited 2019-03-18 20:00:35 -07:00
c818ace0cc
Merge "Remove deprecated entitlement API"
Mark Chien   authored and   Gerrit Code Review   commited 2019-03-19 02:44:37 +00:00
9d9850ae30
Add uid information in PackageListObserver
The uid information of a removed package cannot be retrieved by the
packageName anymore once it is removed. So it would be useful to provide
the uid of removed package in the onPackageAdded and onPackageRemoved
method of the PackageListObserver. This modification helps simplify the
design in PermissionMonitor.

Bug: 125396053
Test: dumpsys netd trafficcontroller

Exempt-From-Owner-Approval: Already merged in internal master
Merged-In: I2bd4bdf924687960a4fa3a47235bae68d885e445
Change-Id: I2bd4bdf924687960a4fa3a47235bae68d885e445

Chenbo Feng   commited 2019-03-18 19:32:29 -07:00
f3e11e733d
Move the IpMemoryStore to the network stack.
Test: atest FrameworksNetTests
Change-Id: Ic5bd6ff54b09a6fa92b6863f240a5b053011acb6

Chalard Jean   authored and   Xiao Ma   commited 2019-03-18 11:33:17 +09:00
0727435c56
Merge "Remove NetworkParcelable"
am: 7391d04a26

Change-Id: I8dc6d665a33d19ecad2bd5f611c2b68e08d53b97

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-03-17 18:44:58 -07:00
7dc93f8a1e
Merge "Remove NetworkParcelable"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2019-03-18 01:30:25 +00:00
7391d04a26
Replace Handler with Executor for async DNS API
Bug: 124882626
Test: built, flashed, booted
      atest DnsResolverTest DnsPacketTest

Change-Id: Ie1dc27643d4767f2a8a39da755edf388a00962d5

Luke Huang   commited 2019-03-16 18:53:07 +08:00
9aa1520d40
Refactor answer callback for async DNS query JAVA API
1. refactor AnswerCallback with a generic type
2. support onError in AnswerCallback
3. Fix minor problem reported from API Review

Bug: 124882626
Test: built, flashed, booted
      atest DnsResolverTest DnsPacketTest

Change-Id: I685c9989f8401acb63d2e83f552b2d5b20c41af0

Luke Huang   commited 2019-03-16 18:53:05 +08:00
144cd67c38
Add unit tests related to data accounting for VPNs with one underlying
network.

This is to establish a baseline for the existing behavior, and to ensure
that following changes are not causing a regression in existing
behavior.

This CL is also adding missing cleanup for NetworkStatsCollectionTest
which was forcing all network types in NetworkTemplate that was causing
NetworkStatsService related tests to fail.

Bug: 113122541
Bug: 120145746
Test: atest FrameworksNetTests
Change-Id: I285f186cfb16bc9fa704c797996b1e4f8a73dee4

Varun Anand   commited 2019-03-15 17:23:28 -07:00
e22525bf92
Merge "Moved transport to IntDef"
am: 7b163381e2

Change-Id: I80d2bf5b3d195d4b05135006418ba4b638271f4f

Jack Yu   authored and   android-build-merger   commited 2019-03-15 16:31:06 -07:00
803679947b
Merge "Moved transport to IntDef"
Treehugger Robot   authored and   Gerrit Code Review   commited 2019-03-15 23:21:29 +00:00
7b163381e2
Remove NetworkParcelable
With the @JavaOnlyStableParcelable annotation, Network can now be used
as-is as a framework parcelable.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 126477266
Change-Id: I5d9695a31b3ac48d10edcf08ccd0c34375353b79

Remi NGUYEN VAN   commited 2019-03-16 03:51:09 +09:00
633c331167
Merge "Integrate testNetworkService and Manager with Connectivity stack"
am: bc233c9e62

Change-Id: I571e583d896841c814efe58b8c0875fa9cd3873c

Benedict Wong   authored and   android-build-merger   commited 2019-03-15 10:50:06 -07:00
9741d886d9
Merge "Integrate testNetworkService and Manager with Connectivity stack"
Benedict Wong   authored and   Gerrit Code Review   commited 2019-03-15 17:41:02 +00:00
bc233c9e62
Remove deprecated entitlement API
The deprecated entitlement APIs[1] is introduced in the Q
development cycle. It should be replaced by new APIs[2][3].

[1] https://android-review.googlesource.com/c/platform/frameworks/base/+/874220
[2] https://android-review.googlesource.com/c/platform/frameworks/base/+/920354
[3] https://android-review.googlesource.com/c/platform/frameworks/base/+/927513

Test: -build, flash, boot
bug: 126701557
bug: 126392011
Change-Id: I96487e9038c07363680a76db840994719d7ff768

markchien   authored and   Mark Chien   commited 2019-03-15 09:03:50 +00:00
5fe817f59c
Merge "[KA02.5] Use binder thread and executor to invoke callback"
am: f9ae70a41c

Change-Id: I892d4f4dc786aa42dcbe565f345e9a731f318c8a

Junyu Lai   authored and   android-build-merger   commited 2019-03-15 00:53:55 -07:00
750fbd0ab2
Moved transport to IntDef
Moved out from the sub class per API review feedback.

Test: Build
Bug: 128607082
Merged-In: I1b513bcaaa0ebf47c14593d962579ed48a7c6db0
Change-Id: I1b513bcaaa0ebf47c14593d962579ed48a7c6db0

Jack Yu   commited 2019-03-14 20:32:16 -07:00
9eda62ac04
[KA02.5] Use binder thread and executor to invoke callback
Currently, client side of keepalive event handling rely on a
newly created thread, looper, messenger and handler per object.

However, by creating oneway AIDL interface with the executor,
the callbacks can be invoked on the binder thread with user
specified context, which not only greatly simplify the design
but also reduce the cost of current thread modeling.

Bug: 114151147
Bug: 123969871
Test: 1. atest FrameworksNetTests --generate-new-metric 10
      2. atest-deflake.sh

Change-Id: I27504074cd28d5b5eb94a7ec0e97ebaaaaa1ae3d

junyulai   commited 2019-03-14 19:24:12 +08:00
9f87223db2
Merge "Rename entitlement callback to adhere to API guidelines."
am: a3c10cd22b

Change-Id: If58d5724000fba5e1d794a98ccc89b73ce842f4a

Jeremy Klein   authored and   android-build-merger   commited 2019-03-12 22:39:53 -07:00
b0f9bd21a2
Merge "Rename entitlement callback to adhere to API guidelines."
Treehugger Robot   authored and   Gerrit Code Review   commited 2019-03-13 04:48:24 +00:00
a3c10cd22b
Merge "Tell the factory it is already serving a request."
am: 40f6974c7a

Change-Id: I4c3948c2e7098668cf881d3f31fda87be1250828

Chalard Jean   authored and   android-build-merger   commited 2019-03-12 21:42:18 -07:00
183de75174
Merge "Temporarily disable flaky test."
am: d146d717c7

Change-Id: Ie482f459c2f8bce40098657daa39efccfdf2bcd3

Ian Kasprzak   authored and   android-build-merger   commited 2019-03-12 21:38:43 -07:00
3bab305ed9
Merge "[KA13]: add unit test for exposed TCP socket keepalive API."
am: a0b41a33e0

Change-Id: I79fb97913e8b69c525733dcaec59a60ac6b980b6

Xiao Ma   authored and   android-build-merger   commited 2019-03-12 21:29:48 -07:00
c8131b1668
Integrate testNetworkService and Manager with Connectivity stack
This change adds TestAPIs for tests to retrive an instance of
ConnectivityManager, allowing it to build test TUN interfaces, as well
as test networks.

This also integrates the TestNetwork types with ConnectivityManager,
creating virtual networks if the network agent is a test agent.

Bug: 72950854
Test: Compiles, CTS tests using this passing correctly
Change-Id: Ic1a04aa66014d1c66a74e65dbace3218437403ae
Merged-In: I741ef9cdf4bd4125d9129af3a030edf32f438e4f

Benedict Wong   commited 2019-03-13 02:26:30 +00:00
7f6071dc6e
Merge "Tell the factory it is already serving a request."
Chalard Jean   authored and   Gerrit Code Review   commited 2019-03-13 02:07:29 +00:00
40f6974c7a
Merge "Temporarily disable flaky test."
Ian Kasprzak   authored and   Gerrit Code Review   commited 2019-03-13 01:52:21 +00:00
d146d717c7
Merge "[KA13]: add unit test for exposed TCP socket keepalive API."
Xiao Ma   authored and   Gerrit Code Review   commited 2019-03-13 01:13:08 +00:00
a0b41a33e0
Temporarily disable flaky test.
Test: None
Bug: 128426024
Change-Id: Id88bf452f41f512703d5831e357d9ba72dc5b911

Lorenzo Colitti   commited 2019-03-13 09:23:54 +09:00
dc1e7d9bba
Rename entitlement callback to adhere to API guidelines.
The method for OnTetheringEntitlementResultListener needs to be
onTetheringEntitlementResult in order to meet our API guidelines:

"Use Listener when there is a single callback method and there will
never be any others. It should be an interface whose name is the same
as the callback method plus Listener."

Bug: 126392011
Change-Id: I9a883765541ae853c4eb3bd52c9d93a7af16e661
Test: Manual build

Jeremy Klein   commited 2019-03-12 13:36:21 -07:00
a9aad90398
Tell the factory it is already serving a request.
This is a cherry-pick of ag/607226 that has been rebased on
top of four years of changes and with comments addressed.

Gives each factory a serial number and propagates it to every
NetworkAgent so when a score comes back indicating a request is
being handled the factory can account for it properly.

Without this, a new request that's already handled by a network
offered by a factory will not cause an increment of the factorys
ref count. Concretely this results in issues like the RAT icon
not being displayed in spite of the network actually being up
and usable.

This will be ported to AOSP as soon as possible, but immediately
some master-only WiFi tests need to be adjusted with this change
which would not let me submit to AOSP.

Bug: 18637384
Bug: 29030667
Test: manual
Test: atest frameworks/opt/telephony/tests/telephonytests
Test: atest frameworks-net
Test: atest CtsNetTestCases CtsHostsideNetworkTests
Change-Id: I597ac588f76dd507512ff02868fd1310b7e63f7e
Merged-In: I597ac588f76dd507512ff02868fd1310b7e63f7e

Chalard Jean   commited 2019-03-12 21:47:21 +09:00
44689aab3b
Merge "[CS] Support "instant failure" from factories"
am: 6e6bca7632

Change-Id: I0c5f2823763857edfc5095686345c764d9be12e1

Chalard Jean   authored and   android-build-merger   commited 2019-03-12 05:25:48 -07:00
da8e8e4be0
Merge "[CS] Support "instant failure" from factories"
Chalard Jean   authored and   Gerrit Code Review   commited 2019-03-12 12:04:46 +00:00
6e6bca7632
[KA13]: add unit test for exposed TCP socket keepalive API.
Bug: 123987272
Test: atest FrameworksNetTests
Change-Id: I543d8f00ae539b706592a149981e3e8992999284

Xiao Ma   commited 2019-03-12 17:30:47 +09:00
75bbf7157a
Merge "Check if network has partial connectivity"
am: e54e1235e6

Change-Id: I3e94029fe067a1a22acc640a0df6a87720572b94

Lucas Lin   authored and   android-build-merger   commited 2019-03-12 01:28:50 -07:00
9ebfc37ff9
Merge "Check if network has partial connectivity"
Lucas Lin   authored and   Gerrit Code Review   commited 2019-03-12 08:11:14 +00:00
e54e1235e6
Check if network has partial connectivity
In some networks, network validation may only get success
result for http probe but fail result for https probe.
For this kind of network, it may still work at some websites
or apps, but user didn't know about that. In order to fix this
issue, we will check if network has partial connectivity and
notify user to make a choice if they want to use this partial
connectivity or not.

Bug: 113450764
Test: 1. Build pass.
      2. Fake partial connectivity case for testing.
      3. atest FrameworksNetTests
      4. atest NetworkStackTests

Change-Id: I69ed00ac4850904ff708c9fef22e148879a10e92

lucaslin   authored and   Lucas Lin   commited 2019-03-12 07:37:33 +00:00
25a5047d2c
Merge "Improve keepalive offload documentation and error handling"
am: 43b275b281

Change-Id: Ia87def27904309d405c39607326a77133632461d

Junyu Lai   authored and   android-build-merger   commited 2019-03-11 22:21:27 -07:00
8896c4a4f5
Merge "Improve keepalive offload documentation and error handling"
Junyu Lai   authored and   Gerrit Code Review   commited 2019-03-12 05:11:50 +00:00
43b275b281
[CS] Support "instant failure" from factories
Add a mechanism by which a factory can declare "instant failure" for
a request - which would result in it getting an OnUnavailable()
(even without a timeout).

Factories may only do this iff:
1. They know they are the only factory which may fulfill this
   request (common for transport-specific requests).
2. The know that the request can definitely not be
   fulfilled at any point in the future.

Bug: 31382922
Test: atest ConnectivityServiceTest
Merged-In: I9bce0f4d85fa8cad7f8a9998819f945b778c5ac5
Change-Id: I9bce0f4d85fa8cad7f8a9998819f945b778c5ac5

Etan Cohen   commited 2019-03-11 16:15:43 -07:00
06633de8ce
Merge "Add tethering event callback API"
am: 0b1754826e

Change-Id: Ie38a521abf09e0eb530173508b14aa2acdb9267c

Chalard Jean   authored and   android-build-merger   commited 2019-03-11 10:26:28 -07:00
cc91523736