OSDN Git Service

Tweak the HotwordRecognizer API
authorSandeep Siddhartha <sansid@google.com>
Tue, 27 Aug 2013 20:09:41 +0000 (13:09 -0700)
committerSandeep Siddhartha <sansid@google.com>
Wed, 28 Aug 2013 23:27:36 +0000 (16:27 -0700)
commit823393477befb31c6bb82696307b45c50915fb52
tree1c20099cf69fd0ca0f49df2943b581aaefb99fb0
parentbbbc8660cdbfb033291f1911742a942a42c85af0
Tweak the HotwordRecognizer API

- Make it more intuitive by enforcing callers to set a listener while
  starting recognition
- Fix TODO to resolve the ComponentName if none is provided
- Unbind from the Hotword service if stopRecognition is called
- Get rid of the callback in onStopHotwordRecognition

Change-Id: I8edad0ef0f3671283aeb51eaed1d3b8dab01baa0
core/java/android/speech/hotword/HotwordRecognitionService.java
core/java/android/speech/hotword/HotwordRecognizer.java