From 5b29f84146d6af2f9bb6cfb788e658d563c37dea Mon Sep 17 00:00:00 2001 From: codeworkx Date: Fri, 9 Aug 2013 19:47:13 +0200 Subject: p3100: remove DeviceSettings Change-Id: I0229dfdc30165e4d23bf7b4347075e54d4980eb5 --- DeviceSettings/Android.mk | 15 --- DeviceSettings/AndroidManifest.xml | 31 ----- .../res/drawable/ic_launcher_cmdevicesettings.png | Bin 8207 -> 0 bytes DeviceSettings/res/layout/top.xml | 5 - DeviceSettings/res/values-de/arrays.xml | 19 --- DeviceSettings/res/values-de/strings.xml | 24 ---- DeviceSettings/res/values-es/strings.xml | 24 ---- DeviceSettings/res/values-fi/strings.xml | 24 ---- DeviceSettings/res/values-hu/strings.xml | 24 ---- DeviceSettings/res/values-it/strings.xml | 24 ---- DeviceSettings/res/values-nl/strings.xml | 24 ---- DeviceSettings/res/values-pl/arrays.xml | 56 -------- DeviceSettings/res/values-pl/strings.xml | 24 ---- DeviceSettings/res/values-pt-rBR/strings.xml | 22 ---- DeviceSettings/res/values-ru/strings.xml | 24 ---- DeviceSettings/res/values-zh-rCN/strings.xml | 24 ---- DeviceSettings/res/values/arrays.xml | 19 --- DeviceSettings/res/values/strings.xml | 24 ---- DeviceSettings/res/xml/dock_preferences.xml | 26 ---- .../settings/device/DeviceSettings.java | 142 -------------------- .../settings/device/DockFragmentActivity.java | 75 ----------- .../com/cyanogenmod/settings/device/Startup.java | 29 ----- .../src/com/cyanogenmod/settings/device/Utils.java | 143 --------------------- p31xx-common.mk | 1 - 24 files changed, 823 deletions(-) delete mode 100644 DeviceSettings/Android.mk delete mode 100644 DeviceSettings/AndroidManifest.xml delete mode 100755 DeviceSettings/res/drawable/ic_launcher_cmdevicesettings.png delete mode 100755 DeviceSettings/res/layout/top.xml delete mode 100644 DeviceSettings/res/values-de/arrays.xml delete mode 100644 DeviceSettings/res/values-de/strings.xml delete mode 100644 DeviceSettings/res/values-es/strings.xml delete mode 100644 DeviceSettings/res/values-fi/strings.xml delete mode 100644 DeviceSettings/res/values-hu/strings.xml delete mode 100644 DeviceSettings/res/values-it/strings.xml delete mode 100644 DeviceSettings/res/values-nl/strings.xml delete mode 100644 DeviceSettings/res/values-pl/arrays.xml delete mode 100644 DeviceSettings/res/values-pl/strings.xml delete mode 100644 DeviceSettings/res/values-pt-rBR/strings.xml delete mode 100644 DeviceSettings/res/values-ru/strings.xml delete mode 100644 DeviceSettings/res/values-zh-rCN/strings.xml delete mode 100644 DeviceSettings/res/values/arrays.xml delete mode 100644 DeviceSettings/res/values/strings.xml delete mode 100644 DeviceSettings/res/xml/dock_preferences.xml delete mode 100644 DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java delete mode 100644 DeviceSettings/src/com/cyanogenmod/settings/device/DockFragmentActivity.java delete mode 100644 DeviceSettings/src/com/cyanogenmod/settings/device/Startup.java delete mode 100644 DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java diff --git a/DeviceSettings/Android.mk b/DeviceSettings/Android.mk deleted file mode 100644 index 67ee3a6..0000000 --- a/DeviceSettings/Android.mk +++ /dev/null @@ -1,15 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13 - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := GalaxyTab2Settings -LOCAL_CERTIFICATE := platform - -include $(BUILD_PACKAGE) - -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/DeviceSettings/AndroidManifest.xml b/DeviceSettings/AndroidManifest.xml deleted file mode 100644 index a581d10..0000000 --- a/DeviceSettings/AndroidManifest.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/DeviceSettings/res/drawable/ic_launcher_cmdevicesettings.png b/DeviceSettings/res/drawable/ic_launcher_cmdevicesettings.png deleted file mode 100755 index 66de9c3..0000000 Binary files a/DeviceSettings/res/drawable/ic_launcher_cmdevicesettings.png and /dev/null differ diff --git a/DeviceSettings/res/layout/top.xml b/DeviceSettings/res/layout/top.xml deleted file mode 100755 index 744b568..0000000 --- a/DeviceSettings/res/layout/top.xml +++ /dev/null @@ -1,5 +0,0 @@ - - diff --git a/DeviceSettings/res/values-de/arrays.xml b/DeviceSettings/res/values-de/arrays.xml deleted file mode 100644 index 4cf4e23..0000000 --- a/DeviceSettings/res/values-de/arrays.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - diff --git a/DeviceSettings/res/values-de/strings.xml b/DeviceSettings/res/values-de/strings.xml deleted file mode 100644 index fb16ff2..0000000 --- a/DeviceSettings/res/values-de/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Galaxy Tab 2 Einstellungen - - Dock - Audio - USB-Dock Audio - Passive Audio-Ausgabe des USB-Docks verwenden - diff --git a/DeviceSettings/res/values-es/strings.xml b/DeviceSettings/res/values-es/strings.xml deleted file mode 100644 index ec13f9d..0000000 --- a/DeviceSettings/res/values-es/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Ajustes Galaxy Tab 2 - - Conector - Audio - Usar el conector de audio USB - Usar la salida de audio pasiva cuando el conector USB esté activado - diff --git a/DeviceSettings/res/values-fi/strings.xml b/DeviceSettings/res/values-fi/strings.xml deleted file mode 100644 index ef3e9d7..0000000 --- a/DeviceSettings/res/values-fi/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Galaxy Tab 2-asetukset - - Telakka - Audio - Käytä USB-audiotelakkaa - Käytä telakan audioulostuloa - diff --git a/DeviceSettings/res/values-hu/strings.xml b/DeviceSettings/res/values-hu/strings.xml deleted file mode 100644 index cbad81a..0000000 --- a/DeviceSettings/res/values-hu/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Galaxy Tab 2 Beállítások - - Dokkoló - Dokkoló hangszórók - Dokkoló hangszóróinak használata - Használja a dokkoló passzív hangkimenetét - diff --git a/DeviceSettings/res/values-it/strings.xml b/DeviceSettings/res/values-it/strings.xml deleted file mode 100644 index 186446b..0000000 --- a/DeviceSettings/res/values-it/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Impostazioni Galaxy Tab 2 - - Dock - Audio - Usa USB audio in dock - Usa l\'uscita audio passiva quando in dock - diff --git a/DeviceSettings/res/values-nl/strings.xml b/DeviceSettings/res/values-nl/strings.xml deleted file mode 100644 index 4836a39..0000000 --- a/DeviceSettings/res/values-nl/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Galaxy Tab 2-instellingen - - Dock - Geluid - USB-geluidsdock - Passieve geluidsuitgang van het dock gebruiken - diff --git a/DeviceSettings/res/values-pl/arrays.xml b/DeviceSettings/res/values-pl/arrays.xml deleted file mode 100644 index 268ac03..0000000 --- a/DeviceSettings/res/values-pl/arrays.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - 0% - 25% - 50% (domyślnie) - 75% - 100% - - - - Tylko UMTS - Tylko HSDPA - HSDPA + HSUPA - - - - CyanogenMod (domyślnie) - UI - Wideo - Ciepły film - Zimny film - Kamera - Nawigacja - Galeria - VT - - - - Dynamicznie (domyślnie) - Standardowo - Naturalnie - Film - - - - Normalnie - Odwrócony - - - - Miganie - Zanikanie - - - - Nigdy - 1 sekunda - 2 sekundy - 3 sekundy (domyślnie) - 4 sekundy - 5 sekund - 6 sekund - - - diff --git a/DeviceSettings/res/values-pl/strings.xml b/DeviceSettings/res/values-pl/strings.xml deleted file mode 100644 index 5f831ff..0000000 --- a/DeviceSettings/res/values-pl/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Ustawienia Galaxy Tab 2 - - Stacja dokująca - Dźwięk w stacji dokującej - Użyj stacji dokującej - Użyj pasywnego wyjścia audio w stacji dokującej - \ No newline at end of file diff --git a/DeviceSettings/res/values-pt-rBR/strings.xml b/DeviceSettings/res/values-pt-rBR/strings.xml deleted file mode 100644 index 47be9c0..0000000 --- a/DeviceSettings/res/values-pt-rBR/strings.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - Configurações avançadas - Dock - Áudio do dock - Usar áudio USB do dock - Usar a saída de áudio passiva no dock - \ No newline at end of file diff --git a/DeviceSettings/res/values-ru/strings.xml b/DeviceSettings/res/values-ru/strings.xml deleted file mode 100644 index 057df1f..0000000 --- a/DeviceSettings/res/values-ru/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Настройки Galaxy Tab 2 - - Док-станция - Аудио - USB аудио док-станция - Использовать пассивный режим аудио док-станции - diff --git a/DeviceSettings/res/values-zh-rCN/strings.xml b/DeviceSettings/res/values-zh-rCN/strings.xml deleted file mode 100644 index 0c5c0e4..0000000 --- a/DeviceSettings/res/values-zh-rCN/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Galaxy Tab 2 设置 - - 基座 - 基座音频 - 使用基座的 USB 音频 - 使用基座上的被动音频输出 - diff --git a/DeviceSettings/res/values/arrays.xml b/DeviceSettings/res/values/arrays.xml deleted file mode 100644 index 4cf4e23..0000000 --- a/DeviceSettings/res/values/arrays.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - diff --git a/DeviceSettings/res/values/strings.xml b/DeviceSettings/res/values/strings.xml deleted file mode 100644 index 5632f1e..0000000 --- a/DeviceSettings/res/values/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - Galaxy Tab 2 Settings - - Dock - Dock Audio - Use Dock USB Audio - Use the passive audio out on the dock - diff --git a/DeviceSettings/res/xml/dock_preferences.xml b/DeviceSettings/res/xml/dock_preferences.xml deleted file mode 100644 index 62c962c..0000000 --- a/DeviceSettings/res/xml/dock_preferences.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java b/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java deleted file mode 100644 index ffa3054..0000000 --- a/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (C) 2012 The CyanogenMod Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.cyanogenmod.settings.device; - -import android.app.ActionBar; -import android.app.ActionBar.Tab; -import android.app.Activity; -import android.app.Fragment; -import android.app.FragmentTransaction; -import android.content.Context; -import android.os.Bundle; -import android.support.v4.app.FragmentActivity; -import android.support.v13.app.FragmentPagerAdapter; -import android.support.v4.view.ViewPager; - -import com.cyanogenmod.settings.device.R; - -import java.util.ArrayList; - -public class DeviceSettings extends FragmentActivity { - - public static final String SHARED_PREFERENCES_BASENAME = "com.cyanogenmod.settings.device"; - public static final String ACTION_UPDATE_PREFERENCES = "com.cyanogenmod.settings.device.UPDATE"; - public static final String KEY_USE_DOCK_AUDIO = "dock_audio"; - - ViewPager mViewPager; - TabsAdapter mTabsAdapter; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - mViewPager = new ViewPager(this); - mViewPager.setId(R.id.viewPager); - setContentView(mViewPager); - - final ActionBar bar = getActionBar(); - bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); - bar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE); - bar.setTitle(R.string.app_name); - - mTabsAdapter = new TabsAdapter(this, mViewPager); - mTabsAdapter.addTab(bar.newTab().setText(R.string.category_dock_title), - DockFragmentActivity.class, null); - - if (savedInstanceState != null) { - bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); - } - } - - @Override - protected void onSaveInstanceState(Bundle outState) { - super.onSaveInstanceState(outState); - outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); - } - - public static class TabsAdapter extends FragmentPagerAdapter - implements ActionBar.TabListener, ViewPager.OnPageChangeListener { - private final Context mContext; - private final ActionBar mActionBar; - private final ViewPager mViewPager; - private final ArrayList mTabs = new ArrayList(); - - static final class TabInfo { - private final Class clss; - private final Bundle args; - - TabInfo(Class _class, Bundle _args) { - clss = _class; - args = _args; - } - } - - public TabsAdapter(Activity activity, ViewPager pager) { - super(activity.getFragmentManager()); - mContext = activity; - mActionBar = activity.getActionBar(); - mViewPager = pager; - mViewPager.setAdapter(this); - mViewPager.setOnPageChangeListener(this); - } - - public void addTab(ActionBar.Tab tab, Class clss, Bundle args) { - TabInfo info = new TabInfo(clss, args); - tab.setTag(info); - tab.setTabListener(this); - mTabs.add(info); - mActionBar.addTab(tab); - notifyDataSetChanged(); - } - - @Override - public int getCount() { - return mTabs.size(); - } - - @Override - public Fragment getItem(int position) { - TabInfo info = mTabs.get(position); - return Fragment.instantiate(mContext, info.clss.getName(), info.args); - } - - public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { - } - - public void onPageSelected(int position) { - mActionBar.setSelectedNavigationItem(position); - } - - public void onPageScrollStateChanged(int state) { - } - - public void onTabSelected(Tab tab, FragmentTransaction ft) { - Object tag = tab.getTag(); - for (int i=0; i