diff options
| author | Robert Greenwalt <robdroid@android.com> | 2009-10-12 12:13:14 -0700 |
|---|---|---|
| committer | Robert Greenwalt <robdroid@android.com> | 2009-10-12 12:13:14 -0700 |
| commit | 71f48a21b0533a5b9dc1c0eab3c675800b78fa5e (patch) | |
| tree | 4cf2a82d2674816ddb84613222ed4f357a7c159f /telephony/java | |
| parent | 6dc3f4e553d333b9f115a222a9a684bb2aa55b5e (diff) | |
| download | frameworks_base-71f48a21b0533a5b9dc1c0eab3c675800b78fa5e.zip frameworks_base-71f48a21b0533a5b9dc1c0eab3c675800b78fa5e.tar.gz frameworks_base-71f48a21b0533a5b9dc1c0eab3c675800b78fa5e.tar.bz2 | |
Reduce the amount of EriManager Logging.
It was filling the radio log with noise. Added a VDBG set to false to preserve the logging
but deactivate it.
bug: 2180891
Diffstat (limited to 'telephony/java')
| -rw-r--r-- | telephony/java/com/android/internal/telephony/cdma/EriManager.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/EriManager.java b/telephony/java/com/android/internal/telephony/cdma/EriManager.java index 44c6173..c018c3f 100644 --- a/telephony/java/com/android/internal/telephony/cdma/EriManager.java +++ b/telephony/java/com/android/internal/telephony/cdma/EriManager.java @@ -85,6 +85,7 @@ public final class EriManager { private static final String LOG_TAG = "CDMA"; private static final boolean DBG = true; + private static final boolean VDBG = false; public static final int ERI_FROM_XML = 0; public static final int ERI_FROM_FILE_SYSTEM = 1; @@ -387,14 +388,14 @@ public final class EriManager { // ERI file NOT loaded if (DBG) Log.d(LOG_TAG, "ERI File not loaded"); if(defRoamInd > 2) { - if (DBG) Log.d(LOG_TAG, "ERI defRoamInd > 2 ...flashing"); + if (VDBG) Log.v(LOG_TAG, "ERI defRoamInd > 2 ...flashing"); ret = new EriDisplayInformation( EriInfo.ROAMING_INDICATOR_FLASH, EriInfo.ROAMING_ICON_MODE_FLASH, mContext.getText(com.android.internal .R.string.roamingText2).toString()); } else { - if (DBG) Log.d(LOG_TAG, "ERI defRoamInd <= 2"); + if (VDBG) Log.v(LOG_TAG, "ERI defRoamInd <= 2"); switch (defRoamInd) { case EriInfo.ROAMING_INDICATOR_ON: ret = new EriDisplayInformation( @@ -426,12 +427,11 @@ public final class EriManager { } } else { // ERI file loaded - if (DBG) Log.d(LOG_TAG, "ERI File loaded"); EriInfo eriInfo = getEriInfo(roamInd); EriInfo defEriInfo = getEriInfo(defRoamInd); if (eriInfo == null) { - if (DBG) { - Log.d(LOG_TAG, "ERI roamInd " + roamInd + if (VDBG) { + Log.v(LOG_TAG, "ERI roamInd " + roamInd + " not found in ERI file ...using defRoamInd " + defRoamInd); } if(defEriInfo == null) { @@ -444,8 +444,8 @@ public final class EriManager { .R.string.roamingText0).toString()); } else { - if (DBG) { - Log.d(LOG_TAG, "ERI defRoamInd " + defRoamInd + " found in ERI file"); + if (VDBG) { + Log.v(LOG_TAG, "ERI defRoamInd " + defRoamInd + " found in ERI file"); } ret = new EriDisplayInformation( defEriInfo.mIconIndex, @@ -453,7 +453,7 @@ public final class EriManager { defEriInfo.mEriText); } } else { - if (DBG) Log.d(LOG_TAG, "ERI roamInd " + roamInd + " found in ERI file"); + if (VDBG) Log.v(LOG_TAG, "ERI roamInd " + roamInd + " found in ERI file"); ret = new EriDisplayInformation( eriInfo.mIconIndex, eriInfo.mIconMode, @@ -462,7 +462,7 @@ public final class EriManager { } break; } - if (DBG) Log.d(LOG_TAG, "Displaying ERI " + ret.toString()); + if (VDBG) Log.v(LOG_TAG, "Displaying ERI " + ret.toString()); return ret; } |
