The WAPPushManager is a new, optional service for handling WAP Push over SMS messages. This service allows a carrier to designate a high priority handler for specific WAP Push over SMS messages without affecting other WAP Push over SMS, binary SMS, or SMS text messages. It is also optional, so that it can be configured out of the target image resulting in no change in the WAP Push over SMS handling behavior compared to the current AOSP. - This patch contains the WAPPushManager itself, the associated test code, and the modifications to telephony to use the WAPPushManager. Change-Id: I4f7fb5b68fc666da9bdeeea525e8797ae317e4b5
71 lines
1.8 KiB
Java
71 lines
1.8 KiB
Java
/*
|
|
* Copyright (C) 2010 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package com.android.internal.telephony;
|
|
|
|
/**
|
|
* WapPushManager constant value definitions
|
|
*/
|
|
public class WapPushManagerParams {
|
|
/**
|
|
* Application type activity
|
|
*/
|
|
public static final int APP_TYPE_ACTIVITY = 0;
|
|
|
|
/**
|
|
* Application type service
|
|
*/
|
|
public static final int APP_TYPE_SERVICE = 1;
|
|
|
|
/**
|
|
* Process Message return value
|
|
* Message is handled
|
|
*/
|
|
public static final int MESSAGE_HANDLED = 0x1;
|
|
|
|
/**
|
|
* Process Message return value
|
|
* Application ID or content type was not found in the application ID table
|
|
*/
|
|
public static final int APP_QUERY_FAILED = 0x2;
|
|
|
|
/**
|
|
* Process Message return value
|
|
* Receiver application signature check failed
|
|
*/
|
|
public static final int SIGNATURE_NO_MATCH = 0x4;
|
|
|
|
/**
|
|
* Process Message return value
|
|
* Receiver application was not found
|
|
*/
|
|
public static final int INVALID_RECEIVER_NAME = 0x8;
|
|
|
|
/**
|
|
* Process Message return value
|
|
* Unknown exception
|
|
*/
|
|
public static final int EXCEPTION_CAUGHT = 0x10;
|
|
|
|
/**
|
|
* Process Message return value
|
|
* Need further processing after WapPushManager message processing
|
|
*/
|
|
public static final int FURTHER_PROCESSING = 0x8000;
|
|
|
|
}
|
|
|