Home
last modified time | relevance | path

Searched refs:oldSS (Results 1 – 2 of 2) sorted by relevance

/packages/services/Telephony/src/com/android/phone/
DServiceStateProvider.java461 public static void notifyChangeForSubIdAndField(Context context, ServiceState oldSS, in notifyChangeForSubIdAndField() argument
463 final boolean firstUpdate = (oldSS == null) ? true : false; in notifyChangeForSubIdAndField()
466 if (firstUpdate || voiceRegStateChanged(oldSS, newSS)) { in notifyChangeForSubIdAndField()
471 if (firstUpdate || dataRegStateChanged(oldSS, newSS)) { in notifyChangeForSubIdAndField()
475 if (firstUpdate || voiceRoamingTypeChanged(oldSS, newSS)) { in notifyChangeForSubIdAndField()
479 if (firstUpdate || dataRoamingTypeChanged(oldSS, newSS)) { in notifyChangeForSubIdAndField()
485 private static boolean voiceRegStateChanged(ServiceState oldSS, ServiceState newSS) { in voiceRegStateChanged() argument
486 return oldSS.getState() != newSS.getState(); in voiceRegStateChanged()
489 private static boolean dataRegStateChanged(ServiceState oldSS, ServiceState newSS) { in dataRegStateChanged() argument
490 return oldSS.getDataRegistrationState() != newSS.getDataRegistrationState(); in dataRegStateChanged()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DServiceStateProviderTest.java220 ServiceState oldSS = new ServiceState(); in testNoNotify() local
221 oldSS.setStateOutOfService(); in testNoNotify()
222 oldSS.setCdmaSystemAndNetworkId(1, 1); in testNoNotify()
231 ServiceStateProvider.notifyChangeForSubIdAndField(mContext, oldSS, newSS, subId); in testNoNotify()
246 ServiceState oldSS = new ServiceState(); in testNotifyChanged() local
247 oldSS.setStateOutOfService(); in testNotifyChanged()
248 oldSS.setVoiceRegState(ServiceState.STATE_OUT_OF_SERVICE); in testNotifyChanged()
261 ServiceStateProvider.notifyChangeForSubIdAndField(mContext, oldSS, copyOfOldSS, subId); in testNotifyChanged()
273 ServiceStateProvider.notifyChangeForSubId(mContext, oldSS, copyOfOldSS, subId); in testNotifyChanged()
286 ServiceStateProvider.notifyChangeForSubIdAndField(mContext, oldSS, newSS, subId); in testNotifyChanged()
[all …]