diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2015-06-05 16:13:51 -0700 |
---|---|---|
committer | Sanket Padawe <sanketpadawe@google.com> | 2015-06-05 16:13:51 -0700 |
commit | 28964eb236cee7e593cf46ff6bcd61cd0d4c54f6 (patch) | |
tree | 070d057061d58dbcf33658a72100a9e27674b8b9 /telephony/java | |
parent | e1352de673423264c00c71c0ec1597bbdad6fd03 (diff) | |
download | frameworks_base-28964eb236cee7e593cf46ff6bcd61cd0d4c54f6.zip frameworks_base-28964eb236cee7e593cf46ff6bcd61cd0d4c54f6.tar.gz frameworks_base-28964eb236cee7e593cf46ff6bcd61cd0d4c54f6.tar.bz2 |
Suppress default logging in SubscriptionManager.
Bug: 20465753
Change-Id: Ieeb493be7b32382c6adf1cf0664cf3e96cedace7
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/SubscriptionManager.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index 33e52bf..193285f 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -387,7 +387,9 @@ public class SubscriptionManager { public SubscriptionInfo getActiveSubscriptionInfo(int subId) { if (VDBG) logd("[getActiveSubscriptionInfo]+ subId=" + subId); if (!isValidSubscriptionId(subId)) { - logd("[getActiveSubscriptionInfo]- invalid subId"); + if (DBG) { + logd("[getActiveSubscriptionInfo]- invalid subId"); + } return null; } @@ -751,7 +753,9 @@ public class SubscriptionManager { */ public static int getSlotId(int subId) { if (!isValidSubscriptionId(subId)) { - logd("[getSlotId]- fail"); + if (DBG) { + logd("[getSlotId]- fail"); + } } int result = INVALID_SIM_SLOT_INDEX; @@ -793,7 +797,9 @@ public class SubscriptionManager { /** @hide */ public static int getPhoneId(int subId) { if (!isValidSubscriptionId(subId)) { - logd("[getPhoneId]- fail"); + if (DBG) { + logd("[getPhoneId]- fail"); + } return INVALID_PHONE_INDEX; } |