summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-06-09 05:39:51 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-09 05:39:51 +0000
commit37a506aa047f2755898579fb555348465657d5c3 (patch)
treedd5bc2c7c30fd63012f0f5567e53b65fdd278295
parentaaeae36eebf7f60c3e6313040227b8007fbfda8d (diff)
parente4827fa3d2eb66740e1caa950cdc63044ae35e44 (diff)
Merge "wifi: add logs for no deferring case" into rvc-dev am: e4827fa3d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/wifi/+/11788816 Change-Id: Ic5c3f6250778870a3a86e0e6bb5b61b267599980
-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;
}