// Path: app/src/main/java/com/quixom/apps/deviceinfo/utilities/KeyUtil.java
// public class KeyUtil {
//     public static final String datePattern = "dd MMM yyyy HH:mm:ss z";
//     public static final String KEY_MODE = "key_mode";
// 
//     /*** Sensor */
//     public static final String KEY_SENSOR_NAME = "key_sensor_name";
//     public static final String KEY_SENSOR_TYPE = "key_sensor_type";
//     public static final String KEY_SENSOR_ICON = "key_sensor_icon";
// 
//     public static float KEY_LAST_KNOWN_HUMIDITY = 0f;
// 
//     public static final int KEY_CAMERA_CODE = 101;
//     public static final int KEY_CALL_PERMISSION = 102;
//     public static final int KEY_READ_PHONE_STATE = 103;
//     public static final int IS_USER_COME_FROM_SYSTEM_APPS = 1;
//     public static final int IS_USER_COME_FROM_USER_APPS = 2;
// }


import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import com.quixom.apps.deviceinfo.R;
import com.quixom.apps.deviceinfo.utilities.KeyUtil;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.tv_manufacturer)
    TextView tvManufacturer;
    @BindView(R.id.tv_brand_name)
    TextView tvBrand;
    @BindView(R.id.tv_model_number)
    TextView tvModel;
    @BindView(R.id.tv_board)
    TextView tvBoard;
    @BindView(R.id.tv_hardware)
    TextView tvHardware;
    @BindView(R.id.tv_serial_no)
    TextView tvSerialNo;
    @BindView(R.id.tv_android_id)
    TextView tvAndroidId;
    @BindView(R.id.tv_screen_resolution)
    TextView tvScreenResolution;
    @BindView(R.id.tv_boot_loader)
    TextView tvBootLoader;
    @BindView(R.id.tv_user)
    TextView tvUser;
    @BindView(R.id.tv_host)
    TextView tvHost;

    public static HomeFragment getInstance(int mode) {
        HomeFragment homeFragment = new HomeFragment();
        Bundle bundle = new Bundle();
// Path: app/src/main/java/com/quixom/apps/deviceinfo/utilities/KeyUtil.java
// public class KeyUtil {
//     public static final String datePattern = "dd MMM yyyy HH:mm:ss z";
//     public static final String KEY_MODE = "key_mode";
// 
//     /*** Sensor */
//     public static final String KEY_SENSOR_NAME = "key_sensor_name";
//     public static final String KEY_SENSOR_TYPE = "key_sensor_type";
//     public static final String KEY_SENSOR_ICON = "key_sensor_icon";
// 
//     public static float KEY_LAST_KNOWN_HUMIDITY = 0f;
// 
//     public static final int KEY_CAMERA_CODE = 101;
//     public static final int KEY_CALL_PERMISSION = 102;
//     public static final int KEY_READ_PHONE_STATE = 103;
//     public static final int IS_USER_COME_FROM_SYSTEM_APPS = 1;
//     public static final int IS_USER_COME_FROM_USER_APPS = 2;
// }


// Path: app/src/main/java/com/quixom/apps/deviceinfo/fragments/HomeFragment.java
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import com.quixom.apps.deviceinfo.R;
import com.quixom.apps.deviceinfo.utilities.KeyUtil;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.tv_manufacturer)
    TextView tvManufacturer;
    @BindView(R.id.tv_brand_name)
    TextView tvBrand;
    @BindView(R.id.tv_model_number)
    TextView tvModel;
    @BindView(R.id.tv_board)
    TextView tvBoard;
    @BindView(R.id.tv_hardware)
    TextView tvHardware;
    @BindView(R.id.tv_serial_no)
    TextView tvSerialNo;
    @BindView(R.id.tv_android_id)
    TextView tvAndroidId;
    @BindView(R.id.tv_screen_resolution)
    TextView tvScreenResolution;
    @BindView(R.id.tv_boot_loader)
    TextView tvBootLoader;
    @BindView(R.id.tv_user)
    TextView tvUser;
    @BindView(R.id.tv_host)
    TextView tvHost;

    public static HomeFragment getInstance(int mode) {
        HomeFragment homeFragment = new HomeFragment();
        Bundle bundle = new Bundle();
        bundle.putInt(KeyUtil.KEY_MODE, mode);