Merge "Remove SoundTriggerInternal dump" into udc-dev am: 0c71d0594f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22638484 Change-Id: Id6c45d0b5ee19788168cf95b6b8aa9f36642df8f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -52,11 +52,6 @@ public interface SoundTriggerInternal {
|
|||||||
// Enumerate possible STModules to attach to
|
// Enumerate possible STModules to attach to
|
||||||
List<ModuleProperties> listModuleProperties(Identity originatorIdentity);
|
List<ModuleProperties> listModuleProperties(Identity originatorIdentity);
|
||||||
|
|
||||||
/**
|
|
||||||
* Dumps service-wide information.
|
|
||||||
*/
|
|
||||||
void dump(FileDescriptor fd, PrintWriter pw, String[] args);
|
|
||||||
|
|
||||||
interface Session {
|
interface Session {
|
||||||
/**
|
/**
|
||||||
* Starts recognition for the given keyphraseId.
|
* Starts recognition for the given keyphraseId.
|
||||||
@@ -151,10 +146,5 @@ public interface SoundTriggerInternal {
|
|||||||
* Unloads (and stops if running) the given keyphraseId
|
* Unloads (and stops if running) the given keyphraseId
|
||||||
*/
|
*/
|
||||||
int unloadKeyphraseModel(int keyphaseId);
|
int unloadKeyphraseModel(int keyphaseId);
|
||||||
|
|
||||||
/**
|
|
||||||
* Dumps session-wide information.
|
|
||||||
*/
|
|
||||||
void dump(FileDescriptor fd, PrintWriter pw, String[] args);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1116,15 +1116,6 @@ public class SoundTriggerHelper implements SoundTrigger.StatusListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
|
||||||
synchronized (mLock) {
|
|
||||||
pw.print(" module properties=");
|
|
||||||
pw.print(" call active=");
|
|
||||||
pw.println(mCallActive);
|
|
||||||
pw.println(" SoundTrigger Power State=" + mSoundTriggerPowerSaveMode);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void initializeDeviceStateListeners() {
|
private void initializeDeviceStateListeners() {
|
||||||
if (mRecognitionRequested) {
|
if (mRecognitionRequested) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1672,11 +1672,6 @@ public class SoundTriggerService extends SystemService {
|
|||||||
return mSoundTriggerHelper.unloadKeyphraseSoundModel(keyphraseId);
|
return mSoundTriggerHelper.unloadKeyphraseSoundModel(keyphraseId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
|
||||||
mSoundTriggerHelper.dump(fd, pw, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void clientDied() {
|
private void clientDied() {
|
||||||
Slog.w(TAG, "Client died, cleaning up session.");
|
Slog.w(TAG, "Client died, cleaning up session.");
|
||||||
sEventLogger.enqueue(new EventLogger.StringEvent(
|
sEventLogger.enqueue(new EventLogger.StringEvent(
|
||||||
@@ -1697,18 +1692,6 @@ public class SoundTriggerService extends SystemService {
|
|||||||
return listUnderlyingModuleProperties(originatorIdentity);
|
return listUnderlyingModuleProperties(originatorIdentity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
|
||||||
// log
|
|
||||||
sEventLogger.dump(pw);
|
|
||||||
|
|
||||||
// enrolled models
|
|
||||||
mDbHelper.dump(pw);
|
|
||||||
|
|
||||||
// stats
|
|
||||||
mSoundModelStatTracker.dump(pw);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================
|
//=================================================================
|
||||||
|
|||||||
@@ -2138,8 +2138,6 @@ public class VoiceInteractionManagerService extends SystemService {
|
|||||||
mImpl.dumpLocked(fd, pw, args);
|
mImpl.dumpLocked(fd, pw, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mSoundTriggerInternal.dump(fd, pw, args);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user