1syntax = "proto2"; 2 3package com.android.settings.intelligence; 4option java_multiple_files = false; 5option java_package = "com.android.settings.network.telephony"; 6option java_outer_classname = "NetworkModeChoicesProto"; 7 8// EnabledNetworks is a list which tries to categorized the entries of popup menu 9// based on carrier network types available to the end user. 10 11// Next tag: 15 12// TODO(b/268145152): rename the ENABLED_NETWORKS for good readability. 13enum EnabledNetworks { 14 // No EnabledNetworks specified. 15 ENABLED_NETWORKS_UNSPECIFIED = 0; 16 17 // For the case where either unsupported or unable to categorized properly. 18 ENABLED_NETWORKS_UNKNOWN = 1; 19 20 // For the case where CDMA is supported and LTE is not prioritized over 21 // CDMA (LTE, 3G, 1x, global). 22 ENABLED_NETWORKS_CDMA_CHOICES = 2; 23 24 // For the case where CDMA is supported and LTE is not available. 25 // CDMA (3G, 1x) 26 ENABLED_NETWORKS_CDMA_NO_LTE_CHOICES = 3; 27 28 // For the case where CDMA is supported and LTE is available. 29 // CDMA (LTE, Global) 30 ENABLED_NETWORKS_CDMA_ONLY_LTE_CHOICES = 4; 31 32 // For the case where TDSCDMA is primary network type. 33 // TDSCDMA (LTE, 3G, 2G) 34 ENABLED_NETWORKS_TDSCDMA_CHOICES = 5; 35 36 // For the case where GSM and LTE options are removed from the menu. 37 // (3G) 38 ENABLED_NETWORKS_EXCEPT_GSM_LTE_CHOICES = 6; 39 40 // For the case where GSM option are removed from the menu. The wording of LTE is '4G'. 41 // (4G, 3G) 42 ENABLED_NETWORKS_EXCEPT_GSM_4G_CHOICES = 7; 43 44 // For the case where GSM option are removed from the menu. The wording of LTE is 'LTE'. 45 // (LTE, 3G) 46 ENABLED_NETWORKS_EXCEPT_GSM_CHOICES = 8; 47 48 // For the case where LTE is disabled. 49 // (3G, 3G) 50 ENABLED_NETWORKS_EXCEPT_LTE_CHOICES = 9; 51 52 // For the case where GSM related carrier with 4G/LTE supported. The wording of LTE is '4G'. 53 // (2G, 3G, 4G) 54 ENABLED_NETWORKS_4G_CHOICES = 10; 55 56 // For the case where GSM related carrier with 4G/LTE supported. The wording of LTE is 'LTE'. 57 // (2G, 3G, LTE) 58 ENABLED_NETWORKS_CHOICES = 11; 59 60 // For the case where world mode is enabled. 61 // ("Global", "LTE / CDMA", "LTE / GSM / UMTS") 62 PREFERRED_NETWORK_MODE_CHOICES_WORLD_MODE = 12; 63 64 // For the case where GSM, 3G options are removed from the menu. The wording of LTE is '4G'. 65 // (4G) 66 ENABLED_NETWORKS_4G_CHOICES_EXCEPT_GSM_3G = 13; 67 68 // For the case where GSM and 3G are removed from the menu. The wording of LTE is 'LTE'. 69 // (LTE) 70 ENABLED_NETWORKS_CHOICES_EXCEPT_GSM_3G = 14; 71} 72 73// A request for popup menu. 74 75// Next tag: 4 76message UiOptions { 77 // Mapping to popup menu categories. 78 required EnabledNetworks type = 1; 79 80 // Resource which provides a list of network type values for this popup menu. 81 required int32 choices = 2; 82 83 // Presentation format of a continuous popop menu entries. 84 // Each format may contains any numbers of popop menu entries. 85 86 // Next tag: 12 87 enum PresentFormat { 88 89 // No PresentFormat specified. 90 PRESENT_FORMAT_UNSPECIFIED = 0; 91 92 // Append a CDMA 1x network option into popup menu. 93 add1xEntry = 1; 94 95 // Append a 2G network option into popup menu. 96 add2gEntry = 2; 97 98 // Append a 3G network option into popup menu. 99 add3gEntry = 3; 100 101 // Append a global mode option into popup menu. 102 addGlobalEntry = 4; 103 104 // Append a CDMA/LTE global mode option into popup menu. 105 addWorldModeCdmaEntry = 5; 106 107 // Append a GSM/LTE global mode option into popup menu. 108 addWorldModeGsmEntry = 6; 109 110 // Append a 4G network option into popup menu. 111 add4gEntry = 7; 112 113 // Append a LTE network option into popup menu. 114 addLteEntry = 8; 115 116 // Append a 5G network option into popup menu. 117 add5gEntry = 9; 118 119 // Append both 5G and 4G network options into popup menu. 120 add5gAnd4gEntry = 10; 121 122 // Append both 5G and LTE network options into popup menu. 123 add5gAndLteEntry = 11; 124 } 125 126 // Format of popup menu entries. 127 // The length of this entry need to be less than the network type values 128 // referenced from "choices" field. 129 repeated PresentFormat format = 3; 130} 131