Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / library / aosp-stubs / src / main / java / android / net / NetworkAgent.java

NetworkAgent.java38 lines · 1.1 KiBRaw
1package android.net;
2
3import android.content.Context;
4import android.os.Looper;
5
6/**
7 * Stub of the @SystemApi {@code android.net.NetworkAgent} (framework-connectivity). Only the
8 * surface :share's AirDrop link uses: constructing, registering, marking connected and
9 * unregistering a local-only network for the Mosey {@code mosey0} interface.
10 */
11public abstract class NetworkAgent {
12 public NetworkAgent(Context context, Looper looper, String logTag, NetworkCapabilities nc,
13 LinkProperties lp, NetworkScore score, NetworkAgentConfig config,
14 NetworkProvider provider) {
15 // provider may be null: an agent need not belong to a registered provider.
16 throw new RuntimeException("Stub!");
17 }
18
19 public Network register() {
20 throw new RuntimeException("Stub!");
21 }
22
23 public void markConnected() {
24 throw new RuntimeException("Stub!");
25 }
26
27 public void unregister() {
28 throw new RuntimeException("Stub!");
29 }
30
31 public Network getNetwork() {
32 throw new RuntimeException("Stub!");
33 }
34
35 public void onNetworkUnwanted() {
36 throw new RuntimeException("Stub!");
37 }
38}