commit | eca9b9bd8b9a4d0a2de8af8edc20834dd46b98b3 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue Mar 10 01:36:14 2015 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Mar 20 16:32:36 2015 +0900 |
tree | 952aad9cc5d58ce94ddc4625083872f2559e2283 | |
parent | cbe4f7c225f87ef1e8cb496bce434f334774bc88 [diff] |
DHCP: Move the packet code to frameworks/base/services. There's no need for it to be in frameworks/base/core, since it will only be used by services. Bug: 19704592 Change-Id: I2f5277eca848b7000ca46db575e8602eacb5c8bd
diff --git a/services/Android.mk b/services/Android.mk index da85528..8777085 100644 --- a/services/Android.mk +++ b/services/Android.mk
@@ -24,6 +24,7 @@ appwidget \ backup \ devicepolicy \ + net \ print \ restrictions \ usage \
diff --git a/services/net/Android.mk b/services/net/Android.mk new file mode 100644 index 0000000..336bc45 --- /dev/null +++ b/services/net/Android.mk
@@ -0,0 +1,10 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := services.net + +LOCAL_SRC_FILES += \ + $(call all-java-files-under,java) + +include $(BUILD_STATIC_JAVA_LIBRARY)
diff --git a/core/java/android/net/dhcp/DhcpAckPacket.java b/services/net/java/android/net/dhcp/DhcpAckPacket.java similarity index 100% rename from core/java/android/net/dhcp/DhcpAckPacket.java rename to services/net/java/android/net/dhcp/DhcpAckPacket.java
diff --git a/core/java/android/net/dhcp/DhcpDeclinePacket.java b/services/net/java/android/net/dhcp/DhcpDeclinePacket.java similarity index 100% rename from core/java/android/net/dhcp/DhcpDeclinePacket.java rename to services/net/java/android/net/dhcp/DhcpDeclinePacket.java
diff --git a/core/java/android/net/dhcp/DhcpDiscoverPacket.java b/services/net/java/android/net/dhcp/DhcpDiscoverPacket.java similarity index 100% rename from core/java/android/net/dhcp/DhcpDiscoverPacket.java rename to services/net/java/android/net/dhcp/DhcpDiscoverPacket.java
diff --git a/core/java/android/net/dhcp/DhcpInformPacket.java b/services/net/java/android/net/dhcp/DhcpInformPacket.java similarity index 100% rename from core/java/android/net/dhcp/DhcpInformPacket.java rename to services/net/java/android/net/dhcp/DhcpInformPacket.java
diff --git a/core/java/android/net/dhcp/DhcpNakPacket.java b/services/net/java/android/net/dhcp/DhcpNakPacket.java similarity index 100% rename from core/java/android/net/dhcp/DhcpNakPacket.java rename to services/net/java/android/net/dhcp/DhcpNakPacket.java
diff --git a/core/java/android/net/dhcp/DhcpOfferPacket.java b/services/net/java/android/net/dhcp/DhcpOfferPacket.java similarity index 100% rename from core/java/android/net/dhcp/DhcpOfferPacket.java rename to services/net/java/android/net/dhcp/DhcpOfferPacket.java
diff --git a/core/java/android/net/dhcp/DhcpPacket.java b/services/net/java/android/net/dhcp/DhcpPacket.java similarity index 99% rename from core/java/android/net/dhcp/DhcpPacket.java rename to services/net/java/android/net/dhcp/DhcpPacket.java index c7c25f0..68108fe 100644 --- a/core/java/android/net/dhcp/DhcpPacket.java +++ b/services/net/java/android/net/dhcp/DhcpPacket.java
@@ -8,6 +8,7 @@ import java.nio.ShortBuffer; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; /**
diff --git a/core/java/android/net/dhcp/DhcpRequestPacket.java b/services/net/java/android/net/dhcp/DhcpRequestPacket.java similarity index 100% rename from core/java/android/net/dhcp/DhcpRequestPacket.java rename to services/net/java/android/net/dhcp/DhcpRequestPacket.java
diff --git a/core/java/android/net/dhcp/DhcpStateMachine.java b/services/net/java/android/net/dhcp/DhcpStateMachine.java similarity index 100% rename from core/java/android/net/dhcp/DhcpStateMachine.java rename to services/net/java/android/net/dhcp/DhcpStateMachine.java