diff options
| author | 2023-02-22 20:18:48 +0000 | |
|---|---|---|
| committer | 2023-02-22 20:18:48 +0000 | |
| commit | 73ed1e332746a7fc0d12ca6c8522a0bdcb3f488d (patch) | |
| tree | 2832e71c0736b3c46c1f1cf4f9ba7d6ee850e30c | |
| parent | 2eed40b98dd443183c4499366d63f305dfbc4c53 (diff) | |
| parent | c84790f1670db389ba135d4b4cf58d15196b005d (diff) | |
Merge "Speech: Word level info API council update" into udc-dev
| -rw-r--r-- | core/api/current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/speech/RecognitionPart.java | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 9955112649d3..2f1d81de247a 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -41442,9 +41442,9 @@ package android.speech { method public void writeToParcel(@NonNull android.os.Parcel, int); field public static final int CONFIDENCE_LEVEL_HIGH = 5; // 0x5 field public static final int CONFIDENCE_LEVEL_LOW = 1; // 0x1 - field public static final int CONFIDENCE_LEVEL_LOW_MEDIUM = 2; // 0x2 field public static final int CONFIDENCE_LEVEL_MEDIUM = 3; // 0x3 field public static final int CONFIDENCE_LEVEL_MEDIUM_HIGH = 4; // 0x4 + field public static final int CONFIDENCE_LEVEL_MEDIUM_LOW = 2; // 0x2 field public static final int CONFIDENCE_LEVEL_UNKNOWN = 0; // 0x0 field @NonNull public static final android.os.Parcelable.Creator<android.speech.RecognitionPart> CREATOR; } diff --git a/core/java/android/speech/RecognitionPart.java b/core/java/android/speech/RecognitionPart.java index e551cdc9f21f..f4dc64af5135 100644 --- a/core/java/android/speech/RecognitionPart.java +++ b/core/java/android/speech/RecognitionPart.java @@ -55,7 +55,7 @@ public final class RecognitionPart implements Parcelable { public static final int CONFIDENCE_LEVEL_LOW = 1; /** Second-lowest level of confidence out of five levels. */ - public static final int CONFIDENCE_LEVEL_LOW_MEDIUM = 2; + public static final int CONFIDENCE_LEVEL_MEDIUM_LOW = 2; /** Medium level of confidence out of five levels. */ public static final int CONFIDENCE_LEVEL_MEDIUM = 3; @@ -152,7 +152,7 @@ public final class RecognitionPart implements Parcelable { @android.annotation.IntDef(prefix = "CONFIDENCE_LEVEL_", value = { CONFIDENCE_LEVEL_UNKNOWN, CONFIDENCE_LEVEL_LOW, - CONFIDENCE_LEVEL_LOW_MEDIUM, + CONFIDENCE_LEVEL_MEDIUM_LOW, CONFIDENCE_LEVEL_MEDIUM, CONFIDENCE_LEVEL_MEDIUM_HIGH, CONFIDENCE_LEVEL_HIGH @@ -169,8 +169,8 @@ public final class RecognitionPart implements Parcelable { return "CONFIDENCE_LEVEL_UNKNOWN"; case CONFIDENCE_LEVEL_LOW: return "CONFIDENCE_LEVEL_LOW"; - case CONFIDENCE_LEVEL_LOW_MEDIUM: - return "CONFIDENCE_LEVEL_LOW_MEDIUM"; + case CONFIDENCE_LEVEL_MEDIUM_LOW: + return "CONFIDENCE_LEVEL_MEDIUM_LOW"; case CONFIDENCE_LEVEL_MEDIUM: return "CONFIDENCE_LEVEL_MEDIUM"; case CONFIDENCE_LEVEL_MEDIUM_HIGH: @@ -196,7 +196,7 @@ public final class RecognitionPart implements Parcelable { if (!(mConfidenceLevel == CONFIDENCE_LEVEL_UNKNOWN) && !(mConfidenceLevel == CONFIDENCE_LEVEL_LOW) - && !(mConfidenceLevel == CONFIDENCE_LEVEL_LOW_MEDIUM) + && !(mConfidenceLevel == CONFIDENCE_LEVEL_MEDIUM_LOW) && !(mConfidenceLevel == CONFIDENCE_LEVEL_MEDIUM) && !(mConfidenceLevel == CONFIDENCE_LEVEL_MEDIUM_HIGH) && !(mConfidenceLevel == CONFIDENCE_LEVEL_HIGH)) { @@ -204,7 +204,7 @@ public final class RecognitionPart implements Parcelable { "confidenceLevel was " + mConfidenceLevel + " but must be one of: " + "CONFIDENCE_LEVEL_UNKNOWN(" + CONFIDENCE_LEVEL_UNKNOWN + "), " + "CONFIDENCE_LEVEL_LOW(" + CONFIDENCE_LEVEL_LOW + "), " - + "CONFIDENCE_LEVEL_LOW_MEDIUM(" + CONFIDENCE_LEVEL_LOW_MEDIUM + "), " + + "CONFIDENCE_LEVEL_MEDIUM_LOW(" + CONFIDENCE_LEVEL_MEDIUM_LOW + "), " + "CONFIDENCE_LEVEL_MEDIUM(" + CONFIDENCE_LEVEL_MEDIUM + "), " + "CONFIDENCE_LEVEL_MEDIUM_HIGH(" + CONFIDENCE_LEVEL_MEDIUM_HIGH + "), " + "CONFIDENCE_LEVEL_HIGH(" + CONFIDENCE_LEVEL_HIGH + ")"); @@ -344,7 +344,7 @@ public final class RecognitionPart implements Parcelable { if (!(mConfidenceLevel == CONFIDENCE_LEVEL_UNKNOWN) && !(mConfidenceLevel == CONFIDENCE_LEVEL_LOW) - && !(mConfidenceLevel == CONFIDENCE_LEVEL_LOW_MEDIUM) + && !(mConfidenceLevel == CONFIDENCE_LEVEL_MEDIUM_LOW) && !(mConfidenceLevel == CONFIDENCE_LEVEL_MEDIUM) && !(mConfidenceLevel == CONFIDENCE_LEVEL_MEDIUM_HIGH) && !(mConfidenceLevel == CONFIDENCE_LEVEL_HIGH)) { @@ -352,7 +352,7 @@ public final class RecognitionPart implements Parcelable { "confidenceLevel was " + mConfidenceLevel + " but must be one of: " + "CONFIDENCE_LEVEL_UNKNOWN(" + CONFIDENCE_LEVEL_UNKNOWN + "), " + "CONFIDENCE_LEVEL_LOW(" + CONFIDENCE_LEVEL_LOW + "), " - + "CONFIDENCE_LEVEL_LOW_MEDIUM(" + CONFIDENCE_LEVEL_LOW_MEDIUM + "), " + + "CONFIDENCE_LEVEL_MEDIUM_LOW(" + CONFIDENCE_LEVEL_MEDIUM_LOW + "), " + "CONFIDENCE_LEVEL_MEDIUM(" + CONFIDENCE_LEVEL_MEDIUM + "), " + "CONFIDENCE_LEVEL_MEDIUM_HIGH(" + CONFIDENCE_LEVEL_MEDIUM_HIGH + "), " + "CONFIDENCE_LEVEL_HIGH(" + CONFIDENCE_LEVEL_HIGH + ")"); @@ -474,10 +474,10 @@ public final class RecognitionPart implements Parcelable { } @DataClass.Generated( - time = 1676294616910L, + time = 1677008539189L, codegenVersion = "1.0.23", sourceFile = "frameworks/base/core/java/android/speech/RecognitionPart.java", - inputSignatures = "public static final int CONFIDENCE_LEVEL_UNKNOWN\npublic static final int CONFIDENCE_LEVEL_LOW\npublic static final int CONFIDENCE_LEVEL_LOW_MEDIUM\npublic static final int CONFIDENCE_LEVEL_MEDIUM\npublic static final int CONFIDENCE_LEVEL_MEDIUM_HIGH\npublic static final int CONFIDENCE_LEVEL_HIGH\nprivate final @android.annotation.NonNull java.lang.String mRawText\nprivate final @android.annotation.Nullable java.lang.String mFormattedText\nprivate final long mTimestampMillis\nprivate final @android.speech.RecognitionPart.ConfidenceLevel int mConfidenceLevel\nprivate static java.lang.String defaultFormattedText()\nprivate static long defaultTimestampMillis()\nprivate static @android.speech.RecognitionPart.ConfidenceLevel int defaultConfidenceLevel()\nprivate void onConstructed()\nclass RecognitionPart extends java.lang.Object implements [android.os.Parcelable]\npublic @android.annotation.NonNull android.speech.RecognitionPart.Builder setFormattedText(java.lang.String)\nclass BaseBuilder extends java.lang.Object implements []\n@com.android.internal.util.DataClass(genBuilder=true, genEqualsHashCode=true, genHiddenConstDefs=true, genToString=true)\npublic @android.annotation.NonNull android.speech.RecognitionPart.Builder setFormattedText(java.lang.String)\nclass BaseBuilder extends java.lang.Object implements []") + inputSignatures = "public static final int CONFIDENCE_LEVEL_UNKNOWN\npublic static final int CONFIDENCE_LEVEL_LOW\npublic static final int CONFIDENCE_LEVEL_MEDIUM_LOW\npublic static final int CONFIDENCE_LEVEL_MEDIUM\npublic static final int CONFIDENCE_LEVEL_MEDIUM_HIGH\npublic static final int CONFIDENCE_LEVEL_HIGH\nprivate final @android.annotation.NonNull java.lang.String mRawText\nprivate final @android.annotation.Nullable java.lang.String mFormattedText\nprivate final long mTimestampMillis\nprivate final @android.speech.RecognitionPart.ConfidenceLevel int mConfidenceLevel\nprivate static java.lang.String defaultFormattedText()\nprivate static long defaultTimestampMillis()\nprivate static @android.speech.RecognitionPart.ConfidenceLevel int defaultConfidenceLevel()\nprivate void onConstructed()\nclass RecognitionPart extends java.lang.Object implements [android.os.Parcelable]\npublic @android.annotation.NonNull android.speech.RecognitionPart.Builder setFormattedText(java.lang.String)\nclass BaseBuilder extends java.lang.Object implements []\n@com.android.internal.util.DataClass(genBuilder=true, genEqualsHashCode=true, genHiddenConstDefs=true, genToString=true)\npublic @android.annotation.NonNull android.speech.RecognitionPart.Builder setFormattedText(java.lang.String)\nclass BaseBuilder extends java.lang.Object implements []") @Deprecated private void __metadata() {} |