StressActivity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
br.usp.ime.dspbenchmarking.activities
Class StressActivity
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity
br.usp.ime.dspbenchmarking.activities.DspActivity
br.usp.ime.dspbenchmarking.activities.TestActivity
br.usp.ime.dspbenchmarking.activities.StressActivity
- All Implemented Interfaces:
- android.content.ComponentCallbacks, android.view.KeyEvent.Callback, android.view.LayoutInflater.Factory, android.view.View.OnCreateContextMenuListener, android.view.Window.Callback
public class StressActivity
- extends TestActivity
ATTENTION: This class is currently not used. This is on of the reasons why is is not properly documented.
Nested Class Summary | |
---|---|
protected class |
StressActivity.TestControlThread
|
Field Summary | |
---|---|
(package private) java.lang.String |
dateFormat
|
private int |
emao
|
protected android.widget.TextView |
emaoView
|
private int |
eme
|
protected android.widget.TextView |
emeView
|
protected int |
END_BLOCK_SIZE
|
(package private) static int |
endAlgorithm
|
(package private) java.lang.String |
fileName
|
private int |
filterSize
|
protected android.widget.TextView |
filterSizeView
|
private long |
lastTotalTime
|
protected int |
LOG_START_BLOCK_SIZE
|
protected static int |
MAX_DSP_CYCLES
|
(package private) android.os.Handler |
mHandler
message handler. |
protected static int |
NUMBER_OF_TESTS
|
protected int |
START_BLOCK_SIZE
|
protected int |
START_FILTER_SIZE
|
(package private) static int |
startAlgorithm
|
protected double |
totalProgress
|
Fields inherited from class br.usp.ime.dspbenchmarking.activities.TestActivity |
---|
algorithm, algorithmName, blockSize, blockSizeView, dirName, filePrefix, is, LOG2, maxDspCycles, mExternalStorageAvailable, mExternalStorageReceiver, mExternalStorageWriteable, os, progressBar, results, toggleTestsButton, workingBar |
Fields inherited from class br.usp.ime.dspbenchmarking.activities.DspActivity |
---|
callbackPeriodView, cpuUsageBar, dspCallbackTimeView, dspCyclesView, dspCycleTimeBar, dspPeriodView, dt, elapsedTimeView, readCyclesView, sampleReadTimeView, sampleWriteTimeView, swt, totalTime, totalTimeView |
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 class android.content.Context |
---|
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, INPUT_METHOD_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, TELEPHONY_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_SERVICE, WINDOW_SERVICE |
Constructor Summary | |
---|---|
StressActivity()
|
Method Summary | |
---|---|
private void |
finishTests()
|
private java.lang.String |
getDspThreadInfo(int algorithm,
int maxFiltersize)
Generates a byte array with statistics from the DSP thread |
protected void |
launchTest()
Start a test. |
void |
onCreate(android.os.Bundle savedInstanceState)
Executes upon creation of activity, configures screen. |
private void |
releaseTest()
|
protected void |
setupTests()
Configura um teste: - abre um arquivo de áudio como stream de entrada. |
protected void |
startControlThread()
|
protected void |
updateScreenInfo()
|
private void |
writeResults(int maxFiltersize)
|
Methods inherited from class br.usp.ime.dspbenchmarking.activities.TestActivity |
---|
getDspThreadInfo, getFileName, getOutputStream, initTests, onBackPressed, releaseDspThread, toggleTests, turnOff, updateExternalStorageState |
Methods inherited from class android.app.Activity |
---|
addContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dispatchKeyEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, finalize, findViewById, finish, finishActivity, finishActivityFromChild, finishFromChild, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getInstanceCount, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLocalClassName, getMenuInflater, getParent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, getWindow, getWindowManager, hasWindowFocus, isChild, isFinishing, isTaskRoot, managedQuery, moveTaskToBack, onActivityResult, onApplyThemeResource, onAttachedToWindow, onChildTitleChanged, onConfigurationChanged, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onDestroy, onDetachedFromWindow, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyUp, onLowMemory, onMenuItemSelected, onMenuOpened, onNewIntent, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPause, onPostCreate, onPostResume, onPrepareDialog, onPrepareOptionsMenu, onPreparePanel, onRestart, onRestoreInstanceState, onResume, onRetainNonConfigurationInstance, onSaveInstanceState, onSearchRequested, onStart, onStop, onTitleChanged, onTouchEvent, onTrackballEvent, onUserInteraction, onUserLeaveHint, onWindowAttributesChanged, onWindowFocusChanged, openContextMenu, openOptionsMenu, overridePendingTransition, registerForContextMenu, removeDialog, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setIntent, setPersistent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, showDialog, startActivity, startActivityForResult, startActivityFromChild, startActivityIfNeeded, startIntentSender, startIntentSenderForResult, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu |
Methods inherited from class android.view.ContextThemeWrapper |
---|
attachBaseContext, getTheme, setTheme |
Methods inherited from class android.content.ContextWrapper |
---|
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getFilesDir, getFileStreamPath, getMainLooper, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
MAX_DSP_CYCLES
protected static final int MAX_DSP_CYCLES
- See Also:
- Constant Field Values
NUMBER_OF_TESTS
protected static final int NUMBER_OF_TESTS
- See Also:
- Constant Field Values
START_BLOCK_SIZE
protected int START_BLOCK_SIZE
END_BLOCK_SIZE
protected int END_BLOCK_SIZE
START_FILTER_SIZE
protected int START_FILTER_SIZE
LOG_START_BLOCK_SIZE
protected final int LOG_START_BLOCK_SIZE
totalProgress
protected double totalProgress
filterSizeView
protected android.widget.TextView filterSizeView
emeView
protected android.widget.TextView emeView
emaoView
protected android.widget.TextView emaoView
fileName
java.lang.String fileName
dateFormat
final java.lang.String dateFormat
- See Also:
- Constant Field Values
startAlgorithm
static int startAlgorithm
endAlgorithm
static int endAlgorithm
filterSize
private int filterSize
eme
private int eme
emao
private int emao
lastTotalTime
private long lastTotalTime
mHandler
final android.os.Handler mHandler
- message handler.
Constructor Detail |
---|
StressActivity
public StressActivity()
Method Detail |
---|
onCreate
public void onCreate(android.os.Bundle savedInstanceState)
- Description copied from class:
TestActivity
- Executes upon creation of activity, configures screen.
- Overrides:
onCreate
in classTestActivity
getDspThreadInfo
private java.lang.String getDspThreadInfo(int algorithm, int maxFiltersize)
- Generates a byte array with statistics from the DSP thread
- Returns:
updateScreenInfo
protected void updateScreenInfo()
- Overrides:
updateScreenInfo
in classTestActivity
releaseTest
private void releaseTest()
writeResults
private void writeResults(int maxFiltersize)
finishTests
private void finishTests()
setupTests
protected void setupTests()
- Description copied from class:
TestActivity
- Configura um teste:
- abre um arquivo de áudio como stream de entrada.
- Overrides:
setupTests
in classTestActivity
launchTest
protected void launchTest()
- Description copied from class:
TestActivity
- Start a test.
- Overrides:
launchTest
in classTestActivity
- Parameters:
bSize
-alg
-
startControlThread
protected void startControlThread()
- Specified by:
startControlThread
in classTestActivity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |