Searched refs:coords (Results 1 - 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DCoordinateUtils.java34 public static int x(final int[] coords) { argument
35 return coords[INDEX_X];
38 public static int y(final int[] coords) { argument
39 return coords[INDEX_Y];
42 public static void set(final int[] coords, final int x, final int y) { argument
43 coords[INDEX_X] = x;
44 coords[INDEX_Y] = y;
86 final int[] coords) {
88 coordsArray[baseIndex + INDEX_X] = coords[INDEX_X];
89 coordsArray[baseIndex + INDEX_Y] = coords[INDEX_
85 setCoordinateInArray(final int[] coordsArray, final int index, final int[] coords) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DHotseat.java106 Rect coords = new Rect();
107 mContent.cellToRect(cellX, cellY, 1, 1, coords);
111 coords.offset(hotseatInParent[0], hotseatInParent[1]);
116 int cellPaddingX = (int) Math.max(0, ((coords.width() - cWidth) / 2f));
117 int cellPaddingY = (int) Math.max(0, ((coords.height() - cHeight) / 2f));
118 coords.offset(cellPaddingX, cellPaddingY);
120 return coords;
H A DButtonDropTarget.java117 int[] coords = new int[2];
118 mLauncher.getDragLayer().getDescendantCoordRelativeToSelf(this, coords);
119 outRect.offsetTo(coords[0], coords[1]);
H A DLauncherModel.java459 Pair<Long, int[]> coords = LauncherModel.findNextAvailableIconSpace(context,
461 if (coords == null) {
479 coords = LauncherModel.findNextAvailableIconSpace(context,
482 if (coords == null) {
498 coords.first, coords.second[0], coords.second[1], false);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationItemViewCoordinates.java178 public void put(final int key, final ConversationItemViewCoordinates coords) { argument
179 mCoordinatesCache.put(key, coords);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationViewFragment.java1187 final int[] coords = new int[2];
1188 next.getLocationOnScreen(coords);
1189 final int bottom = coords[1] + next.getHeight();
1192 } else if (coords[1] < mTopOfVisibleScreen) {
1193 mWebView.scrollBy(0, coords[1] - mTopOfVisibleScreen);
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DComposeActivity.java2253 final int[] coords = new int[2];
2254 mCc.getLocationOnScreen(coords);
2259 final int deltaY = coords[1] - getSupportActionBar().getHeight() - rect.top;

Completed in 378 milliseconds