|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity
android.app.ListActivity
android.preference.PreferenceActivity
org.android.activityminer.app.util.SharedPreferenceChangeAwarePreferenceActivity
org.android.activityminer.app.evaluation.EvaluationPreferencesActivity
org.android.activityminer.app.ActivityMinerPreferencesActivity
public class ActivityMinerPreferencesActivity
The main preferences activity.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class android.preference.PreferenceActivity |
---|
PreferenceActivity.Header |
Field Summary | |
---|---|
private PreferenceCategory |
categoryApplicationPreference
The preference category for application settings. |
private int |
clickCount
The click count for the super user preferences |
private EditTextPreference |
editWindowSize
The cutOut size edit preference. |
private ListPreference |
frequencyTypes
The list preference for the frequency types |
private PreferenceScreen |
sampleRatePrefScreen
The preference screen for the sample rate |
private static int |
SUPER_USER_CLICK_COUNT
The count of clicks to enable super user preferences, |
Fields inherited from class android.preference.PreferenceActivity |
---|
EXTRA_NO_HEADERS, EXTRA_SHOW_FRAGMENT, EXTRA_SHOW_FRAGMENT_ARGUMENTS, EXTRA_SHOW_FRAGMENT_SHORT_TITLE, EXTRA_SHOW_FRAGMENT_TITLE, HEADER_ID_UNDEFINED |
Fields inherited from class android.app.Activity |
---|
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK |
Fields inherited from interface android.content.ComponentCallbacks2 |
---|
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN |
Constructor Summary | |
---|---|
ActivityMinerPreferencesActivity()
|
Method Summary | |
---|---|
private void |
addFeatureExtractionPreferenceScreen(PreferenceScreen root)
Does create the cutOut preferences for feature extraction. |
private void |
addGeneralPreferenceScreen(PreferenceScreen root)
Does add the general information category |
protected void |
addLocationDataUsageFlag()
Does add the location data usage flag to the application category. |
protected void |
addOnCLickEventToMaximumSampleRatePreferenceScreen()
Does add the on click event to the maximum sample preference in the application category. |
protected void |
addOwnLinAccImplPreference()
Does add the special own linear acceleration enable flag preference to the application category. |
protected void |
addSuperUserFeatures()
Method to add the super user features. |
protected void |
onCreate(Bundle savedInstanceState)
|
void |
onEvent(ObservableEventSource<? extends TaskFinishedEvent> eventSource,
TaskFinishedEvent observedEvent)
|
void |
onLimitViolation(String message,
String key)
Does notify for a limit violation by a user preference change. |
void |
onOwnLinAccImplementationUsageFlagChange(boolean useInternalLinAccImpl)
The handler for changes of the internal linear acceleration implementation usage flag. |
private void |
updateFrequencies()
Does update the selectable frequencies. |
private void |
updateSampleRatePreferenceScreen()
Does update the summary of the sample rate preference screen with the current configuration. |
void |
updateWindowSizePreferenceSummary()
Does update the window size preference summary. |
Methods inherited from class org.android.activityminer.app.evaluation.EvaluationPreferencesActivity |
---|
onLocationDataUsageFlagChange |
Methods inherited from class android.app.ListActivity |
---|
getListAdapter, getListView, getSelectedItemId, getSelectedItemPosition, setListAdapter, setSelection |
Methods inherited from class android.view.ContextThemeWrapper |
---|
applyOverrideConfiguration, attachBaseContext, getResources, getTheme, setTheme |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int clickCount
private static final int SUPER_USER_CLICK_COUNT
private PreferenceScreen sampleRatePrefScreen
private EditTextPreference editWindowSize
private ListPreference frequencyTypes
private PreferenceCategory categoryApplicationPreference
Constructor Detail |
---|
public ActivityMinerPreferencesActivity()
Method Detail |
---|
protected final void onCreate(Bundle savedInstanceState)
onCreate
in class EvaluationPreferencesActivity
private void addFeatureExtractionPreferenceScreen(PreferenceScreen root)
root
- the root screenprivate void updateFrequencies()
public void updateWindowSizePreferenceSummary()
private void addGeneralPreferenceScreen(PreferenceScreen root)
root
- the root screenprotected void addSuperUserFeatures()
protected void addOnCLickEventToMaximumSampleRatePreferenceScreen()
protected void addLocationDataUsageFlag()
protected void addOwnLinAccImplPreference()
private void updateSampleRatePreferenceScreen()
public void onOwnLinAccImplementationUsageFlagChange(boolean useInternalLinAccImpl)
SharedPreferenceChangeObserver
onOwnLinAccImplementationUsageFlagChange
in interface SharedPreferenceChangeObserver
onOwnLinAccImplementationUsageFlagChange
in class SharedPreferenceChangeAwarePreferenceActivity
useInternalLinAccImpl
- the internal linear acceleration implementation usage flagpublic final void onLimitViolation(String message, String key)
SharedPreferenceChangeObserver
onLimitViolation
in interface SharedPreferenceChangeObserver
onLimitViolation
in class EvaluationPreferencesActivity
message
- the violation messagekey
- the shared preference key, which value have been reset due to
limit violationpublic void onEvent(ObservableEventSource<? extends TaskFinishedEvent> eventSource, TaskFinishedEvent observedEvent)
onEvent
in interface EventObserver<TaskFinishedEvent>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |