From b76c6c33ad8bfb021c6657e71aaccbcd20714fac Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Mon, 8 Jun 2020 11:56:37 +0800 Subject: wifi: add logs for no deferring case Wifi disconnection / stop is delayed when IMS network is registered over IWLAN to allow IMS cleanup. This commit adds log for cases where wifi stop is not delayed. Bug: 158339016 Test: atest FrameworksWifiTests Change-Id: Ia1663a892124ec061aeba0e9bd9a7ce188a21c7c --- service/java/com/android/server/wifi/ClientModeManager.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'service') diff --git a/service/java/com/android/server/wifi/ClientModeManager.java b/service/java/com/android/server/wifi/ClientModeManager.java index abb6f625d..608933950 100644 --- a/service/java/com/android/server/wifi/ClientModeManager.java +++ b/service/java/com/android/server/wifi/ClientModeManager.java @@ -285,11 +285,13 @@ public class ClientModeManager implements ActiveModeManager { SubscriptionManager subscriptionManager = (SubscriptionManager) mContext.getSystemService( Context.TELEPHONY_SUBSCRIPTION_SERVICE); if (subscriptionManager == null) { + Log.d(TAG, "SubscriptionManager not found"); return 0; } List subInfoList = subscriptionManager.getActiveSubscriptionInfoList(); if (subInfoList == null) { + Log.d(TAG, "Active SubscriptionInfo list not found"); return 0; } @@ -307,6 +309,7 @@ public class ClientModeManager implements ActiveModeManager { private int getWifiOffDeferringTimeMs(int subId) { if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { + Log.d(TAG, "Invalid Subscription ID: " + subId); return 0; } @@ -315,6 +318,7 @@ public class ClientModeManager implements ActiveModeManager { if (!imsMmTelManager.isAvailable( MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_VOICE, ImsRegistrationImplBase.REGISTRATION_TECH_IWLAN)) { + Log.d(TAG, "IMS not registered over IWLAN for subId: " + subId); return 0; } @@ -324,6 +328,7 @@ public class ClientModeManager implements ActiveModeManager { // if LTE is available, no delay needed as IMS will be registered over LTE if (defaultVoiceTelephonyManager.getVoiceNetworkType() == TelephonyManager.NETWORK_TYPE_LTE) { + Log.d(TAG, "LTE available and is default voice network type"); return 0; } -- cgit v1.2.3