1 /*
2  * Copyright (C) 2019 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.telephonyprovider.cts;
18 
19 /**
20  * Replicates some constants from {@link com.google.android.mms.pdu.PduHeaders}, which we do not use
21  * in order to avoid needing to access private platform APIs from this test package. These constants
22  * are standardized externally so the duplication should be robust.
23  */
24 public interface PduHeaders {
25     /**
26      * X-Mms-Message-Type field types.
27      */
28     int MESSAGE_TYPE_SEND_REQ           = 0x80;
29     int MESSAGE_TYPE_SEND_CONF          = 0x81;
30     int MESSAGE_TYPE_NOTIFICATION_IND   = 0x82;
31     int MESSAGE_TYPE_NOTIFYRESP_IND     = 0x83;
32     int MESSAGE_TYPE_RETRIEVE_CONF      = 0x84;
33     int MESSAGE_TYPE_ACKNOWLEDGE_IND    = 0x85;
34     int MESSAGE_TYPE_DELIVERY_IND       = 0x86;
35     int MESSAGE_TYPE_READ_REC_IND       = 0x87;
36     int MESSAGE_TYPE_READ_ORIG_IND      = 0x88;
37     int MESSAGE_TYPE_FORWARD_REQ        = 0x89;
38     int MESSAGE_TYPE_FORWARD_CONF       = 0x8A;
39     int MESSAGE_TYPE_MBOX_STORE_REQ     = 0x8B;
40     int MESSAGE_TYPE_MBOX_STORE_CONF    = 0x8C;
41     int MESSAGE_TYPE_MBOX_VIEW_REQ      = 0x8D;
42     int MESSAGE_TYPE_MBOX_VIEW_CONF     = 0x8E;
43     int MESSAGE_TYPE_MBOX_UPLOAD_REQ    = 0x8F;
44     int MESSAGE_TYPE_MBOX_UPLOAD_CONF   = 0x90;
45     int MESSAGE_TYPE_MBOX_DELETE_REQ    = 0x91;
46     int MESSAGE_TYPE_MBOX_DELETE_CONF   = 0x92;
47     int MESSAGE_TYPE_MBOX_DESCR         = 0x93;
48     int MESSAGE_TYPE_DELETE_REQ         = 0x94;
49     int MESSAGE_TYPE_DELETE_CONF        = 0x95;
50     int MESSAGE_TYPE_CANCEL_REQ         = 0x96;
51     int MESSAGE_TYPE_CANCEL_CONF        = 0x97;
52 }
53