DspActivity
JavaScript is disabled on your browser.
br.usp.ime.dspbenchmarking.activities
Class DspActivity
- java.lang.Object
-
- Activity
-
- br.usp.ime.dspbenchmarking.activities.DspActivity
-
- Direct Known Subclasses:
- LiveActivity
public abstract class DspActivity extends Activity
A DSP activity is one that allows to show and control a DSP process. It can be used to either run a "live" process and use the DSP facilities as an example or to run tests and display tests results on the screen. A DSP thread is launched to control the process of acquiring, modifying and outputting audio signals, with help from the algorithm classes. This activity also has a companion thread called the SystemWatchThread which takes care of polling the system for CPU usage and pinging this activity so the screen gets updated periodically.
-
-
Constructor Summary
Constructors Constructor and Description DspActivity()
-
Method Summary
Methods Modifier and Type Method and Description private void
initialize()
void
onCreate(Bundle savedInstanceState)
Configure the screen and launch the system watch thread.
-
-
-
Field Detail
-
cpuUsageBar
protected ProgressBar cpuUsageBar
-
dspCycleTimeBar
protected ProgressBar dspCycleTimeBar
-
sampleReadTimeView
protected TextView sampleReadTimeView
-
sampleWriteTimeView
protected TextView sampleWriteTimeView
-
dspCallbackTimeView
protected TextView dspCallbackTimeView
-
dspPeriodView
protected TextView dspPeriodView
-
dspCyclesView
protected TextView dspCyclesView
-
readCyclesView
protected TextView readCyclesView
-
callbackPeriodView
protected TextView callbackPeriodView
-
elapsedTimeView
protected TextView elapsedTimeView
-
totalTimeView
protected TextView totalTimeView
-
swt
protected SystemWatchThread swt
-
dt
protected DspThread dt
-
totalTime
protected long totalTime
-
mHandler
This message handler receives messages from the SystemWatchThread and updates the screen with up-to-date information about the DSP thread.
-
-