Home
last modified time | relevance | path

Searched refs:IwlanEventListener (Results 1 – 12 of 12) sorted by relevance

/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanEventListenerTest.java85 private IwlanEventListener mIwlanEventListener;
86 private IwlanEventListener mSpyIwlanEventListener;
126 IwlanEventListener.resetAllInstances(); in setUp()
127 mIwlanEventListener = IwlanEventListener.getInstance(mMockContext, DEFAULT_SLOT_INDEX); in setUp()
129 spy(new IwlanEventListener(mMockContext, DEFAULT_SLOT_INDEX, mFakeFeatureFlags)); in setUp()
140 eq(IwlanEventListener.WIFI_AP_CHANGED_EVENT), in testWifiApChanged()
146 events.add(IwlanEventListener.WIFI_AP_CHANGED_EVENT); in testWifiApChanged()
151 IwlanEventListener.onWifiConnected(mMockWifiInfo); in testWifiApChanged()
155 IwlanEventListener.onWifiConnected(mMockWifiInfo); in testWifiApChanged()
162 eq(IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT), in testCrossSimCallingSettingEnableChanged()
[all …]
DErrorPolicyManagerTest.java247 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testValidCarrierConfig()
338 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testShouldKeepRetryIndexForDifferentErrorCause()
409 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testDefaultPolicyFallback()
485 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testChoosingFallbackPolicy()
536 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testNullCarrierConfig()
550 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testNullCarrierConfig()
584 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testGetLastError()
607 .obtainMessage(IwlanEventListener.APM_ENABLE_EVENT) in testGetLastError()
620 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testGetLastError()
659 .obtainMessage(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) in testCanBringUpTunnel()
[all …]
DIwlanCarrierConfigChangeListenerTest.java53 .mockStatic(IwlanEventListener.class) in setUp()
75 IwlanEventListener.onCarrierConfigChanged( in testCarrierConfigChanged()
DIwlanBroadcastReceiverTest.java67 @Mock private IwlanEventListener mMockIwlanEventListener;
79 .mockStatic(IwlanEventListener.class) in setUp()
91 .when(IwlanEventListener.getInstance(eq(mMockContext), eq(TEST_SLOT_ID))) in setUp()
DIwlanDataServiceTest.java540 IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT, in testOnCrossSimCallingEnable_doNotUpdateTunnelManagerIfCellularDataOnSameSub()
562 IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT, in testOnCrossSimCallingEnable_updateTunnelManagerIfCellularDataOnDifferentSub()
578 IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT, in testOnCrossSimCallingEnable_doNotUpdateTunnelManagerIfNoNetwork()
1169 IwlanEventListener.CALL_STATE_CHANGED_EVENT, in testSupportInitialAttachSuccessOnIms()
1225 IwlanEventListener.CALL_STATE_CHANGED_EVENT, in testSupportInitialAttachSuccessOnEmergency()
1281 IwlanEventListener.CALL_STATE_CHANGED_EVENT, in testSupportInitialAttachOnImsCall()
1337 IwlanEventListener.CALL_STATE_CHANGED_EVENT, in testSupportInitialAttachOnEmergencyCall()
1390 IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT, in testDnsPrefetching()
1398 IwlanEventListener.WIFI_CALLING_ENABLE_EVENT, in testDnsPrefetching()
2085 IwlanEventListener.CALL_STATE_CHANGED_EVENT, DEFAULT_SLOT_INDEX, callState) in mockCallState()
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanEventListener.java52 public class IwlanEventListener { class
121 private static final String LOG_TAG = IwlanEventListener.class.getSimpleName();
129 private static final Map<Integer, IwlanEventListener> mInstances = new ConcurrentHashMap<>();
166 for (Map.Entry<Integer, IwlanEventListener> entry : mInstances.entrySet()) { in onCellInfoChanged()
167 IwlanEventListener instance = entry.getValue(); in onCellInfoChanged()
180 IwlanEventListener instance = mInstances.get(mSlotId); in onCallStateChanged()
194 IwlanEventListener instance = mInstances.get(mSlotId); in onAllowedNetworkTypesChanged()
204 public static IwlanEventListener getInstance(@NonNull Context context, int slotId) { in getInstance()
206 slotId, k -> new IwlanEventListener(context, slotId, new FeatureFlagsImpl())); in getInstance()
289 for (Map.Entry<Integer, IwlanEventListener> entry : mInstances.entrySet()) { in onBroadcastReceived()
[all …]
DIwlanNetworkService.java71 private static final int EVENT_BASE = IwlanEventListener.NETWORK_SERVICE_INTERNAL_EVENT_BASE;
185 events.add(IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT); in IwlanNetworkServiceProvider()
186 events.add(IwlanEventListener.CROSS_SIM_CALLING_DISABLE_EVENT); in IwlanNetworkServiceProvider()
187 IwlanEventListener.getInstance(mContext, slotIndex) in IwlanNetworkServiceProvider()
210 IwlanEventListener.getInstance(mContext, getSlotIndex()) in close()
245 case IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT: in handleMessage()
246 case IwlanEventListener.CROSS_SIM_CALLING_DISABLE_EVENT: in handleMessage()
504 case IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT: in eventToString()
506 case IwlanEventListener.CROSS_SIM_CALLING_DISABLE_EVENT: in eventToString()
DIwlanDataService.java122 private static final int EVENT_BASE = IwlanEventListener.DATA_SERVICE_INTERNAL_EVENT_BASE;
689 events.add(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT); in IwlanDataServiceProvider()
690 events.add(IwlanEventListener.CARRIER_CONFIG_UNKNOWN_CARRIER_EVENT); in IwlanDataServiceProvider()
691 events.add(IwlanEventListener.WIFI_CALLING_ENABLE_EVENT); in IwlanDataServiceProvider()
692 events.add(IwlanEventListener.WIFI_CALLING_DISABLE_EVENT); in IwlanDataServiceProvider()
693 events.add(IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT); in IwlanDataServiceProvider()
694 events.add(IwlanEventListener.CELLINFO_CHANGED_EVENT); in IwlanDataServiceProvider()
695 events.add(IwlanEventListener.CALL_STATE_CHANGED_EVENT); in IwlanDataServiceProvider()
696 events.add(IwlanEventListener.PREFERRED_NETWORK_TYPE_CHANGED_EVENT); in IwlanDataServiceProvider()
697 IwlanEventListener.getInstance(mContext, slotIndex) in IwlanDataServiceProvider()
[all …]
DErrorPolicyManager.java191 IwlanEventListener.getInstance(mContext, mSlotId).removeEventListener(mHandler); in releaseInstance()
669 IwlanEventListener.getUnthrottlingEvent(unthrottlingEvents.getString(i).trim()); in parseUnthrottlingEvents()
670 if (event == IwlanEventListener.UNKNOWN_EVENT) { in parseUnthrottlingEvents()
769 events.add(IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT); in getAllUnthrottlingEvents()
819 IwlanEventListener.getInstance(mContext, mSlotId) in updateUnthrottlingEvents()
822 IwlanEventListener.getInstance(mContext, mSlotId) in updateUnthrottlingEvents()
839 if (event == IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) { in unthrottleLastErrorOnEvent()
1261 if (event == IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT) { in handleUnthrottlingEvent()
1275 event == IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT; in handleUnthrottlingEvent()
1323 case IwlanEventListener.CARRIER_CONFIG_CHANGED_EVENT: in handleMessage()
[all …]
DIwlanTunnelMetricsImpl.java26 private static final int EVENT_BASE = IwlanEventListener.DATA_SERVICE_INTERNAL_EVENT_BASE;
DIwlanCarrierConfigChangeListener.java87 IwlanEventListener.onCarrierConfigChanged( in onCarrierConfigChanged()
DIwlanBroadcastReceiver.java75 IwlanEventListener.onBroadcastReceived(intent); in onReceive()