Searched refs:recognizer (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | OnDeviceRecognitionServiceTest.java | 56 for (SpeechRecognizer recognizer : mRecognizers) { in tearDown() 57 if (recognizer != null) { in tearDown() 58 recognizer.setTemporaryOnDeviceRecognizer(null); in tearDown() 73 protected void setCurrentRecognizer(SpeechRecognizer recognizer, String component) { in setCurrentRecognizer() argument 75 recognizer.setTemporaryOnDeviceRecognizer(ComponentName.unflattenFromString(component)); in setCurrentRecognizer() 76 mRecognizers.add(recognizer); in setCurrentRecognizer()
|
D | SpeechRecognitionActivity.java | 155 final SpeechRecognizer recognizer; in init() local 157 recognizer = SpeechRecognizer.createOnDeviceTestingSpeechRecognizer(this); in init() 159 recognizer = SpeechRecognizer.createSpeechRecognizer(this, in init() 162 recognizer = SpeechRecognizer.createSpeechRecognizer(this); in init() 164 mRecognizerInfos.add(new RecognizerInfo(recognizer)); in init() 199 RecognizerInfo(SpeechRecognizer recognizer) { in RecognizerInfo() argument 200 mRecognizer = recognizer; in RecognizerInfo()
|
D | SpeechRecognizerAvailabilityTest.java | 72 SpeechRecognizer recognizer = in testOnDeviceRecognizer_canInstantiateWhenTrue() 74 assertThat(recognizer).isNotNull(); in testOnDeviceRecognizer_canInstantiateWhenTrue()
|
D | AbstractRecognitionServiceTest.java | 109 abstract void setCurrentRecognizer(SpeechRecognizer recognizer, String component); in setCurrentRecognizer() argument 154 SpeechRecognizer recognizer = mActivity.getRecognizerInfoDefault().mRecognizer; in testCanCheckForSupport() local 155 assertThat(recognizer).isNotNull(); in testCanCheckForSupport() 156 setCurrentRecognizer(recognizer, IN_PACKAGE_RECOGNITION_SERVICE); in testCanCheckForSupport() 215 SpeechRecognizer recognizer = mActivity.getRecognizerInfoDefault().mRecognizer; in testCanTriggerModelDownload() local 216 assertThat(recognizer).isNotNull(); in testCanTriggerModelDownload() 217 setCurrentRecognizer(recognizer, IN_PACKAGE_RECOGNITION_SERVICE); in testCanTriggerModelDownload() 239 SpeechRecognizer recognizer = mActivity.getRecognizerInfoDefault().mRecognizer; in testCanTriggerModelDownloadWithListener() local 240 assertThat(recognizer).isNotNull(); in testCanTriggerModelDownloadWithListener() 241 setCurrentRecognizer(recognizer, IN_PACKAGE_RECOGNITION_SERVICE); in testCanTriggerModelDownloadWithListener()
|
D | DefaultRecognitionServiceTest.java | 63 protected void setCurrentRecognizer(SpeechRecognizer recognizer, String component) { in setCurrentRecognizer() argument
|
D | RecognitionServiceMicIndicatorTest.java | 158 private void setCurrentRecognizer(String recognizer) { in setCurrentRecognizer() argument 161 VOICE_RECOGNITION_SERVICE, recognizer)); in setCurrentRecognizer() local
|
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/ |
D | RuntimePermissionsAppOpTrackingTest.kt | 409 val recognizer = SpeechRecognizer.createOnDeviceTestingSpeechRecognizer(context) in <lambda>() constant 410 …recognizer.setTemporaryOnDeviceRecognizer(ComponentName(RECEIVER2_PACKAGE_NAME, RECOGNITION_SERVIC… in <lambda>() 411 recognizerRef.set(recognizer) in <lambda>() 415 val recognizer = recognizerRef.get() in <lambda>() constant 417 recognizer.setRecognitionListener(object : RecognitionListener { in <lambda>() 433 recognizer.startListening(recoIntent) in <lambda>() 561 val recognizer = SpeechRecognizer.createOnDeviceTestingSpeechRecognizer(context) in <lambda>() constant 562 …recognizer.setTemporaryOnDeviceRecognizer(ComponentName(RECEIVER2_PACKAGE_NAME, RECOGNITION_SERVIC… in <lambda>() 563 recognizerRef.set(recognizer) in <lambda>() 567 val recognizer = recognizerRef.get() in <lambda>() constant [all …]
|