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 = "proto3"; 18 19package com.android.server.art.proto; 20option java_multiple_files = true; 21 22import "art/libartservice/service/proto/common.proto"; 23 24// The protobuf representation of `DexUseManagerLocal.DexUse`. See classes in 25// java/com/android/server/art/DexUseManagerLocal.java for details. 26// This proto is persisted on disk and both forward and backward compatibility are considerations. 27message DexUseProto { 28 repeated PackageDexUseProto package_dex_use = 1; 29} 30 31message PackageDexUseProto { 32 string owning_package_name = 1; 33 repeated PrimaryDexUseProto primary_dex_use = 2; 34 repeated SecondaryDexUseProto secondary_dex_use = 3; 35} 36 37message PrimaryDexUseProto { 38 string dex_file = 1; 39 repeated PrimaryDexUseRecordProto record = 2; 40} 41 42message PrimaryDexUseRecordProto { 43 string loading_package_name = 1; 44 bool isolated_process = 2; 45 int64 last_used_at_ms = 3; 46} 47 48message SecondaryDexUseProto { 49 string dex_file = 1; 50 Int32Value user_id = 2; // Must be explicitly set. 51 repeated SecondaryDexUseRecordProto record = 3; 52} 53 54message SecondaryDexUseRecordProto { 55 string loading_package_name = 1; 56 bool isolated_process = 2; 57 string class_loader_context = 3; 58 string abi_name = 4; 59 int64 last_used_at_ms = 5; 60} 61