summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorJimmy Chen <jimmycmchen@google.com>2020-06-08 11:56:37 +0800
committerJimmy Chen <jimmycmchen@google.com>2020-06-09 10:14:09 +0800
commitb76c6c33ad8bfb021c6657e71aaccbcd20714fac (patch)
treea415c46215aaade0c677c8eec0cb09bcdec010da /service
parent1c683f1d21fa429de706f2397293e815b98e1ea2 (diff)
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
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/ClientModeManager.java5
1 files changed, 5 insertions, 0 deletions
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<SubscriptionInfo> 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;
}