1/* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19package android.os.statsd.devicepolicy; 20 21import "frameworks/proto_logging/stats/atoms.proto"; 22import "frameworks/proto_logging/stats/atom_field_options.proto"; 23import "frameworks/proto_logging/stats/enums/devicepolicy/enums.proto"; 24 25option java_package = "com.android.os.devicepolicy"; 26 27extend Atom { 28 optional DevicePolicyManagementMode device_policy_management_mode = 10216 [(module) = "devicepolicy"]; 29 optional DevicePolicyState device_policy_state = 10217 [(module) = "devicepolicy"]; 30} 31 32message DevicePolicyManagementMode { 33 // The management mode of the device. 34 optional android.stats.devicepolicy.ManagementMode management_mode = 1; 35} 36 37message DevicePolicyState { 38 // The password quality requirement policy enforced on the devices. 39 optional android.stats.devicepolicy.PasswordComplexity password_complexity = 1; 40 // The management mode of the device. 41 optional android.stats.devicepolicy.ManagementMode management_mode = 2; 42} 43