/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | WallpaperUtils.java | 23 import android.graphics.Point; 42 … final Point defaultWallpaperSize = WallpaperUtils.getDefaultWallpaperSize(res, windowManager); in suggestWallpaperDimension() 92 private static Point sDefaultWallpaperSize; 95 public static Point getDefaultWallpaperSize(Resources res, WindowManager windowManager) { in getDefaultWallpaperSize() 97 Point minDims = new Point(); in getDefaultWallpaperSize() 98 Point maxDims = new Point(); in getDefaultWallpaperSize() 105 Point realSize = new Point(); in getDefaultWallpaperSize() 121 sDefaultWallpaperSize = new Point(defaultWidth, defaultHeight); in getDefaultWallpaperSize()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocationClustering.java | 46 private static class Point { class in LocationClustering 47 public Point(double lat, double lng) { in Point() method in LocationClustering.Point 51 public Point() {} in Point() method in LocationClustering.Point 87 final ArrayList<Point> points = new ArrayList<Point>(); in run() 93 points.add(new Point(s.lat, s.lng)); in run() 104 Point[] pointsArray = new Point[m]; in run() 204 private static int[] kMeans(Point points[], int[] bestK) { in kMeans() 211 Point[] center = new Point[maxK]; // center of each group. in kMeans() 212 Point[] groupSum = new Point[maxK]; // sum of points in each group. in kMeans() 217 center[i] = new Point(); in kMeans() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | GridSizeMigrationTaskTest.java | 6 import android.graphics.Point; 119 … new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(), in testWorkspace_empty_row_column_removed() 120 new Point(4, 4), new Point(3, 3)).migrateWorkspace(); in testWorkspace_empty_row_column_removed() 138 … new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(), in testWorkspace_new_screen_created() 139 new Point(4, 4), new Point(3, 3)).migrateWorkspace(); in testWorkspace_new_screen_created() 162 … new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(), in testWorkspace_items_merged_in_next_screen() 163 new Point(4, 4), new Point(3, 3)).migrateWorkspace(); in testWorkspace_items_merged_in_next_screen() 193 … new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(), in testWorkspace_items_not_merged_in_next_screen() 194 new Point(4, 4), new Point(3, 3)).migrateWorkspace(); in testWorkspace_items_not_merged_in_next_screen()
|
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/ |
D | CarPropertyConfigTest.java | 20 import android.graphics.Point; 123 Point maxPoint = new Point(10, 20); in testWriteReadArbitraryParcelable() 124 CarPropertyConfig<Point> config = CarPropertyConfig in testWriteReadArbitraryParcelable() 125 .newBuilder(Point.class, PROPERTY_ID, CAR_AREA_TYPE) in testWriteReadArbitraryParcelable() 135 CarPropertyConfig<Point> configRead = readFromParcel(); in testWriteReadArbitraryParcelable() 137 assertEquals(Point.class, configRead.getPropertyType()); in testWriteReadArbitraryParcelable()
|
D | CarPropertyValueTest.java | 20 import android.graphics.Point; 38 CarPropertyValue<Point> pointValue = in testCarAreaArbitraryParcelable() 39 new CarPropertyValue<>(PROPERTY_ID, WINDOW_DRIVER, new Point(30, 40)); in testCarAreaArbitraryParcelable() 42 CarPropertyValue<Point> pointValueRead = readFromParcel(); in testCarAreaArbitraryParcelable()
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | GalleryBitmapPool.java | 20 import android.graphics.Point; 50 private static final Point[] COMMON_PHOTO_ASPECT_RATIOS = 51 { new Point(4, 3), new Point(3, 2), new Point(16, 9) }; 95 for (Point ar : COMMON_PHOTO_ASPECT_RATIOS) { in getPoolIndexForDimensions()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | PointCloud.java | 32 private ArrayList<Point> mPointCloud = new ArrayList<Point>(); 105 class Point { class in PointCloud 110 public Point(float x2, float y2, float r) { in Point() method in PointCloud.Point 156 mPointCloud.add(new Point(x, y, r)); in makePointCloud() 177 public int getAlphaForPoint(Point point) { in getAlphaForPoint() 204 ArrayList<Point> points = mPointCloud; in draw() 208 Point point = points.get(i); in draw()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | CircularRevealFragment.java | 25 import android.graphics.Point; 42 private Point mTouchPoint; 50 public static void startCircularReveal(FragmentManager fm, Point touchPoint, in startCircularReveal() 73 public CircularRevealFragment(Point touchPoint, OnCircularRevealCompleteListener listener) { in CircularRevealFragment() 148 private Animator getRevealAnimator(Point touchPoint) { in getRevealAnimator() 155 final Point size = new Point(); in getRevealAnimator()
|
D | VideoCallFragment.java | 20 import android.graphics.Point; 71 private static Point sDisplaySize = null; 419 public Point getSurfaceDimensions() { in getSurfaceDimensions() 420 return new Point(mWidth, mHeight); in getSurfaceDimensions() 775 sDisplaySize = new Point(width, height); in setDisplayVideoSize() 788 public Point getScreenSize() { in getScreenSize() 791 Point size = new Point(); in getScreenSize() 803 public Point getPreviewSize() { in getPreviewSize() 829 Point screenSize = sDisplaySize == null ? getScreenSize() : sDisplaySize; in inflateVideoCallViews() 882 private void setSurfaceSizeAndTranslation(TextureView textureView, Point size) { in setSurfaceSizeAndTranslation()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridSizeMigrationTask.java | 11 import android.graphics.Point; 65 private final HashMap<String, Point> mWidgetMinSize = new HashMap<>(); 82 HashSet<String> validPackages, HashMap<String, Point> widgetMinSize, in GridSizeMigrationTask() 83 Point sourceSize, Point targetSize) { in GridSizeMigrationTask() 741 Point spans = pInfo == null ? 880 private static Point parsePoint(String point) { 882 return new Point(Integer.parseInt(split[0]), Integer.parseInt(split[1])); 934 Point srcHotseatSize = parsePoint(prefs.getString( 948 Point targetSize = new Point(idp.numColumns, idp.numRows); 949 Point sourceSize = parsePoint(prefs.getString( [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
D | JPEGInputStream.java | 19 import android.graphics.Point; 61 public Point getDimensions() throws IOException { in getDimensions() 64 return new Point(mWidth, mHeight); in getDimensions() 166 Point dimens = new Point(0, 0); in applyConfigChange() 182 native private int setup(Point dimens, InputStream in, int format); in setup()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/event/ |
D | EventTapOnPreview.java | 21 import android.graphics.Point; 24 private final Point mTapPoint; 26 public EventTapOnPreview(Point tapPoint) { in EventTapOnPreview() 30 public Point getTapPoint() { in getTapPoint()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ |
D | TouchPointManager.java | 3 import android.graphics.Point; 15 private Point mPoint = new Point(); 27 public Point getPoint() { in getPoint()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | MasterImage.java | 24 import android.graphics.Point; 110 private Point mTranslation = new Point(); 111 private Point mOriginalTranslation = new Point(); 113 private Point mImageShowSize = new Point(); 606 Point translation = getTranslation(); in computeImageToScreen() 630 Point translate = getTranslation(); in getImageToScreenMatrix() 742 public Point getTranslation() { in getTranslation() 746 public void setTranslation(Point translation) { in setTranslation() 757 public Point getOriginalTranslation() { in getOriginalTranslation() 761 public void setOriginalTranslation(Point originalTranslation) { in setOriginalTranslation()
|
D | ImageShow.java | 30 import android.graphics.Point; 87 private Point mTouchDown = new Point(); 88 private Point mTouch = new Point(); 95 Point mOriginalTranslation = new Point(); 230 Point translate = master.getTranslation(); in getImageToScreenMatrix() 403 Point point = mActivity.hintTouchPoint(this); in drawImageAndAnimate() 648 Point originalTranslation = MasterImage.getImage().getOriginalTranslation(); in onTouchEvent() 649 Point translation = MasterImage.getImage().getTranslation(); in onTouchEvent() 678 Point translation = MasterImage.getImage().getTranslation(); in onTouchEvent() 704 Point translation = MasterImage.getImage().getTranslation(); in startAnimTranslation() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/focus/ |
D | FocusRingView.java | 23 import android.graphics.Point; 145 Point center = computeCenter(); in centerFocusLocation() 191 Point center = computeCenter(); in centerAutofocusRing() 196 private Point computeCenter() { in computeCenter() 199 return new Point((int) mPreviewSize.centerX(), (int) mPreviewSize.centerY()); in computeCenter() 202 return new Point(getWidth() / 2, getHeight() / 2); in computeCenter()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | Wallpaper.java | 24 import android.graphics.Point; 73 private Point getDefaultDisplaySize(Point size) { in getDefaultDisplaySize() 119 Point size = getDefaultDisplaySize(new Point()); in onResume()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 21 import android.graphics.Point; 125 Point smallestSize = new Point(); in InvariantDeviceProfile() 126 Point largestSize = new Point(); in InvariantDeviceProfile() 158 Point realSize = new Point(); in InvariantDeviceProfile()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
D | WallpaperCropActivity.java | 31 import android.graphics.Point; 326 final Point bounds = cropTask.getImageBounds(); in setWallpaper() 349 Point inSize = mCropView.getSourceDimensions(); in cropImageAndSetWallpaper() 350 Point outSize = WallpaperUtils.getDefaultWallpaperSize(getResources(), getWindowManager()); in cropImageAndSetWallpaper() 385 Point displaySize = new Point(); in cropImageAndSetWallpaper() 389 Point defaultWallpaperSize = WallpaperUtils.getDefaultWallpaperSize(getResources(), in cropImageAndSetWallpaper() 394 Point inSize = mCropView.getSourceDimensions(); in cropImageAndSetWallpaper() 501 public float getScale(Point wallpaperSize, RectF crop) { 510 Point wallpaperSize = WallpaperUtils.getDefaultWallpaperSize(
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ |
D | InvariantDeviceProfileTest.java | 19 import android.graphics.Point; 142 Point portraitDimens = portraitProfile.getSearchBarDimensForWidgetOpts(resources); in testQsbNormalHeight() 144 Point landscapeDimens = landscapeProfile.getSearchBarDimensForWidgetOpts(resources); in testQsbNormalHeight() 177 Point portraitDimens = portraitProfile.getSearchBarDimensForWidgetOpts(resources); in testQsbTallHeight() 179 Point landscapeDimens = landscapeProfile.getSearchBarDimensForWidgetOpts(resources); in testQsbTallHeight()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
D | UiObject2Utils.java | 18 import android.graphics.Point; 28 Point myCenter = theUiObject.getVisibleCenter(); in hasSiblingInDirection() 30 Point siblingCenter = sibling.getVisibleCenter(); in hasSiblingInDirection()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieRenderer.java | 27 import android.graphics.Point; 70 private Point mCenter; 101 private Point mPoint1; 102 private Point mPoint2; 111 private Point mDown; 157 mCenter = new Point(0, 0); in init() 172 mPoint1 = new Point(); in init() 173 mPoint2 = new Point(); in init() 181 mDown = new Point(); in init() 322 private Path makeSlice(float start, float end, int outer, int inner, Point center) { in makeSlice() [all …]
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripItemUtils.java | 22 import android.graphics.Point; 64 public static Point decodeBitmapDimension(InputStream is) { in decodeBitmapDimension() 65 Point size = null; in decodeBitmapDimension() 70 size = new Point(justBoundsOpts.outWidth, justBoundsOpts.outHeight); in decodeBitmapDimension()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | EffectsRecorder.java | 26 import android.filterfw.geometry.Point; 319 Point bl = new Point(0, 0); in setRecordingOrientation() 320 Point br = new Point(1, 0); in setRecordingOrientation() 321 Point tl = new Point(0, 1); in setRecordingOrientation() 322 Point tr = new Point(1, 1); in setRecordingOrientation()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | PeekView.java | 25 import android.graphics.Point; 50 private Point mRotationPivot; 72 mRotationPivot = new Point(); in init() 147 Point drawDim = CameraUtil.resizeToFill(mImageDrawable.getIntrinsicWidth(), in startPeekAnimation()
|