HomeSort by relevance Sort by last modified time
    Searched refs:Dictionary (Results 1 - 25 of 44) sorted by null

1 2

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DictionaryCollection.java 27 * Class for a collection of dictionaries that behave like one dictionary.
29 public class DictionaryCollection extends Dictionary {
31 protected final List<Dictionary> mDictionaries;
34 mDictionaries = new CopyOnWriteArrayList<Dictionary>();
37 public DictionaryCollection(Dictionary... dictionaries) {
39 mDictionaries = new CopyOnWriteArrayList<Dictionary>();
41 mDictionaries = new CopyOnWriteArrayList<Dictionary>(dictionaries);
46 public DictionaryCollection(Collection<Dictionary> dictionaries) {
47 mDictionaries = new CopyOnWriteArrayList<Dictionary>(dictionaries);
54 for (final Dictionary dict : mDictionaries
    [all...]
Suggest.java 35 * This class loads a dictionary and provides a list of suggestions for a given sequence of
38 public class Suggest implements Dictionary.WordCallback {
71 // If you add a type of dictionary, increment DIC_TYPE_LAST_ID
76 // User dictionary, the system-managed one.
78 // User unigram dictionary, internal to LatinIME
80 // User bigram dictionary, internal to LatinIME
88 private Dictionary mMainDict;
91 private final Map<String, Dictionary> mUnigramDictionaries = new HashMap<String, Dictionary>();
92 private final Map<String, Dictionary> mBigramDictionaries = new HashMap<String, Dictionary>()
356 final Dictionary dictionary = mUnigramDictionaries.get(key); local
    [all...]
AutoCorrection.java 50 public void updateAutoCorrectionStatus(Map<String, Dictionary> dictionaries,
69 Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) {
76 final Dictionary dictionary = dictionaries.get(key); local
77 if (dictionary.isValidWord(word)
78 || (ignoreCase && dictionary.isValidWord(lowerCasedWord))) {
86 Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) {
89 // If "word" is in the whitelist dictionary, it should not be auto corrected.
101 private boolean hasAutoCorrectionForTypedWord(Map<String, Dictionary> dictionaries,
Dictionary.java 22 * Abstract base class for a dictionary that can do a fuzzy search for words based on a set of key
25 public abstract class Dictionary {
41 * Interface to be implemented by classes requesting words to be fetched from the dictionary.
53 * @param dicTypeId of the dictionary where word was from
62 * Searches for words in the dictionary that match the characters in the composer. Matched
73 * Searches for pairs in the bigram dictionary that matches the previous word and all the
85 * Checks if the given word occurs in the dictionary
DictionaryFactory.java 30 * Factory for dictionary instances.
37 * Initializes a dictionary from a dictionary pack, with explicit flags.
39 * This searches for a content provider providing a dictionary pack for the specified
41 * as a dictionary.
43 * @param locale the locale for which to create the dictionary
51 Log.e(TAG, "No locale defined for dictionary");
55 final List<Dictionary> dictList = new LinkedList<Dictionary>();
68 // If the list is empty, that means we should not use any dictionary (for example, the use
    [all...]
LatinImeLogger.java 20 import com.android.inputmethod.latin.Dictionary.DataType;
BinaryDictionary.java 26 * Implements a static, compacted, binary dictionary of standard words.
28 public class BinaryDictionary extends Dictionary {
59 // FULL_EDIT_DISTANCE is a flag that forces the dictionary to use full words
78 // the configuration at dictionary creation time.
85 * Constructor for the binary dictionary. This is supposed to be called from the
86 * dictionary factory.
90 * @param offset the offset of the dictionary data within the file.
92 * @param flagArray the flags to limit the dictionary to, or null for default.
96 // Note: at the moment a binary dictionary is always of the "main" type.
98 // the Suggest class knows everything about every single dictionary
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DictAndProximity.java 19 import com.android.inputmethod.latin.Dictionary;
23 * A simple container for both a Dictionary and a ProximityInfo.
26 public final Dictionary mDictionary;
28 public DictAndProximity(final Dictionary dictionary, final ProximityInfo proximityInfo) {
29 mDictionary = dictionary;
AndroidSpellCheckerService.java 30 import com.android.inputmethod.latin.Dictionary;
31 import com.android.inputmethod.latin.Dictionary.DataType;
32 import com.android.inputmethod.latin.Dictionary.WordCallback;
72 // current dictionary configuration - for example, consider the UMLAUT flag
81 private Map<String, Dictionary> mUserDictionaries =
82 Collections.synchronizedMap(new TreeMap<String, Dictionary>());
83 private Map<String, Dictionary> mWhitelistDictionaries =
84 Collections.synchronizedMap(new TreeMap<String, Dictionary>());
257 final Map<String, Dictionary> oldUserDictionaries = mUserDictionaries;
258 mUserDictionaries = Collections.synchronizedMap(new TreeMap<String, Dictionary>());
    [all...]
  /packages/inputmethods/LatinIME/native/src/
dictionary.cpp 20 #define LOG_TAG "LatinIME: dictionary.cpp"
22 #include "dictionary.h"
27 Dictionary::Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust,
32 // Checks whether it has the latest dictionary or the old dictionary
47 Dictionary::~Dictionary() {
52 bool Dictionary::hasBigram() {
56 bool Dictionary::isValidWord(unsigned short *word, int length)
    [all...]
dictionary.h 29 class Dictionary {
31 Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust, int typedLetterMultipler,
52 ~Dictionary();
73 // Used only for the mmap version of dictionary loading, but we use these as dummy variables
86 inline unsigned short Dictionary::getChar(const unsigned char *dict, int *pos) {
96 inline int Dictionary::getCount(const unsigned char *dict, int *pos) {
100 inline bool Dictionary::getTerminal(const unsigned char *dict, int *pos) {
104 inline int Dictionary::getAddress(const unsigned char *dict, int *pos) {
117 inline int Dictionary::getFreq(const unsigned char *dict,
136 inline int Dictionary::wideStrLen(unsigned short *str)
    [all...]
bigram_dictionary.h 22 class Dictionary;
26 const bool isLatestDictVersion, const bool hasBigram, Dictionary *parentDictionary);
46 Dictionary *mParentDictionary;
bigram_dictionary.cpp 23 #include "dictionary.h"
30 Dictionary *parentDictionary)
57 && length < Dictionary::wideStrLen(mBigramChars + insertAt * MAX_WORD_LENGTH))) {
proximity_info.cpp 23 #include "dictionary.h"
170 const unsigned short baseLowerC = Dictionary::toBaseLowerCase(c);
219 // In the following function, c is the current character of the dictionary word
235 const unsigned short baseLowerC = Dictionary::toBaseLowerCase(c);
248 if (Dictionary::toBaseLowerCase(firstChar) == baseLowerC)
unigram_dictionary.cpp 24 #include "dictionary.h"
125 // If we come here, we hit the end of the word: let's check it against the dictionary.
326 int childCount = Dictionary::getCount(DICT_ROOT, &rootPosition);
473 int32_t baseChar = Dictionary::toBaseLowerCase(character);
474 const uint16_t wChar = Dictionary::toBaseLowerCase(inWord[startInputIndex]);
486 baseChar = Dictionary::toBaseLowerCase(character);
487 if (Dictionary::toBaseLowerCase(inWord[++inputIndex]) != baseChar) {
    [all...]
  /libcore/luni/src/main/java/java/util/
Dictionary.java 24 * Dictionary is an abstract class which is the superclass of all classes that
30 public abstract class Dictionary<K, V> {
34 public Dictionary() {
38 * Returns an enumeration on the elements of this dictionary.
40 * @return an enumeration of the values of this dictionary.
59 * Returns true if this dictionary has no key/value pairs.
61 * @return {@code true} if this dictionary has no key/value pairs,
68 * Returns an enumeration on the keys of this dictionary.
70 * @return an enumeration of the keys of this dictionary.
78 * Associate {@code key} with {@code value} in this dictionary. If {@cod
    [all...]
  /external/chromium/net/base/
sdch_manager.h 12 // can find a dictionary (based on a server specification of a hash), store a
13 // dictionary, and make judgements about what URLs can use, set, etc. a
14 // dictionary.
17 // (containing metadata) as well as a VCDIFF dictionary (for use by a VCDIFF
39 // A browser may register a fetcher that is used by the dictionary managers to
47 // The Schedule() method is called when there is a need to get a dictionary
81 // Dictionary selection for use problems.
89 // Dictionary saving problems.
99 // Dictionary loading problems.
117 // Dictionary manager issues
    [all...]
sdch_manager.cc 29 SdchManager::Dictionary::Dictionary(const std::string& dictionary_text,
46 SdchManager::Dictionary::~Dictionary() {
49 bool SdchManager::Dictionary::CanAdvertise(const GURL& target_url) {
52 /* The specific rules of when a dictionary should be advertised in an
53 Avail-Dictionary header are modeled after the rules for cookie scoping. The
55 dictionary may be advertised in the Avail-Dictionaries header exactly when
58 the dictionary.
59 2. If the dictionary has a Port attribute, the request port is one of th
454 Dictionary* dictionary = local
    [all...]
sdch_filter.h 6 // This decoding uses a pre-cached dictionary of text fragments to decode
60 // Identify the suggested dictionary, and initialize underlying decompressor.
84 // After assembling an entire dictionary hash (the first 9 bytes of the
92 // We hold an in-memory copy of the dictionary during the entire decoding, as
95 scoped_refptr<SdchManager::Dictionary> dictionary_;
111 // an applicable dictionary can't be found.
115 // This is used to restrict use of a dictionary to a specific URL or path.
sdch_filter.cc 126 // Initialize decoder only after we have a dictionary in hand.
181 // before we *really* advertised SDCH and a dictionary.
189 // not to use sdch, even though there is a dictionary. To be
200 // We need a meta-refresh since we don't have the dictionary.
202 // cached content that was saved when we had a dictionary.
212 // Meta-refresh won't help, as we didn't advertise an SDCH dictionary!!
315 const size_t kServerIdLength = 9; // Dictionary hash plus null from server.
338 SdchManager::Dictionary* dictionary = NULL; local
342 url_, &dictionary); local
    [all...]
  /packages/inputmethods/LatinIME/native/jni/
com_android_inputmethod_latin_BinaryDictionary.cpp 22 #include "dictionary.h"
71 LOGE("DICT: Can't mmap dictionary. errno=%d", errno);
85 LOGE("DICT: Can't allocate memory region for dictionary. errno=%d", errno);
110 Dictionary *dictionary = NULL; local
112 LOGE("DICT: dictionary format is unknown, bad magic number");
119 dictionary = new Dictionary(dictBuf, dictSize, fd, adjust, typedLetterMultiplier,
124 return (jint)dictionary;
131 Dictionary *dictionary = (Dictionary*)dict local
158 Dictionary *dictionary = (Dictionary*)dict; local
180 Dictionary *dictionary = (Dictionary*)dict; local
191 Dictionary *dictionary = (Dictionary*)dict; local
    [all...]
  /external/bluetooth/bluez/test/
simple-endpoint 95 properties = dbus.Dictionary({ "UUID" : A2DP_SOURCE_UUID,
102 properties = dbus.Dictionary({ "UUID" : A2DP_SINK_UUID,
107 properties = dbus.Dictionary({ "UUID" : A2DP_SOURCE_UUID,
112 properties = dbus.Dictionary({ "UUID" : A2DP_SINK_UUID,
117 properties = dbus.Dictionary({ "UUID" : HFP_AG_UUID,
  /external/webkit/Source/WebCore/inspector/
InspectorValues.h 160 typedef HashMap<String, RefPtr<InspectorValue> > Dictionary;
163 typedef Dictionary::iterator iterator;
164 typedef Dictionary::const_iterator const_iterator;
209 Dictionary m_data;
  /external/chromium/base/mac/
mac_util.h 165 CF_TO_NS_MUTABLE_CAST_DECL(Dictionary);
  /external/v8/src/
objects.cc 443 StringDictionary* dictionary = property_dictionary(); local
444 int entry = dictionary->FindEntry(name);
448 PropertyDetails details = dictionary->DetailsAt(entry);
462 JSGlobalPropertyCell::cast(dictionary->ValueAt(entry));
464 dictionary->DetailsAtPut(entry, details.AsDeleted());
466 return dictionary->DeleteProperty(entry, mode);
1557 StringDictionary* dictionary = property_dictionary(); local
1835 NumberDictionary* dictionary = JSObject::cast(pt)->element_dictionary(); local
2529 StringDictionary* dictionary = StringDictionary::cast(obj); local
2651 NumberDictionary* dictionary = NumberDictionary::cast(obj); local
2752 NumberDictionary* dictionary = element_dictionary(); local
2851 NumberDictionary* dictionary = element_dictionary(); local
3242 NumberDictionary* dictionary = element_dictionary(); local
3521 NumberDictionary* dictionary = js_object->element_dictionary(); local
6711 NumberDictionary* dictionary = NumberDictionary::cast(elements()); local
7555 NumberDictionary* dictionary = NumberDictionary::cast(elms); local
7701 NumberDictionary* dictionary = element_dictionary(); local
7803 NumberDictionary* dictionary = element_dictionary(); local
7931 NumberDictionary* dictionary = NumberDictionary::cast(elements()); local
7958 NumberDictionary* dictionary = NumberDictionary::cast(elements()); local
9340 Object* dictionary; local
    [all...]

Completed in 211 milliseconds

1 2