summaryrefslogtreecommitdiffstats
path: root/packages/WAPPushManager
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2011-04-06 19:22:23 -0700
committerJoe Onorato <joeo@google.com>2011-04-07 19:23:05 -0700
commit43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 (patch)
treea5aac88ebb367a0f046a5724edc8e35cbe192cb9 /packages/WAPPushManager
parentea4af8914a3b6ea68558f20ce502966032ca1ab1 (diff)
downloadframeworks_base-43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09.zip
frameworks_base-43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09.tar.gz
frameworks_base-43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09.tar.bz2
Remove the deprecated things from Config.java. These haven't been working since before 1.0.
Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
Diffstat (limited to 'packages/WAPPushManager')
-rw-r--r--packages/WAPPushManager/tests/src/com/android/smspush/unitTests/WapPushTest.java19
1 files changed, 9 insertions, 10 deletions
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<WapPushManager> {
*/
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<WapPushManager> {
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<WapPushManager> {
* 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<WapPushManager> {
* 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<WapPushManager> {
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<WapPushManager> {
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<WapPushManager> {
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;
}