|
||||||||||
| 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
org.android.activityminer.app.util.SharedPreferenceChangeAwareActivity
org.android.activityminer.app.util.ServiceBasedActivity
org.android.activityminer.app.manager.ManagerActivity
public class ManagerActivity
The management activity.
| Field Summary | |
|---|---|
private Button |
btnBatchExportTrainingData
The batch export training data button. |
private Button |
btnExportDB
The export database button. |
private Button |
btnExportModel
The export model button. |
private Button |
btnExportRawData
The export raw data button. |
private Button |
btnExportTrainingData
The export training data button. |
private Button |
btnImportDB
The import database button. |
private AtomicBoolean |
dbImportIsWaitingForConnection
Flag if db import is waiting for a connection |
private String |
importFileName
file name for db import |
private AtomicBoolean |
modelExportIsWaitingForConnection
Flag if model export is waiting for a connection |
private String |
modelName
The name of the model to export |
private int |
secretCounter
The secret counter. |
| 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 | |
|---|---|
ManagerActivity()
|
|
| Method Summary | |
|---|---|
private void |
doBatchExportTrainingData(Configuration configuration,
long[] windowSizes,
long[] sampleRates,
double[] gfCutOffs)
Training data creation and export in batch mode. |
protected void |
doExportDB(String destFileName)
Database export |
protected void |
doExportModel(String modelFileName)
Model xxport |
protected void |
doExportRawData(String fileName)
Raw data export to the given file name |
protected void |
doExportTrainingData(String fileName)
Training data export to the given file name |
protected void |
doImportDB(String srcFileName)
Database import |
void |
onAboutToDisconnect(IBackgroundService service)
|
protected void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
|
private void |
onBatchExportTrainingData()
Handler for training data batch export. |
void |
onConfigurationChanged(Configuration newConfig)
|
void |
onConnectionEstablished(IBackgroundService service)
|
void |
onConnectionLost()
|
protected void |
onCreate(Bundle savedInstanceState)
|
boolean |
onCreateOptionsMenu(Menu menu)
|
protected void |
onDestroy()
|
protected void |
onExportDB()
Database export handler |
protected void |
onExportModel()
Model export handler |
protected void |
onExportRawData()
Raw data export handler |
private void |
onExportTrainingData()
Handler for training data export. |
protected void |
onImportDB()
Database import handler |
boolean |
onOptionsItemSelected(MenuItem item)
|
boolean |
onPrepareOptionsMenu(Menu menu)
|
protected void |
onResume()
|
protected void |
onServiceFinishedCurrentTask(TaskFinishedEvent event)
Handler for finished service tasks |
private void |
prepare()
Preparation |
private boolean |
testForCompatibility(String dbFileName)
Method to test for data compatibility with device ( configured sample rate must fit ) |
private void |
updateButtonStates()
Does update the button states |
private boolean |
validateDBFile(String dbFileName)
Method to test for a valid database file |
| Methods inherited from class org.android.activityminer.app.util.ServiceBasedActivity |
|---|
getService, getServiceState, handleTaskFinishedEvent, isServiceAvailable, onBackgroundTaskProgress, onBindingFailed, onDefaultTaskFinishedEvent, onNewIntent, onPause, onServiceUnavailable, safeUnregisterReceiver, showServiceTaskFinishedResult, startBackgroundServiceProgressObservation, stopBackgroundServiceProgressObservation |
| 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 Button btnExportTrainingData
private Button btnBatchExportTrainingData
private Button btnExportRawData
private Button btnExportDB
private Button btnImportDB
private Button btnExportModel
private final AtomicBoolean dbImportIsWaitingForConnection
private String importFileName
private final AtomicBoolean modelExportIsWaitingForConnection
private String modelName
private int secretCounter
| Constructor Detail |
|---|
public ManagerActivity()
| Method Detail |
|---|
protected final void onCreate(Bundle savedInstanceState)
onCreate in class ServiceBasedActivityprotected final void onDestroy()
onDestroy in class SharedPreferenceChangeAwareActivitypublic final void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged in interface ComponentCallbacksonConfigurationChanged in class Activityprivate final void prepare()
public final boolean onCreateOptionsMenu(Menu menu)
onCreateOptionsMenu in class Activitypublic final boolean onPrepareOptionsMenu(Menu menu)
onPrepareOptionsMenu in class Activitypublic final boolean onOptionsItemSelected(MenuItem item)
onOptionsItemSelected in class Activityprivate final void updateButtonStates()
protected final void onImportDB()
protected final void onExportModel()
protected final void onActivityResult(int requestCode,
int resultCode,
Intent data)
onActivityResult in class Activityprivate boolean validateDBFile(String dbFileName)
dbFileName - the database file name
private boolean testForCompatibility(String dbFileName)
dbFileName - the database file name
private final void onBatchExportTrainingData()
private final void onExportTrainingData()
protected final void onExportRawData()
protected final void onExportDB()
protected final void doExportTrainingData(String fileName)
fileName - the file name
private final void doBatchExportTrainingData(Configuration configuration,
long[] windowSizes,
long[] sampleRates,
double[] gfCutOffs)
configuration - the base configurationwindowSizes - the window sizessampleRates - the sample ratesgfCutOffs - cut-off frequencies for own gravitation filter (can be null)protected final void doExportRawData(String fileName)
fileName - the file nameprotected final void doExportDB(String destFileName)
destFileName - the destination file nameprotected final void doImportDB(String srcFileName)
srcFileName - the source fileprotected final void doExportModel(String modelFileName)
modelFileName - the model fileprotected final void onResume()
onResume in class ServiceBasedActivityprotected void onServiceFinishedCurrentTask(TaskFinishedEvent event)
ServiceBasedActivity
onServiceFinishedCurrentTask in class ServiceBasedActivityevent - the task finished eventpublic final void onConnectionEstablished(IBackgroundService service)
onConnectionEstablished in interface GenericServiceConnectionHolder.ServiceConnectionEventReceiver<IBackgroundService>onConnectionEstablished in class ServiceBasedActivitypublic final void onAboutToDisconnect(IBackgroundService service)
onAboutToDisconnect in interface GenericServiceConnectionHolder.ServiceConnectionEventReceiver<IBackgroundService>onAboutToDisconnect in class ServiceBasedActivitypublic final void onConnectionLost()
onConnectionLost in interface GenericServiceConnectionHolder.ServiceConnectionEventReceiver<IBackgroundService>onConnectionLost in class ServiceBasedActivity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||