Home
last modified time | relevance | path

Searched refs:coords (Results 1 – 16 of 16) sorted by relevance

/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DCoordinateUtils.java35 public static int x(@Nonnull final int[] coords) { in x() argument
36 return coords[INDEX_X]; in x()
39 public static int y(@Nonnull final int[] coords) { in y() argument
40 return coords[INDEX_Y]; in y()
43 public static void set(@Nonnull final int[] coords, final int x, final int y) { in set() argument
44 coords[INDEX_X] = x; in set()
45 coords[INDEX_Y] = y; in set()
78 final int[] coords = newInstance(); in coordinateFromArray() local
79 set(coords, xFromArray(coordsArray, index), yFromArray(coordsArray, index)); in coordinateFromArray()
80 return coords; in coordinateFromArray()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMediaView.java121 float[] coords = MetadataUtils.getVideoCoords(tags); in showVideoData() local
122 showCoordiantes(table, resources, coords, geoClickListener); in showVideoData()
186 float[] coords = MetadataUtils.getExifGpsCoords(tags); in showExifData() local
187 showCoordiantes(table, resources, coords, geoClickListener); in showExifData()
188 geoAddressFetcher.accept(coords); in showExifData()
195 float[] coords, in showCoordiantes() argument
199 R.string.metadata_coordinates_format, coords[0], coords[1]); in showCoordiantes()
217 private void getAddress(float[] coords) { in getAddress() argument
220 protected Address doInBackground(Float... coords) { in getAddress() argument
221 assert (coords.length == 2); in getAddress()
[all …]
DInspectorController.java208 float[] coords = MetadataUtils.getGeoCoordinates(metadata); in onDocumentMetadataLoaded() local
209 final Intent intent = createGeoIntent(coords[0], coords[1], doc.displayName); in onDocumentMetadataLoaded()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DGestureBot.java174 PointerCoords coords = new PointerCoords(); in getMotionEvent() local
175 coords.pressure = 1; in getMotionEvent()
176 coords.size = 1; in getMotionEvent()
177 coords.x = x; in getMotionEvent()
178 coords.y = y; in getMotionEvent()
181 new PointerProperties[]{properties}, new PointerCoords[]{coords}, in getMotionEvent()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DListDocumentHolder.java143 int[] coords = new int[2]; in inDragRegion() local
144 mIconLayout.getLocationOnScreen(coords); in inDragRegion()
151 coords[0], in inDragRegion()
152 coords[1], in inDragRegion()
153 coords[0] + mIconLayout.getWidth() + textBounds.width(), in inDragRegion()
154 coords[1] + Math.max(mIconLayout.getHeight(), textBounds.height())); in inDragRegion()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEvents.java248 PointerCoords[] coords = new PointerCoords[1]; in build() local
249 coords[0] = new PointerCoords(); in build()
250 coords[0].x = mState.mLocation.x; in build()
251 coords[0].y = mState.mLocation.y; in build()
269 coords, in build()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDocumentHolderTest.java75 PointerCoords coords[] = new PointerCoords[] { in createEvent() local
81 coords[0].x = rect.left; in createEvent()
82 coords[0].y = rect.top; in createEvent()
90 coords, // pointer coords in createEvent()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DCustomViewToolbar.java140 final int[] coords = new int[2]; in onConversationListLayout() local
141 mCustomView.getLocationInWindow(coords); in onConversationListLayout()
144 newWidth = coords[0] + mCustomView.getWidth() - xEnd; in onConversationListLayout()
146 newWidth = xEnd - coords[0]; in onConversationListLayout()
DMaterialSearchActionView.java122 int[] coords = new int[2]; in adjustViewForTwoPaneLandscape() local
123 getLocationInWindow(coords); in adjustViewForTwoPaneLandscape()
124 params.width = coords[0] + getWidth() - xEnd; in adjustViewForTwoPaneLandscape()
DConversationViewFragment.java1276 final int[] coords = new int[2]; in focusAndScrollToView() local
1277 v.getLocationOnScreen(coords); in focusAndScrollToView()
1278 final int bottom = coords[1] + v.getHeight(); in focusAndScrollToView()
1281 } else if (coords[1] < mTopOfVisibleScreen) { in focusAndScrollToView()
1282 mWebView.scrollBy(0, coords[1] - mTopOfVisibleScreen); in focusAndScrollToView()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java90 int[] coords = findSpaceForItem(app, dataModel, workspaceScreens, in execute() local
92 int screenId = coords[0]; in execute()
107 coords[1], coords[2]); in execute()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java744 MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); in getMotionEvent() local
745 coords.pressure = 1; in getMotionEvent()
746 coords.size = 1; in getMotionEvent()
747 coords.x = x; in getMotionEvent()
748 coords.y = y; in getMotionEvent()
752 new MotionEvent.PointerCoords[]{coords}, in getMotionEvent()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DTouchEventTranslator.java144 PointerCoords[] coords = new PointerCoords[n]; in put() local
147 coords[i] = new PointerCoords(); in put()
149 mCache.put(n, new Pair(properties, coords)); in put()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DMediaViewTest.java44 private Consumer<float[]> mGeo = (float[] coords) -> {
157 Consumer<float[]> badAddress = (float[] coords) -> { in testGetAddress()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewCoordinates.java162 public void put(final int key, final ConversationItemViewCoordinates coords) { in put() argument
163 mCoordinatesCache.put(key, coords); in put()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java2373 final int[] coords = new int[2]; in onFocusChange() local
2374 mCc.getLocationOnScreen(coords); in onFocusChange()
2378 final int deltaY = coords[1] - getSupportActionBar().getHeight() - mRect.top; in onFocusChange()