Home
last modified time | relevance | path

Searched refs:HotwordDetectedResult (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/voiceinteraction/
DHotwordAudioStreamCopierTest.java35 import android.service.voice.HotwordDetectedResult;
86 HotwordDetectedResult originalResult = buildHotwordDetectedResultWithStreams( in testDefaultCopyBufferLength()
89 HotwordDetectedResult managedResult = mCopier.startCopyingAudioStreams( in testDefaultCopyBufferLength()
128 HotwordDetectedResult originalResult = buildHotwordDetectedResultWithStreams( in testCustomCopyBufferLength()
131 HotwordDetectedResult managedResult = mCopier.startCopyingAudioStreams( in testCustomCopyBufferLength()
160 HotwordDetectedResult originalResult = buildHotwordDetectedResultWithStreams( in testInvalidCopyBufferLength_NonPositive()
163 HotwordDetectedResult managedResult = mCopier.startCopyingAudioStreams( in testInvalidCopyBufferLength_NonPositive()
189 HotwordDetectedResult originalResult = buildHotwordDetectedResultWithStreams( in testInvalidCopyBufferLength_ExceedsMaximum()
192 HotwordDetectedResult managedResult = mCopier.startCopyingAudioStreams( in testInvalidCopyBufferLength_ExceedsMaximum()
218 HotwordDetectedResult originalResult = buildHotwordDetectedResultWithStreams( in testInvalidCopyBufferLength_NotAnInt()
[all …]
/frameworks/base/core/java/android/service/voice/
DHotwordDetectedResult.java56 public final class HotwordDetectedResult implements Parcelable { class
348 public static int getUsageSize(@NonNull HotwordDetectedResult hotwordDetectedResult) { in getUsageSize()
368 totalBits += bitCount(HotwordDetectedResult.getMaxScore()); in getUsageSize()
371 totalBits += bitCount(HotwordDetectedResult.getMaxScore()); in getUsageSize()
374 totalBits += bitCount(HotwordDetectedResult.getMaxHotwordPhraseId()); in getUsageSize()
381 totalBits += bitCount(HotwordDetectedResult.getMaxBackgroundAudioPower()); in getUsageSize()
625 /* package-private */ HotwordDetectedResult( in HotwordDetectedResult() method in HotwordDetectedResult
829 HotwordDetectedResult that = (HotwordDetectedResult) o; in equals()
901 /* package-private */ HotwordDetectedResult(@NonNull Parcel in) { in HotwordDetectedResult() method in HotwordDetectedResult
945 public static final @NonNull Parcelable.Creator<HotwordDetectedResult> CREATOR
[all …]
DIDspHotwordDetectionCallback.aidl19 import android.service.voice.HotwordDetectedResult;
34 in HotwordDetectedResult hotwordDetectedResult); in onDetected()
DIMicrophoneHotwordDetectionVoiceInteractionCallback.aidl20 import android.service.voice.HotwordDetectedResult;
35 in HotwordDetectedResult hotwordDetectedResult, in onDetected()
DHotwordDetectionService.java425 public void onDetected(@NonNull HotwordDetectedResult result) { in onDetected()
428 if (!persistableBundle.isEmpty() && HotwordDetectedResult.getParcelableSize( in onDetected()
429 persistableBundle) > HotwordDetectedResult.getMaxBundleSize()) { in onDetected()
432 + HotwordDetectedResult.getMaxBundleSize() in onDetected()
DHotwordDetectedResult.aidl19 parcelable HotwordDetectedResult;
DSoftwareHotwordDetector.java170 @Nullable HotwordDetectedResult hotwordDetectedResult, in onDetected()
219 HotwordDetectedResult result) { in onKeyphraseDetected()
226 public void onKeyphraseDetectedFromExternalSource(HotwordDetectedResult result) { in onKeyphraseDetectedFromExternalSource()
DAlwaysOnHotwordDetector.java429 private final HotwordDetectedResult mHotwordDetectedResult;
444 @Nullable HotwordDetectedResult hotwordDetectedResult, in EventPayload()
552 public HotwordDetectedResult getHotwordDetectedResult() { in getHotwordDetectedResult()
620 private HotwordDetectedResult mHotwordDetectedResult = null;
716 @NonNull HotwordDetectedResult hotwordDetectedResult) { in setHotwordDetectedResult()
1655 KeyphraseRecognitionEvent event, HotwordDetectedResult result) { in onKeyphraseDetected()
1669 public void onKeyphraseDetectedFromExternalSource(HotwordDetectedResult result) { in onKeyphraseDetectedFromExternalSource()
DVisualQueryDetector.java522 HotwordDetectedResult result) { in onKeyphraseDetected()
529 public void onKeyphraseDetectedFromExternalSource(HotwordDetectedResult result) { in onKeyphraseDetectedFromExternalSource()
DAbstractDetector.java233 @Nullable HotwordDetectedResult hotwordDetectedResult, in onDetected()
/frameworks/base/core/java/com/android/internal/app/
DIHotwordRecognitionStatusCallback.aidl20 import android.service.voice.HotwordDetectedResult;
41 in HotwordDetectedResult result); in onKeyphraseDetected()
48 void onKeyphraseDetectedFromExternalSource(in HotwordDetectedResult result); in onKeyphraseDetectedFromExternalSource()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DHotwordAudioStreamCopier.java36 import android.service.voice.HotwordDetectedResult;
94 public HotwordDetectedResult startCopyingAudioStreams(@NonNull HotwordDetectedResult result) in startCopyingAudioStreams()
113 public HotwordDetectedResult startCopyingAudioStreams( in startCopyingAudioStreams()
114 @NonNull HotwordDetectedResult result, boolean shouldNotifyAppOpsManager) in startCopyingAudioStreams()
141 totalMetadataBundleSizeBytes += HotwordDetectedResult.getParcelableSize(metadata); in startCopyingAudioStreams()
DSoftwareTrustedHotwordDetectorSession.java38 import android.service.voice.HotwordDetectedResult;
106 public void onDetected(HotwordDetectedResult result) throws RemoteException { in startListeningFromMicLocked()
148 HotwordDetectedResult newResult; in startListeningFromMicLocked()
179 Slog.i(TAG, "Egressed " + HotwordDetectedResult.getUsageSize(newResult) in startListeningFromMicLocked()
DDspTrustedHotwordDetectorSession.java40 import android.service.voice.HotwordDetectedResult;
107 public void onDetected(HotwordDetectedResult result) throws RemoteException { in detectFromDspSourceLocked()
157 HotwordDetectedResult newResult; in detectFromDspSourceLocked()
175 Slog.i(TAG, "Egressed " + HotwordDetectedResult.getUsageSize(newResult) in detectFromDspSourceLocked()
DDetectorSession.java78 import android.service.voice.HotwordDetectedResult;
430 HotwordDetectedResult hotwordDetectedResult, in startListeningFromWearableLocked()
636 public void onDetected(HotwordDetectedResult triggerResult) in handleExternalSourceHotwordDetectionLocked()
679 HotwordDetectedResult newResult; in handleExternalSourceHotwordDetectionLocked()
717 + HotwordDetectedResult.getUsageSize(newResult) in handleExternalSourceHotwordDetectionLocked()
844 void saveProximityValueToBundle(HotwordDetectedResult result) { in saveProximityValueToBundle()
942 void enforceExtraKeyphraseIdNotLeaked(HotwordDetectedResult result, in enforceExtraKeyphraseIdNotLeaked()
/frameworks/base/core/api/
Dsystem-current.txt13439 method @Nullable public android.service.voice.HotwordDetectedResult getHotwordDetectedResult();
13482 public final class HotwordDetectedResult implements android.os.Parcelable {
13513 …ic static final android.os.Parcelable.Creator<android.service.voice.HotwordDetectedResult> CREATOR;
13520 public static final class HotwordDetectedResult.Builder {
13521 ctor public HotwordDetectedResult.Builder();
13522 method @NonNull public android.service.voice.HotwordDetectedResult build();
13523 method @NonNull public android.service.voice.HotwordDetectedResult.Builder setAudioChannel(int);
13524 …method @NonNull public android.service.voice.HotwordDetectedResult.Builder setAudioStreams(@NonNul…
13525 …method @NonNull public android.service.voice.HotwordDetectedResult.Builder setBackgroundAudioPower…
13526 …method @NonNull public android.service.voice.HotwordDetectedResult.Builder setConfidenceLevel(int);
[all …]
Dtest-current.txt3206 …ventPayload.Builder setHotwordDetectedResult(@NonNull android.service.voice.HotwordDetectedResult);