/libcore/ojluni/src/main/java/java/util/ |
Dictionary.java | 29 * The <code>Dictionary</code> class is the abstract parent of any 31 * Every key and every value is an object. In any one <tt>Dictionary</tt> 33 * <tt>Dictionary</tt> and a key, the associated element can be looked up. 50 class Dictionary<K,V> { 55 public Dictionary() { 59 * Returns the number of entries (distinct keys) in this dictionary. 61 * @return the number of keys in this dictionary. 66 * Tests if this dictionary maps no keys to value. The general contract 68 * if this dictionary contains no entries. 70 * @return <code>true</code> if this dictionary maps no keys to values [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
dictionary.cpp | 17 #define LOG_TAG "LatinIME: dictionary.cpp" 19 #include "suggest/core/dictionary/dictionary.h" 22 #include "dictionary/interface/dictionary_header_structure_policy.h" 23 #include "dictionary/property/ngram_context.h" 24 #include "suggest/core/dictionary/dictionary_utils.h" 37 const int Dictionary::HEADER_ATTRIBUTE_BUFFER_SIZE = 32; 39 Dictionary::Dictionary(JNIEnv *env, DictionaryStructureWithBufferPolicy::StructurePolicyPtr 47 void Dictionary::getSuggestions(ProximityInfo *proximityInfo, DicTraverseSession *traverseSession [all...] |
dictionary.h | 24 #include "dictionary/interface/dictionary_header_structure_policy.h" 25 #include "dictionary/interface/dictionary_structure_with_buffer_policy.h" 26 #include "dictionary/interface/ngram_listener.h" 27 #include "dictionary/property/historical_info.h" 28 #include "dictionary/property/word_property.h" 41 class Dictionary { 65 Dictionary(JNIEnv *env, DictionaryStructureWithBufferPolicy::StructurePolicyPtr 109 // Method to iterate all words in the dictionary. 111 // starts iterating the dictionary. 120 DISALLOW_IMPLICIT_CONSTRUCTORS(Dictionary); [all...] |
/external/libmojo/mojo/edk/js/ |
core.cc | 15 #include "gin/dictionary.h" 38 gin::Dictionary WaitHandle(const gin::Arguments& args, 43 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(isolate); local 47 dictionary.Set("result", result); 51 dictionary.Set("signalsState", v8::Null(isolate).As<v8::Value>()); 53 gin::Dictionary signalsStateDict = gin::Dictionary::CreateEmpty(isolate); 57 dictionary.Set("signalsState", signalsStateDict) 68 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(isolate); local 98 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local 163 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local 187 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local 195 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local 240 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local 253 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local 267 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryFacilitatorImpl.java | 68 // dictionary. 80 DICT_TYPE_TO_CLASS.put(Dictionary.TYPE_USER_HISTORY, UserHistoryDictionary.class); 81 DICT_TYPE_TO_CLASS.put(Dictionary.TYPE_USER, UserBinaryDictionary.class); 82 DICT_TYPE_TO_CLASS.put(Dictionary.TYPE_CONTACTS, ContactsBinaryDictionary.class); 128 * The locale associated with the dictionary group. 133 * The user account associated with the dictionary group. 137 @Nullable private Dictionary mMainDict; 154 @Nullable final Dictionary mainDict, 159 // The main dictionary can be asynchronously loaded. 172 public void setMainDict(final Dictionary mainDict) 594 final ExpandableBinaryDictionary dictionary = mDictionaryGroup.getSubDict(dictName); local 627 final Dictionary dictionary = mDictionaryGroup.getDict(dictType); local 668 final Dictionary dictionary = mDictionaryGroup.getDict(dictType); local 686 final Dictionary dictionary = mDictionaryGroup.getDict(dictType); local 697 final ExpandableBinaryDictionary dictionary = mDictionaryGroup.getSubDict(dictName); local 725 final ExpandableBinaryDictionary dictionary = mDictionaryGroup.getSubDict(dictType); local [all...] |
DictionaryFacilitator.java | 48 Dictionary.TYPE_MAIN, 49 Dictionary.TYPE_CONTACTS, 50 Dictionary.TYPE_USER_HISTORY, 51 Dictionary.TYPE_USER}; 54 Dictionary.TYPE_CONTACTS, 55 Dictionary.TYPE_USER_HISTORY, 56 Dictionary.TYPE_USER};
|
DictionaryCollection.java | 32 * Class for a collection of dictionaries that behave like one dictionary. 34 public final class DictionaryCollection extends Dictionary { 36 protected final CopyOnWriteArrayList<Dictionary> mDictionaries; 44 final Dictionary... dictionaries) { 55 final Collection<Dictionary> dictionaries) { 67 final CopyOnWriteArrayList<Dictionary> dictionaries = mDictionaries; 70 // dictionary and add the rest to it if not null, hence the get(0) 119 for (final Dictionary dict : mDictionaries) 124 public void addDictionary(final Dictionary newDict) { 127 Log.w(TAG, "This collection already contains this dictionary: " + newDict) [all...] |
DictionaryFactory.java | 32 * Factory for dictionary instances. 38 * Initializes a main dictionary collection from a dictionary pack, with explicit flags. 40 * This searches for a content provider providing a dictionary pack for the specified 41 * locale. If none is found, it falls back to the built-in dictionary - if any. 43 * @param locale the locale for which to create the dictionary 49 Log.e(TAG, "No locale defined for dictionary"); 50 return new DictionaryCollection(Dictionary.TYPE_MAIN, locale, 54 final LinkedList<Dictionary> dictList = new LinkedList<>(); 61 false /* useFullEditDistance */, locale, Dictionary.TYPE_MAIN) [all...] |
Dictionary.java | 30 * Abstract base class for a dictionary that can do a fuzzy search for words based on a set of key 33 public abstract class Dictionary { 37 // The following types do not actually come from real dictionary instances, so we create 58 // The following types of dictionary have actual functional instances. We don't need final 59 // phony dictionary instances for them. 62 // User dictionary, the system-managed one. 64 // User history dictionary internal to LatinIME. 67 // The locale for this dictionary. May be null if unknown (phony dictionary for example). 71 * Set out of the dictionary types listed above that are based on data specific to the user [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
EdkIIWorkspace.py | 170 ## Convert Text File To Dictionary
172 # Convert a workspace relative text file to a dictionary of (name:value) pairs.
175 # @param Dictionary: Dictionary to store data
181 # @retval ConvertTextFileToDictionary(self.WorkspaceFile(FileName), Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter)
183 def ConvertTextFileToDictionary(self, FileName, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter):
186 return ConvertTextFileToDictionary(self.WorkspaceFile(FileName), Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter)
188 ## Convert Dictionary To Text File
190 # Convert a dictionary of (name:value) pairs to a workspace relative text file.
193 # @param Dictionary: Dictionary to store data [all...] |
Dictionary.py | 2 # Define a dictionary structure
21 ## Convert a text file to a dictionary
23 # Convert a text file to a dictionary of (name:value) pairs.
28 def ConvertTextFileToDictionary(FileName, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter):
40 Dictionary[Key[0]] = LineList[1].replace('\\', '/').split(ValueSplitCharacter)
42 Dictionary[Key[0]] = LineList[1].strip().replace('\\', '/')
50 ## Print the dictionary
52 # Print all items of dictionary one by one
54 # @param Dict: The dictionary to be printed
63 ## Print the dictionary
[all...] |
/packages/inputmethods/LatinIME/native/jni/ |
com_android_inputmethod_latin_DicTraverseSession.cpp | 22 #include "dictionary/property/ngram_context.h" 28 class Dictionary; 36 jlong dictionary, jintArray previousWord, jint previousWordLength) { 41 Dictionary *dict = reinterpret_cast<Dictionary *>(dictionary);
|
com_android_inputmethod_latin_BinaryDictionary.cpp | 25 #include "dictionary/property/unigram_property.h" 26 #include "dictionary/property/ngram_context.h" 27 #include "dictionary/property/word_property.h" 28 #include "dictionary/structure/dictionary_structure_with_buffer_policy_factory.h" 31 #include "suggest/core/dictionary/dictionary.h" 65 Dictionary *const dictionary = local 66 new Dictionary(env, std::move(dictionaryStructureWithBufferPolicy)); 68 return reinterpret_cast<jlong>(dictionary); 94 Dictionary *const dictionary = local 101 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 112 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 119 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 129 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 137 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 171 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 187 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 265 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 275 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 287 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 304 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 334 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 363 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 388 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 401 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 421 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 439 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 458 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 513 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 529 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local 547 Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict); local [all...] |
/external/brotli/java/org/brotli/dec/ |
DictionaryTest.java | 18 * Tests for {@link Dictionary}. 26 md.update(Dictionary.getData());
|
Dictionary.java | 10 * Collection of static dictionary words. 12 * <p>Dictionary content is loaded from binary resource when {@link #getData()} is executed for the 13 * first time. Consequently, it saves memory and CPU in case dictionary is not required. 15 * <p>One possible drawback is that multiple threads that need dictionary data may be blocked (only 18 final class Dictionary { [all...] |
/external/lzma/CPP/7zip/UI/Common/ |
ZipRegistry.h | 41 UInt32 Dictionary;
53 BlockLogSize = NumThreads = Level = Dictionary = Order = UInt32(-1);
|
/external/autotest/client/site_tests/desktopui_SonicExtension/ |
config_json_iterator.py | 70 """Sets config dictionary. 85 @return Dictionary of the config file. 100 """Returns dictionary of aggregated config files. 104 @return Dictionary containing the aggregated config files. 127 """Returns a merged dictionary. 129 @param dict_one: Dictionary to merge (first). 130 @param dict_two: Dictionary to merge (second). 132 @return Dictionary containing merged result. 133 @raises ConfigJsonIteratorError: if no dictionary given. 136 raise ConfigJsonIteratorError('Input is not a dictionary') [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/ |
suggestions_output_utils.cpp | 22 #include "dictionary/utils/binary_dictionary_shortcut_iterator.h" 25 #include "suggest/core/dictionary/error_type_utils.h" 151 (wordAttributes.isPossiblyOffensive() ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0) 152 | ((isExactMatch && boostExactMatches) ? Dictionary::KIND_FLAG_EXACT_MATCH : 0) 154 Dictionary::KIND_FLAG_EXACT_MATCH_WITH_INTENTIONAL_OMISSION : 0) 156 Dictionary::KIND_FLAG_APPROPRIATE_FOR_AUTOCORRECTION : 0); 182 finalScore, Dictionary::KIND_CORRECTION | outputTypeFlags, 263 kind = Dictionary::KIND_WHITELIST; 269 kind = Dictionary::KIND_SHORTCUT;
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
DictionaryExtensions.cs | 67 public static TValue get<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key) { 101 public static void put<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key, TValue value) { 115 // disambiguates for Dictionary, which implements both IDictionary<T,K> and IDictionary 117 public static HashSet<TKey> keySet<TKey, TValue>(Dictionary<TKey, TValue> map) {
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
DictionaryExtensions.cs | 68 public static TValue get<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key ) 105 public static void put<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key, TValue value ) 122 // disambiguates for Dictionary, which implements both IDictionary<T,K> and IDictionary 124 public static HashSet<TKey> keySet<TKey, TValue>( this Dictionary<TKey, TValue> map )
|
/external/autotest/client/cros/tendo/n_faced_peerd/ |
object_manager.py | 51 a dictionary mapping from property name to property value. 60 interface2properties = dbus.Dictionary( 94 result = dbus.Dictionary(dict(), 'oa{sa{sv}}') 97 result[dbus_path] = dbus.Dictionary(dict(), 'sa{sv}')
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/ |
dic_traverse_session.h | 23 #include "dictionary/utils/multi_bigram_map.h" 31 class Dictionary; 64 void init(const Dictionary *dictionary, const NgramContext *const ngramContext, 91 // Not in the dictionary word 172 const Dictionary *mDictionary; 184 // Configuration per dictionary
|
/external/autotest/client/cros/bluetooth/ |
advertisement.py | 6 dictionary. 30 @param advertisement_data: advertisement data dictionary. 39 """Get advertising data from the advertisement_data dictionary. 50 # python dictionary. Hence, we need to define the manufacturer data 51 # in an advertisement dictionary like 63 self.manufacturer_data = dbus.Dictionary({}, signature='qv') 69 self.service_data = dbus.Dictionary({}, signature='sv') 89 """Get the properties dictionary of the advertisement. 93 @returns: the advertisement properties dictionary. 109 properties['ManufacturerData'] = dbus.Dictionary( [all...] |
/prebuilts/clang/host/linux-x86/clang-3859424/prebuilt_include/llvm/lib/Fuzzer/ |
FuzzerMutate.h | 50 /// Mutates data by adding a word from the manual dictionary. 54 /// Mutates data by adding a word from the temporary automatic dictionary. 61 /// Mutates data by adding a word from the persistent automatic dictionary. 101 size_t AddWordFromDictionary(Dictionary &D, uint8_t *Data, size_t Size, 120 // Dictionary provided by the user via -dict=DICT_FILE. 121 Dictionary ManualDictionary; 122 // Temporary dictionary modified by the fuzzer itself, 124 Dictionary TempAutoDictionary; 125 // Persistent dictionary modified by the fuzzer, consists of 127 Dictionary PersistentAutoDictionary [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/BuildOptions/ |
DebugTreeGrammarHelper.cs | 46 private readonly IDictionary<string, BigInteger> localMemory = new Dictionary<string, BigInteger>(); 49 private IDictionary<string, BigInteger> globalMemory = new Dictionary<string, BigInteger>();
|