2 * Copyright (C) 2010 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package com.android.internal.telephony;
19 public class UUSInfo {
22 * User-to-User signaling Info activation types derived from 3GPP 23.087
26 public static final int UUS_TYPE1_IMPLICIT = 0;
28 public static final int UUS_TYPE1_REQUIRED = 1;
30 public static final int UUS_TYPE1_NOT_REQUIRED = 2;
32 public static final int UUS_TYPE2_REQUIRED = 3;
34 public static final int UUS_TYPE2_NOT_REQUIRED = 4;
36 public static final int UUS_TYPE3_REQUIRED = 5;
38 public static final int UUS_TYPE3_NOT_REQUIRED = 6;
41 * User-to-User Signaling Information data coding schemes. Possible values
42 * for Octet 3 (Protocol Discriminator field) in the UUIE. The values have
43 * been specified in section 10.5.4.25 of 3GPP TS 24.008
46 public static final int UUS_DCS_USP = 0; /* User specified protocol */
48 public static final int UUS_DCS_OSIHLP = 1; /* OSI higher layer protocol */
50 public static final int UUS_DCS_X244 = 2; /* X.244 */
52 public static final int UUS_DCS_RMCF = 3; /*
53 * Reserved for system management
54 * convergence function
57 public static final int UUS_DCS_IA5c = 4; /* IA5 characters */
63 private byte[] uusData;
66 this.uusType = UUS_TYPE1_IMPLICIT;
67 this.uusDcs = UUS_DCS_IA5c;
71 public UUSInfo(int uusType, int uusDcs, byte[] uusData) {
72 this.uusType = uusType;
74 this.uusData = uusData;
81 public void setDcs(int uusDcs) {
85 public int getType() {
89 public void setType(int uusType) {
90 this.uusType = uusType;
93 public byte[] getUserData() {
97 public void setUserData(byte[] uusData) {
98 this.uusData = uusData;