Searched defs:codePoint (Results 1 - 25 of 30) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
H A Dshortcut_dict_content.h69 bool writeShortcutEntry(const int *const codePoint, const int codePointCount, argument
72 return writeShortcutEntryAndAdvancePosition(codePoint, codePointCount, probability,
76 bool writeShortcutEntryAndAdvancePosition(const int *const codePoint,
H A Dshortcut_dict_content.cpp129 bool ShortcutDictContent::writeShortcutEntryAndAdvancePosition(const int *const codePoint, argument
139 if (!shortcutListBuffer->writeCodePointsAndAdvancePosition(codePoint, codePointCount,
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
H A Ddictionary_utils.cpp43 for (const int codePoint : codePoints) {
45 const int baseLowerCodePoint = CharUtils::toBaseLowerCase(codePoint);
80 const int codePoint = CharUtils::toBaseLowerCase(childDicNode->getNodeCodePoint()); local
81 if (inputCodePoint == codePoint) {
92 if (childDicNode->getNodeCodePoint() == codePoint) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DCapsModeUtils.java72 * @param codePoint the code point
75 private static boolean isStartPunctuation(final int codePoint) { argument
76 return (codePoint == Constants.CODE_DOUBLE_QUOTE || codePoint == Constants.CODE_SINGLE_QUOTE
77 || codePoint == Constants.CODE_INVERTED_QUESTION_MARK
78 || codePoint == Constants.CODE_INVERTED_EXCLAMATION_MARK
79 || Character.getType(codePoint) == Character.START_PUNCTUATION);
H A DScriptUtils.java81 public static boolean isLetterPartOfScript(final int codePoint, final int scriptId) { argument
90 return (codePoint >= 0x600 && codePoint <= 0x6FF)
91 || (codePoint >= 0x750 && codePoint <= 0x7BF)
92 || (codePoint >= 0x8A0 && codePoint <= 0x8FF)
93 || (codePoint >= 0xFB50 && codePoint <= 0xFDFF)
94 || (codePoint >
[all...]
H A DDictionaryInfoUtils.java124 private static boolean isFileNameCharacter(int codePoint) { argument
125 if (codePoint >= 0x30 && codePoint <= 0x39) return true; // Digit
126 if (codePoint >= 0x41 && codePoint <= 0x5A) return true; // Uppercase
127 if (codePoint >= 0x61 && codePoint <= 0x7A) return true; // Lowercase
128 return codePoint == '_'; // Underscore
145 final int codePoint = name.codePointAt(i);
146 if (DictionaryInfoUtils.isFileNameCharacter(codePoint)) {
[all...]
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
H A Dutf8_utils.cpp38 int codePoint = 0; local
47 codePoint = maskFirstByte(c, remainingByteCountForCurrentCodePoint);
49 codePoint <<= CODE_POINT_BIT_COUNT_IN_TRAILING_BYTE;
50 codePoint += maskTrailingByte(c);
54 if (codePoint <= MAX_ENCODED_CODE_POINT_VALUES[currentCodePointSequenceSize - 1]) {
55 AKLOGE("%d bytes encode for codePoint(%x) is a redundant UTF-8 sequence.",
56 currentCodePointSequenceSize, codePoint);
59 codePoints.push_back(codePoint);
86 for (const int codePoint : codePoints) {
87 const int sequenceSize = getSequenceSizeToEncodeCodePoint(codePoint);
106 getSequenceSizeToEncodeCodePoint(const int codePoint) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
H A Dshortcut_dict_content.h76 bool writeShortcutEntry(const int *const codePoint, const int codePointCount, argument
79 return writeShortcutEntryAndAdvancePosition(codePoint, codePointCount, probability,
83 bool writeShortcutEntryAndAdvancePosition(const int *const codePoint,
H A Dshortcut_dict_content.cpp144 bool ShortcutDictContent::writeShortcutEntryAndAdvancePosition(const int *const codePoint, argument
154 if (!shortcutListBuffer->writeCodePointsAndAdvancePosition(codePoint, codePointCount,
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DInputLogicTestsDeadKeys.java30 public EventList addCodePoint(final int codePoint, final boolean isDead) { argument
33 event = Event.createDeadEvent(codePoint, Event.NOT_A_KEY_CODE, null /* next */);
35 event = Event.createSoftwareKeypressEvent(codePoint, Event.NOT_A_KEY_CODE,
H A DInputTestsBase.java280 protected void typeInternal(final int codePoint, final boolean isKeyRepeat) { argument
287 //mLatinIME.onPressKey(codePoint, 0 /* repeatCount */, true /* isSinglePointer */);
288 final Key key = mKeyboard.getKey(codePoint);
291 event = Event.createSoftwareKeypressEvent(codePoint, Event.NOT_A_KEY_CODE,
296 event = LatinIME.createSoftwareKeypressEvent(codePoint, x, y, isKeyRepeat);
300 //mLatinIME.onReleaseKey(codePoint, false /* withSliding */);
303 protected void type(final int codePoint) { argument
304 typeInternal(codePoint, false /* isKeyRepeat */);
307 protected void repeatKey(final int codePoint) { argument
308 typeInternal(codePoint, tru
317 getXY(final int codePoint) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DKeyCodeDescriptionMapper.java263 * @param codePoint The code point from which to obtain a description.
266 public String getDescriptionForCodePoint(final Context context, final int codePoint) { argument
268 final int index = mKeyCodeMap.indexOfKey(codePoint);
272 final String accentedLetter = getSpokenAccentedLetterDescription(context, codePoint);
277 final String unsupportedSymbol = getSpokenSymbolDescription(context, codePoint);
281 final String emojiDescription = getSpokenEmojiDescription(context, codePoint);
285 if (Character.isDefined(codePoint) && !Character.isISOControl(codePoint)) {
286 return StringUtils.newSingleCodePointString(codePoint);
354 final int codePoint
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
H A Ddic_node_properties.h74 void init(const DicNodeProperties *const dicNodeProp, const int codePoint) { argument
76 mDicNodeCodePoint = codePoint; // Overwrite the node char of a passing child
/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dchar_utils.h52 static AK_FORCE_INLINE bool isIntentionalOmissionCodePoint(const int codePoint) { argument
54 return codePoint == KEYCODE_SINGLE_QUOTE || codePoint == KEYCODE_HYPHEN_MINUS;
83 static AK_FORCE_INLINE int isInUnicodeSpace(const int codePoint) { argument
84 return codePoint >= MIN_UNICODE_CODE_POINT && codePoint <= MAX_UNICODE_CODE_POINT;
H A Djni_data_utils.h80 const int codePoint = codePoints[i]; local
81 int codePointToOutput = codePoint;
82 if (!CharUtils::isInUnicodeSpace(codePoint)) {
83 if (codePoint == CODE_POINT_BEGINNING_OF_SENTENCE) {
88 } else if (codePoint >= 0x01 && codePoint <= 0x1F) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/
H A DEvent.java114 private Event(final int type, final CharSequence text, final int codePoint, final int keyCode, argument
119 mCodePoint = codePoint;
142 public static Event createSoftwareKeypressEvent(final int codePoint, final int keyCode, argument
144 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, x, y,
149 public static Event createHardwareKeypressEvent(final int codePoint, final int keyCode, argument
151 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode,
159 public static Event createDeadEvent(final int codePoint, final int keyCode, final Event next) { argument
161 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode,
170 * @param codePoint the code point.
174 public static Event createEventForCodePointFromUnknownSource(final int codePoint) { argument
190 createEventForCodePointFromAlreadyTypedText(final int codePoint, final int x, final int y) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
H A Dpatricia_trie_reading_utils.cpp77 const int codePoint = getCodePointAndAdvancePosition(buffer, codePointTable, pos); local
78 if (codePoint == NOT_A_CODE_POINT) {
79 // CAVEAT: codePoint == NOT_A_CODE_POINT means the code point is
83 AKLOGE("codePoint is NOT_A_CODE_POINT. pos: %d, codePoint: 0x%x, buffer[pos - 1]: 0x%x",
84 *pos - 1, codePoint, buffer[*pos - 1]);
87 outBuffer[0] = codePoint;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dbyte_array_utils.h189 int codePoint = readCodePointAndAdvancePosition(buffer, codePointTable, pos); local
190 while (NOT_A_CODE_POINT != codePoint && length < maxLength) {
191 outBuffer[length++] = codePoint;
192 codePoint = readCodePointAndAdvancePosition(buffer, codePointTable, pos);
201 int codePoint = readCodePointAndAdvancePosition(buffer, nullptr /* codePointTable */, pos); local
202 while (NOT_A_CODE_POINT != codePoint && length < maxLength) {
203 codePoint = readCodePointAndAdvancePosition(buffer, nullptr /* codePointTable */, pos);
216 const int codePoint = codePoints[i]; local
217 if (codePoint == NOT_A_CODE_POINT || codePoint
237 const int codePoint = codePoints[i]; local
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_state.cpp170 const int inputIndex, const int codePoint) const {
171 const int keyId = mProximityInfo->getKeyIndexOf(codePoint);
176 if (CharUtils::isIntentionalOmissionCodePoint(codePoint)) {
200 ProximityType ProximityInfoState::getProximityType(const int index, const int codePoint, argument
204 const int baseLowerC = CharUtils::toBaseLowerCase(codePoint);
208 if (firstCodePoint == baseLowerC || firstCodePoint == codePoint) {
225 || currentCodePoints[j] == codePoint);
240 || currentCodePoints[j] == codePoint);
254 ProximityType ProximityInfoState::getProximityTypeG(const int index, const int codePoint) const {
261 "mSampledSearchKeyVectors.size() = %d, codePoint
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
H A Dtyping_weighting.h120 const int codePoint = dicNode->getNodeCodePoint(); local
122 parentPointIndex, CharUtils::toBaseLowerCase(codePoint));
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLocaleUtils.java210 int codePoint = Character.codePointAt(name, offset);
213 if (Character.isDigit(codePoint)) {
216 } else if (!Character.isSpaceChar(codePoint) &&
217 codePoint != '+' && codePoint != '(' &&
218 codePoint != ')' && codePoint != '.' &&
219 codePoint != '-' && codePoint != '#') {
222 offset += Character.charCount(codePoint);
340 isChineseOrJapanese(int codePoint) argument
[all...]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DStringUtils.java118 public static String newSingleCodePointString(final int codePoint) { argument
119 if (Character.charCount(codePoint) == 1) {
122 return String.valueOf((char) codePoint);
125 return new String(Character.toChars(codePoint));
284 final int codePoint = Character.codePointAt(charSequence, index);
287 destination[destIndex] = downCase ? Character.toLowerCase(codePoint) : codePoint;
340 final int codePoint = text.codePointAt(index);
341 if (Character.isUpperCase(codePoint)) {
344 } else if (Character.isLetter(codePoint)) {
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputConnection.java686 private static boolean isPartOfCompositionForScript(final int codePoint, argument
689 return spacingAndPunctuations.isWordConnector(codePoint)
691 || (!spacingAndPunctuations.isWordSeparator(codePoint)
692 && ScriptUtils.isLetterPartOfScript(codePoint, scriptId));
725 final int codePoint = Character.codePointBefore(before, startIndexInBefore);
726 if (!isPartOfCompositionForScript(codePoint, spacingAndPunctuations, scriptId)) {
730 if (Character.isSupplementaryCodePoint(codePoint)) {
738 final int codePoint = Character.codePointAt(after, endIndexInAfter);
739 if (!isPartOfCompositionForScript(codePoint, spacingAndPunctuations, scriptId)) {
742 if (Character.isSupplementaryCodePoint(codePoint)) {
[all...]
/packages/inputmethods/LatinIME/native/jni/src/
H A Ddefines.h54 const int codePoint = source[si++]; local
55 if (codePoint < 0x7F) { // One byte
56 dest[di++] = codePoint;
57 } else if (codePoint < 0x7FF) { // Two bytes
59 dest[di++] = 0xC0 + (codePoint >> 6);
60 dest[di++] = 0x80 + (codePoint & 0x3F);
61 } else if (codePoint < 0xFFFF) { // Three bytes
63 dest[di++] = 0xE0 + (codePoint >> 12);
64 dest[di++] = 0x80 + ((codePoint >> 6) & 0x3F);
65 dest[di++] = 0x80 + (codePoint
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
H A DInputLogic.java765 final int codePoint = event.mCodePoint;
767 if (inputTransaction.mSettingsValues.isWordSeparator(codePoint)
768 || Character.getType(codePoint) == Character.OTHER_SYMBOL) {
796 final int codePoint = event.mCodePoint;
806 && !settingsValues.isWordConnector(codePoint)) {
831 && settingsValues.isWordCodePoint(codePoint)
848 isComposingWord = !settingsValues.mSpacingAndPunctuations.isWordConnector(codePoint);
869 sendKeyCodePoint(settingsValues, codePoint);
882 final int codePoint = event.mCodePoint;
886 final boolean shouldAvoidSendingCode = Constants.CODE_SPACE == codePoint
1372 canBeFollowedByDoubleSpacePeriod(final int codePoint) argument
1992 sendKeyCodePoint(final SettingsValues settingsValues, final int codePoint) argument
[all...]

Completed in 443 milliseconds

12