Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed res/drawable-hdpi/ic_drawer.png
Binary file not shown.
Binary file removed res/drawable-mdpi/ic_drawer.png
Binary file not shown.
Binary file removed res/drawable-xhdpi/ic_drawer.png
Binary file not shown.
4 changes: 2 additions & 2 deletions res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ Copyright (C) 2012 James Roberts
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/pc_navigation_drawer"
android:background="@color/pc_black"
android:background="#fff"
android:layout_width="260dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:layout_gravity="end"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp" />
Expand Down
28 changes: 28 additions & 0 deletions res/layout/drawer_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?><!--
Performance Control - An Android CPU Control application
Copyright (C) 2012 James Roberts

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

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/>.
-->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textColor="#111"
android:background="?android:attr/activatedBackgroundIndicator"
android:minHeight="?android:attr/listPreferredItemHeightSmall"/>
1 change: 0 additions & 1 deletion res/layout/time_in_state.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ Copyright (C) 2012 James Roberts
android:id="@+id/ui_states_warning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#551111"
android:padding="15dp"
android:text="@string/no_states_file_found"
android:textSize="20sp"
Expand Down
1 change: 0 additions & 1 deletion res/layout/wakelocks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ Copyright (C) 2012 James Roberts
android:id="@+id/ui_kernel_wakelock_warning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#551111"
android:padding="15dp"
android:text="@string/no_kernel_wakelock_file_found"
android:textSize="20sp"
Expand Down
2 changes: 1 addition & 1 deletion res/menu/menu_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/pc_toggle_drawer"
android:showAsAction="never"
android:showAsAction="ifRoom"
android:title="@string/navigation_drawer_toggle"
android:icon="@drawable/ic_drawer" />
<item
Expand Down
2 changes: 1 addition & 1 deletion res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
<bool name="config_use_tabbed">false</bool>

<!-- If false, user can't switch between menu_tabbed and menu_drawer mode -->
<bool name="config_allow_toggle_tabbed">true</bool>
<bool name="config_allow_toggle_tabbed">false</bool>

</resources>
17 changes: 4 additions & 13 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,15 @@ Copyright (C) 2012 James Roberts
<!-- Main tabs -->
<string name="tab_cpu_settings">CPU Speed</string>
<string name="tab_battery_info">Battery</string>
<string name="tab_oom_settings">Memory Settings</string>
<string name="tab_oom_settings">Memory</string>
<string name="tab_volt_settings">Voltage Control</string>
<string name="tab_adv_settings">"Advanced"</string>
<string name="tab_time_in_state">Time In State</string>
<string name="tab_voltage_settings">Voltage Settings</string>
<string name="tab_cpu_info">General Info</string>
<string name="tab_disk_info">Disk Info</string>
<string name="tab_tools">Tools</string>
<string name="tab_wakelocks">Wakelocks</string>
<!-- Titles -->
<string name="t_cpu_settings">CPU SPEED</string>
<string name="t_battery_info">BATTERY</string>
<string name="t_oom_settings">MEMORY SETTINGS</string>
<string name="t_volt_settings">VOLTAGE SETTINGS</string>
<string name="t_adv_settings">"ADVANCED SETTINGS"</string>
<string name="t_time_in_state">"TIME IN STATE"</string>
<string name="t_cpu_info">GENERAL INFO</string>
<string name="t_disk_info">DISK INFO</string>
<string name="t_tools">TOOLS</string>
<string name="t_wakelocks">WAKELOCKS</string>

<string name="menu_tab">Tabs</string>
<!-- Menu -->
<string name="mt_refresh">Refresh</string>
Expand Down
13 changes: 5 additions & 8 deletions src/com/brewcrewfoo/performance/activities/FileChooser.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,8 @@
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;

import com.brewcrewfoo.performance.R;
import com.brewcrewfoo.performance.util.ActivityThemeChangeInterface;
import com.brewcrewfoo.performance.util.Constants;
import com.brewcrewfoo.performance.util.FileArrayAdapter;
import com.brewcrewfoo.performance.util.Helpers;
import com.brewcrewfoo.performance.util.Item;
import com.brewcrewfoo.performance.util.UnzipUtility;
import com.brewcrewfoo.performance.util.*;

