From 8fb80dd0750da046147d5cda4f786608bfde2f63 Mon Sep 17 00:00:00 2001 From: Kangping Dong Date: Thu, 22 Feb 2024 10:59:36 +0800 Subject: [PATCH] [Thread] add Thread aconfig_declaration to java_sdk_library This commit also moves Thread flags to Connectivity/common to ease maintenance. Test: m framework-connectivity-t Bug: 317290555 Merged-In: I50f3d3b8205a5a9ee8154a649318a2c175edbb71 Merged-In: I8a71f4ee49cc68a9512f432e454469200f2a5058 Change-Id: I8a71f4ee49cc68a9512f432e454469200f2a5058 --- common/FlaggedApi.bp | 8 +++++++ common/OWNERS | 1 + .../thread_flags.aconfig | 0 framework-t/Android.bp | 1 + thread/flags/Android.bp | 23 ------------------- 5 files changed, 10 insertions(+), 23 deletions(-) create mode 100644 common/OWNERS rename thread/flags/thread_base.aconfig => common/thread_flags.aconfig (100%) delete mode 100644 thread/flags/Android.bp diff --git a/common/FlaggedApi.bp b/common/FlaggedApi.bp index 449d7ae77e..56625c5185 100644 --- a/common/FlaggedApi.bp +++ b/common/FlaggedApi.bp @@ -22,6 +22,14 @@ aconfig_declarations { visibility: ["//packages/modules/Connectivity:__subpackages__"], } +aconfig_declarations { + name: "com.android.net.thread.flags-aconfig", + package: "com.android.net.thread.flags", + container: "system", + srcs: ["thread_flags.aconfig"], + visibility: ["//packages/modules/Connectivity:__subpackages__"], +} + aconfig_declarations { name: "nearby_flags", package: "com.android.nearby.flags", diff --git a/common/OWNERS b/common/OWNERS new file mode 100644 index 0000000000..e7f5d11f73 --- /dev/null +++ b/common/OWNERS @@ -0,0 +1 @@ +per-file thread_flags.aconfig = file:platform/packages/modules/Connectivity:main:/thread/OWNERS diff --git a/thread/flags/thread_base.aconfig b/common/thread_flags.aconfig similarity index 100% rename from thread/flags/thread_base.aconfig rename to common/thread_flags.aconfig diff --git a/framework-t/Android.bp b/framework-t/Android.bp index e40b55cf09..468cee4613 100644 --- a/framework-t/Android.bp +++ b/framework-t/Android.bp @@ -197,6 +197,7 @@ java_sdk_library { ], aconfig_declarations: [ "com.android.net.flags-aconfig", + "com.android.net.thread.flags-aconfig", "nearby_flags", ], } diff --git a/thread/flags/Android.bp b/thread/flags/Android.bp deleted file mode 100644 index 15f58a9a03..0000000000 --- a/thread/flags/Android.bp +++ /dev/null @@ -1,23 +0,0 @@ -// -// Copyright (C) 2024 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. -// - -aconfig_declarations { - name: "com.android.net.thread.flags-aconfig", - package: "com.android.net.thread.flags", - container: "system", - srcs: ["thread_base.aconfig"], - visibility: ["//packages/modules/Connectivity:__subpackages__"], -}