Home
last modified time | relevance | path

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

12

/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 …]
/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/Camera2/tests/src/com/android/camera/unittest/
DCameraUnitTest.java30 float[] points; in testPrepareMatrix() local
34 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
36 matrix.mapPoints(points); in testPrepareMatrix()
37 assertEquals(expected, points); in testPrepareMatrix()
40 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
42 matrix.mapPoints(points); in testPrepareMatrix()
43 assertEquals(expected, points); in testPrepareMatrix()
46 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix()
48 matrix.mapPoints(points); in testPrepareMatrix()
49 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/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java74 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() local
76 assertThat(points.valueAt(1)).isNotEqualTo(-1); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()
90 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() local
92 assertThat(points.keyAt(1)).isEqualTo(points.keyAt(2) - 1); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
93 assertThat(points.valueAt(1)).isEqualTo(-1); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
138 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_shouldNotDrawPointForFutureDate() local
141 assertThat(points.size()).isEqualTo(7); in calcPoints_shouldNotDrawPointForFutureDate()
142 assertThat(points.keyAt(0)).isEqualTo(-1); in calcPoints_shouldNotDrawPointForFutureDate()
143 assertThat(points.keyAt(1)).isEqualTo(0); in calcPoints_shouldNotDrawPointForFutureDate()
144 assertThat(points.keyAt(2)).isEqualTo(TimeUnit.DAYS.toMinutes(1)); in calcPoints_shouldNotDrawPointForFutureDate()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DStroke.java29 private ArrayList<Point> points = new ArrayList<>(); field in Stroke
43 if (!points.isEmpty()) { in addPoint()
44 length += points.get(points.size() - 1).dist(point); in addPoint()
46 points.add(point); in addPoint()
50 return points.size(); in getCount()
58 return points.get(0).dist(points.get(points.size() - 1)); in getEndPointLength()
70 return points; in getPoints()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java65 SparseIntArray points = new SparseIntArray(); in bindHistory()
83 points.put(lastTime, lastLevel); in bindHistory()
88 if (points.size() > 1) { in bindHistory()
89 view.addPath(points); in bindHistory()
91 points.clear(); in bindHistory()
103 points = provider.getEnhancedBatteryPredictionCurve(context, startTime); in bindHistory()
107 points.put(lastTime, lastLevel); in bindHistory()
108 points.put((int) (timePeriod + in bindHistory()
116 if (points != null && points.size() > 0) { in bindHistory()
117 int maxTime = points.keyAt(points.size() - 1); in bindHistory()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryInfo.java63 SparseIntArray points = new SparseIntArray(); in bindHistory()
81 points.put(lastTime, lastLevel); in bindHistory()
86 if (points.size() > 1) { in bindHistory()
87 view.addPath(points); in bindHistory()
89 points.clear(); in bindHistory()
101 points = provider.getEnhancedBatteryPredictionCurve(context, startTime); in bindHistory()
105 points.put(lastTime, lastLevel); in bindHistory()
106 points.put((int) (timePeriod + in bindHistory()
114 if (points != null && points.size() > 0) { in bindHistory()
115 int maxTime = points.keyAt(points.size() - 1); in bindHistory()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java95 final SparseIntArray points = new SparseIntArray(); in calcPoints() local
96 points.put(0, 0); in calcPoints()
110 if (points.size() == 1) { in calcPoints()
111 points.put(toInt(startTime - mStart) - 1, -1); in calcPoints()
113 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); in calcPoints()
114 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); in calcPoints()
116 if (points.size() > 1) { in calcPoints()
117 chart.addPath(points); in calcPoints()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DChartDataUsagePreference.java95 final SparseIntArray points = new SparseIntArray(); in calcPoints() local
96 points.put(0, 0); in calcPoints()
110 if (points.size() == 1) { in calcPoints()
111 points.put(toInt(startTime - mStart) - 1, -1); in calcPoints()
113 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); in calcPoints()
114 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); in calcPoints()
116 if (points.size() > 1) { in calcPoints()
117 chart.addPath(points); in calcPoints()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DUsageGraph.java134 public void addPath(SparseIntArray points) { in addPath() argument
135 addPathAndUpdate(points, mPaths, mLocalPaths); in addPath()
138 public void addProjectedPath(SparseIntArray points) { in addProjectedPath() argument
139 addPathAndUpdate(points, mProjectedPaths, mLocalProjectedPaths); in addProjectedPath()
143 SparseIntArray points, SparseIntArray paths, SparseIntArray localPaths) { in addPathAndUpdate() argument
145 for (int i = 0, size = points.size(); i < size; i++) { in addPathAndUpdate()
146 paths.put(points.keyAt(i), points.valueAt(i)); in addPathAndUpdate()
149 paths.put(points.keyAt(points.size() - 1) + 1, PATH_DELIM); in addPathAndUpdate()
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()
DUsageView.java94 public void addPath(SparseIntArray points) { in addPath() argument
95 mUsageGraph.addPath(points); in addPath()
98 public void addProjectedPath(SparseIntArray points) { in addProjectedPath() argument
99 mUsageGraph.addProjectedPath(points); in addProjectedPath()
/packages/apps/Settings/src/com/android/settings/widget/
DUsageGraph.java134 public void addPath(SparseIntArray points) { in addPath() argument
135 addPathAndUpdate(points, mPaths, mLocalPaths); in addPath()
138 public void addProjectedPath(SparseIntArray points) { in addProjectedPath() argument
139 addPathAndUpdate(points, mProjectedPaths, mLocalProjectedPaths); in addProjectedPath()
143 SparseIntArray points, SparseIntArray paths, SparseIntArray localPaths) { in addPathAndUpdate() argument
145 for (int i = 0, size = points.size(); i < size; i++) { in addPathAndUpdate()
146 paths.put(points.keyAt(i), points.valueAt(i)); in addPathAndUpdate()
149 paths.put(points.keyAt(points.size() - 1) + 1, PATH_DELIM); in addPathAndUpdate()
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()
DUsageView.java94 public void addPath(SparseIntArray points) { in addPath() argument
95 mUsageGraph.addPath(points); in addPath()
98 public void addProjectedPath(SparseIntArray points) { in addProjectedPath() argument
99 mUsageGraph.addProjectedPath(points); in addProjectedPath()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocationClustering.java87 final ArrayList<Point> points = new ArrayList<Point>(); in run() local
93 points.add(new Point(s.lat, s.lng)); in run()
105 pointsArray = points.toArray(pointsArray); in run()
204 private static int[] kMeans(Point points[], int[] bestK) { in kMeans() argument
205 int n = points.length; in kMeans()
236 Point p = points[i * delta]; in kMeans()
251 Point p = points[i]; in kMeans()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateReadyForCapture.java364 float points[] = new float[2]; in registerEventHandlers()
365 points[0] = (tapPoint.x - previewRect.left) / previewRect.width(); in registerEventHandlers()
366 points[1] = (tapPoint.y - previewRect.top) / previewRect.height(); in registerEventHandlers()
371 rotationMatrix.mapPoints(points); in registerEventHandlers()
375 points[0] = 1 - points[0]; in registerEventHandlers()
380 new PointF(points[0], points[1])); in registerEventHandlers()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DFloatingIconView.java372 float[] points = new float[] {iconBounds.left, iconBounds.top, iconBounds.right, in getLocationBoundsForView() local
375 Utilities.getDescendantCoordRelativeToAncestor(v, launcher.getDragLayer(), points, in getLocationBoundsForView()
378 Math.min(points[0], points[2]), in getLocationBoundsForView()
379 Math.min(points[1], points[3]), in getLocationBoundsForView()
380 Math.max(points[0], points[2]), in getLocationBoundsForView()
381 Math.max(points[1], points[3])); in getLocationBoundsForView()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DGestureBot.java65 Point[] points = new Point[LONGPRESS_STEPS + TRAVELING_STEPS]; in gestureSelectFiles() local
69 points[i] = new Point(startCoord.centerX(), startCoord.centerY()); in gestureSelectFiles()
76 points[i + LONGPRESS_STEPS] = new Point(newX, newY); in gestureSelectFiles()
78 mDevice.swipe(points, STEPS_INBETWEEN_POINTS); in gestureSelectFiles()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DGridSizeMigrationTaskTest.java342 public MultiStepMigrationTaskVerifier(int... points) { in MultiStepMigrationTaskVerifier() argument
346 for (int i = 0; i < points.length; i += 2) { in MultiStepMigrationTaskVerifier()
347 mPoints.add(new Point(points[i], points[i + 1])); in MultiStepMigrationTaskVerifier()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModule.java910 float points[] = new float[2];
911 points[0] = (viewX - mPreviewArea.left) / mPreviewArea.width();
912 points[1] = (viewY - mPreviewArea.top) / mPreviewArea.height();
917 rotationMatrix.mapPoints(points);
921 points[0] = 1 - points[0];
924 mCamera.triggerFocusAndMeterAtPoint(points[0], points[1]);
/packages/modules/DnsResolver/
Dlibnetd_resolv.map.txt17 # This lists the entry points visible to applications that use the
18 # libnetd_resolv library. Other entry points present in the library won't be
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dencoding.md5 > (in Introduction) JSON text is a sequence of Unicode code points.
24 Those unique numbers are called code points, which is in the range `0x0` to `0x10FFFF`.
28 There are various encodings for storing Unicode code points. These are called Unicode Transformatio…
110 …encoding of `Document` or target encoding of `Reader`), as it cannot represent Unicode code points.
/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()

12