Home
last modified time | relevance | path

Searched refs:points (Results 1 – 25 of 25) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java150 ControlPoint[] points = new ControlPoint[mPoints.size()]; in getAppliedCurve() local
153 points[i] = new ControlPoint(p.x, p.y); in getAppliedCurve()
155 double[] derivatives = solveSystem(points); in getAppliedCurve()
158 if (points[0].x != 0) { in getAppliedCurve()
159 start = (int) (points[0].x * 256); in getAppliedCurve()
161 if (points[points.length - 1].x != 1) { in getAppliedCurve()
162 end = (int) (points[points.length - 1].x * 256); in getAppliedCurve()
165 curve[i] = 1.0f - points[0].y; in getAppliedCurve()
168 curve[i] = 1.0f - points[points.length - 1].y; in getAppliedCurve()
175 for (int j = 0; j < points.length - 1; j++) { in getAppliedCurve()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java19 double[][] points = new double[mPoints.length][2]; in calculatetCurve() local
22 points[i][0] = mPoints[i][0]; in calculatetCurve()
23 points[i][1] = mPoints[i][1]; in calculatetCurve()
26 double[] derivatives = solveSystem(points); in calculatetCurve()
27 float start = (float) points[0][0]; in calculatetCurve()
28 float end = (float) (points[points.length - 1][0]); in calculatetCurve()
30 curve[0][0] = (float) (points[0][0]); in calculatetCurve()
31 curve[0][1] = (float) (points[0][1]); in calculatetCurve()
33 curve[last][0] = (float) (points[points.length - 1][0]); in calculatetCurve()
34 curve[last][1] = (float) (points[points.length - 1][1]); in calculatetCurve()
[all …]
DFilterGradRepresentation.java461 Vector<Band> points = new Vector<Band>(); in deSerializeRepresentation() local
486 points.add(p); in deSerializeRepresentation()
492 mBands = points; in deSerializeRepresentation()
/packages/apps/Camera2/tests/src/com/android/camera/unittest/
DCameraUnitTest.java74 float[] points; in testPrepareMatrix() local
78 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
80 matrix.mapPoints(points); in testPrepareMatrix()
81 assertEquals(expected, points); in testPrepareMatrix()
84 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
86 matrix.mapPoints(points); in testPrepareMatrix()
87 assertEquals(expected, points); in testPrepareMatrix()
90 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
92 matrix.mapPoints(points); in testPrepareMatrix()
93 assertEquals(expected, points); in testPrepareMatrix()
[all …]
/packages/apps/Camera2/tests_camera/src/com/android/camera/unittest/
DCameraUnitTest.java74 float[] points; in testPrepareMatrix() local
78 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
80 matrix.mapPoints(points); in testPrepareMatrix()
81 assertEquals(expected, points); in testPrepareMatrix()
84 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
86 matrix.mapPoints(points); in testPrepareMatrix()
87 assertEquals(expected, points); in testPrepareMatrix()
90 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
92 matrix.mapPoints(points); in testPrepareMatrix()
93 assertEquals(expected, points); in testPrepareMatrix()
[all …]
/packages/apps/Camera/tests/src/com/android/camera/unittest/
DCameraUnitTest.java74 float[] points; in testPrepareMatrix() local
78 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
80 matrix.mapPoints(points); in testPrepareMatrix()
81 assertEquals(expected, points); in testPrepareMatrix()
84 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
86 matrix.mapPoints(points); in testPrepareMatrix()
87 assertEquals(expected, points); in testPrepareMatrix()
90 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
92 matrix.mapPoints(points); in testPrepareMatrix()
93 assertEquals(expected, points); in testPrepareMatrix()
[all …]
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/
DCameraTest.java78 float[] points; in testPrepareMatrix() local
82 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
84 matrix.mapPoints(points); in testPrepareMatrix()
85 assertEquals(expected, points); in testPrepareMatrix()
88 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
90 matrix.mapPoints(points); in testPrepareMatrix()
91 assertEquals(expected, points); in testPrepareMatrix()
94 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
96 matrix.mapPoints(points); in testPrepareMatrix()
97 assertEquals(expected, points); in testPrepareMatrix()
[all …]
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/
Dwaveform.rs58 static void makeIdleWave(float *points) {
70 points[i*8+1] = val + off;
71 points[i*8+5] = -val + off;
91 float *points = (float*)gPoints;
95 float val = fabs(points[i*8+1]);
98 points[i*8+1] = val;
99 points[i*8+5] = -val;
110 makeIdleWave(points);
119 float *points = (float*)gPoints;
121 float val = fabs(points[i*8+1]);
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DWindowLocationUtil.java41 public static void getLocationsInWindow(View view, float[] points) { in getLocationsInWindow() argument
43 if (points == null || (points.length & 1) != 0) { in getLocationsInWindow()
46 int length = points.length; in getLocationsInWindow()
49 matrix.mapPoints(points); in getLocationsInWindow()
55 points[i] += deltax; in getLocationsInWindow()
57 points[i] += deltay; in getLocationsInWindow()
68 points[i] -= deltax; in getLocationsInWindow()
70 points[i] -= deltay; in getLocationsInWindow()
76 matrix.mapPoints(points); in getLocationsInWindow()
82 points[i] += deltax; in getLocationsInWindow()
[all …]
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
Dmany.rs166 static void makeIdleWave(float *points) {
179 points[i*8+1] = val + off;
180 points[i*8+5] = -val + off;
197 float *points = (float*)gPoints;
201 float val = fabs(points[i*8+1]);
204 points[i*8+1] = val;
205 points[i*8+5] = -val;
216 makeIdleWave(points);
225 float *points = (float*)gPoints;
227 float val = fabs(points[i*8+1]);
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java165 ArrayList<DeviceProfileQuery> points = in DeviceProfile() local
198 points.add(new DeviceProfileQuery(p, 0f)); in DeviceProfile()
200 DeviceProfile closestProfile = findClosestDeviceProfile(minWidth, minHeight, points); in DeviceProfile()
216 points.clear(); in DeviceProfile()
218 points.add(new DeviceProfileQuery(p, p.iconSize)); in DeviceProfile()
220 iconSize = invDistWeightedInterpolate(minWidth, minHeight, points); in DeviceProfile()
226 points.clear(); in DeviceProfile()
228 points.add(new DeviceProfileQuery(p, p.iconTextSize)); in DeviceProfile()
230 iconTextSize = invDistWeightedInterpolate(minWidth, minHeight, points); in DeviceProfile()
237 points.clear(); in DeviceProfile()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocationClustering.java88 final ArrayList<Point> points = new ArrayList<Point>(); in run() local
94 points.add(new Point(s.lat, s.lng)); in run()
106 pointsArray = points.toArray(pointsArray); in run()
205 private static int[] kMeans(Point points[], int[] bestK) { in kMeans() argument
206 int n = points.length; in kMeans()
237 Point p = points[i * delta]; in kMeans()
252 Point p = points[i]; in kMeans()
/packages/apps/Settings/src/com/android/settings/widget/
DInvertedChartAxis.java61 final float[] points = mWrapped.getTickPoints(); in getTickPoints() local
62 for (int i = 0; i < points.length; i++) { in getTickPoints()
63 points[i] = mSize - points[i]; in getTickPoints()
65 return points; in getTickPoints()
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralRS.java218 private void generateSpiral(ScriptField_VertexColor_s points, float depth, float radius, in generateSpiral() argument
222 int size = points.getAllocation().getType().getX(); in generateSpiral()
243 points.set_position(i, position, false); in generateSpiral()
244 points.set_color(i, color, false); in generateSpiral()
251 points.copyAll(); in generateSpiral()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModule.java732 float points[] = new float[2];
733 points[0] = (x - mPreviewArea.left) / mPreviewArea.width();
734 points[1] = (y - mPreviewArea.top) / mPreviewArea.height();
739 rotationMatrix.mapPoints(points);
740 mCamera.triggerFocusAndMeterAtPoint(points[0], points[1]);
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java973 if (strand.color == CONFLICT_COLOR || strand.points == null in drawDNA()
974 || strand.points.length == 0) { in drawDNA()
978 canvas.drawLines(strand.points, mDNATimePaint); in drawDNA()
982 if (strand != null && strand.points != null && strand.points.length != 0) { in drawDNA()
984 canvas.drawLines(strand.points, mDNATimePaint); in drawDNA()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java205 ArrayList<Point> points = mPointCloud; in draw() local
208 for (int i = 0; i < points.size(); i++) { in draw()
209 Point point = points.get(i); in draw()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java358 float points[] = mapPoints( in drawBoundTexture() local
360 x = (int) (points[0] + 0.5f); in drawBoundTexture()
361 y = (int) (points[1] + 0.5f); in drawBoundTexture()
362 width = (int) (points[2] + 0.5f) - x; in drawBoundTexture()
363 height = (int) (points[3] + 0.5f) - y; in drawBoundTexture()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java879 public float[] points; field in Utils.DNAStrand
1175 strand.points = new float[strand.count * 4]; in weaveDNAStrands()
1199 strand.points[strand.position++] = x; in weaveDNAStrands()
1200 strand.points[strand.position++] = y0; in weaveDNAStrands()
1201 strand.points[strand.position++] = x; in weaveDNAStrands()
1202 strand.points[strand.position++] = y1; in weaveDNAStrands()
/packages/inputmethods/LatinIME/dictionaries/
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1400639634, ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Dnl_wordlist.combined.gz1dictionary=main:nl,locale=nl,description=Nederlands,date=1393228136, ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1402373178, ...
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...