Lines Matching refs:keyId
133 bool ProximityInfo::isOnKey(const int keyId, const int x, const int y) const { in isOnKey() argument
134 if (keyId < 0) return true; // NOT_A_ID is -1, but return whenever < 0 just in case in isOnKey()
135 const int left = mKeyXCoordinates[keyId]; in isOnKey()
136 const int top = mKeyYCoordinates[keyId]; in isOnKey()
137 const int right = left + mKeyWidths[keyId] + 1; in isOnKey()
138 const int bottom = top + mKeyHeights[keyId]; in isOnKey()
142 int ProximityInfo::squaredDistanceToEdge(const int keyId, const int x, const int y) const { in squaredDistanceToEdge() argument
143 if (keyId < 0) return true; // NOT_A_ID is -1, but return whenever < 0 just in case in squaredDistanceToEdge()
144 const int left = mKeyXCoordinates[keyId]; in squaredDistanceToEdge()
145 const int top = mKeyYCoordinates[keyId]; in squaredDistanceToEdge()
146 const int right = left + mKeyWidths[keyId]; in squaredDistanceToEdge()
147 const int bottom = top + mKeyHeights[keyId]; in squaredDistanceToEdge()