Android Open Source - LTM Constants






From Project

Back to project page LTM.

License

The source code is released under:

Apache License

If you think the Android project LTM 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

package com.chrisplus.ltm.utils;
//from ww w  . j av a2s .c o  m
import java.io.File;

import android.app.Application;
import android.os.Build;

/**
 * This class is used to record the constants for LTM project.
 * 
 * @author Chris Jiang
 */
public class Constants {

    /* Passing Message between application and service */
    public final static int MSG_REG_CLIENT = 7301;
    public final static int MSG_UNREG_CLIENT = 7302;
    public final static int MSG_BROADCAST_LOG = 7303;
    public final static int MSG_UPDATE_NOTIFICATION = 7304;
    public final static int MSG_TOGGLE_FOREGROUND = 7305;

    /* Notification ID */
    public final static int NOTIFICATION_ID = Application.class.getName().hashCode();

    /* Execution Script & File Name */
    public final static String EXE_SCRIPT = "run_ltm.sh";
    public final static String CREATE_TIME = System.currentTimeMillis() + "";
    public final static String LOG_PATH = android.os.Environment.getExternalStorageDirectory()
            + File.separator + "LTM_LOG" + File.separator;
    public final static String LOG_FILE = Build.ID + "_" + Build.PRODUCT + "_"
            + "NetworkTrafficLog.csv";
    public final static String MAP_FILE = Build.ID + "_" + Build.PRODUCT + "_"
            + "ApplicationUIDMap.csv";

}




Java Source Code List

com.chrisplus.ltm.LogService.java
com.chrisplus.ltm.MainActivity.java
com.chrisplus.ltm.activies.ErrorDialogActivity.java
com.chrisplus.ltm.core.CoreLogger.java
com.chrisplus.ltm.core.CoreParser.java
com.chrisplus.ltm.utils.CharArrayStringAATree.java
com.chrisplus.ltm.utils.CharArray.java
com.chrisplus.ltm.utils.Constants.java
com.chrisplus.ltm.utils.ItemNotFoundException.java
com.chrisplus.ltm.utils.MD5Sum.java
com.chrisplus.ltm.utils.NetStat.java
com.chrisplus.ltm.utils.ShellCommand.java
com.chrisplus.ltm.utils.StringPool.java
com.chrisplus.ltm.utils.SysUtils.java