1/* 2 * Copyright (C) 2020 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.nfc.cardemulation; 19 20import "frameworks/base/core/proto/android/content/component_name.proto"; 21import "frameworks/base/core/proto/android/nfc/aid_group.proto"; 22import "frameworks/base/core/proto/android/privacy.proto"; 23 24option java_multiple_files = true; 25 26// Debugging information for android.nfc.cardemulation.ApduServiceInfo 27message ApduServiceInfoProto { 28 option (.android.msg_privacy).dest = DEST_EXPLICIT; 29 30 message AutoTransactMapping { 31 option (.android.msg_privacy).dest = DEST_EXPLICIT; 32 33 optional string aid = 1; 34 optional bool should_auto_transact = 2; 35 } 36 37 message AutoTransactPattern { 38 option (.android.msg_privacy).dest = DEST_EXPLICIT; 39 40 optional string regexp_pattern = 1; 41 optional bool should_auto_transact = 2; 42 } 43 44 optional .android.content.ComponentNameProto component_name = 1; 45 optional string description = 2; 46 optional bool on_host = 3; 47 optional string off_host_name = 4; 48 optional string static_off_host_name = 5; 49 repeated AidGroupProto static_aid_groups = 6; 50 repeated AidGroupProto dynamic_aid_groups = 7; 51 optional string settings_activity_name = 8; 52 optional bool should_default_to_observe_mode = 9; 53 repeated AutoTransactMapping auto_transact_mapping = 10; 54 repeated AutoTransactPattern auto_transact_patterns = 11; 55} 56