/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
get_pred_adv_b_add.cpp | 91 uint32 pred_word, word1, word2; local 118 word1 = *((uint32*)prev); /* read 4 bytes, b4 b3 b2 b1 */ 120 word1 >>= 8; /* 0 b4 b3 b2 */ 121 pred_word = word1 | (word2 << 24); /* b5 b4 b3 b2 */ 124 word1 = *((uint32*)(prev += 4)); /* b12 b11 b10 b9 */ 126 pred_word = word2 | (word1 << 24); /* b9 b8 b7 b6 */ 136 prev -= 2; /* word1-aligned */ 140 word1 = *((uint32*)prev); /* read 4 bytes, b4 b3 b2 b1 */ 142 word1 >>= 16; /* 0 0 b4 b3 */ 143 pred_word = word1 | (word2 << 16); /* b6 b5 b4 b3 * 191 uint32 word1, word2, word3, word12; local 520 uint32 word1, word2, word3, word12, word22; local [all...] |
/external/chromium_org/third_party/cld/encodings/compact_lang_det/ |
cldutil.cc | 100 uint32 word0, word1; local 109 word1 = UnalignedLoad32(word_ptr + 4) & kWordMask0[bytecount & 3]; 110 word1 = word1 ^ (word1 << 18); 111 return word0 + word1; 157 uint32 word0, word1, word2; local 165 word1 = UnalignedLoad32(word_ptr + 4) & kWordMask0[bytecount & 3]; 166 word1 = word1 ^ (word1 << 4) 227 uint64 word1; local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
UserHistoryDictionaryBigramList.java | 49 public void addBigram(String word1, String word2) { 50 addBigram(word1, word2, FORGETTING_CURVE_INITIAL_VALUE); 56 public void addBigram(String word1, String word2, byte fcValue) { 58 Log.d(TAG, "--- add bigram: " + word1 + ", " + word2 + ", " + fcValue); 61 if (mBigramMap.containsKey(word1)) { 62 map = mBigramMap.get(word1); 65 mBigramMap.put(word1, map); 76 public void updateBigram(String word1, String word2, byte fcValue) { 78 Log.d(TAG, "--- update bigram: " + word1 + ", " + word2 + ", " + fcValue); 81 if (mBigramMap.containsKey(word1)) { [all...] |
PersonalizationDictionaryUpdateSession.java | 38 public PersonalizationLanguageModelParam(String word0, String word1, boolean isValid, 41 mWord1 = word1; 107 public void addBigramToPersonalizationDictionary(String word0, String word1, boolean isValid, 113 dictionary.addToDictionary(word0, word1, isValid);
|
DecayingExpandableBinaryDictionaryBase.java | 133 public void addToDictionary(final String word0, final String word1, final boolean isValid) { 134 if (word1.length() >= Constants.DICTIONARY_MAX_WORD_LENGTH || 141 addWordDynamically(word1, null /* shortcutTarget */, frequency, 0 /* shortcutFreq */, 144 if (word1.equals(word0)) { 148 addBigramDynamically(word0, word1, frequency, isValid); 152 public void cancelAddingUserHistory(final String word0, final String word1) { 153 removeBigramDynamically(word0, word1); 183 public void setBigram(final String word0, final String word1, final int frequency) { 185 && word1.length() < Constants.DICTIONARY_MAX_WORD_LENGTH) { 187 Log.d(TAG, "load bigram: " + word0 + "," + word1 + "," + frequency) [all...] |
DynamicPersonalizationDictionaryWriter.java | 97 public void addBigramWords(final String word0, final String word1, final int frequency, 104 mExpandableDictionary.setBigramAndGetFrequency(word0, word1, 107 mBigramList.addBigram(word0, word1, (byte)frequency); 109 mExpandableDictionary.setBigramAndGetFrequency(word0, word1, 111 mBigramList.addBigram(word0, word1, (byte)frequency); 116 public void removeBigramWords(final String word0, final String word1) { 117 if (mBigramList.removeBigram(word0, word1)) { 118 mExpandableDictionary.removeBigram(word0, word1); 143 public int getFrequency(final String word0, final String word1) { 148 final NextWord nw = mExpandableDictionary.getBigramWord(word0, word1); [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
motion_comp.cpp | 358 ULong pred_word, word1, word2; local 388 word1 = *((ULong*)(prev += lx)); /* read 4 bytes, b4 b3 b2 b1 */ 390 word1 >>= 8; /* 0 b4 b3 b2 */ 391 pred_word = word1 | (word2 << 24); /* b5 b4 b3 b2 */ 394 word1 = *((ULong*)(prev + 8)); /* b12 b11 b10 b9 */ 396 pred_word = word2 | (word1 << 24); /* b9 b8 b7 b6 */ 404 prev -= 2; /* word1-aligned */ 410 word1 = *((ULong*)(prev += lx)); /* read 4 bytes, b4 b3 b2 b1 */ 412 word1 >>= 16; /* 0 0 b4 b3 */ 413 pred_word = word1 | (word2 << 16); /* b6 b5 b4 b3 * 458 ULong word1, word2, word3, word12; local 783 ULong word1, word2, word3, word12, word22; local [all...] |
/external/stlport/test/unit/ |
setdiff_test.cpp | 74 const char* word1 = "ABCDEFGHIJKLMNO"; local 78 set_symmetric_difference(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2), 125 const char* word1 = "ABCDEFGHIJKLMNO"; local 129 set_difference(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2), back_inserter(diff), less<char>());
|
setinter_test.cpp | 68 const char* word1 = "ABCDEFGHIJKLMNO"; local 72 set_intersection(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2),
|
setunion_test.cpp | 71 const char* word1 = "ABCDEFGHIJKLMNO"; local 75 set_union(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2),
|
/ndk/tests/device/test-gnustl-full/unit/ |
setdiff_test.cpp | 74 const char* word1 = "ABCDEFGHIJKLMNO"; local 78 set_symmetric_difference(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2), 125 const char* word1 = "ABCDEFGHIJKLMNO"; local 129 set_difference(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2), back_inserter(diff), less<char>());
|
setinter_test.cpp | 68 const char* word1 = "ABCDEFGHIJKLMNO"; local 72 set_intersection(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2),
|
setunion_test.cpp | 71 const char* word1 = "ABCDEFGHIJKLMNO"; local 75 set_union(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2),
|
/ndk/tests/device/test-stlport/unit/ |
setdiff_test.cpp | 74 const char* word1 = "ABCDEFGHIJKLMNO"; local 78 set_symmetric_difference(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2), 125 const char* word1 = "ABCDEFGHIJKLMNO"; local 129 set_difference(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2), back_inserter(diff), less<char>());
|
setinter_test.cpp | 68 const char* word1 = "ABCDEFGHIJKLMNO"; local 72 set_intersection(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2),
|
setunion_test.cpp | 71 const char* word1 = "ABCDEFGHIJKLMNO"; local 75 set_union(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2),
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
UserHistoryDictIOUtils.java | 62 public void setBigram(final String word1, final String word2, final int frequency); 67 public int getFrequency(final String word1, final String word2); 100 for (final String word1 : bigrams.keySet()) { 101 final HashMap<String, Byte> word1Bigrams = bigrams.getBigrams(word1); 103 final int freq = dict.getFrequency(word1, word2); 109 if (word1 == null) { 112 Log.d(TAG, "add bigram: " + word1 117 if (word1 == null) { // unigram 120 if (FusionDictionary.findWordInTree(fusionDict.mRootNodeArray, word1) == null) { 121 fusionDict.add(word1, 2, null, false /* isNotAWord */) 163 final String word1 = entry.getValue(); local [all...] |
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
Diff.java | 124 final PtNode word1 = FusionDictionary.findWordInTree(dict1.mRootNodeArray, local 126 if (null == word1) { 132 if (word0.mFrequency != word1.getFrequency()) { 134 + " -> " + word1.getFrequency()); 137 if (word0.mIsNotAWord != word1.getIsNotAWord()) { 139 + " -> " + word1.getIsNotAWord()); 142 if (word0.mIsBlacklistEntry != word1.getIsBlacklistEntry()) { 144 + " -> " + word1.getIsBlacklistEntry()); 148 "Bigram", word0.mBigrams, word1.getBigrams()); 150 "Shortcut", word0.mShortcutTargets, word1.getShortcutTargets()) [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/ |
dictionary_structure_with_buffer_policy.h | 70 virtual bool addBigramWords(const int *const word0, const int length0, const int *const word1, 75 const int *const word1, const int length1) = 0;
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
UserDictionaryToolsListEN.java | 71 public int compare(WnnWord word1, WnnWord word2) { 72 return word1.stroke.compareTo(word2.stroke);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
UserDictionaryToolsListJAJP.java | 68 public int compare(WnnWord word1, WnnWord word2) { 69 return word1.stroke.compareTo(word2.stroke);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
bigram_dictionary.h | 32 int getBigramProbability(const int *word1, int length1, const int *word2, int length2) const;
|
dictionary.h | 70 int getBigramProbability(const int *word0, int length0, const int *word1, int length1) const; 74 void addBigramWords(const int *const word0, const int length0, const int *const word1, 77 void removeBigramWords(const int *const word0, const int length0, const int *const word1,
|
dictionary.cpp | 99 int Dictionary::getBigramProbability(const int *word0, int length0, const int *word1, 101 return mBigramDictionary->getBigramProbability(word0, length0, word1, length1); 108 void Dictionary::addBigramWords(const int *const word0, const int length0, const int *const word1, 110 mDictionaryStructureWithBufferPolicy->addBigramWords(word0, length0, word1, length1, 115 const int *const word1, const int length1) { 116 mDictionaryStructureWithBufferPolicy->removeBigramWords(word0, length0, word1, length1);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
UserHistoryDictIOUtilsTests.java | 60 public int getFrequency(String word1, String word2) { 61 if (word1 == null) return UNIGRAM_FREQUENCY; 74 private void addBigram(final String word1, final String word2, 76 addWord(word1, addedWords); 78 addedWords.get(word1).add(word2); 81 private void addBigramToBigramList(final String word1, final String word2, 84 bigramList.addBigram(null, word1); 85 bigramList.addBigram(word1, word2); 87 addBigram(word1, word2, addedWords); 205 public void setBigram(final String word1, final String word2, final int frequency) [all...] |