• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.stats.devicepolicy;
20
21enum ManagementMode {
22  MANAGEMENT_MODE_UNSPECIFIED = 0;
23  // Device owner
24  // See https://developers.google.com/android/work/terminology#device_owner_do
25  DEVICE_OWNER = 1;
26  // Profile owner
27  // See https://developers.google.com/android/work/terminology#profile_owner_po
28  PROFILE_OWNER = 2;
29  // Corporate-owned, personally enabled
30  // See https://developers.google.com/android/work/terminology#corporate-owned_personally_enabled_cope
31  COPE = 3;
32  // A special DEVICE OWNER mode for financed device
33  DEVICE_OWNER_FINANCED = 4;
34}
35
36enum PasswordComplexity {
37  // The required password complexity.
38  // See https://developer.android.com/reference/android/app/admin/DevicePolicyManager#getRequiredPasswordComplexity()
39  COMPLEXITY_UNSPECIFIED = 0;  // If password complexity is none of the below
40  COMPLEXITY_NONE = 1;  // If password complexity is PASSWORD_COMPLEXITY_NONE
41  COMPLEXITY_LEGACY = 2; // If the password requirement is set with deprecated password quality
42  COMPLEXITY_LOW = 3; // If password complexity is PASSWORD_COMPLEXITY_LOW
43  COMPLEXITY_MEDIUM = 4; // If password complexity is PASSWORD_COMPLEXITY_MEDIUM
44  COMPLEXITY_HIGH = 5; // If password complexity is PASSWORD_COMPLEXITY_HIGH
45}
46