summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-06-09 05:24:20 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-06-09 05:24:20 +0000
commite4827fa3d2eb66740e1caa950cdc63044ae35e44 (patch)
tree61ccfdebfb2799e41d735ebc7d0a3682674657c8 /service
parente565c0b697b0760443aceb02f9933e2a455da616 (diff)
parentb76c6c33ad8bfb021c6657e71aaccbcd20714fac (diff)
Merge "wifi: add logs for no deferring case" into rvc-dev
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;
}