/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | SplineMath.java | 19 double[][] points = new double[mPoints.length][2]; 22 points[i][0] = mPoints[i][0]; 23 points[i][1] = mPoints[i][1]; 26 double[] derivatives = solveSystem(points); 27 float start = (float) points[0][0]; 28 float end = (float) (points[points.length - 1][0]); 30 curve[0][0] = (float) (points[0][0]); 31 curve[0][1] = (float) (points[0][1]); 33 curve[last][0] = (float) (points[point 112 solveSystem(double[][] points) argument [all...] |
H A D | FilterGradRepresentation.java | 461 Vector<Band> points = new Vector<Band>(); 486 points.add(p); 492 mBands = points;
|
/packages/apps/Camera/tests/src/com/android/camera/unittest/ |
H A D | CameraUnitTest.java | 74 float[] points; 78 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 80 matrix.mapPoints(points); 81 assertEquals(expected, points); 84 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 86 matrix.mapPoints(points); 87 assertEquals(expected, points); 90 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 92 matrix.mapPoints(points); 93 assertEquals(expected, points); [all...] |
/packages/apps/Camera2/tests/src/com/android/camera/unittest/ |
H A D | CameraUnitTest.java | 74 float[] points; 78 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 80 matrix.mapPoints(points); 81 assertEquals(expected, points); 84 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 86 matrix.mapPoints(points); 87 assertEquals(expected, points); 90 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 92 matrix.mapPoints(points); 93 assertEquals(expected, points); [all...] |
/packages/apps/Camera2/tests_camera/src/com/android/camera/unittest/ |
H A D | CameraUnitTest.java | 74 float[] points; 78 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 80 matrix.mapPoints(points); 81 assertEquals(expected, points); 84 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 86 matrix.mapPoints(points); 87 assertEquals(expected, points); 90 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 92 matrix.mapPoints(points); 93 assertEquals(expected, points); [all...] |
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/ |
H A D | CameraTest.java | 78 float[] points; 82 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 84 matrix.mapPoints(points); 85 assertEquals(expected, points); 88 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 90 matrix.mapPoints(points); 91 assertEquals(expected, points); 94 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; 96 matrix.mapPoints(points); 97 assertEquals(expected, points); [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | InvertedChartAxis.java | 61 final float[] points = mWrapped.getTickPoints(); 62 for (int i = 0; i < points.length; i++) { 63 points[i] = mSize - points[i]; 65 return points;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | WindowLocationUtil.java | 35 * map points inside view into locations of a screen 37 * multiple points. 39 * @param points x[0], y[0], x[1], y[1], ... 41 public static void getLocationsInWindow(View view, float[] points) { argument 43 if (points == null || (points.length & 1) != 0) { 46 int length = points.length; 49 matrix.mapPoints(points); 55 points[i] += deltax; 57 points[ [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | Spline.java | 150 ControlPoint[] points = new ControlPoint[mPoints.size()]; 153 points[i] = new ControlPoint(p.x, p.y); 155 double[] derivatives = solveSystem(points); 158 if (points[0].x != 0) { 159 start = (int) (points[0].x * 256); 161 if (points[points.length - 1].x != 1) { 162 end = (int) (points[points.length - 1].x * 256); 165 curve[i] = 1.0f - points[ 348 solveSystem(ControlPoint[] points) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | LocationClustering.java | 88 final ArrayList<Point> points = new ArrayList<Point>(); 94 points.add(new Point(s.lat, s.lng)); 106 pointsArray = points.toArray(pointsArray); 202 // Input: n points 205 private static int[] kMeans(Point points[], int[] bestK) { argument 206 int n = points.length; 213 Point[] groupSum = new Point[maxK]; // sum of points in each group. 214 int[] groupCount = new int[maxK]; // number of points in each group. 234 // step 1: (arbitrarily) pick k points as the initial centers. 237 Point p = points[ [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | DeviceProfile.java | 168 ArrayList<DeviceProfileQuery> points = 201 points.add(new DeviceProfileQuery(p, 0f)); 203 DeviceProfile closestProfile = findClosestDeviceProfile(minWidth, minHeight, points); 222 points.clear(); 224 points.add(new DeviceProfileQuery(p, p.iconSize)); 226 iconSize = invDistWeightedInterpolate(minWidth, minHeight, points); 232 points.clear(); 234 points.add(new DeviceProfileQuery(p, p.iconTextSize)); 236 iconTextSize = invDistWeightedInterpolate(minWidth, minHeight, points); 243 points 467 findClosestDeviceProfile(float width, float height, ArrayList<DeviceProfileQuery> points) argument 473 findClosestDeviceProfiles(float width, float height, ArrayList<DeviceProfileQuery> points) argument 488 invDistWeightedInterpolate(float width, float height, ArrayList<DeviceProfileQuery> points) argument [all...] |
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/ |
H A D | HoloSpiralRS.java | 218 private void generateSpiral(ScriptField_VertexColor_s points, float depth, float radius, argument 222 int size = points.getAllocation().getType().getX(); 243 points.set_position(i, position, false); 244 points.set_color(i, color, false); 251 points.copyAll();
|
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
H A D | PointCloud.java | 205 ArrayList<Point> points = mPointCloud; 208 for (int i = 0; i < points.size(); i++) { 209 Point point = points.get(i);
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | CaptureModule.java | 766 float points[] = new float[2]; 767 points[0] = (x - mPreviewArea.left) / mPreviewArea.width(); 768 points[1] = (y - mPreviewArea.top) / mPreviewArea.height(); 773 rotationMatrix.mapPoints(points); 774 mCamera.triggerFocusAndMeterAtPoint(points[0], points[1]);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | GLES11Canvas.java | 317 // Transforms two points by the given matrix m. The result 358 float points[] = mapPoints( 360 x = (int) (points[0] + 0.5f); 361 y = (int) (points[1] + 0.5f); 362 width = (int) (points[2] + 0.5f) - x; 363 height = (int) (points[3] + 0.5f) - y;
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | MonthWeekEventsView.java | 973 if (strand.color == CONFLICT_COLOR || strand.points == null 974 || strand.points.length == 0) { 978 canvas.drawLines(strand.points, mDNATimePaint); 982 if (strand != null && strand.points != null && strand.points.length != 0) { 984 canvas.drawLines(strand.points, mDNATimePaint);
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | Utils.java | 879 public float[] points; field in class:Utils.DNAStrand 901 * HashMap of strands which contain the draw points and are organized by 903 * strand's color and calling drawLines on its set of points. The points are 1164 // list of points to draw 1175 strand.points = new float[strand.count * 4]; 1178 // Go through each segment and compute its points 1180 // Add the points to the strand of that color 1199 strand.points[strand.position++] = x; 1200 strand.points[stran [all...] |