• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* //com/andriod/inputmethod/pinyin/IPinyinDecoderService.aidl
2  * Copyright (C) 2009 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 package com.android.inputmethod.pinyin;
19 
20 interface IPinyinDecoderService {
getInt()21     int getInt();
setMaxLens(int maxSpsLen, int maxHzsLen)22     void setMaxLens(int maxSpsLen, int maxHzsLen);
imSearch(in byte[] pyBuf, int pyLen)23     int imSearch(in byte[] pyBuf, int pyLen);
imDelSearch(int pos, boolean is_pos_in_splid, boolean clear_fixed_this_step)24     int imDelSearch(int pos, boolean is_pos_in_splid, boolean clear_fixed_this_step);
imResetSearch()25     void imResetSearch();
imAddLetter(byte ch)26     int imAddLetter(byte ch);
imGetPyStr(boolean decoded)27     String imGetPyStr(boolean decoded);
imGetPyStrLen(boolean decoded)28     int imGetPyStrLen(boolean decoded);
imGetSplStart()29     int[] imGetSplStart();
imGetChoice(int choiceId)30     String imGetChoice(int choiceId);
imGetChoices(int choicesNum)31     String imGetChoices(int choicesNum);
imGetChoiceList(int choicesStart, int choicesNum, int sentFixedLen)32     List<String> imGetChoiceList(int choicesStart, int choicesNum, int sentFixedLen);
imChoose(int choiceId)33     int imChoose(int choiceId);
imCancelLastChoice()34     int imCancelLastChoice();
imGetFixedLen()35     int imGetFixedLen();
imCancelInput()36     boolean imCancelInput();
imFlushCache()37     void imFlushCache();
imGetPredictsNum(in String fixedStr)38     int imGetPredictsNum(in String fixedStr);
imGetPredictList(int predictsStart, int predictsNum)39     List<String> imGetPredictList(int predictsStart, int predictsNum);
imGetPredictItem(int predictNo)40     String imGetPredictItem(int predictNo);
41 
syncUserDict(in String tomerge)42     String syncUserDict(in String tomerge);
syncBegin()43     boolean syncBegin();
syncFinish()44     void syncFinish();
syncPutLemmas(in String tomerge)45     int syncPutLemmas(in String tomerge);
syncGetLemmas()46     String syncGetLemmas();
syncGetLastCount()47     int syncGetLastCount();
syncGetTotalCount()48     int syncGetTotalCount();
syncClearLastGot()49     void syncClearLastGot();
imSyncGetCapacity()50     int imSyncGetCapacity();
51 }
52