1*9e94795aSAndroid Build Coastguard Worker// Copyright 2024 The Android Open Source Project 2*9e94795aSAndroid Build Coastguard Worker// 3*9e94795aSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*9e94795aSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*9e94795aSAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*9e94795aSAndroid Build Coastguard Worker// 7*9e94795aSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*9e94795aSAndroid Build Coastguard Worker// 9*9e94795aSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*9e94795aSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*9e94795aSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*9e94795aSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*9e94795aSAndroid Build Coastguard Worker// limitations under the License. 14*9e94795aSAndroid Build Coastguard Worker 15*9e94795aSAndroid Build Coastguard Worker// Set of error prone rules to ensure code quality 16*9e94795aSAndroid Build Coastguard Worker// PackageLocation check requires the androidCompatible=false otherwise it does not do anything. 17*9e94795aSAndroid Build Coastguard Worker 18*9e94795aSAndroid Build Coastguard Workerpackage { 19*9e94795aSAndroid Build Coastguard Worker default_applicable_licenses: ["Android-Apache-2.0"], 20*9e94795aSAndroid Build Coastguard Worker default_team: "trendy_team_adte", 21*9e94795aSAndroid Build Coastguard Worker} 22*9e94795aSAndroid Build Coastguard Worker 23*9e94795aSAndroid Build Coastguard Workerpython_library_host { 24*9e94795aSAndroid Build Coastguard Worker name: "edit_event_proto", 25*9e94795aSAndroid Build Coastguard Worker srcs: [ 26*9e94795aSAndroid Build Coastguard Worker "proto/edit_event.proto", 27*9e94795aSAndroid Build Coastguard Worker ], 28*9e94795aSAndroid Build Coastguard Worker proto: { 29*9e94795aSAndroid Build Coastguard Worker canonical_path_from_root: false, 30*9e94795aSAndroid Build Coastguard Worker }, 31*9e94795aSAndroid Build Coastguard Worker} 32*9e94795aSAndroid Build Coastguard Worker 33*9e94795aSAndroid Build Coastguard Workerpython_library_host { 34*9e94795aSAndroid Build Coastguard Worker name: "edit_monitor_lib", 35*9e94795aSAndroid Build Coastguard Worker pkg_path: "edit_monitor", 36*9e94795aSAndroid Build Coastguard Worker srcs: [ 37*9e94795aSAndroid Build Coastguard Worker "daemon_manager.py", 38*9e94795aSAndroid Build Coastguard Worker "edit_monitor.py", 39*9e94795aSAndroid Build Coastguard Worker "utils.py", 40*9e94795aSAndroid Build Coastguard Worker ], 41*9e94795aSAndroid Build Coastguard Worker libs: [ 42*9e94795aSAndroid Build Coastguard Worker "asuite_cc_client", 43*9e94795aSAndroid Build Coastguard Worker "edit_event_proto", 44*9e94795aSAndroid Build Coastguard Worker "watchdog", 45*9e94795aSAndroid Build Coastguard Worker ], 46*9e94795aSAndroid Build Coastguard Worker} 47*9e94795aSAndroid Build Coastguard Worker 48*9e94795aSAndroid Build Coastguard Workerpython_test_host { 49*9e94795aSAndroid Build Coastguard Worker name: "daemon_manager_test", 50*9e94795aSAndroid Build Coastguard Worker main: "daemon_manager_test.py", 51*9e94795aSAndroid Build Coastguard Worker pkg_path: "edit_monitor", 52*9e94795aSAndroid Build Coastguard Worker srcs: [ 53*9e94795aSAndroid Build Coastguard Worker "daemon_manager_test.py", 54*9e94795aSAndroid Build Coastguard Worker ], 55*9e94795aSAndroid Build Coastguard Worker libs: [ 56*9e94795aSAndroid Build Coastguard Worker "edit_monitor_lib", 57*9e94795aSAndroid Build Coastguard Worker ], 58*9e94795aSAndroid Build Coastguard Worker test_options: { 59*9e94795aSAndroid Build Coastguard Worker unit_test: true, 60*9e94795aSAndroid Build Coastguard Worker }, 61*9e94795aSAndroid Build Coastguard Worker} 62*9e94795aSAndroid Build Coastguard Worker 63*9e94795aSAndroid Build Coastguard Workerpython_test_host { 64*9e94795aSAndroid Build Coastguard Worker name: "edit_monitor_test", 65*9e94795aSAndroid Build Coastguard Worker main: "edit_monitor_test.py", 66*9e94795aSAndroid Build Coastguard Worker pkg_path: "edit_monitor", 67*9e94795aSAndroid Build Coastguard Worker srcs: [ 68*9e94795aSAndroid Build Coastguard Worker "edit_monitor_test.py", 69*9e94795aSAndroid Build Coastguard Worker ], 70*9e94795aSAndroid Build Coastguard Worker libs: [ 71*9e94795aSAndroid Build Coastguard Worker "edit_monitor_lib", 72*9e94795aSAndroid Build Coastguard Worker ], 73*9e94795aSAndroid Build Coastguard Worker test_options: { 74*9e94795aSAndroid Build Coastguard Worker unit_test: true, 75*9e94795aSAndroid Build Coastguard Worker }, 76*9e94795aSAndroid Build Coastguard Worker} 77*9e94795aSAndroid Build Coastguard Worker 78*9e94795aSAndroid Build Coastguard Workerpython_test_host { 79*9e94795aSAndroid Build Coastguard Worker name: "edit_monitor_utils_test", 80*9e94795aSAndroid Build Coastguard Worker main: "utils_test.py", 81*9e94795aSAndroid Build Coastguard Worker pkg_path: "edit_monitor", 82*9e94795aSAndroid Build Coastguard Worker srcs: [ 83*9e94795aSAndroid Build Coastguard Worker "utils_test.py", 84*9e94795aSAndroid Build Coastguard Worker ], 85*9e94795aSAndroid Build Coastguard Worker libs: [ 86*9e94795aSAndroid Build Coastguard Worker "edit_monitor_lib", 87*9e94795aSAndroid Build Coastguard Worker ], 88*9e94795aSAndroid Build Coastguard Worker test_options: { 89*9e94795aSAndroid Build Coastguard Worker unit_test: true, 90*9e94795aSAndroid Build Coastguard Worker }, 91*9e94795aSAndroid Build Coastguard Worker} 92*9e94795aSAndroid Build Coastguard Worker 93*9e94795aSAndroid Build Coastguard Workerpython_test_host { 94*9e94795aSAndroid Build Coastguard Worker name: "edit_monitor_integration_test", 95*9e94795aSAndroid Build Coastguard Worker main: "edit_monitor_integration_test.py", 96*9e94795aSAndroid Build Coastguard Worker pkg_path: "testdata", 97*9e94795aSAndroid Build Coastguard Worker srcs: [ 98*9e94795aSAndroid Build Coastguard Worker "edit_monitor_integration_test.py", 99*9e94795aSAndroid Build Coastguard Worker ], 100*9e94795aSAndroid Build Coastguard Worker test_options: { 101*9e94795aSAndroid Build Coastguard Worker unit_test: true, 102*9e94795aSAndroid Build Coastguard Worker }, 103*9e94795aSAndroid Build Coastguard Worker data: [ 104*9e94795aSAndroid Build Coastguard Worker ":edit_monitor", 105*9e94795aSAndroid Build Coastguard Worker ], 106*9e94795aSAndroid Build Coastguard Worker} 107*9e94795aSAndroid Build Coastguard Worker 108*9e94795aSAndroid Build Coastguard Workerpython_binary_host { 109*9e94795aSAndroid Build Coastguard Worker name: "edit_monitor", 110*9e94795aSAndroid Build Coastguard Worker pkg_path: "edit_monitor", 111*9e94795aSAndroid Build Coastguard Worker srcs: [ 112*9e94795aSAndroid Build Coastguard Worker "main.py", 113*9e94795aSAndroid Build Coastguard Worker ], 114*9e94795aSAndroid Build Coastguard Worker libs: [ 115*9e94795aSAndroid Build Coastguard Worker "edit_monitor_lib", 116*9e94795aSAndroid Build Coastguard Worker ], 117*9e94795aSAndroid Build Coastguard Worker main: "main.py", 118*9e94795aSAndroid Build Coastguard Worker} 119