summaryrefslogtreecommitdiffstats
path: root/core/java/com
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2014-05-27 13:20:24 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2014-06-02 16:19:08 -0700
commit3192dec32180f56733e631c2d9ec62fa1359283d (patch)
tree81df7713efd1bd18222d25c5fb649accca8fca83 /core/java/com
parent8f3799867d2c3322a7191803b2dda54583305ea0 (diff)
downloadframeworks_base-3192dec32180f56733e631c2d9ec62fa1359283d.zip
frameworks_base-3192dec32180f56733e631c2d9ec62fa1359283d.tar.gz
frameworks_base-3192dec32180f56733e631c2d9ec62fa1359283d.tar.bz2
Refactor NetworkFactory.
Make NetworkFactory a concrete class and divide responsibilites between it and NetworkAgent. Factory will track requests and by default give a single connect/disconnect api for ease of use. Then NetworkAgent is created and destroyed as needed with very simple logic. Change-Id: I401c14a6e5466f2fc63b04219b97ff85bb9af291
Diffstat (limited to 'core/java/com')
-rw-r--r--core/java/com/android/internal/util/Protocol.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/com/android/internal/util/Protocol.java b/core/java/com/android/internal/util/Protocol.java
index 81e67d8..af966b1 100644
--- a/core/java/com/android/internal/util/Protocol.java
+++ b/core/java/com/android/internal/util/Protocol.java
@@ -57,9 +57,9 @@ public class Protocol {
public static final int BASE_DNS_PINGER = 0x00050000;
public static final int BASE_NSD_MANAGER = 0x00060000;
public static final int BASE_NETWORK_STATE_TRACKER = 0x00070000;
- public static final int BASE_CONNECTIVITY_SERVICE = 0x00080000;
+ public static final int BASE_CONNECTIVITY_MANAGER = 0x00080000;
public static final int BASE_NETWORK_AGENT = 0x00081000;
public static final int BASE_NETWORK_MONITOR = 0x00082000;
- public static final int BASE_CONNECTIVITY_MANAGER = 0x00083000;
+ public static final int BASE_NETWORK_FACTORY = 0x00083000;
//TODO: define all used protocols
}