xref: /aosp_15_r20/cts/common/device-side/bedstead/dpmwrapper/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1*b7c941bbSAndroid Build Coastguard Worker// Copyright (C) 2021 The Android Open Source Project
2*b7c941bbSAndroid Build Coastguard Worker//
3*b7c941bbSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*b7c941bbSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*b7c941bbSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*b7c941bbSAndroid Build Coastguard Worker//
7*b7c941bbSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0
8*b7c941bbSAndroid Build Coastguard Worker//
9*b7c941bbSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*b7c941bbSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*b7c941bbSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*b7c941bbSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*b7c941bbSAndroid Build Coastguard Worker// limitations under the License.
14*b7c941bbSAndroid Build Coastguard Worker
15*b7c941bbSAndroid Build Coastguard Worker// TODO(b/176993670): hacky DevicePolicyManager implementation that uses ordered broadcasts and a
16*b7c941bbSAndroid Build Coastguard Worker// Mockito spy to implement the IPC between users (so tests running on current user can call the
17*b7c941bbSAndroid Build Coastguard Worker// device owner running on system user), but before S is shipped it should be replaced by using the
18*b7c941bbSAndroid Build Coastguard Worker// connected apps SDK or the new CTS infrastructure.
19*b7c941bbSAndroid Build Coastguard Workerpackage {
20*b7c941bbSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
21*b7c941bbSAndroid Build Coastguard Worker}
22*b7c941bbSAndroid Build Coastguard Worker
23*b7c941bbSAndroid Build Coastguard Workerjava_library {
24*b7c941bbSAndroid Build Coastguard Worker    name: "DpmWrapper",
25*b7c941bbSAndroid Build Coastguard Worker    platform_apis: true,
26*b7c941bbSAndroid Build Coastguard Worker    srcs: [
27*b7c941bbSAndroid Build Coastguard Worker        "src/main/java/**/*.java",
28*b7c941bbSAndroid Build Coastguard Worker    ],
29*b7c941bbSAndroid Build Coastguard Worker    static_libs: [
30*b7c941bbSAndroid Build Coastguard Worker        "androidx.localbroadcastmanager_localbroadcastmanager",
31*b7c941bbSAndroid Build Coastguard Worker        "mockito-target-minus-junit4",
32*b7c941bbSAndroid Build Coastguard Worker        "compatibility-device-util-axt",
33*b7c941bbSAndroid Build Coastguard Worker    ],
34*b7c941bbSAndroid Build Coastguard Worker}
35