1// Copyright (C) 2018 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License 14 15syntax = "proto2"; 16 17option java_package = "com.android.contacts.common.widget"; 18option java_multiple_files = true; 19 20 21package com.android.contacts.common.widget; 22 23// Parameters for SelectPhoneAccountDialogFragment 24message SelectPhoneAccountDialogOptions { 25 // The resource ID for the title. Defaults to 26 // R.string.select_account_dialog_title 27 optional int32 title = 1; 28 // Whether the dialog should include a "set as default" checkbox. Defaults to 29 // false 30 optional bool can_set_default = 2; 31 // The label on the "set as default" checkbox. Defaults 32 // R.string.set_default_account 33 optional int32 set_default_label = 3; 34 // The call ID to pass back to the callback 35 optional string call_id = 4; 36 // Phone accounts to show in the dialog 37 repeated Entry entries = 5; 38 39 message Entry { 40 // PhoneAccountHandle.getComponentName().flattenToString() 41 optional string phone_account_handle_component_name = 1; 42 // PhoneAccountHandle.getId() 43 optional string phone_account_handle_id = 2; 44 // The hint to show under the phone account, for example showing the user 45 // the account was selected frequently before. 46 optional string hint = 3; 47 // Whether the account is actually selectable. Defaults to true. Sometimes 48 // an account will be temporarily unusable, for example the user is already 49 // in a call so the other SIM cannot be used. Hint should also be set to 50 // inform the user why the account is unavailable. 51 optional bool enabled = 4 [default = true]; 52 } 53}