Home
last modified time | relevance | path

Searched refs:keyId (Results 1 – 11 of 11) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info.cpp130 const int keyId, const int x, const int y, const bool isGeometric) const { in getNormalizedSquaredDistanceFromCenterFloatG() argument
131 const float centerX = static_cast<float>(getKeyCenterXOfKeyIdG(keyId, x, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG()
132 const float centerY = static_cast<float>(getKeyCenterYOfKeyIdG(keyId, y, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG()
196 const int keyId, const int referencePointX, const bool isGeometric) const { in getKeyCenterXOfKeyIdG() argument
197 if (keyId < 0) { in getKeyCenterXOfKeyIdG()
200 int centerX = (hasTouchPositionCorrectionData()) ? static_cast<int>(mSweetSpotCenterXs[keyId]) in getKeyCenterXOfKeyIdG()
201 : mCenterXsG[keyId]; in getKeyCenterXOfKeyIdG()
202 const int keyWidth = mKeyWidths[keyId]; in getKeyCenterXOfKeyIdG()
222 const int keyId, const int referencePointY, const bool isGeometric) const { in getKeyCenterYOfKeyIdG() argument
224 if (keyId < 0) { in getKeyCenterYOfKeyIdG()
[all …]
Dproximity_info_utils.h133 const int *const keyWidths, const int *keyHeights, const int keyId, const int x, in isOnKey() argument
135 if (keyId < 0) return true; // NOT_A_ID is -1, but return whenever < 0 just in case in isOnKey()
136 const int left = keyXCoordinates[keyId]; in isOnKey()
137 const int top = keyYCoordinates[keyId]; in isOnKey()
138 const int right = left + keyWidths[keyId] + 1; in isOnKey()
139 const int bottom = top + keyHeights[keyId]; in isOnKey()
222 const int keyId, const int x, const int y) { in squaredLengthToEdge() argument
224 if (keyId < 0) return MAX_VALUE_FOR_WEIGHTING; in squaredLengthToEdge()
225 const int left = keyXCoordinates[keyId]; in squaredLengthToEdge()
226 const int top = keyYCoordinates[keyId]; in squaredLengthToEdge()
[all …]
Dproximity_info_state.cpp171 const int keyId = mProximityInfo->getKeyIndexOf(codePoint); in getPointToKeyLength() local
172 if (keyId != NOT_AN_INDEX) { in getPointToKeyLength()
173 const int index = inputIndex * mProximityInfo->getKeyCount() + keyId; in getPointToKeyLength()
184 const int inputIndex, const int keyId) const { in getPointToKeyByIdLength()
187 keyId); in getPointToKeyByIdLength()
277 bool ProximityInfoState::isKeyInSerchKeysAfterIndex(const int index, const int keyId) const { in isKeyInSerchKeysAfterIndex()
278 ASSERT(keyId >= 0 && index >= 0 && index < mSampledInputSize); in isKeyInSerchKeysAfterIndex()
279 return mSampledSearchKeySets[index].test(keyId); in isKeyInSerchKeysAfterIndex()
Dproximity_info.h41 const int keyId, const int x, const int y, const bool isGeometric) const;
68 const int keyId, const int referencePointX, const bool isGeometric) const;
70 const int keyId, const int referencePointY, const bool isGeometric) const;
Dproximity_info_state_utils.cpp449 const int keyId = proximityInfo->getKeyIndexOf(nodeCodePoint); in pushTouchPoint() local
450 if (keyId >= 0) { in pushTouchPoint()
451 x = proximityInfo->getKeyCenterXOfKeyIdG(keyId, NOT_AN_INDEX, isGeometric); in pushTouchPoint()
452 y = proximityInfo->getKeyCenterYOfKeyIdG(keyId, NOT_AN_INDEX, isGeometric); in pushTouchPoint()
605 const int inputIndex, const int keyId) { in getPointToKeyByIdLength() argument
606 if (keyId != NOT_AN_INDEX) { in getPointToKeyByIdLength()
607 const int index = inputIndex * keyCount + keyId; in getPointToKeyByIdLength()
Dproximity_info_state.h147 float getPointToKeyByIdLength(const int inputIndex, const int keyId) const;
186 bool isKeyInSerchKeysAfterIndex(const int index, const int keyId) const;
Dproximity_info_state_utils.h84 const int inputIndex, const int keyId);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DTestTable.java42 public void assertHasRow(int keyId, CharSequence expected) { in assertHasRow() argument
43 assertEquals(expected, mRows.get(keyId)); in assertHasRow()
46 public void assertNotInTable (int keyId) { in assertNotInTable() argument
47 assertNull(mRows.get(keyId)); in assertNotInTable()
51 public void put(int keyId, CharSequence value) { in put() argument
52 mRows.put(keyId, value); in put()
56 public void put(int keyId, CharSequence value, OnClickListener callback) { in put() argument
57 mRows.put(keyId, value); in put()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DTableView.java103 public void put(@StringRes int keyId, CharSequence value) { in put() argument
104 put(mRes.getString(keyId), value); in put()
127 public void put(@StringRes int keyId, CharSequence value, OnClickListener callback) { in put() argument
128 put(keyId, value); in put()
129 mRows.get(mRes.getString(keyId)).setOnClickListener(callback); in put()
DInspectorController.java388 void put(@StringRes int keyId, CharSequence value); in put() argument
393 void put(@StringRes int keyId, CharSequence value, OnClickListener callback); in put() argument
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPinPadView.java142 for (int keyId : PIN_PAD_DIGIT_KEYS) { in init()
143 TextView key = findViewById(keyId); in init()