Home
last modified time | relevance | path

Searched refs:points (Results 1 – 25 of 46) 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/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/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java87 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() local
89 assertThat(points.valueAt(1)).isNotEqualTo(-1); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()
103 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() local
105 assertThat(points.keyAt(1)).isEqualTo(points.keyAt(2) - 1); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
106 assertThat(points.valueAt(1)).isEqualTo(-1); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
151 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_shouldNotDrawPointForFutureDate() local
154 assertThat(points.size()).isEqualTo(7); in calcPoints_shouldNotDrawPointForFutureDate()
155 assertThat(points.keyAt(0)).isEqualTo(-1); in calcPoints_shouldNotDrawPointForFutureDate()
156 assertThat(points.keyAt(1)).isEqualTo(0); in calcPoints_shouldNotDrawPointForFutureDate()
157 assertThat(points.keyAt(2)).isEqualTo(TimeUnit.DAYS.toMinutes(1)); in calcPoints_shouldNotDrawPointForFutureDate()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java69 SparseIntArray points = new SparseIntArray(); in bindHistory()
87 points.put(lastTime, lastLevel); in bindHistory()
92 if (points.size() > 1) { in bindHistory()
93 view.addPath(points); in bindHistory()
95 points.clear(); in bindHistory()
107 points = provider.getEnhancedBatteryPredictionCurve(context, startTime); in bindHistory()
111 points.put(lastTime, lastLevel); in bindHistory()
112 points.put((int) (timePeriod + in bindHistory()
120 if (points != null && points.size() > 0) { in bindHistory()
121 int maxTime = points.keyAt(points.size() - 1); in bindHistory()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DFloatingWidgetView.java308 float[] points = new float[]{0, 0, descendant.getWidth(), descendant.getHeight()}; in getRelativePosition() local
309 Utilities.getDescendantCoordRelativeToAncestor(descendant, ancestor, points, in getRelativePosition()
312 Math.min(points[0], points[2]), in getRelativePosition()
313 Math.min(points[1], points[3]), in getRelativePosition()
314 Math.max(points[0], points[2]), in getRelativePosition()
315 Math.max(points[1], points[3])); in getRelativePosition()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java247 float[] points = recycle == null ? new float[4] : recycle; in getBoundsForViewInDragLayer() local
248 points[0] = viewBounds.left; in getBoundsForViewInDragLayer()
249 points[1] = viewBounds.top; in getBoundsForViewInDragLayer()
250 points[2] = viewBounds.right; in getBoundsForViewInDragLayer()
251 points[3] = viewBounds.bottom; in getBoundsForViewInDragLayer()
253 Utilities.getDescendantCoordRelativeToAncestor(view, dragLayer, points, in getBoundsForViewInDragLayer()
256 Math.min(points[0], points[2]), in getBoundsForViewInDragLayer()
257 Math.min(points[1], points[3]), in getBoundsForViewInDragLayer()
258 Math.max(points[0], points[2]), in getBoundsForViewInDragLayer()
259 Math.max(points[1], points[3])); in getBoundsForViewInDragLayer()
[all …]
DInvariantDeviceProfile.java477 Info displayInfo, ArrayList<DisplayOption> points, boolean isSplitDisplay) { in invDistWeightedInterpolate() argument
501 Collections.sort(points, (a, b) -> in invDistWeightedInterpolate()
505 GridOption closestOption = points.get(0).grid; in invDistWeightedInterpolate()
508 DisplayOption p = points.get(0); in invDistWeightedInterpolate()
514 for (int i = 0; i < points.size() && i < KNEARESTNEIGHBOR; ++i) { in invDistWeightedInterpolate()
515 p = points.get(i); in invDistWeightedInterpolate()
/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.java105 public void addPath(SparseIntArray points) { in addPath() argument
106 mUsageGraph.addPath(points); in addPath()
109 public void addProjectedPath(SparseIntArray points) { in addProjectedPath() argument
110 mUsageGraph.addProjectedPath(points); in addProjectedPath()
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java104 final SparseIntArray points = new SparseIntArray(); in calcPoints() local
105 points.put(0, 0); in calcPoints()
119 if (points.size() == 1) { in calcPoints()
120 points.put(toInt(startTime - mStart) - 1, -1); in calcPoints()
122 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); in calcPoints()
123 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); in calcPoints()
125 if (points.size() > 1) { in calcPoints()
126 chart.addPath(points); in calcPoints()
/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/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.java353 public MultiStepMigrationTaskVerifier(int... points) { in MultiStepMigrationTaskVerifier() argument
357 for (int i = 0; i < points.length; i += 2) { in MultiStepMigrationTaskVerifier()
358 mPoints.add(new Point(points[i], points[i + 1])); in MultiStepMigrationTaskVerifier()
/packages/modules/Wifi/service/proto/src/
Dscorecard.proto31 // Describes a network, consisting of a collection of access points that share
34 // the access points of a network together in dumpsys output or similar.
74 // Records statistics gathered at various points in the life-cycle of
168 // Number of access points found in most recent WiFi scan at 2G
170 // Number of access points found in most recent WiFi scan above 2G
/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/modules/NeuralNetworks/runtime/
Dlibneuralnetworks.map.txt17 # This lists the entry points visible to applications that use the
18 # Neural Networks lib. Other entry points present in the library won't be
/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/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java356 float points[] = mapPoints( in drawBoundTexture() local
358 x = (int) (points[0] + 0.5f); in drawBoundTexture()
359 y = (int) (points[1] + 0.5f); in drawBoundTexture()
360 width = (int) (points[2] + 0.5f) - x; in drawBoundTexture()
361 height = (int) (points[3] + 0.5f) - y; in drawBoundTexture()

12