• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2023 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";
18package android.providers.settings;
19
20option java_multiple_files = true;
21
22import "frameworks/base/core/proto/android/privacy.proto";
23
24message GenerationRegistryProto {
25  option (android.msg_privacy).dest = DEST_EXPLICIT;
26  optional int32 num_backing_stores = 1;
27  optional int32 num_max_backing_stores = 2;
28  repeated BackingStoreProto backing_stores = 3;
29}
30
31message BackingStoreProto {
32  optional int32 key = 1;
33  optional int32 backing_store_size = 2;
34  optional int32 num_cached_entries = 3;
35  repeated CacheEntryProto cache_entries = 4;
36}
37
38message CacheEntryProto {
39  optional string name = 1;
40  optional int32 generation = 2;
41}