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 { 21 int getInt(); 22 void setMaxLens(int maxSpsLen, int maxHzsLen); 23 int imSearch(in byte[] pyBuf, int pyLen); 24 int imDelSearch(int pos, boolean is_pos_in_splid, boolean clear_fixed_this_step); 25 void imResetSearch(); 26 int imAddLetter(byte ch); 27 String imGetPyStr(boolean decoded); 28 int imGetPyStrLen(boolean decoded); 29 int[] imGetSplStart(); 30 String imGetChoice(int choiceId); 31 String imGetChoices(int choicesNum); 32 List<String> imGetChoiceList(int choicesStart, int choicesNum, int sentFixedLen); 33 int imChoose(int choiceId); 34 int imCancelLastChoice(); 35 int imGetFixedLen(); 36 boolean imCancelInput(); 37 void imFlushCache(); 38 int imGetPredictsNum(in String fixedStr); 39 List<String> imGetPredictList(int predictsStart, int predictsNum); 40 String imGetPredictItem(int predictNo); 41 42 String syncUserDict(in String tomerge); 43 boolean syncBegin(); 44 void syncFinish(); 45 int syncPutLemmas(in String tomerge); 46 String syncGetLemmas(); 47 int syncGetLastCount(); 48 int syncGetTotalCount(); 49 void syncClearLastGot(); 50 int imSyncGetCapacity(); 51 } 52