Lines Matching refs:ss

33         ServiceState ss = new ServiceState();
35 ss.setCdmaDefaultRoamingIndicator(1);
36 assertEquals(1, ss.getCdmaDefaultRoamingIndicator());
38 ss.setCdmaEriIconIndex(2);
39 assertEquals(2, ss.getCdmaEriIconIndex());
41 ss.setCdmaEriIconMode(3);
42 assertEquals(3, ss.getCdmaEriIconMode());
44 ss.setCdmaRoamingIndicator(4);
45 assertEquals(4, ss.getCdmaRoamingIndicator());
47 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC);
48 assertTrue(ss.getDataRoaming());
49 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getDataRoamingType());
51 ss.setDataRoamingFromRegistration(true);
52 assertTrue(ss.getDataRoamingFromRegistration());
54 ss.setVoiceRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC);
55 assertTrue(ss.getVoiceRoaming());
56 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getVoiceRoamingType());
61 ServiceState ss = new ServiceState();
63 ss.setDataRegState(ServiceState.STATE_IN_SERVICE);
64 assertEquals(ServiceState.STATE_IN_SERVICE, ss.getDataRegState());
66 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE);
67 assertEquals(ServiceState.STATE_IN_SERVICE, ss.getVoiceRegState());
72 ServiceState ss = new ServiceState();
74 ss.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
75 assertEquals(ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ss.getRilDataRadioTechnology());
76 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, ss.getDataNetworkType());
78 ss.setRilVoiceRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT);
79 assertEquals(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT, ss.getRilVoiceRadioTechnology());
80 assertEquals(TelephonyManager.NETWORK_TYPE_1xRTT, ss.getVoiceNetworkType());
119 ServiceState ss = new ServiceState();
121 ss.setDataOperatorAlphaLong("abc");
122 assertEquals("abc", ss.getDataOperatorAlphaLong());
124 ss.setDataOperatorName("def", "xyz", "123456");
125 assertEquals("xyz", ss.getDataOperatorAlphaShort());
127 ss.setOperatorName("long", "short", "numeric");
128 assertEquals("long", ss.getVoiceOperatorAlphaLong());
129 assertEquals("short", ss.getVoiceOperatorAlphaShort());
130 assertEquals("numeric", ss.getVoiceOperatorNumeric());
131 assertEquals("long", ss.getDataOperatorAlphaLong());
132 assertEquals("short", ss.getDataOperatorAlphaShort());
133 assertEquals("numeric", ss.getDataOperatorNumeric());
134 assertEquals("long", ss.getOperatorAlpha());
136 ss.setOperatorName("", "short", "");
137 assertEquals("short", ss.getOperatorAlpha());
142 ServiceState ss = new ServiceState();
144 ss.setCssIndicator(100);
145 assertEquals(1, ss.getCssIndicator());
147 ss.setIsManualSelection(true);
148 assertTrue(ss.getIsManualSelection());
150 ss.setSystemAndNetworkId(123, 456);
151 assertEquals(123, ss.getSystemId());
152 assertEquals(456, ss.getNetworkId());
154 ss.setEmergencyOnly(true);
155 assertTrue(ss.isEmergencyOnly());
161 ServiceState ss = new ServiceState();
162 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE);
163 ss.setDataRegState(ServiceState.STATE_OUT_OF_SERVICE);
164 ss.setVoiceRoamingType(ServiceState.ROAMING_TYPE_INTERNATIONAL);
165 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_UNKNOWN);
166 ss.setOperatorName("long", "short", "numeric");
167 ss.setIsManualSelection(true);
168 ss.setRilVoiceRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT);
169 ss.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0);
170 ss.setCssIndicator(1);
171 ss.setSystemAndNetworkId(2, 3);
172 ss.setCdmaRoamingIndicator(4);
173 ss.setCdmaDefaultRoamingIndicator(5);
174 ss.setCdmaEriIconIndex(6);
175 ss.setCdmaEriIconMode(7);
176 ss.setEmergencyOnly(true);
177 ss.setDataRoamingFromRegistration(true);
180 ss.writeToParcel(p, 0);
184 assertEquals(ss, newSs);