1*d57664e9SAndroid Build Coastguard Worker/* 2*d57664e9SAndroid Build Coastguard Worker * Copyright (C) 2016 The Android Open Source Project 3*d57664e9SAndroid Build Coastguard Worker * 4*d57664e9SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*d57664e9SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*d57664e9SAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*d57664e9SAndroid Build Coastguard Worker * 8*d57664e9SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*d57664e9SAndroid Build Coastguard Worker * 10*d57664e9SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*d57664e9SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*d57664e9SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*d57664e9SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*d57664e9SAndroid Build Coastguard Worker * limitations under the License. 15*d57664e9SAndroid Build Coastguard Worker */ 16*d57664e9SAndroid Build Coastguard Worker 17*d57664e9SAndroid Build Coastguard Workersyntax = "proto3"; 18*d57664e9SAndroid Build Coastguard Worker 19*d57664e9SAndroid Build Coastguard Workerimport "frameworks/base/tools/aapt2/Configuration.proto"; 20*d57664e9SAndroid Build Coastguard Workerimport "frameworks/base/tools/aapt2/Resources.proto"; 21*d57664e9SAndroid Build Coastguard Worker 22*d57664e9SAndroid Build Coastguard Workerpackage aapt.pb.internal; 23*d57664e9SAndroid Build Coastguard Worker 24*d57664e9SAndroid Build Coastguard Workeroption java_package = "android.aapt.pb.internal"; 25*d57664e9SAndroid Build Coastguard Worker 26*d57664e9SAndroid Build Coastguard Worker// The top level message representing an external resource file (layout XML, PNG, etc). 27*d57664e9SAndroid Build Coastguard Worker// This is used to represent a compiled file before it is linked. Only useful to aapt2. 28*d57664e9SAndroid Build Coastguard Workermessage CompiledFile { 29*d57664e9SAndroid Build Coastguard Worker message Symbol { 30*d57664e9SAndroid Build Coastguard Worker // The name of the symbol (in the form package:type/name). 31*d57664e9SAndroid Build Coastguard Worker string resource_name = 1; 32*d57664e9SAndroid Build Coastguard Worker 33*d57664e9SAndroid Build Coastguard Worker // The position in the file at which this symbol is defined. For debug use. 34*d57664e9SAndroid Build Coastguard Worker aapt.pb.SourcePosition source = 2; 35*d57664e9SAndroid Build Coastguard Worker } 36*d57664e9SAndroid Build Coastguard Worker 37*d57664e9SAndroid Build Coastguard Worker // The name of the resource (in the form package:type/name). 38*d57664e9SAndroid Build Coastguard Worker string resource_name = 1; 39*d57664e9SAndroid Build Coastguard Worker 40*d57664e9SAndroid Build Coastguard Worker // The configuration for which the resource is defined. 41*d57664e9SAndroid Build Coastguard Worker aapt.pb.Configuration config = 2; 42*d57664e9SAndroid Build Coastguard Worker 43*d57664e9SAndroid Build Coastguard Worker // The type of the file. 44*d57664e9SAndroid Build Coastguard Worker aapt.pb.FileReference.Type type = 3; 45*d57664e9SAndroid Build Coastguard Worker 46*d57664e9SAndroid Build Coastguard Worker // The filesystem path to where the source file originated. 47*d57664e9SAndroid Build Coastguard Worker // Mainly used to display helpful error messages. 48*d57664e9SAndroid Build Coastguard Worker string source_path = 4; 49*d57664e9SAndroid Build Coastguard Worker 50*d57664e9SAndroid Build Coastguard Worker // Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file). 51*d57664e9SAndroid Build Coastguard Worker repeated Symbol exported_symbol = 5; 52*d57664e9SAndroid Build Coastguard Worker 53*d57664e9SAndroid Build Coastguard Worker // The status of the flag the file is behind if any 54*d57664e9SAndroid Build Coastguard Worker uint32 flag_status = 6; 55*d57664e9SAndroid Build Coastguard Worker bool flag_negated = 7; 56*d57664e9SAndroid Build Coastguard Worker string flag_name = 8; 57*d57664e9SAndroid Build Coastguard Worker} 58