Search in sources :

Example 1 with DeviceFragment

use of com.moro.mtweaks.fragments.statistics.DeviceFragment in project MTweaks-KernelAdiutorMOD by morogoku.

the class NavigationActivity method initFragments.

private void initFragments() {
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.statistics));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.overall, new OverallFragment(), R.drawable.ic_chart));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.device, new DeviceFragment(), R.drawable.ic_device));
    if (Device.MemInfo.getItems().size() > 0) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.memory, new MemoryFragment(), R.drawable.ic_save));
    }
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.inputs, new InputsFragment(), R.drawable.ic_keyboard));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.kernel));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.cpu, new CPUFragment(), R.drawable.ic_cpu));
    if (VoltageCl1.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.cpucl1_voltage, new CPUVoltageCl1Fragment(), R.drawable.ic_bolt));
    }
    if (VoltageCl0.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.cpucl0_voltage, new CPUVoltageCl0Fragment(), R.drawable.ic_bolt));
    }
    if (Hotplug.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.cpu_hotplug, new CPUHotplugFragment(), R.drawable.ic_switch));
    }
    if (Hmp.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.hmp, new HmpFragment(), R.drawable.ic_cpu));
    }
    if (Thermal.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.thermal, new ThermalFragment(), R.drawable.ic_temperature));
    }
    if (GPUFreq.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.gpu, new GPUFragment(), R.drawable.ic_gpu));
    }
    if (Dvfs.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.dvfs_nav, new DvfsFragment(), R.drawable.ic_dvfs));
    }
    if (Screen.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.screen, new ScreenFragment(), R.drawable.ic_display));
    }
    if (Wake.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.gestures, new WakeFrament(), R.drawable.ic_touch));
    }
    if (Sound.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.sound, new SoundFragment(), R.drawable.ic_music));
    }
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.battery, new BatteryFragment(), R.drawable.ic_battery));
    if (Spectrum.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.spectrum, new SpectrumFragment(), R.drawable.ic_spectrum_logo));
    }
    if (LED.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.led, new LEDFragment(), R.drawable.ic_led));
    }
    if (IO.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.io_scheduler, new IOFragment(), R.drawable.ic_sdcard));
    }
    if (KSM.supported()) {
        if (KSM.isUKSM()) {
            sFragments.add(new NavigationActivity.NavigationFragment(R.string.uksm_name, new KSMFragment(), R.drawable.ic_merge));
        } else {
            sFragments.add(new NavigationActivity.NavigationFragment(R.string.ksm_name, new KSMFragment(), R.drawable.ic_merge));
        }
    }
    if (LMK.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.lmk, new LMKFragment(), R.drawable.ic_stackoverflow));
    }
    if (Wakelock.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.wakelock_nav, new WakelockFragment(), R.drawable.ic_unlock));
    }
    if (BoefflaWakelock.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.boeffla_wakelock, new BoefflaWakelockFragment(), R.drawable.ic_unlock));
    }
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.virtual_memory, new VMFragment(), R.drawable.ic_server));
    if (Entropy.supported()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.entropy, new EntropyFragment(), R.drawable.ic_numbers));
    }
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.misc, new MiscFragment(), R.drawable.ic_clear));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.tools));
    // sFragments.add(new NavigationActivity.NavigationFragment(R.string.data_sharing, new DataSharingFragment(), R.drawable.ic_database));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.custom_controls, new CustomControlsFragment(), R.drawable.ic_console));
    SupportedDownloads supportedDownloads = new SupportedDownloads(this);
    if (supportedDownloads.getLink() != null) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.downloads, DownloadsFragment.newInstance(supportedDownloads), R.drawable.ic_download));
    }
    if (Backup.hasBackup()) {
        sFragments.add(new NavigationActivity.NavigationFragment(R.string.backup, new BackupFragment(), R.drawable.ic_restore));
    }
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.build_prop_editor, new BuildpropFragment(), R.drawable.ic_edit));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.profile, new ProfileFragment(), R.drawable.ic_layers));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.recovery, new RecoveryFragment(), R.drawable.ic_security));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.initd, new InitdFragment(), R.drawable.ic_shell));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.on_boot, new OnBootFragment(), R.drawable.ic_start));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.other));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.settings));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.donation_title, new DonationFragment(), R.drawable.ic_donation));
    sFragments.add(new NavigationActivity.NavigationFragment(R.string.about, new AboutFragment(), R.drawable.ic_about));
