Searched defs:points (Results 1 - 7 of 7) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
H A DWindowLocationUtil.java35 * 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/filters/
H A DSplineMath.java19 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 DLocationClustering.java88 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 DSpline.java150 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 DHoloSpiralRS.java218 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 DDeviceProfile.java168 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/apps/Calendar/src/com/android/calendar/
H A DUtils.java879 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...]

Completed in 230 milliseconds