Moved pocketsphinx-android to trunk



git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12157 94700074-3cef-4d97-a70e-9c8c206c02f5
Added missed file.
Fixes issue http://sourceforge.net/p/cmusphinx/bugs/375/
Thanks to Dmitry Brant



git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12283 94700074-3cef-4d97-a70e-9c8c206c02f5
search switching delay fix

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12355 94700074-3cef-4d97-a70e-9c8c206c02f5
Refactor SphinxUtil

Rename to Assets and update its javadoc.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12357 94700074-3cef-4d97-a70e-9c8c206c02f5
Merge branch 'feature-vad'.


git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12370 94700074-3cef-4d97-a70e-9c8c206c02f5
Fix #378 Bug: SpeechRecognizer is not threadsafe.

Use ArrayList to store listeners, synchronize when adding and removing.
Use toArray when iterating.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12372 94700074-3cef-4d97-a70e-9c8c206c02f5
Suppress warning about older sources.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12373 94700074-3cef-4d97-a70e-9c8c206c02f5
Callback is missing thread safe wrap.

Copy listeners before iterating in ResultCallback#run.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12387 94700074-3cef-4d97-a70e-9c8c206c02f5
Separate callbacks for voice activity detection.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12388 94700074-3cef-4d97-a70e-9c8c206c02f5
Store recognition listeners in a set.

Use set rather than array to avoid duplicates.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12389 94700074-3cef-4d97-a70e-9c8c206c02f5
Clean code, rename search methods.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12390 94700074-3cef-4d97-a70e-9c8c206c02f5
Refactor classes names, optimize code.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12391 94700074-3cef-4d97-a70e-9c8c206c02f5
Acoustic model and dictionary are not required.

Do not require acoustic mode and dictionary in constructor, set them as
regular properties in corresponding setters.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12393 94700074-3cef-4d97-a70e-9c8c206c02f5
Rename SpeechRecognizerBuilder.

SpeechRecognizerBuilder -> SpeechRecognizerSetup.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12396 94700074-3cef-4d97-a70e-9c8c206c02f5
Fix race condition in recognition callbacks.

Replace message queue with a simple thread. Block in
SpeechRecognizer#stop to prevent race condition if it is called with a
recognition callback.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12397 94700074-3cef-4d97-a70e-9c8c206c02f5
Properly release the recorder



git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12399 94700074-3cef-4d97-a70e-9c8c206c02f5
Swallow interruption while stopping recognition.

Do not hide InterruptedException and notify the code higher up that
intrruption occured.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12403 94700074-3cef-4d97-a70e-9c8c206c02f5
Implement SpeechRecognizer#cancel.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12404 94700074-3cef-4d97-a70e-9c8c206c02f5
Log recognition start and stop.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12405 94700074-3cef-4d97-a70e-9c8c206c02f5
Change type of SpeechRecognizer#cancel to boolean.

git-svn-id: svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android@12406 94700074-3cef-4d97-a70e-9c8c206c02f5