Do not export private AIDL files of the media module

The current directory contains public and private AIDL types in the same place.
This CL separates into two directories and makes the directory having the
public types should be exported.

Bug: 148660295
Test: build
Change-Id: Ib2632afa00f7fa7f992690e68684464928cd3c61
This commit is contained in:
Sungsoo Lim
2020-04-08 11:21:36 +09:00
parent 8694188f71
commit 895f4f6914
9 changed files with 40 additions and 9 deletions

View File

@@ -339,9 +339,7 @@ java_defaults {
"sax/java",
"telecomm/java",
// TODO(b/148660295): remove this
"apex/media/framework/java",
"apex/media/aidl/stable",
// TODO(b/147699819): remove this
"telephony/java",
],

View File

@@ -0,0 +1,35 @@
//
// Copyright 2020 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.
//
filegroup {
name: "stable-mediasession2-aidl-srcs",
srcs: ["stable/**/*.aidl"],
path: "stable",
}
filegroup {
name: "private-mediasession2-aidl-srcs",
srcs: ["private/**/I*.aidl"],
path: "private",
}
filegroup {
name: "mediasession2-aidl-srcs",
srcs: [
":private-mediasession2-aidl-srcs",
":stable-mediasession2-aidl-srcs",
],
}

View File

@@ -55,17 +55,15 @@ filegroup {
name: "updatable-media-srcs",
srcs: [
":mediaparser-srcs",
":mediasession2-srcs",
":mediasession2-java-srcs",
":mediasession2-aidl-srcs",
],
}
filegroup {
name: "mediasession2-srcs",
name: "mediasession2-java-srcs",
srcs: [
"java/android/media/Controller2Link.java",
"java/android/media/IMediaController2.aidl",
"java/android/media/IMediaSession2.aidl",
"java/android/media/IMediaSession2Service.aidl",
"java/android/media/MediaConstants.java",
"java/android/media/MediaController2.java",
"java/android/media/MediaSession2.java",
@@ -83,7 +81,7 @@ filegroup {
srcs: [
"java/android/media/MediaParser.java"
],
path: "java"
path: "java",
}
stubs_defaults {