HomeSort by relevance Sort by last modified time
    Searched refs:TextInfo (Results 1 - 23 of 23) sorted by null

  /frameworks/base/core/java/android/view/textservice/
TextInfo.aidl 19 parcelable TextInfo;
TextInfo.java 29 public final class TextInfo implements Parcelable {
41 public TextInfo(String text) {
48 * @param cookie the cookie for this TextInfo
49 * @param sequenceNumber the sequence number for this TextInfo
51 public TextInfo(String text, int cookie, int sequenceNumber) {
65 * @param cookie the cookie for this TextInfo
66 * @param sequenceNumber the sequence number for this TextInfo
68 public TextInfo(CharSequence charSequence, int start, int end, int cookie, int sequenceNumber) {
87 public TextInfo(Parcel source) {
125 * @return the cookie of TextInfo
    [all...]
SpellCheckerSession.java 56 * directly, you will need to use {@link #getSuggestions(TextInfo, int)} or
57 * {@link #getSuggestions(TextInfo[], int, boolean)} for obtaining results from the spell checker
180 public void getSentenceSuggestions(TextInfo[] textInfos, int suggestionsLimit) {
187 * @param textInfo text metadata for a spell checker
189 * @deprecated use {@link SpellCheckerSession#getSentenceSuggestions(TextInfo[], int)} instead
192 public void getSuggestions(TextInfo textInfo, int suggestionsLimit) {
193 getSuggestions(new TextInfo[] {textInfo}, suggestionsLimit, false);
201 * @deprecated use {@link SpellCheckerSession#getSentenceSuggestions(TextInfo[], int)} instea
    [all...]
  /frameworks/base/core/java/com/android/internal/textservice/
ISpellCheckerSession.aidl 19 import android.view.textservice.TextInfo;
26 in TextInfo[] textInfos, int suggestionsLimit, boolean multipleWords);
27 void onGetSentenceSuggestionsMultiple(in TextInfo[] textInfos, int suggestionsLimit);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
TextInfoCompatUtils.java 19 import android.view.textservice.TextInfo;
28 // Note that TextInfo.getCharSequence() is supposed to be available in API level 21 and later.
30 CompatUtils.getMethod(TextInfo.class, "getCharSequence");
32 CompatUtils.getConstructor(TextInfo.class, CharSequence.class, int.class, int.class,
42 public static TextInfo newInstance(CharSequence charSequence, int start, int end, int cookie,
45 return (TextInfo) CompatUtils.newInstance(TEXT_INFO_CONSTRUCTOR_FOR_CHAR_SEQUENCE,
48 return new TextInfo(charSequence.subSequence(start, end).toString(), cookie,
53 * Returns the result of {@link TextInfo#getCharSequence()} when available. Otherwise returns
54 * the result of {@link TextInfo#getText()} as fall back.
55 * @param textInfo the instance for which {@link TextInfo#getCharSequence()} o
    [all...]
  /development/samples/SpellChecker/HelloSpellChecker/src/com/example/android/hellospellchecker/
HelloSpellCheckerActivity.java 27 import android.view.textservice.TextInfo;
59 // Instantiate TextInfo for each query
60 // TextInfo can be passed a sequence number and a cookie number to identify the result
64 mScs.getSentenceSuggestions(new TextInfo[] {new TextInfo("tgisis")}, 3);
65 mScs.getSentenceSuggestions(new TextInfo[] {new TextInfo(
67 mScs.getSentenceSuggestions(new TextInfo[] {new TextInfo("hell othere")}, 3);
72 mScs.getSuggestions(new TextInfo("tgis"), 3)
    [all...]
  /development/samples/SpellChecker/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/
SampleSpellCheckerService.java 24 import android.view.textservice.TextInfo;
53 * {@link SpellCheckerService.Session#onGetSuggestionsMultiple(TextInfo[], int, boolean)}
55 * {@link SpellCheckerService.Session#onGetSuggestionsMultiple(TextInfo[], int, boolean)}
57 * {@link SpellCheckerService.Session#onGetSuggestionsMultiple(TextInfo[], int, boolean)}.
60 public SuggestionsInfo onGetSuggestions(TextInfo textInfo, int suggestionsLimit) {
62 Log.d(TAG, "onGetSuggestions: " + textInfo.getText());
64 final String input = textInfo.getText();
80 * {@link SpellCheckerService.Session#onGetSentenceSuggestionsMultiple(TextInfo[], int)}
82 * {@link SpellCheckerService.Session#onGetSuggestionsMultiple(TextInfo[], int, boolean)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
AndroidSpellCheckerSession.java 27 import android.view.textservice.TextInfo;
48 private SentenceSuggestionsInfo fixWronglyInvalidatedWordWithSingleQuote(TextInfo ti,
127 public SentenceSuggestionsInfo[] onGetSentenceSuggestionsMultiple(TextInfo[] textInfos,
144 * Get sentence suggestions for specified texts in an array of TextInfo. This is taken from
155 * {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestions(TextInfo, int)}
157 private SentenceSuggestionsInfo[] splitAndSuggest(TextInfo[] textInfos, int suggestionsLimit) {
184 final TextInfo[] splitTextInfos = new TextInfo[itemsSize];
196 public SuggestionsInfo[] onGetSuggestionsMultiple(TextInfo[] textInfos,
205 final TextInfo prevTextInfo = textInfos[i - 1]
    [all...]
SentenceLevelAdapter.java 24 import android.view.textservice.TextInfo;
51 * Container for split TextInfo parameters
54 public final TextInfo mTextInfo;
57 public SentenceWordItem(TextInfo ti, int start, int end) {
65 * Container for originally queried TextInfo and parameters
68 final TextInfo mOriginalTextInfo;
71 public SentenceTextInfoParams(TextInfo ti, ArrayList<SentenceWordItem> items) {
138 public SentenceTextInfoParams getSplitWords(TextInfo originalTextInfo) {
150 final TextInfo ti = TextInfoCompatUtils.newInstance(originalText, wordStart,
AndroidWordLevelSpellCheckerSession.java 28 import android.view.textservice.TextInfo;
218 private SuggestionsInfo onGetSuggestionsInternal(final TextInfo textInfo,
220 return onGetSuggestionsInternal(textInfo, null, suggestionsLimit);
224 final TextInfo textInfo, final NgramContext ngramContext, final int suggestionsLimit) {
226 final String text = textInfo.getText().
382 public SuggestionsInfo onGetSuggestions(final TextInfo textInfo, final int suggestionsLimit) {
385 return onGetSuggestionsInternal(textInfo, suggestionsLimit)
    [all...]
  /frameworks/base/core/java/android/service/textservice/
SpellCheckerService.java 35 import android.view.textservice.TextInfo;
56 * <p>{@link SpellCheckerService.Session#onGetSuggestions(TextInfo, int)}
58 * It receives {@link android.view.textservice.TextInfo} and returns
61 * {@link SpellCheckerService.Session#onGetSuggestionsMultiple(TextInfo[], int, boolean)} for
117 * Get suggestions for specified text in TextInfo.
121 * @param textInfo the text metadata
123 * @return SuggestionsInfo which contains suggestions for textInfo
125 public abstract SuggestionsInfo onGetSuggestions(TextInfo textInfo, int suggestionsLimit);
136 * {@link SpellCheckerService.Session#onGetSuggestions(TextInfo, int)
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
TextInfoCompatUtilsTests.java 28 import android.view.textservice.TextInfo;
55 final TextInfo textInfo = TextInfoCompatUtils.newInstance(text,
61 TextInfoCompatUtils.getCharSequenceOrString(textInfo);
63 // This should be valid even if TextInfo#getCharSequence is not supported.
67 // This is valid only if TextInfo#getCharSequence is supported.
  /frameworks/base/core/java/android/widget/
SpellChecker.java 33 import android.view.textservice.TextInfo;
267 TextInfo[] textInfos = new TextInfo[mLength];
296 final TextInfo textInfo = new TextInfo(editable, start, end, mCookie, mIds[i]);
297 textInfos[textInfosCount++] = textInfo;
299 Log.d(TAG, "create TextInfo: (" + i + "/" + mLength + ") text = "
300 + textInfo.getSequence() + ", cookie = " + mCookie + ", seq = "
309 TextInfo[] textInfosCopy = new TextInfo[textInfosCount]
    [all...]
  /frameworks/base/config/
boot-image-profile.txt     [all...]
  /external/robolectric/v1/lib/main/
android.jar 
  /prebuilts/sdk/14/
android.jar 
  /prebuilts/sdk/17/
android.jar 
  /prebuilts/sdk/18/
android.jar 
  /prebuilts/sdk/19/
android.jar 
  /prebuilts/sdk/26/
android.jar 
  /prebuilts/sdk/27/
android.jar 
  /prebuilts/tools/common/m2/repository/com/google/android/android/4.0.1.2/
android-4.0.1.2.jar 
  /prebuilts/tools/common/m2/repository/com/google/android/android/4.1.1.4/
android-4.1.1.4.jar 

Completed in 733 milliseconds