org.tizen.injector.telephony.sms_1.0.0.201310291329

16:50:09.397 INFO  jd.cli.Main - Decompiling org.tizen.injector.telephony.sms_1.0.0.201310291329.jar
package org.tizen.injector.telephony.sms;

import org.eclipse.osgi.util.NLS;

public class Messages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.tizen.injector.telephony.sms.messages";
  public static String TelephonySMS_0;
  
  static
  {
    NLS.initializeMessages("org.tizen.injector.telephony.sms.messages", Messages.class);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.Messages
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms;

import org.tizen.injector.provider.AbstractInjectorItem;
import org.tizen.injector.telephony.sms.page.SMS;

public class TelephonySMS
  extends AbstractInjectorItem
{
  protected void addPages()
  {
    addPage(new SMS(this, Messages.TelephonySMS_0));
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.TelephonySMS
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.util.HashSet;

public class DecodeMsg
{
  int ton;
  int npi;
  public static boolean deliveryReport = false;
  public static char[] smsbuffer = new char['?'];
  public static int smsbuffer_index = 0;
  public static boolean relayedsms = false;
  public static int relay_cnt = 0;
  public static int udhl = 0;
  public static HashSet<String> deliveryReportNum_set = new HashSet();
  public static boolean isDecodeEnd = true;
  
  public void DecodeSmsSubmitTpdu(TPDU_SMS_SUBMIT paramTPDU_SMS_SUBMIT, int paramInt, char[] paramArrayOfChar)
  {
    isDecodeEnd = false;
    int i = 0;
    int j = 0;
    char[] arrayOfChar1 = new char['?'];
    char[] arrayOfChar2 = new char[21];
    char[] arrayOfChar3 = new char['?'];
    int k = 0;
    SmsUtilDecodeAddrField_sca(arrayOfChar1, paramArrayOfChar);
    k += 2;
    i = getSize(arrayOfChar1);
    if (i % 2 != 0) {
      k += i / 2 + 1;
    } else {
      k += i / 2;
    }
    if (ton == 1)
    {
      arrayOfChar2[0] = '+';
      for (m = 0; m < i; m++)
      {
        arrayOfChar2[(m + 1)] = arrayOfChar1[m];
        arrayOfChar2[(i + 1)] = '\000';
      }
    }
    else
    {
      for (m = 0; m < i; m++)
      {
        arrayOfChar2[m] = arrayOfChar1[m];
        arrayOfChar2[i] = '\000';
      }
    }
    msgType = 1;
    rd = ((paramArrayOfChar[k] & 0x4) != 0);
    vpf = ((paramArrayOfChar[k] & 0x18) >> '\003');
    srr = ((paramArrayOfChar[k] & 0x20) != 0);
    udhi = ((paramArrayOfChar[k] & 0x40) != 0);
    rp = ((paramArrayOfChar[k] & 0x80) != 0);
    k++;
    mr = paramArrayOfChar[k];
    k++;
    for (int m = 0; m < arrayOfChar1.length; m++) {
      arrayOfChar1[m] = '\000';
    }
    SmsUtilDecodeAddrField_dst(arrayOfChar1, getCharArray(paramArrayOfChar, k));
    k += 2;
    j = getSize(arrayOfChar1);
    if (j % 2 != 0) {
      k += j / 2 + 1;
    } else {
      k += j / 2;
    }
    if (ton == 1)
    {
      arrayOfChar3[0] = '+';
      for (m = 0; m < j; m++)
      {
        arrayOfChar3[(m + 1)] = arrayOfChar1[m];
        arrayOfChar3[(j + 1)] = '\000';
      }
      destAddr.dialnumlen = (j + 1);
      for (m = 0; m < j + 1; m++) {
        destAddr.diallingNum[m] = arrayOfChar3[m];
      }
    }
    else
    {
      for (m = 0; m < j; m++)
      {
        arrayOfChar3[m] = arrayOfChar1[m];
        arrayOfChar3[j] = '\000';
      }
      destAddr.dialnumlen = j;
      for (m = 0; m < j; m++) {
        destAddr.diallingNum[m] = arrayOfChar3[m];
      }
    }
    destAddr.npi = npi;
    destAddr.ton = ton;
    pId = paramArrayOfChar[k];
    k++;
    SmsUtilDecodeDCS(dcs, paramArrayOfChar[k]);
    k++;
    switch (vp.vpType)
    {
    case 2: 
      vp.vpValue = paramArrayOfChar[k];
      vp.vpRelativeType = 3;
      k++;
      break;
    case 1: 
    case 3: 
      k += 7;
      break;
    }
    udl = (paramArrayOfChar[k] & 0xFF);
    if (udl > 255) {
      udl = 255;
    }
    k++;
    if (udhi)
    {
      udhl = paramArrayOfChar[k];
      m = 7 - paramArrayOfChar[k] * '\b' % 7;
      k += udhl;
      udhl += m;
      if (paramArrayOfChar[k] == '\001')
      {
        relay_cnt = paramArrayOfChar[(k - 1)];
        for (int n = 0; n < smsbuffer.length; n++) {
          smsbuffer[n] = '\000';
        }
      }
      k++;
      relayedsms = true;
    }
    else if (relayedsms)
    {
      for (m = 0; m < smsbuffer.length; m++) {
        smsbuffer[m] = '\000';
      }
      smsbuffer_index = 0;
      relayedsms = false;
    }
    m = 0;
    userData = new char['?'];
    Object localObject;
    if (dcs.alphabetType == 0)
    {
      localObject = new char['?'];
      for (m = 0; m < udl; m++)
      {
        localObject[m] = ((char)(paramArrayOfChar[(k + m)] & 0xFF));
        if (relay_cnt == 1)
        {
          if (m == udl - udhl) {
            break;
          }
        }
        else {
          if (udhi ? m == udl - udhl : m == udl) {
            break;
          }
        }
      }
      localObject[m] = 0;
      for (int i1 = 0; i1 < m; i1++) {
        userData[i1] = localObject[i1];
      }
      if (relayedsms)
      {
        String str1 = new String(smsbuffer);
        String str2 = new String((char[])localObject);
        String str3 = str1.trim() + str2.trim();
        smsbuffer = str3.toCharArray();
      }
    }
    else if (dcs.alphabetType == 2)
    {
      localObject = new byte['?'];
      for (m = 0; m < udl; m++)
      {
        localObject[m] = ((byte)(paramArrayOfChar[(k + m)] & 0xFF));
        if (relay_cnt == 1)
        {
          if (m == udl - udhl + 1) {
            break;
          }
        }
        else {
          if (udhi ? m == udl - udhl : m == udl) {
            break;
          }
        }
      }
      try
      {
        localObject[m] = 0;
        userData = ucs2ToUTF16((byte[])localObject, m / 2);
      }
      catch (UnsupportedEncodingException localUnsupportedEncodingException)
      {
        localUnsupportedEncodingException.printStackTrace();
      }
    }
    if (srr)
    {
      deliveryReportNum_set.add(String.valueOf(arrayOfChar1).trim());
      deliveryReport = true;
    }
    else
    {
      deliveryReport = false;
    }
    isDecodeEnd = true;
  }
  
  private char[] getCharArray(char[] paramArrayOfChar, int paramInt)
  {
    int i = paramArrayOfChar.length - paramInt;
    char[] arrayOfChar = new char[i];
    for (int j = 0; j < i; j++) {
      arrayOfChar[j] = paramArrayOfChar[(paramInt + j)];
    }
    return arrayOfChar;
  }
  
  private void SmsUtilDecodeDCS(TapiNetTextCodingScheme paramTapiNetTextCodingScheme, char paramChar)
  {
    if (paramChar < '@')
    {
      codingGroupType = 0;
      if ((paramChar & 0x20) != 0) {
        bCompressed = true;
      }
      if ((paramChar & 0x10) != 0)
      {
        bMsgClassSet = true;
        switch (paramChar & 0x3)
        {
        case '\000': 
          classType = 0;
          break;
        case '\001': 
          classType = 1;
          break;
        case '\002': 
          classType = 2;
          break;
        case '\003': 
          classType = 3;
          break;
        }
      }
      else
      {
        classType = 4;
      }
      switch (paramChar & 0xC)
      {
      case '\000': 
        alphabetType = 0;
        break;
      case '\004': 
        alphabetType = 1;
        break;
      case '\b': 
        alphabetType = 2;
        break;
      case '\f': 
        alphabetType = 4;
        break;
      }
    }
    else
    {
      if ((paramChar >= '@') && (paramChar < '?'))
      {
        codingGroupType = 5;
        if ((paramChar & 0x20) != 0) {
          bCompressed = true;
        }
        if ((paramChar & 0x10) != 0)
        {
          bMsgClassSet = true;
          switch (paramChar & 0x3)
          {
          case '\000': 
            classType = 0;
            break;
          case '\001': 
            classType = 1;
            break;
          case '\002': 
            classType = 2;
            break;
          case '\003': 
            classType = 3;
            break;
          }
        }
        else
        {
          classType = 4;
        }
      }
      switch (paramChar & 0xC)
      {
      case '\000': 
        alphabetType = 0;
        break;
      case '\004': 
        alphabetType = 1;
        break;
      case '\b': 
        alphabetType = 2;
        break;
      case '\f': 
        alphabetType = 4;
        break;
      default: 
        break;
        if (paramChar == '�')
        {
          codingGroupType = 7;
        }
        else if (paramChar < '�')
        {
          codingGroupType = 8;
          if ((paramChar & 0x8) != 0) {
            bMsgIndActive = true;
          }
          switch (paramChar & 0x3)
          {
          case '\000': 
            waitingType = 0;
            break;
          case '\001': 
            waitingType = 1;
            break;
          case '\002': 
            waitingType = 2;
            break;
          case '\003': 
            waitingType = 3;
            break;
          }
        }
        else if (paramChar < '�')
        {
          codingGroupType = 9;
          if ((paramChar & 0x8) != 0) {
            bMsgIndActive = true;
          }
          switch (paramChar & 0x3)
          {
          case '\000': 
            waitingType = 0;
            break;
          case '\001': 
            waitingType = 1;
            break;
          case '\002': 
            waitingType = 2;
            break;
          case '\003': 
            waitingType = 3;
            break;
          }
        }
        else
        {
          codingGroupType = 11;
          if ((paramChar & 0x4) != 0) {
            alphabetType = 1;
          }
          switch (paramChar & 0x3)
          {
          case '\000': 
            classType = 0;
            break;
          case '\001': 
            classType = 1;
            break;
          case '\002': 
            classType = 2;
            break;
          case '\003': 
            classType = 3;
          }
        }
        break;
      }
    }
  }
  
  private void SmsUtilDecodeAddrField_sca(char[] paramArrayOfChar1, char[] paramArrayOfChar2)
  {
    int i = 0;
    int j = 0;
    int k = 0;
    ton = ((paramArrayOfChar2[(i + 1)] & 0x70) >> '\004');
    npi = (paramArrayOfChar2[(i + 1)] & 0xF);
    if (ton != 5)
    {
      k = paramArrayOfChar2[i];
      if (k > 1) {
        j = (paramArrayOfChar2[(i++)] - '\001') * 2;
      }
    }
    else
    {
      j = (paramArrayOfChar2[(i++)] + '\001') / 2 * 8 / 7;
    }
    if (j > 20) {
      j = 20;
    }
    i++;
    if (ton != 5) {
      SmsUtilConvertBCD2Digit(paramArrayOfChar1, getCharArray(paramArrayOfChar2, i), j);
    } else {
      SmsUtilUnpackGSMCode(paramArrayOfChar1, getCharArray(paramArrayOfChar2, i), j);
    }
  }
  
  private void SmsUtilDecodeAddrField_dst(char[] paramArrayOfChar1, char[] paramArrayOfChar2)
  {
    int i = 0;
    int j = 0;
    ton = ((paramArrayOfChar2[(i + 1)] & 0x70) >> '\004');
    npi = (paramArrayOfChar2[(i + 1)] & 0xF);
    if (ton != 5) {
      j = paramArrayOfChar2[(i++)];
    } else {
      j = (paramArrayOfChar2[(i++)] + '\001') / 2 * 8 / 7;
    }
    if (j > 20) {
      j = 20;
    }
    i++;
    if (ton != 5) {
      SmsUtilConvertBCD2Digit(paramArrayOfChar1, getCharArray(paramArrayOfChar2, i), j);
    } else {
      SmsUtilUnpackGSMCode(paramArrayOfChar1, getCharArray(paramArrayOfChar2, i), j);
    }
    System.out.println(paramArrayOfChar1);
  }
  
  private void SmsUtilConvertBCD2Digit(char[] paramArrayOfChar1, char[] paramArrayOfChar2, int paramInt)
  {
    char[] arrayOfChar = new char[2];
    if ((paramArrayOfChar2 == null) || (paramArrayOfChar1 == null))
    {
      System.out.println("pBCD or pDigits shouldn't be null");
      throw null;
    }
    if (paramInt == 0)
    {
      paramArrayOfChar1[0] = '\000';
      return;
    }
    int j;
    if (paramInt % 2 != 0) {
      j = paramInt / 2 + 1;
    } else {
      j = paramInt / 2;
    }
    for (int i = 0; i < j; i++)
    {
      int m = (char)(paramArrayOfChar2[i] & 0xF);
      if (m == 10)
      {
        m = 42;
      }
      else if (m == 11)
      {
        m = 35;
      }
      else if (m == 12)
      {
        m = 112;
      }
      else if (m == 15)
      {
        m = 0;
      }
      else
      {
        AcItoa(m, arrayOfChar, 16);
        m = (char)AcToupper(arrayOfChar[0]);
      }
      int k = (char)(paramArrayOfChar2[i] >> '\004' & 0xF);
      if (k == 10)
      {
        k = 42;
      }
      else if (k == 11)
      {
        k = 35;
      }
      else if (k == 12)
      {
        k = 112;
      }
      else
      {
        if (k == 15)
        {
          paramArrayOfChar1[getSize(paramArrayOfChar1)] = m;
          paramArrayOfChar1[(j * 2 - 1)] = '\000';
          return;
        }
        AcItoa(k, arrayOfChar, 16);
        k = (char)AcToupper(arrayOfChar[0]);
      }
      paramArrayOfChar1[getSize(paramArrayOfChar1)] = m;
      paramArrayOfChar1[getSize(paramArrayOfChar1)] = k;
    }
    paramArrayOfChar1[paramInt] = '\000';
  }
  
  private int getSize(char[] paramArrayOfChar)
  {
    int i = 0;
    String str = new String(paramArrayOfChar);
    i = str.indexOf(0);
    return i;
  }
  
  private int AcToupper(int paramInt)
  {
    return (97 <= paramInt) && (paramInt <= 122) ? paramInt - 32 : paramInt;
  }
  
  private void AcItoa(int paramInt1, char[] paramArrayOfChar, int paramInt2)
  {
    int i = 0;
    String str = new String("0123456789ABCDEF");
    do
    {
      paramArrayOfChar[(i++)] = str.charAt(paramInt1 % paramInt2);
    } while (paramInt1 /= paramInt2 > 0);
    reverse(paramArrayOfChar, i);
    paramArrayOfChar[i] = '\000';
  }
  
  private void reverse(char[] paramArrayOfChar, int paramInt)
  {
    int j = paramInt - 1;
    for (int i = 0; i < j; i++)
    {
      int k = paramArrayOfChar[i];
      paramArrayOfChar[i] = paramArrayOfChar[j];
      paramArrayOfChar[(j--)] = k;
    }
  }
  
  private void SmsUtilUnpackGSMCode(char[] paramArrayOfChar1, char[] paramArrayOfChar2, int paramInt)
  {
    int i = 0;
    int j = 0;
    int k = 0;
    while (k < paramInt)
    {
      paramArrayOfChar1[k] = ((char)(paramArrayOfChar2[j] << i & 0x7F));
      if (j != 0)
      {
        int tmp35_33 = k;
        char[] tmp35_32 = paramArrayOfChar1;
        tmp35_32[tmp35_33] = ((char)(tmp35_32[tmp35_33] | paramArrayOfChar2[(j - 1)] >> 8 - i));
      }
      i++;
      if (i == 7)
      {
        i = 0;
        k++;
        paramArrayOfChar1[k] = ((char)(paramArrayOfChar2[j] >> '\001'));
        if (paramArrayOfChar1[k] == 0) {
          break;
        }
      }
      k++;
      j++;
    }
  }
  
  public char[] ucs2ToUTF16(byte[] paramArrayOfByte, int paramInt)
    throws UnsupportedEncodingException
  {
    String str1 = new String(paramArrayOfByte, "UTF-16");
    char[] arrayOfChar = str1.toCharArray();
    String str2 = new String(smsbuffer);
    String str3 = str1.substring(0, paramInt);
    String str4 = str2.trim() + str3.trim();
    smsbuffer = str4.toCharArray();
    return arrayOfChar;
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.DecodeMsg
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

import java.io.PrintStream;

public class EncodeMsg
{
  int index;
  
  public int EncodeSmsDeliverTpdu(SmsAddressInfo paramSmsAddressInfo, TPDU_SMS_DELIVER paramTPDU_SMS_DELIVER, char[] paramArrayOfChar, int paramInt1, int paramInt2)
  {
    char[] arrayOfChar1 = new char[21];
    char[] arrayOfChar2 = new char[21];
    char[] arrayOfChar3 = new char[21];
    index = 0;
    int i;
    if (diallingNum[0] == '+')
    {
      ton = 1;
      npi = 1;
      for (k = 0; k < dialnumlen - 1; k++) {
        arrayOfChar2[k] = diallingNum[(k + 1)];
      }
      i = dialnumlen - 1;
      arrayOfChar2[i] = '\000';
    }
    else
    {
      ton = 0;
      npi = 0;
      for (k = 0; k < dialnumlen; k++) {
        arrayOfChar2[k] = diallingNum[k];
      }
      i = dialnumlen;
      arrayOfChar2[i] = '\000';
    }
    SmsUtilEncodeAddrField_sca(paramArrayOfChar, arrayOfChar2, i, ton, npi);
    msgType = 0;
    paramArrayOfChar[index] = ((char)msgType);
    int tmp185_182 = index;
    char[] tmp185_180 = paramArrayOfChar;
    tmp185_180[tmp185_182] = ((char)(tmp185_180[tmp185_182] | (mms ? 4 : '\000')));
    int tmp207_204 = index;
    char[] tmp207_202 = paramArrayOfChar;
    tmp207_202[tmp207_204] = ((char)(tmp207_202[tmp207_204] | (sri ? 32 : '\000')));
    int tmp230_227 = index;
    char[] tmp230_225 = paramArrayOfChar;
    tmp230_225[tmp230_227] = ((char)(tmp230_225[tmp230_227] | (udhi ? 64 : '\000')));
    int tmp253_250 = index;
    char[] tmp253_248 = paramArrayOfChar;
    tmp253_248[tmp253_250] = ((char)(tmp253_248[tmp253_250] | (rp ? '?' : '\000')));
    index += 1;
    int j;
    if (orgAddr.diallingNum[0] == '+')
    {
      orgAddr.ton = 1;
      orgAddr.npi = 1;
      for (k = 0; k < orgAddr.dialnumlen - 1; k++) {
        arrayOfChar3[k] = orgAddr.diallingNum[(k + 1)];
      }
      j = orgAddr.dialnumlen - 1;
      arrayOfChar3[j] = '\000';
    }
    else
    {
      orgAddr.ton = 0;
      orgAddr.npi = 0;
      for (k = 0; k < orgAddr.dialnumlen; k++) {
        arrayOfChar3[k] = orgAddr.diallingNum[k];
      }
      j = orgAddr.dialnumlen;
      arrayOfChar3[j] = '\000';
    }
    SmsUtilEncodeAddrField_dst(paramArrayOfChar, arrayOfChar3, j, orgAddr.ton, orgAddr.npi);
    paramArrayOfChar[(index++)] = ((char)paramInt1);
    int m = SmsUtilEncodeDCS(dcs);
    paramArrayOfChar[(index++)] = ((char)m);
    SmsUtilEncodeTimeStamp(scts, arrayOfChar1);
    for (int k = 0; k < 7; k++) {
      paramArrayOfChar[(index++)] = arrayOfChar1[k];
    }
    switch (dcs.alphabetType)
    {
    case 0: 
      paramArrayOfChar[(index++)] = ((char)userData.data.length);
      SmsUtilPackGSMCode(paramArrayOfChar, new String(userData.data).toCharArray(), userData.data.length);
      break;
    case 1: 
      paramArrayOfChar[(index++)] = ((char)userData.data.length);
      SmsUtilPackGSM8Code(paramArrayOfChar, new String(userData.data).toCharArray(), userData.data.length);
      break;
    case 2: 
      int n = 0;
      int i1 = 0;
      int i2 = index;
      if (userData.headerCnt > 0) {
        index += 2;
      } else {
        index += 1;
      }
      int i3 = 6;
      if (ported)
      {
        index += 1;
        paramArrayOfChar[(index++)] = '\005';
        paramArrayOfChar[(index++)] = '\004';
        paramArrayOfChar[(index++)] = ((char)(port >> 8));
        paramArrayOfChar[(index++)] = ((char)(port & 0xFF));
        paramArrayOfChar[(index++)] = ((char)(port >> 8));
        paramArrayOfChar[(index++)] = ((char)(port & 0xFF));
        n += i3;
      }
      for (k = 0; k < userData.headerCnt; k++)
      {
        paramArrayOfChar[(index++)] = '\b';
        paramArrayOfChar[(index++)] = '\004';
        paramArrayOfChar[(index++)] = ((char)(userData.smsUDH.msgRef >> 8));
        paramArrayOfChar[(index++)] = ((char)(userData.smsUDH.msgRef & 0xFF));
        paramArrayOfChar[(index++)] = userData.smsUDH.totalSeg;
        paramArrayOfChar[(index++)] = userData.smsUDH.seqNum;
        n += i3;
      }
      if (n > 0)
      {
        paramArrayOfChar[i2] = ((char)(n + 1 + i1 + userData.length));
        paramArrayOfChar[(i2 + 1)] = ((char)n);
      }
      else
      {
        paramArrayOfChar[i2] = ((char)userData.length);
      }
      for (int i4 = 0; i4 < userData.length; i4++) {
        paramArrayOfChar[(index++)] = ((char)userData.data[i4]);
      }
      break;
    default: 
      throw null;
    }
    return index;
  }
  
  private void SmsUtilPackGSMCode(char[] paramArrayOfChar1, char[] paramArrayOfChar2, int paramInt)
  {
    int i = 0;
    for (int j = 0; j < paramInt; j++)
    {
      paramArrayOfChar1[index] = ((char)(paramArrayOfChar2[j] >> i));
      if (j + 1 < paramInt)
      {
        int tmp36_33 = index;
        char[] tmp36_31 = paramArrayOfChar1;
        tmp36_31[tmp36_33] = ((char)(tmp36_31[tmp36_33] | paramArrayOfChar2[(j + 1)] << 7 - i));
        int tmp58_55 = index;
        char[] tmp58_53 = paramArrayOfChar1;
        tmp58_53[tmp58_55] = ((char)(tmp58_53[tmp58_55] & 0xFF));
        i++;
        if (i == 7)
        {
          i = 0;
          j++;
        }
      }
      index += 1;
    }
  }
  
  private void SmsUtilPackGSM8Code(char[] paramArrayOfChar1, char[] paramArrayOfChar2, int paramInt)
  {
    for (int i = 0; i < paramInt; i++) {
      paramArrayOfChar1[(index++)] = paramArrayOfChar2[i];
    }
  }
  
  private void SmsUtilEncodeTimeStamp(TmDateTime paramTmDateTime, char[] paramArrayOfChar)
  {
    char[] arrayOfChar1 = new char[3];
    char[] arrayOfChar2 = new char[20];
    for (int j = 0; j < 7; j++) {
      paramArrayOfChar[j] = '\000';
    }
    int i = year - 2000;
    if (i < 0) {
      i += 100;
    }
    arrayOfChar1 = String.format("%02d", new Object[] { Integer.valueOf(i) }).toCharArray();
    SmsUtilConvertDigit2BCD(arrayOfChar2, arrayOfChar1, 2L);
    paramArrayOfChar[0] = arrayOfChar2[0];
    arrayOfChar1 = String.format("%02d", new Object[] { Integer.valueOf(month) }).toCharArray();
    SmsUtilConvertDigit2BCD(arrayOfChar2, arrayOfChar1, 2L);
    paramArrayOfChar[1] = arrayOfChar2[0];
    arrayOfChar1 = String.format("%02d", new Object[] { Integer.valueOf(day) }).toCharArray();
    SmsUtilConvertDigit2BCD(arrayOfChar2, arrayOfChar1, 2L);
    paramArrayOfChar[2] = arrayOfChar2[0];
    arrayOfChar1 = String.format("%02d", new Object[] { Integer.valueOf(hour) }).toCharArray();
    SmsUtilConvertDigit2BCD(arrayOfChar2, arrayOfChar1, 2L);
    paramArrayOfChar[3] = arrayOfChar2[0];
    arrayOfChar1 = String.format("%02d", new Object[] { Integer.valueOf(minute) }).toCharArray();
    SmsUtilConvertDigit2BCD(arrayOfChar2, arrayOfChar1, 2L);
    paramArrayOfChar[4] = arrayOfChar2[0];
    arrayOfChar1 = String.format("%02d", new Object[] { Integer.valueOf(second) }).toCharArray();
    SmsUtilConvertDigit2BCD(arrayOfChar2, arrayOfChar1, 2L);
    paramArrayOfChar[5] = arrayOfChar2[0];
    arrayOfChar1 = String.format("%02d", new Object[] { Integer.valueOf(0) }).toCharArray();
    SmsUtilConvertDigit2BCD(arrayOfChar2, arrayOfChar1, 2L);
    paramArrayOfChar[6] = arrayOfChar2[0];
  }
  
  private char SmsUtilEncodeDCS(TapiNetTextCodingScheme paramTapiNetTextCodingScheme)
  {
    int i = 0;
    switch (codingGroupType)
    {
    case 0: 
      if (bCompressed) {
        i = (char)(i | 0x20);
      }
      if (bMsgClassSet)
      {
        i = (char)(i | 0x10);
        switch (classType)
        {
        case 0: 
          i = (char)(i | 0x0);
          break;
        case 1: 
          i = (char)(i | 0x1);
          break;
        case 2: 
          i = (char)(i | 0x2);
          break;
        case 3: 
          i = (char)(i | 0x3);
          break;
        }
      }
      switch (alphabetType)
      {
      case 0: 
        i = (char)(i | 0x0);
        break;
      case 1: 
        i = (char)(i | 0x4);
        break;
      case 2: 
        i = (char)(i | 0x8);
        break;
      default: 
        i = (char)(i | 0xC);
      }
      break;
    case 7: 
      i = (char)(i | 0xC0);
      break;
    case 8: 
      i = (char)(i | 0xD0);
      if (bMsgIndActive) {
        i = (char)(i | 0x8);
      }
      switch (waitingType)
      {
      case 0: 
        i = (char)(i | 0x0);
        break;
      case 1: 
        i = (char)(i | 0x1);
        break;
      case 2: 
        i = (char)(i | 0x2);
        break;
      case 3: 
        i = (char)(i | 0x3);
      }
      break;
    case 9: 
      i = (char)(i | 0xE0);
      if (bMsgIndActive) {
        i = (char)(i | 0x8);
      }
      switch (waitingType)
      {
      case 0: 
        i = (char)(i | 0x0);
        break;
      case 1: 
        i = (char)(i | 0x1);
        break;
      case 2: 
        i = (char)(i | 0x2);
        break;
      case 3: 
        i = (char)(i | 0x3);
      }
      break;
    case 11: 
      i = (char)(i | 0xF0);
      switch (alphabetType)
      {
      case 0: 
        i = (char)(i | 0x0);
        break;
      case 1: 
        i = (char)(i | 0x4);
        break;
      }
      switch (classType)
      {
      case 0: 
        break;
      case 1: 
        i = (char)(i | 0x1);
        break;
      case 2: 
        i = (char)(i | 0x2);
        break;
      case 3: 
        i = (char)(i | 0x3);
      }
      break;
    case 13: 
      i = (char)(codingGroup << 4 & 0xF0);
      i = (char)(i | code & 0xF);
      break;
    }
    return i;
  }
  
  private void SmsUtilEncodeAddrField_sca(char[] paramArrayOfChar1, char[] paramArrayOfChar2, int paramInt1, int paramInt2, int paramInt3)
  {
    if ((paramArrayOfChar1 == null) || (paramArrayOfChar2 == null))
    {
      System.out.println("packet or diallingNum shouldn't be null");
      throw null;
    }
    if (paramInt2 != 5)
    {
      if (paramInt1 % 2 != 0) {
        paramArrayOfChar1[(index++)] = ((char)(paramInt1 / 2 + 1 + 1));
      } else {
        paramArrayOfChar1[(index++)] = ((char)(paramInt1 / 2 + 1));
      }
    }
    else
    {
      paramArrayOfChar1[index] = ((char)((paramInt1 * 7 + 7) / 8 * 2));
      if (paramInt1 * 7 % 8 <= 4)
      {
        int tmp111_108 = index;
        char[] tmp111_106 = paramArrayOfChar1;
        tmp111_106[tmp111_108] = ((char)(tmp111_106[tmp111_108] - '\001'));
      }
      index += 1;
    }
    paramArrayOfChar1[index] = '?';
    int tmp141_138 = index;
    char[] tmp141_136 = paramArrayOfChar1;
    tmp141_136[tmp141_138] = ((char)(tmp141_136[tmp141_138] | (paramInt2 & 0x7) << 4));
    int tmp158_155 = index;
    char[] tmp158_153 = paramArrayOfChar1;
    tmp158_153[tmp158_155] = ((char)(tmp158_153[tmp158_155] | paramInt3 & 0xF));
    index += 1;
    if (paramInt2 != 5)
    {
      char[] arrayOfChar = new char[paramInt1];
      SmsUtilConvertDigit2BCD(arrayOfChar, paramArrayOfChar2, paramInt1);
      int j = index;
      if (paramInt1 % 2 != 0) {
        index += paramInt1 / 2 + 1;
      } else {
        index += paramInt1 / 2;
      }
      int i = j;
      for (int k = 0; i < index; k++)
      {
        paramArrayOfChar1[i] = arrayOfChar[k];
        i++;
      }
    }
    else
    {
      SmsUtilPackGSMCode(paramArrayOfChar1, paramArrayOfChar2, paramInt1);
    }
  }
  
  private void SmsUtilEncodeAddrField_dst(char[] paramArrayOfChar1, char[] paramArrayOfChar2, int paramInt1, int paramInt2, int paramInt3)
  {
    if ((paramArrayOfChar1 == null) || (paramArrayOfChar2 == null))
    {
      System.out.println("packet or diallingNum shouldn't be null");
      throw null;
    }
    if (paramInt2 != 5)
    {
      paramArrayOfChar1[(index++)] = ((char)paramInt1);
    }
    else
    {
      paramArrayOfChar1[index] = ((char)((paramInt1 * 7 + 7) / 8 * 2));
      if (paramInt1 * 7 % 8 <= 4)
      {
        int tmp77_74 = index;
        char[] tmp77_72 = paramArrayOfChar1;
        tmp77_72[tmp77_74] = ((char)(tmp77_72[tmp77_74] - '\001'));
      }
      index += 1;
    }
    paramArrayOfChar1[index] = '?';
    int tmp107_104 = index;
    char[] tmp107_102 = paramArrayOfChar1;
    tmp107_102[tmp107_104] = ((char)(tmp107_102[tmp107_104] | (paramInt2 & 0x7) << 4));
    int tmp124_121 = index;
    char[] tmp124_119 = paramArrayOfChar1;
    tmp124_119[tmp124_121] = ((char)(tmp124_119[tmp124_121] | paramInt3 & 0xF));
    index += 1;
    if (paramInt2 != 5)
    {
      char[] arrayOfChar = new char[paramInt1];
      for (int i = 0; i < paramInt1; i++) {
        arrayOfChar[i] = '\000';
      }
      SmsUtilConvertDigit2BCD(arrayOfChar, paramArrayOfChar2, paramInt1);
      int j = index;
      if (paramInt1 % 2 != 0) {
        index += paramInt1 / 2 + 1;
      } else {
        index += paramInt1 / 2;
      }
      i = j;
      for (int k = 0; i < index; k++)
      {
        paramArrayOfChar1[i] = arrayOfChar[k];
        i++;
      }
    }
    else
    {
      SmsUtilPackGSMCode(paramArrayOfChar1, paramArrayOfChar2, paramInt1);
    }
  }
  
  private void SmsUtilConvertDigit2BCD(char[] paramArrayOfChar1, char[] paramArrayOfChar2, long paramLong)
  {
    if ((paramArrayOfChar1 == null) || (paramArrayOfChar2 == null))
    {
      System.out.println("packet or diallingNum shouldn't be null");
      throw null;
    }
    int i = 0;
    for (int j = 0; i < paramLong; j++)
    {
      int k;
      if (paramArrayOfChar2[i] == '*') {
        k = 10;
      } else if (paramArrayOfChar2[i] == '#') {
        k = 11;
      } else if (AcToupper(paramArrayOfChar2[i]) == 80) {
        k = 12;
      } else {
        k = paramArrayOfChar2[i] - '0';
      }
      int n = (char)(k & 0xF);
      int m;
      if (paramLong != i + 1)
      {
        if (paramArrayOfChar2[(i + 1)] == '*') {
          k = 10;
        } else if (paramArrayOfChar2[(i + 1)] == '#') {
          k = 11;
        } else if (AcToupper(paramArrayOfChar2[(i + 1)]) == 80) {
          k = 12;
        } else {
          k = paramArrayOfChar2[(i + 1)] - '0';
        }
        m = (char)(k & 0xF);
      }
      else
      {
        m = 255;
      }
      paramArrayOfChar1[j] = ((char)(m << 4 | n));
      int tmp206_204 = j;
      char[] tmp206_203 = paramArrayOfChar1;
      tmp206_203[tmp206_204] = ((char)(tmp206_203[tmp206_204] & 0xFF));
      i += 2;
    }
  }
  
  private int AcToupper(int paramInt)
  {
    return (97 <= paramInt) && (paramInt <= 122) ? paramInt - 32 : paramInt;
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.EncodeMsg
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

public class EnumConstants
{
  public static final int SMS_TPDU_DELIVER = 0;
  public static final int SMS_TPDU_DELIVER_REPORT = 0;
  public static final int SMS_TPDU_SUBMIT = 1;
  public static final int SMS_TPDU_SUBMIT_REPORT = 1;
  public static final int SMS_TPDU_STATUS_REPORT = 2;
  public static final int SMS_TPDU_COMMAND = 2;
  public static final int SMS_PDU_INVALID_TYPE = 3;
  public static final int NUMBERING_PLAN_IDENTIFICATION_UNKNOWN = 0;
  public static final int NUMBERING_PLAN_IDENTIFICATIN_ISDN_TELEPHONE = 1;
  public static final int TAPI_NETTEXT_CODGRP_SM_GENERAL_DCS = 0;
  public static final int TAPI_NETTEXT_CODGRP_CB_GENERAL_LANG = 1;
  public static final int TAPI_NETTEXT_CODGRP_CB_ALPHA = 2;
  public static final int TAPI_NETTEXT_CODGRP_CB_RES1 = 3;
  public static final int TAPI_NETTEXT_CODGRP_CB_RES2 = 4;
  public static final int TAPI_NETTEXT_CODGRP_SM_AUTO_DELETION = 5;
  public static final int TAPI_NETTEXT_CODGRP_CB_GENERAL_DCS = 6;
  public static final int TAPI_NETTEXT_CODGRP_SM_WAITING_DISCARD = 7;
  public static final int TAPI_NETTEXT_CODGRP_SM_WAITING_STORE = 8;
  public static final int TAPI_NETTEXT_CODGRP_SM_WAITING_STORE_UCS2 = 9;
  public static final int TAPI_NETTEXT_CODGRP_CB_WAP = 10;
  public static final int TAPI_NETTEXT_CODGRP_SM_CLASS_CODING = 11;
  public static final int TAPI_NETTEXT_CODGRP_CB_CLASS_CODING = 12;
  public static final int TAPI_NETTEXT_CODGRP_SM_RESERVED = 13;
  public static final int TAPI_NETTEXT_CODGRP_MAX = 14;
  public static final int TAPI_NETTEXT_WAITING_VOICE_MSG = 0;
  public static final int TAPI_NETTEXT_WAITING_FAX_MSG = 1;
  public static final int TAPI_NETTEXT_WAITING_EMAIL_MSG = 2;
  public static final int TAPI_NETTEXT_WAITING_OTHER_MSG = 3;
  public static final int TAPI_NETTEXT_WAITING_MAX = 4;
  public static final int TAPI_NETTEXT_ALPHABET_DEFAULT = 0;
  public static final int TAPI_NETTEXT_ALPHABET_8BIT = 1;
  public static final int TAPI_NETTEXT_ALPHABET_UCS2 = 2;
  public static final int TAPI_NETTEXT_ALPHABET_KSC5601 = 3;
  public static final int TAPI_NETTEXT_ALPHABET_MAX = 4;
  public static final int TAPI_NETTEXT_CLASS_0 = 0;
  public static final int TAPI_NETTEXT_CLASS_1 = 1;
  public static final int TAPI_NETTEXT_CLASS_2 = 2;
  public static final int TAPI_NETTEXT_CLASS_3 = 3;
  public static final int TAPI_NETTEXT_CLASS_NONE = 4;
  public static final int TAPI_NETTEXT_CLASS_MAX = 5;
  public static final int TAPI_NETTEXT_VP_NOT_USED = 0;
  public static final int TAPI_NETTEXT_VP_RELATIVE = 2;
  public static final int TAPI_NETTEXT_VP_ABSOLUTE = 3;
  public static final int TAPI_NETTEXT_VP_ENHANCED = 1;
  public static final int TAPI_NETTEXT_VP_MAX = 4;
  public static final int TAPI_NETTEXT_VP_REL_1H = 0;
  public static final int TAPI_NETTEXT_VP_REL_6H = 1;
  public static final int TAPI_NETTEXT_VP_REL_12H = 2;
  public static final int TAPI_NETTEXT_VP_REL_1D = 3;
  public static final int TAPI_NETTEXT_VP_REL_1W = 4;
  public static final int TAPI_NETTEXT_VP_REL_1M = 5;
  public static final int TAPI_NETTEXT_VP_REL_MAX = 6;
  public static final int TAPI_NETTEXT_SMDATA_SIZE_MAX = 255;
  public static final int TAPI_NETTEXT_ADDRESS_LEN_MAX = 255;
  public static final int TAPI_NETTEXT_SCADDRESS_LEN_MAX = 20;
  public static final int SIM_TON_INTERNATIONAL = 1;
  public static final int SIM_TON_ALPHA_NUMERIC = 5;
  public static final int SIM_SMSP_ADDRESS_LEN = 20;
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.EnumConstants
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

import org.eclipse.osgi.util.NLS;

public class Messages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.tizen.injector.telephony.sms.encription.messages";
  public static String EncodeMsg_0;
  public static String EncodeMsg_1;
  
  static
  {
    NLS.initializeMessages("org.tizen.injector.telephony.sms.encription.messages", Messages.class);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.Messages
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

class SMS_UDH
{
  public char udhType;
  public short msgRef;
  public char totalSeg;
  public char seqNum;
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.SMS_UDH
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

public class SMS_USERDATA
{
  public int headerCnt;
  public SMS_UDH smsUDH = new SMS_UDH();
  public int length;
  public byte[] data;
  
  public void setSMSUDH(char paramChar1, short paramShort, char paramChar2, char paramChar3)
  {
    smsUDH.udhType = paramChar1;
    smsUDH.msgRef = paramShort;
    smsUDH.totalSeg = paramChar2;
    smsUDH.seqNum = paramChar3;
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.SMS_USERDATA
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

public class SmsAddressInfo
{
  public int ton;
  public int npi;
  public int dialnumlen;
  public char[] diallingNum = new char[21];
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.SmsAddressInfo
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

public class TPDU_SMS_DELIVER
{
  public int msgType;
  public boolean mms;
  public boolean rp;
  public boolean udhi;
  public boolean sri;
  public boolean ported;
  public SmsAddressInfo orgAddr = new SmsAddressInfo();
  public byte pId;
  public TmDateTime scts = new TmDateTime();
  public TapiNetTextCodingScheme dcs = new TapiNetTextCodingScheme();
  public int udl;
  public short port;
  public SMS_USERDATA userData;
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.TPDU_SMS_DELIVER
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

public class TPDU_SMS_SUBMIT
{
  int msgType;
  boolean rd;
  int vpf;
  boolean rp;
  boolean udhi;
  boolean srr;
  int mr;
  public SmsAddressInfo destAddr = new SmsAddressInfo();
  char pId;
  TapiNetTextCodingScheme dcs = new TapiNetTextCodingScheme();
  TapiNetTextVP vp = new TapiNetTextVP();
  public int udl;
  public char[] userData;
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.TPDU_SMS_SUBMIT
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

public class TapiNetTextCodingScheme
{
  public boolean bSMSCinSIM;
  public boolean bCompressed;
  public boolean bMsgClassSet;
  public boolean bMsgIndActive;
  public int codingGroupType;
  public int waitingType;
  public int alphabetType;
  public int classType;
  public byte codingGroup;
  public byte code;
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.TapiNetTextCodingScheme
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

public class TapiNetTextVP
{
  int vpType;
  int vpRelativeType;
  long vpValue;
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.TapiNetTextVP
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.encription;

public class TmDateTime
{
  public int year;
  public int month;
  public int day;
  public int hour;
  public int minute;
  public int second;
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.encription.TmDateTime
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class CellBroadcasting$1
  extends SelectionAdapter
{
  CellBroadcasting$1(CellBroadcasting paramCellBroadcasting) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.telephony.sms.page.CellBroadcasting.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.telephony.sms.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.tizen.injector.provider.AbstractInjectorItem;
import org.tizen.injector.provider.AbstractInjectorPage;
import org.tizen.injector.util.FormPageUtil;

public class CellBroadcasting
  extends AbstractInjectorPage
{
  private final String[] CHANNEL_ID_LIST = { Messages.CellBroadcasting_0, Messages.CellBroadcasting_1 };
  private final String[] LANGUAGE_LIST = { Messages.CellBroadcasting_2, Messages.CellBroadcasting_3 };
  private final String[] GEOGRAPHICAL_LIST = { "00", "01", "02", "03" };
  private Combo cmbChannelId;
  private Combo cmbLanguage;
  private Combo cmbGeographical;
  private Text txtMessageIdentifier;
  private Text txtDCS;
  private Text txtUpdateNumber;
  private Text txtPageNumber;
  private Text txtMessage;
  private Button butSend;
  
  public CellBroadcasting(AbstractInjectorItem paramAbstractInjectorItem, String paramString)
  {
    super(paramAbstractInjectorItem, paramString);
  }
  
  protected void createContents()
  {
    createCellBroadcastingSection();
  }
  
  protected void registerReceivers() {}
  
  private void createCellBroadcastingSection()
  {
    Composite localComposite1 = formUtil.createSection(parent, Messages.CellBroadcasting_8);
    Composite localComposite2 = formUtil.createExpandable(localComposite1, Messages.CellBroadcasting_9, 3);
    cmbChannelId = formUtil.createCombo(localComposite2);
    formUtil.addComboItem(cmbChannelId, CHANNEL_ID_LIST);
    formUtil.createLabel(localComposite2, Messages.CellBroadcasting_10);
    txtMessageIdentif
1 2

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd