SoundTrigger API improvements.
This CL implements the SoundTrigger API improvements as given in b/22860713. Only the java-level parts are implemented in this CL. Key changes include: * Addition of a SoundTriggerManager/SoundTriggerDetector system API to manage the sound-trigger based sound models. * Addition of a SoundTriggerService service that manages all sound models including voice (keyphrase) and sound-trigger based models. * Includes logic to write sound-trigger based models to the database. * VoiceInteractionManager service now uses SoundTriggerService instead of SoundTriggerHelper. Bug: 22860713 Change-Id: I7b5c0ed80702527c4460372efeb5e542d3693a69
This commit is contained in:
@@ -84,6 +84,7 @@ import com.android.server.pm.UserManagerService;
|
||||
import com.android.server.power.PowerManagerService;
|
||||
import com.android.server.power.ShutdownThread;
|
||||
import com.android.server.restrictions.RestrictionsManagerService;
|
||||
import com.android.server.soundtrigger.SoundTriggerService;
|
||||
import com.android.server.statusbar.StatusBarManagerService;
|
||||
import com.android.server.storage.DeviceStorageMonitorService;
|
||||
import com.android.server.telecom.TelecomLoaderService;
|
||||
@@ -959,6 +960,8 @@ public final class SystemServer {
|
||||
|
||||
mSystemServiceManager.startService(JobSchedulerService.class);
|
||||
|
||||
mSystemServiceManager.startService(SoundTriggerService.class);
|
||||
|
||||
if (!disableNonCoreServices) {
|
||||
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP)) {
|
||||
mSystemServiceManager.startService(BACKUP_MANAGER_SERVICE_CLASS);
|
||||
|
||||
Reference in New Issue
Block a user