HomeSort by relevance Sort by last modified time
    Searched full:suggestionsinfo (Results 1 - 25 of 25) sorted by null

  /frameworks/base/core/java/android/view/textservice/
SentenceSuggestionsInfo.java 28 * for a sentence. See {@link SuggestionsInfo} which is used for suggestions for a word.
29 * This class extends the functionality of {@link SuggestionsInfo} as far as this class enables
30 * you to put multiple {@link SuggestionsInfo}s on a sentence with the offsets and the lengths
31 * of all {@link SuggestionsInfo}s.
35 private final SuggestionsInfo[] mSuggestionsInfos;
46 SuggestionsInfo[] suggestionsInfos, int[] offsets, int[] lengths) {
61 mSuggestionsInfos = new SuggestionsInfo[infoSize];
62 source.readTypedArray(mSuggestionsInfos, SuggestionsInfo.CREATOR);
90 * @return the count of {@link SuggestionsInfo}s this instance holds.
97 * @param i the id of {@link SuggestionsInfo}s this instance holds
    [all...]
SuggestionsInfo.java 27 public final class SuggestionsInfo implements Parcelable {
59 public SuggestionsInfo(int suggestionsAttributes, String[] suggestions) {
70 public SuggestionsInfo(
84 public SuggestionsInfo(Parcel source) {
108 * Set the cookie and the sequence of SuggestionsInfo which are set to TextInfo from a client
165 public static final Parcelable.Creator<SuggestionsInfo> CREATOR
166 = new Parcelable.Creator<SuggestionsInfo>() {
168 public SuggestionsInfo createFromParcel(Parcel source) {
169 return new SuggestionsInfo(source);
173 public SuggestionsInfo[] newArray(int size)
    [all...]
SuggestionsInfo.aidl 19 parcelable SuggestionsInfo;
SpellCheckerSession.java 110 handleOnGetSuggestionsMultiple((SuggestionsInfo[]) msg.obj);
213 private void handleOnGetSuggestionsMultiple(SuggestionsInfo[] suggestionInfos) {
490 public void onGetSuggestions(SuggestionsInfo[] results) {
517 * @param results an array of {@link SuggestionsInfo}s.
522 public void onGetSuggestions(SuggestionsInfo[] results);
  /development/samples/SpellChecker/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/
SampleSpellCheckerService.java 23 import android.view.textservice.SuggestionsInfo;
60 public SuggestionsInfo onGetSuggestions(TextInfo textInfo, int suggestionsLimit) {
69 final int flags = length <= 3 ? SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY
70 : length <= 20 ? SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO : 0;
71 return new SuggestionsInfo(flags,
102 final SuggestionsInfo[] sis;
107 final int flags0 = SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO;
108 final int flags1 = SuggestionsInfo.RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS
109 | SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO;
111 final SuggestionsInfo si0 = new SuggestionsInfo
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
SuggestionsInfoCompatUtils.java 19 import android.view.textservice.SuggestionsInfo;
24 // Note that SuggestionsInfo.RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS has been introduced
27 CompatUtils.getField(SuggestionsInfo.class, "RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS");
41 * {@link SuggestionsInfo#getSuggestionsAttributes()}: this tells that the text service thinks
  /frameworks/base/core/java/com/android/internal/textservice/
ISpellCheckerSessionListener.aidl 20 import android.view.textservice.SuggestionsInfo;
26 void onGetSuggestions(in SuggestionsInfo[] results);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
AndroidSpellCheckerSession.java 26 import android.view.textservice.SuggestionsInfo;
57 final ArrayList<SuggestionsInfo> additionalSuggestionsInfos = new ArrayList<>();
60 final SuggestionsInfo si = ssi.getSuggestionsInfoAt(i);
62 if ((flags & SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY) == 0) {
93 final SuggestionsInfo newSi = new SuggestionsInfo(newFlags, EMPTY_STRING_ARRAY);
111 final SuggestionsInfo[] newSuggestionsInfos = new SuggestionsInfo[suggestionsSize];
196 public SuggestionsInfo[] onGetSuggestionsMultiple(TextInfo[] textInfos,
201 final SuggestionsInfo[] retval = new SuggestionsInfo[length]
    [all...]
SentenceLevelAdapter.java 23 import android.view.textservice.SuggestionsInfo;
44 private static final SuggestionsInfo EMPTY_SUGGESTIONS_INFO = new SuggestionsInfo(0, null);
165 SentenceTextInfoParams originalTextInfoParams, SuggestionsInfo[] results) {
179 final SuggestionsInfo[] reconstructedSuggestions = new SuggestionsInfo[querySize];
182 SuggestionsInfo result = null;
184 final SuggestionsInfo cur = results[j];
AndroidSpellCheckerService.java 26 import android.view.textservice.SuggestionsInfo;
142 * Returns an empty SuggestionsInfo with flags signaling the word is not in the dictionary.
144 * @return the empty SuggestionsInfo with the appropriate flags set.
146 public static SuggestionsInfo getNotInDictEmptySuggestions(final boolean reportAsTypo) {
147 return new SuggestionsInfo(reportAsTypo ? SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO : 0,
153 * @return the empty SuggestionsInfo with the appropriate flags set.
155 public static SuggestionsInfo getInDictEmptySuggestions() {
156 return new SuggestionsInfo(SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY
    [all...]
AndroidWordLevelSpellCheckerSession.java 27 import android.view.textservice.SuggestionsInfo;
218 private SuggestionsInfo onGetSuggestionsInternal(final TextInfo textInfo,
223 protected SuggestionsInfo onGetSuggestionsInternal(
250 return new SuggestionsInfo(SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO
251 | SuggestionsInfo.RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS,
313 SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO
318 final SuggestionsInfo retval = new SuggestionsInfo(flags, result.mSuggestions);
382 public SuggestionsInfo onGetSuggestions(final TextInfo textInfo, final int suggestionsLimit)
    [all...]
  /frameworks/base/core/java/android/service/textservice/
SpellCheckerService.java 33 import android.view.textservice.SuggestionsInfo;
58 * {@link android.view.textservice.SuggestionsInfo} for the input.
122 * @return SuggestionsInfo which contains suggestions for textInfo
124 public abstract SuggestionsInfo onGetSuggestions(TextInfo textInfo, int suggestionsLimit);
137 public SuggestionsInfo[] onGetSuggestionsMultiple(TextInfo[] textInfos,
140 final SuggestionsInfo[] retval = new SuggestionsInfo[length];
335 private static final SuggestionsInfo EMPTY_SUGGESTIONS_INFO = new SuggestionsInfo(0, null);
404 SentenceTextInfoParams originalTextInfoParams, SuggestionsInfo[] results)
    [all...]
package.html 11 spelling suggestions as {@link android.view.textservice.SuggestionsInfo} objects. </p>
  /development/samples/SpellChecker/HelloSpellChecker/src/com/example/android/hellospellchecker/
HelloSpellCheckerActivity.java 26 import android.view.textservice.SuggestionsInfo;
90 final StringBuilder sb, final SuggestionsInfo si, final int length, final int offset) {
91 // Returned suggestions are contained in SuggestionsInfo
109 * @param results an array of {@link SuggestionsInfo}s.
115 public void onGetSuggestions(final SuggestionsInfo[] arg0) {
  /frameworks/base/core/java/android/widget/
SpellChecker.java 32 import android.view.textservice.SuggestionsInfo;
324 SuggestionsInfo suggestionsInfo, int offset, int length) {
325 if (suggestionsInfo == null || suggestionsInfo.getCookie() != mCookie) {
329 final int sequenceNumber = suggestionsInfo.getSequence();
332 final int attributes = suggestionsInfo.getSuggestionsAttributes();
334 ((attributes & SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY) > 0);
336 ((attributes & SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO) > 0);
343 editable, suggestionsInfo, spellCheckSpan, offset, length)
    [all...]
  /frameworks/base/docs/html/about/versions/
android-4.0.3.jd 140 {@link android.view.textservice.SuggestionsInfo#RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS},
148 android.view.textservice.SuggestionsInfo#RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS}
150 android.view.textservice.SuggestionsInfo#getSuggestionsAttributes()} and {@link
151 android.view.textservice.SuggestionsInfo#getSuggestionsCount()} methods, to
android-4.0.jd     [all...]
  /prebuilts/sdk/21/
framework.aidl 100 parcelable android.view.textservice.SuggestionsInfo;
  /prebuilts/sdk/22/
framework.aidl 101 parcelable android.view.textservice.SuggestionsInfo;
  /prebuilts/sdk/23/
framework.aidl 105 parcelable android.view.textservice.SuggestionsInfo;
  /prebuilts/sdk/24/
framework.aidl 114 parcelable android.view.textservice.SuggestionsInfo;
  /prebuilts/sdk/current/
framework.aidl 114 parcelable android.view.textservice.SuggestionsInfo;
android.zip 
  /frameworks/base/
Android.mk     [all...]
compiled-classes-phone     [all...]

Completed in 639 milliseconds