• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2025 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 */
16syntax = "proto2";
17
18package android.os.statsd.automotive.sensitiveapplock;
19
20import "frameworks/proto_logging/stats/atoms.proto";
21import "frameworks/proto_logging/stats/atom_field_options.proto";
22
23option java_package = "com.android.os.automotive.sensitiveapplock";
24option java_multiple_files = true;
25
26extend Atom {
27  optional SensitiveAppLockStateChanged sensitive_app_lock_state_changed = 1030 [(module) = "sensitiveapplock"];
28}
29
30/**
31 * Logs when the user enables or disables app locking for an app.
32 */
33message SensitiveAppLockStateChanged {
34  // True if the user has enabled app locking.
35  optional bool app_lock_enabled = 1;
36  // List of package uids that have app lock enabled.
37  repeated int32 packages_uid = 2 [(is_uid) = true];
38  // True if the user has profile lock enabled.
39  optional bool profile_lock_enabled = 3;
40}
41