Android Open Source - VoLTE_Dialer volte_dialer






From Project

Back to project page VoLTE_Dialer.

License

The source code is released under:

GNU General Public License

If you think the Android project VoLTE_Dialer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 *  Dialer for testing VoLTE network side KPIs.
 *  /*from www  .j  av a 2 s. com*/
 *   Copyright (C) 2014  Spinlogic
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as 
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>
 */

package at.a1.volte_dialer;

import java.io.IOException;

import net.spinlogic.logger.SP_Logger;
import android.app.Application;
import android.telephony.ServiceState;
import android.util.Log;

public class volte_dialer extends Application {
  
  public volte_dialer() {
    super();
  }
  
  
  @Override
  public void onCreate() {
        super.onCreate();
    // Initialize global variables 
        Globals.is_vd_running       = false;
        Globals.msisdn       = VD_Settings.getStringPref(
                            this,
                            VD_Settings.PREF_MSIDN,
                            Globals.DEF_MSISDN);
        Globals.callduration   = Integer.parseInt(VD_Settings.getStringPref(
                            this, 
                            VD_Settings.PREF_CALL_DURATION,
                            "20"));
        Globals.timebetweencalls = Integer.parseInt(VD_Settings.getStringPref(
                            this, 
                            VD_Settings.PREF_WAIT_TIME,
                            "20"));
        boolean is_bgmode       = VD_Settings.getBoolPref(this, 
                        VD_Settings.PREF_BGMODE, 
                        false);
        if(is_bgmode) {
          Globals.opmode = Globals.OPMODE_BG;
        }
        else {
          boolean is_receiver  = VD_Settings.getBoolPref(this, 
                            VD_Settings.PREF_RECEIVER, 
                            false);
          Globals.opmode = (is_receiver) ? Globals.OPMODE_MT : Globals.OPMODE_MO;
        }
        Globals.iservicestate   = ServiceState.STATE_OUT_OF_SERVICE;  // default initial service state
        Globals.icallnumber   = 0;
        Globals.is_mtc_ongoing  = false;
//        Logger.initializeValues();
        try {
          SP_Logger.setup();
        } catch (IOException e) {
            Log.d("VOLTE_DIALER", "Problem creating log file");
        }
        VD_Settings settings = new VD_Settings(); // initialize log level
        settings = null;  // not needed anymore
    }
    
}




Java Source Code List

at.a1.volte_dialer.BootUpReceiver.java
at.a1.volte_dialer.Globals.java
at.a1.volte_dialer.SettingsActivity.java
at.a1.volte_dialer.SettingsFragment.java
at.a1.volte_dialer.VDMainActivity.java
at.a1.volte_dialer.VD_Settings.java
at.a1.volte_dialer.callmonitor.CallDescription.java
at.a1.volte_dialer.callmonitor.CallLogger.java
at.a1.volte_dialer.callmonitor.CallMonitorInterface.java
at.a1.volte_dialer.callmonitor.CallMonitorReceiver.java
at.a1.volte_dialer.callmonitor.CallMonitorService.java
at.a1.volte_dialer.callmonitor.OutgoingCallReceiver.java
at.a1.volte_dialer.callmonitor.PreciseCallStateReceiver.java
at.a1.volte_dialer.dialer.DialerReceiver.java
at.a1.volte_dialer.dialer.DialerService.java
at.a1.volte_dialer.dialer.DsHandlerInterface.java
at.a1.volte_dialer.receiver.ReceiverService.java
at.a1.volte_dialer.volte_dialer.java
net.spinlogic.logger.Logger_backup.java
net.spinlogic.logger.SP_Logger.java