/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/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/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/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/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/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/DeskClock/src/com/android/deskclock/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/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/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...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | CameraUtil.java | 481 Point[] points = new Point[sizes.size()]; 485 points[index++] = new Point(s.width, s.height); 488 int optimalPickIndex = getOptimalPreviewSize(currentActivity, points, targetRatio);
|