question: private boolean isVoiceAvailable ( ) { PackageManager packageManager = mContext . getPackageManager ( ) ; List < ResolveInfo > activities = packageManager . queryIntentActivities ( new Intent ( RecognizerIntent . ACTION_RECOGNIZE_SPEECH ) , 0 ) ; return activities . size ( ) > 0 ; }
target:  Determines if the user's voice is available