From 43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Wed, 6 Apr 2011 19:22:23 -0700 Subject: Remove the deprecated things from Config.java. These haven't been working since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e --- .../com/android/smspush/unitTests/WapPushTest.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'packages/WAPPushManager/tests/src') diff --git a/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/WapPushTest.java b/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/WapPushTest.java index 9b0a36b..f436cb4 100644 --- a/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/WapPushTest.java +++ b/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/WapPushTest.java @@ -26,7 +26,6 @@ import android.os.RemoteException; import android.provider.Telephony.Sms.Intents; import android.test.ServiceTestCase; import android.util.Log; -import android.util.Config; import com.android.internal.telephony.IccUtils; import com.android.internal.telephony.IWapPushManager; @@ -2051,7 +2050,7 @@ public class WapPushTest extends ServiceTestCase { */ public int dispatchWapPdu(byte[] pdu, IWapPushManager wapPushMan) { - if (Config.DEBUG) Log.d(LOG_TAG, "Rx: " + IccUtils.bytesToHexString(pdu)); + if (false) Log.d(LOG_TAG, "Rx: " + IccUtils.bytesToHexString(pdu)); int index = 0; int transactionId = pdu[index++] & 0xFF; @@ -2060,7 +2059,7 @@ public class WapPushTest extends ServiceTestCase { if ((pduType != WspTypeDecoder.PDU_TYPE_PUSH) && (pduType != WspTypeDecoder.PDU_TYPE_CONFIRMED_PUSH)) { - if (Config.DEBUG) Log.w(LOG_TAG, "Received non-PUSH WAP PDU. Type = " + pduType); + if (false) Log.w(LOG_TAG, "Received non-PUSH WAP PDU. Type = " + pduType); return Intents.RESULT_SMS_HANDLED; } @@ -2073,7 +2072,7 @@ public class WapPushTest extends ServiceTestCase { * So it will be encoded in no more than 5 octets. */ if (pduDecoder.decodeUintvarInteger(index) == false) { - if (Config.DEBUG) Log.w(LOG_TAG, "Received PDU. Header Length error."); + if (false) Log.w(LOG_TAG, "Received PDU. Header Length error."); return Intents.RESULT_SMS_GENERIC_ERROR; } headerLength = (int) pduDecoder.getValue32(); @@ -2094,7 +2093,7 @@ public class WapPushTest extends ServiceTestCase { * Length = Uintvar-integer */ if (pduDecoder.decodeContentType(index) == false) { - if (Config.DEBUG) Log.w(LOG_TAG, "Received PDU. Header Content-Type error."); + if (false) Log.w(LOG_TAG, "Received PDU. Header Content-Type error."); return Intents.RESULT_SMS_GENERIC_ERROR; } @@ -2131,13 +2130,13 @@ public class WapPushTest extends ServiceTestCase { String contentType = ((mimeType == null) ? Long.toString(binaryContentType) : mimeType); - if (Config.DEBUG) Log.v(LOG_TAG, "appid found: " + wapAppId + ":" + contentType); + if (false) Log.v(LOG_TAG, "appid found: " + wapAppId + ":" + contentType); try { boolean processFurther = true; // IWapPushManager wapPushMan = mWapConn.getWapPushManager(); if (wapPushMan == null) { - if (Config.DEBUG) Log.w(LOG_TAG, "wap push manager not found!"); + if (false) Log.w(LOG_TAG, "wap push manager not found!"); } else { Intent intent = new Intent(); intent.putExtra("transactionId", transactionId); @@ -2148,7 +2147,7 @@ public class WapPushTest extends ServiceTestCase { pduDecoder.getContentParameters()); int procRet = wapPushMan.processMessage(wapAppId, contentType, intent); - if (Config.DEBUG) Log.v(LOG_TAG, "procRet:" + procRet); + if (false) Log.v(LOG_TAG, "procRet:" + procRet); if ((procRet & WapPushManagerParams.MESSAGE_HANDLED) > 0 && (procRet & WapPushManagerParams.FURTHER_PROCESSING) == 0) { processFurther = false; @@ -2158,10 +2157,10 @@ public class WapPushTest extends ServiceTestCase { return Intents.RESULT_SMS_HANDLED; } } catch (RemoteException e) { - if (Config.DEBUG) Log.w(LOG_TAG, "remote func failed..."); + if (false) Log.w(LOG_TAG, "remote func failed..."); } } - if (Config.DEBUG) Log.v(LOG_TAG, "fall back to existing handler"); + if (false) Log.v(LOG_TAG, "fall back to existing handler"); return Activity.RESULT_OK; } -- cgit v1.1