Searched defs:points (Results 1 - 6 of 6) sorted by relevance
/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...] |
/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/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/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/Launcher3/src/com/android/launcher3/ |
H A D | DynamicGrid.java | 124 ArrayList<DeviceProfileQuery> points = 140 points.add(new DeviceProfileQuery(p.minWidthDps, p.minHeightDps, p.numRows)); 142 numRows = Math.round(invDistWeightedInterpolate(minWidth, minHeight, points)); 144 points.clear(); 146 points.add(new DeviceProfileQuery(p.minWidthDps, p.minHeightDps, p.numColumns)); 148 numColumns = Math.round(invDistWeightedInterpolate(minWidth, minHeight, points)); 150 points.clear(); 152 points.add(new DeviceProfileQuery(p.minWidthDps, p.minHeightDps, p.iconSize)); 154 iconSize = invDistWeightedInterpolate(minWidth, minHeight, points); 158 points 264 invDistWeightedInterpolate(float width, float height, ArrayList<DeviceProfileQuery> points) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | Utils.java | 856 public float[] points; field in class:Utils.DNAStrand 878 * HashMap of strands which contain the draw points and are organized by 880 * strand's color and calling drawLines on its set of points. The points are 1141 // list of points to draw 1152 strand.points = new float[strand.count * 4]; 1155 // Go through each segment and compute its points 1157 // Add the points to the strand of that color 1176 strand.points[strand.position++] = x; 1177 strand.points[stran [all...] |
Completed in 127 milliseconds