• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2015 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    // http://go/android-license-faq
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20// Library of classes for handling time zone distros. Used on-device for
21// handling distros and within CTS tests.
22//
23// This is distinct from time_zone_distro_unbundled. It should be used
24// for platform code as it avoids circular dependencies when stubs targets
25// need to build framework (as appears to be the case in aosp/master).
26// Also used from host-side tests and tools.
27java_library {
28    name: "time_zone_distro",
29    host_supported: true,
30
31    srcs: ["src/main/**/*.java"],
32    target: {
33        host: {
34            static_libs: ["timezone-host"],
35        },
36    },
37}
38
39// Library of classes for handling time zone distros. Used in unbundled
40// cases. Same as above, except dependent on system_current stubs.
41java_library {
42    name: "time_zone_distro_unbundled",
43
44    srcs: ["src/main/**/*.java"],
45    sdk_version: "system_current",
46}
47
48// Tests for time_zone_distro code (see CtsLibcoreTestCases)
49java_library {
50    name: "time_zone_distro-tests",
51
52    srcs: ["src/test/**/*.java"],
53    static_libs: [
54        "time_zone_distro",
55        "core-tests-support",
56        "junit",
57    ],
58}
59