// sFragments.add(new NavigationActivity.NavigationFragment(R.string.contributors, new ContributorsFragment(), R.drawable.ic_people));
// sFragments.add(new NavigationActivity.NavigationFragment(R.string.help, new HelpFragment(), R.drawable.ic_help));
}
Also used : LEDFragment(com.moro.mtweaks.fragments.kernel.LEDFragment) DeviceFragment(com.moro.mtweaks.fragments.statistics.DeviceFragment) BackupFragment(com.moro.mtweaks.fragments.tools.BackupFragment) EntropyFragment(com.moro.mtweaks.fragments.kernel.EntropyFragment) OnBootFragment(com.moro.mtweaks.fragments.tools.OnBootFragment) WakeFrament(com.moro.mtweaks.fragments.kernel.WakeFrament) ProfileFragment(com.moro.mtweaks.fragments.tools.ProfileFragment) CustomControlsFragment(com.moro.mtweaks.fragments.tools.customcontrols.CustomControlsFragment) CPUVoltageCl0Fragment(com.moro.mtweaks.fragments.kernel.CPUVoltageCl0Fragment) ThermalFragment(com.moro.mtweaks.fragments.kernel.ThermalFragment) SoundFragment(com.moro.mtweaks.fragments.kernel.SoundFragment) CPUVoltageCl1Fragment(com.moro.mtweaks.fragments.kernel.CPUVoltageCl1Fragment) MiscFragment(com.moro.mtweaks.fragments.kernel.MiscFragment) CPUHotplugFragment(com.moro.mtweaks.fragments.kernel.CPUHotplugFragment) VMFragment(com.moro.mtweaks.fragments.kernel.VMFragment) IOFragment(com.moro.mtweaks.fragments.kernel.IOFragment) InitdFragment(com.moro.mtweaks.fragments.tools.InitdFragment) SpectrumFragment(com.moro.mtweaks.fragments.kernel.SpectrumFragment) HmpFragment(com.moro.mtweaks.fragments.kernel.HmpFragment) LMKFragment(com.moro.mtweaks.fragments.kernel.LMKFragment) OverallFragment(com.moro.mtweaks.fragments.statistics.OverallFragment) BatteryFragment(com.moro.mtweaks.fragments.kernel.BatteryFragment) RecoveryFragment(com.moro.mtweaks.fragments.tools.RecoveryFragment) AboutFragment(com.moro.mtweaks.fragments.other.AboutFragment) SupportedDownloads(com.moro.mtweaks.utils.tools.SupportedDownloads) BuildpropFragment(com.moro.mtweaks.fragments.tools.BuildpropFragment) GPUFragment(com.moro.mtweaks.fragments.kernel.GPUFragment) WakelockFragment(com.moro.mtweaks.fragments.kernel.WakelockFragment) BoefflaWakelockFragment(com.moro.mtweaks.fragments.kernel.BoefflaWakelockFragment) MemoryFragment(com.moro.mtweaks.fragments.statistics.MemoryFragment) InputsFragment(com.moro.mtweaks.fragments.statistics.InputsFragment) ScreenFragment(com.moro.mtweaks.fragments.kernel.ScreenFragment) BoefflaWakelockFragment(com.moro.mtweaks.fragments.kernel.BoefflaWakelockFragment) DvfsFragment(com.moro.mtweaks.fragments.kernel.DvfsFragment) KSMFragment(com.moro.mtweaks.fragments.kernel.KSMFragment) CPUFragment(com.moro.mtweaks.fragments.kernel.CPUFragment) DonationFragment(com.moro.mtweaks.fragments.other.DonationFragment)

Aggregations

BatteryFragment (com.moro.mtweaks.fragments.kernel.BatteryFragment)1 BoefflaWakelockFragment (com.moro.mtweaks.fragments.kernel.BoefflaWakelockFragment)1 CPUFragment (com.moro.mtweaks.fragments.kernel.CPUFragment)1 CPUHotplugFragment (com.moro.mtweaks.fragments.kernel.CPUHotplugFragment)1 CPUVoltageCl0Fragment (com.moro.mtweaks.fragments.kernel.CPUVoltageCl0Fragment)1 CPUVoltageCl1Fragment (com.moro.mtweaks.fragments.kernel.CPUVoltageCl1Fragment)1 DvfsFragment (com.moro.mtweaks.fragments.kernel.DvfsFragment)1 EntropyFragment (com.moro.mtweaks.fragments.kernel.EntropyFragment)1 GPUFragment (com.moro.mtweaks.fragments.kernel.GPUFragment)1 HmpFragment (com.moro.mtweaks.fragments.kernel.HmpFragment)1 IOFragment (com.moro.mtweaks.fragments.kernel.IOFragment)1 KSMFragment (com.moro.mtweaks.fragments.kernel.KSMFragment)1 LEDFragment (com.moro.mtweaks.fragments.kernel.LEDFragment)1 LMKFragment (com.moro.mtweaks.fragments.kernel.LMKFragment)1 MiscFragment (com.moro.mtweaks.fragments.kernel.MiscFragment)1 ScreenFragment (com.moro.mtweaks.fragments.kernel.ScreenFragment)1 SoundFragment (com.moro.mtweaks.fragments.kernel.SoundFragment)1 SpectrumFragment (com.moro.mtweaks.fragments.kernel.SpectrumFragment)1 ThermalFragment (com.moro.mtweaks.fragments.kernel.ThermalFragment)1 VMFragment (com.moro.mtweaks.fragments.kernel.VMFragment)1