/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | CoordinateUtils.java | 35 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/ |
D | MediaView.java | 121 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 …]
|
D | InspectorController.java | 211 float[] coords = MetadataUtils.getGeoCoordinates(metadata); in onDocumentMetadataLoaded() local 212 final Intent intent = createGeoIntent(coords[0], coords[1], doc.displayName); in onDocumentMetadataLoaded()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/ui/ |
D | LauncherUIScrollTest.java | 169 final MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[1]; in createScrollEvent() local 170 coords[0] = new MotionEvent.PointerCoords(); in createScrollEvent() 171 coords[0].setAxisValue(MotionEvent.AXIS_VSCROLL, scroll); in createScrollEvent() 172 coords[0].x = dp.widthPx / 2; in createScrollEvent() 173 coords[0].y = dp.heightPx / 2; in createScrollEvent() 177 pointerProperties, coords, 0, 0, 1.0f, 1.0f, 0, 0, in createScrollEvent()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | GestureBot.java | 174 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/modules/NeuralNetworks/tools/test_generator/ |
D | spec_visualizer.py | 137 coords = {} 140 coords[node] = (CoordX(layer_cnt[layers[node]]), CoordY(layers[node])) 163 "x": coords[op][0], 164 "y": coords[op][1], 173 "x": coords[op][0], 174 "y": coords[op][1],
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | DocumentHolderTest.java | 75 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/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestEvents.java | 248 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/src/com/android/documentsui/dirlist/ |
D | ListDocumentHolder.java | 163 int[] coords = new int[2]; in inDragRegion() local 164 mIconLayout.getLocationOnScreen(coords); in inDragRegion() 171 coords[0], in inDragRegion() 172 coords[1], in inDragRegion() 173 coords[0] + mIconLayout.getWidth() + textBounds.width(), in inDragRegion() 174 coords[1] + Math.max(mIconLayout.getHeight(), textBounds.height())); in inDragRegion()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/actions/ |
D | LowLevelActions.java | 66 float[] coords = GeneralLocation.CENTER.calculateCoordinates(view); in perform() local 67 sMotionEventDownHeldView = MotionEvents.sendDown(uiController, coords, precision).down; in perform() 89 float[] coords = GeneralLocation.CENTER.calculateCoordinates(view); in perform() local 90 MotionEvents.sendUp(uiController, sMotionEventDownHeldView, coords); in perform()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | BaseWidgetSheet.java | 243 int[] coords = new int[2]; in showEducationTipOnViewIfPossible() local 244 view.getLocationOnScreen(coords); in showEducationTipOnViewIfPossible() 248 /* arrowXCoord= */coords[0] + view.getWidth() / 2, in showEducationTipOnViewIfPossible() 249 /* yCoord= */coords[1]); in showEducationTipOnViewIfPossible()
|
/packages/services/Car/service/src/com/android/car/pm/blurredbackground/ |
D | GLHelper.java | 148 public static FloatBuffer createFloatBuffer(float[] coords) { in createFloatBuffer() argument 149 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(coords.length * SIZEOF_FLOAT); in createFloatBuffer() 153 floatBuffer.put(coords); in createFloatBuffer()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTask.java | 106 int[] coords = findSpaceForItem(app, dataModel, workspaceScreens, in execute() local 108 int screenId = coords[0]; in execute() 176 coords[1], coords[2]); in execute()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | MediaViewTest.java | 44 private Consumer<float[]> mGeo = (float[] coords) -> { 157 Consumer<float[]> badAddress = (float[] coords) -> { in testGetAddress()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LauncherInstrumentation.java | 1225 MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); in getMotionEvent() local 1226 coords.pressure = 1; in getMotionEvent() 1227 coords.size = 1; in getMotionEvent() 1228 coords.x = x; in getMotionEvent() 1229 coords.y = y; in getMotionEvent() 1233 new MotionEvent.PointerCoords[]{coords}, in getMotionEvent()
|
/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | RotaryService.java | 1940 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[1]; in injectMotionEvent() local 1941 coords[0] = new MotionEvent.PointerCoords(); in injectMotionEvent() 1944 coords[0].setAxisValue(axis, axisValue); in injectMotionEvent() 1950 coords, in injectMotionEvent()
|