OSDN Git Service

Move UidRange aidl declaration to system/netd
authorRobin Lee <rgl@google.com>
Wed, 30 Mar 2016 17:52:40 +0000 (18:52 +0100)
committerRobin Lee <rgl@google.com>
Mon, 18 Apr 2016 14:26:47 +0000 (15:26 +0100)
Which owns the native UidRange.cpp, so it makes more sense for the
declaration to live there since frameworks/base depends on netd but not
vice versa.

Bug: 26694104
Change-Id: I0efda77713ee6f0ec8070fb0e09a694b95f6cd25

Android.mk
core/java/android/net/UidRange.aidl [deleted file]
services/core/Android.mk

index ae5d67e..3cd2aa0 100644 (file)
@@ -474,7 +474,8 @@ LOCAL_AIDL_INCLUDES += \
 
 LOCAL_AIDL_INCLUDES += \
        frameworks/av/camera/aidl \
-       frameworks/native/aidl/gui
+       frameworks/native/aidl/gui \
+       system/netd/server/binder
 
 LOCAL_INTERMEDIATE_SOURCES := \
                        $(framework_res_source_path)/android/R.java \
@@ -690,6 +691,7 @@ aidl_files := \
        frameworks/base/core/java/android/database/CursorWindow.aidl \
        frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
        frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
+       system/netd/server/binder/android/net/UidRange.aidl \
 
 gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
 $(gen): PRIVATE_SRC_FILES := $(aidl_files)
diff --git a/core/java/android/net/UidRange.aidl b/core/java/android/net/UidRange.aidl
deleted file mode 100644 (file)
index f9be628..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2014 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.net;
-
-/**
- * An inclusive range of UIDs.
- *
- * {@hide}
- */
-parcelable UidRange;
index 99c5dd6..fc35dc2 100644 (file)
@@ -10,6 +10,9 @@ LOCAL_SRC_FILES += \
     java/com/android/server/am/EventLogTags.logtags \
     ../../../../system/netd/server/binder/android/net/INetd.aidl
 
+LOCAL_AIDL_INCLUDES += \
+    system/netd/server/binder
+
 LOCAL_JAVA_LIBRARIES := services.net telephony-common
 LOCAL_STATIC_JAVA_LIBRARIES := tzdata_update