import java.io.File;
import java.sql.Date;
Expand All @@ -41,7 +35,10 @@
import java.util.Collections;
import java.util.List;

public class FileChooser extends ListActivity implements Constants, ActivityThemeChangeInterface {
import static com.brewcrewfoo.performance.util.Constants.PREF_USE_LIGHT_THEME;
import static com.brewcrewfoo.performance.util.Constants.TAG;

public class FileChooser extends ListActivity implements ActivityThemeChangeInterface {
final Context context = this;
private File currentDir;
SharedPreferences mPreferences;
Expand Down
11 changes: 5 additions & 6 deletions src/com/brewcrewfoo/performance/activities/FlasherActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,24 @@
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.brewcrewfoo.performance.R;
import com.brewcrewfoo.performance.util.ActivityThemeChangeInterface;
import com.brewcrewfoo.performance.util.Constants;

import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import static com.brewcrewfoo.performance.util.Constants.PREF_USE_LIGHT_THEME;
import static com.brewcrewfoo.performance.util.Constants.TAG;


public class FlasherActivity extends Activity implements Constants, ActivityThemeChangeInterface {
public class FlasherActivity extends Activity implements ActivityThemeChangeInterface {
TextView flasherInfo;
TextView deviceName;
TextView deviceModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;

import com.brewcrewfoo.performance.R;
import com.brewcrewfoo.performance.util.ActivityThemeChangeInterface;
import com.brewcrewfoo.performance.util.CMDProcessor;
import com.brewcrewfoo.performance.util.Constants;
import com.brewcrewfoo.performance.util.PackAdapter;

import static com.brewcrewfoo.performance.util.Constants.PREF_USE_LIGHT_THEME;


public class FreezerActivity extends Activity implements Constants, AdapterView.OnItemClickListener, ActivityThemeChangeInterface {
public class FreezerActivity extends Activity implements AdapterView.OnItemClickListener, ActivityThemeChangeInterface {

final Context context = this;
private boolean mIsLightTheme;
Expand Down
23 changes: 6 additions & 17 deletions src/com/brewcrewfoo/performance/activities/GovSetActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,20 @@
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.Switch;
import android.widget.TextView;

import android.widget.*;
import com.brewcrewfoo.performance.R;
import com.brewcrewfoo.performance.util.ActivityThemeChangeInterface;
import com.brewcrewfoo.performance.util.CMDProcessor;
import com.brewcrewfoo.performance.util.Constants;
import com.brewcrewfoo.performance.util.Helpers;
import com.brewcrewfoo.performance.util.Prop;
import com.brewcrewfoo.performance.util.PropAdapter;
import com.brewcrewfoo.performance.util.*;

import java.util.ArrayList;
import java.util.List;

import static com.brewcrewfoo.performance.util.Constants.*;

/**
* Created by h0rn3t on 21.09.2013.
*/
public class GovSetActivity extends Activity implements Constants, AdapterView.OnItemClickListener, ActivityThemeChangeInterface {

public class GovSetActivity extends Activity implements AdapterView.OnItemClickListener, ActivityThemeChangeInterface {
private boolean mIsLightTheme;
SharedPreferences mPreferences;
private final Context context = this;
Expand Down
6 changes: 3 additions & 3 deletions src/com/brewcrewfoo/performance/activities/KSMActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
import android.widget.RelativeLayout;
import android.widget.SeekBar;
import android.widget.TextView;

import com.brewcrewfoo.performance.R;
import com.brewcrewfoo.performance.util.ActivityThemeChangeInterface;
import com.brewcrewfoo.performance.util.CMDProcessor;
import com.brewcrewfoo.performance.util.Constants;
import com.brewcrewfoo.performance.util.Helpers;

import java.io.File;

import static com.brewcrewfoo.performance.util.Constants.*;

/**
* Created by h0rn3t on 11.09.2013.
*/
public class KSMActivity extends Activity implements Constants, SeekBar.OnSeekBarChangeListener, ActivityThemeChangeInterface {
public class KSMActivity extends Activity implements SeekBar.OnSeekBarChangeListener, ActivityThemeChangeInterface {
SharedPreferences mPreferences;
private boolean mIsLightTheme;
final Context context = this;
Expand Down
Loading