/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | SplineMath.java | 19 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/ |
D | Spline.java | 150 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/ |
D | CameraUnitTest.java | 31 float[] points; in testPrepareMatrix() local 35 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix() 37 matrix.mapPoints(points); in testPrepareMatrix() 38 assertEquals(expected, points); in testPrepareMatrix() 41 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix() 43 matrix.mapPoints(points); in testPrepareMatrix() 44 assertEquals(expected, points); in testPrepareMatrix() 47 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix() 49 matrix.mapPoints(points); in testPrepareMatrix() 50 assertEquals(expected, points); in testPrepareMatrix() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | Stroke.java | 29 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/LegacyCamera/tests/src/com/android/camera/unittest/ |
D | CameraTest.java | 75 float[] points; in testPrepareMatrix() local 79 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix() 81 matrix.mapPoints(points); in testPrepareMatrix() 82 assertEquals(expected, points); in testPrepareMatrix() 85 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix() 87 matrix.mapPoints(points); in testPrepareMatrix() 88 assertEquals(expected, points); in testPrepareMatrix() 91 points = new float[] {-1000, -1000, 0, 0, 1000, 1000, 0, 1000, -750, 250}; in testPrepareMatrix() 93 matrix.mapPoints(points); in testPrepareMatrix() 94 assertEquals(expected, points); in testPrepareMatrix() [all …]
|
/packages/modules/Virtualization/pvmfw/ |
D | platform.dts | 104 operating-points-v2 = <&opp_table0>; 106 compatible = "operating-points-v2"; 116 operating-points-v2 = <&opp_table1>; 118 compatible = "operating-points-v2"; 128 operating-points-v2 = <&opp_table2>; 130 compatible = "operating-points-v2"; 140 operating-points-v2 = <&opp_table3>; 142 compatible = "operating-points-v2"; 152 operating-points-v2 = <&opp_table4>; 154 compatible = "operating-points-v2"; [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | ChartDataUsagePreferenceTest.java | 91 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() local 93 assertThat(points.valueAt(1)).isNotEqualTo(-1); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() 111 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() local 113 assertThat(points.keyAt(1)).isEqualTo(points.keyAt(2) - 1); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() 114 assertThat(points.valueAt(1)).isEqualTo(-1); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() 183 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_shouldNotDrawPointForFutureDate() local 186 assertThat(points.size()).isEqualTo(7); in calcPoints_shouldNotDrawPointForFutureDate() 187 assertThat(points.keyAt(0)).isEqualTo(-1); in calcPoints_shouldNotDrawPointForFutureDate() 188 assertThat(points.keyAt(1)).isEqualTo(0); in calcPoints_shouldNotDrawPointForFutureDate() 189 assertThat(points.keyAt(2)).isEqualTo(TimeUnit.DAYS.toMinutes(1)); in calcPoints_shouldNotDrawPointForFutureDate() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | InvertedChartAxis.java | 61 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()
|
D | UsageGraph.java | 139 public void addPath(SparseIntArray points) { in addPath() argument 140 addPathAndUpdate(points, mPaths, mLocalPaths); in addPath() 143 public void addProjectedPath(SparseIntArray points) { in addProjectedPath() argument 144 addPathAndUpdate(points, mProjectedPaths, mLocalProjectedPaths); in addProjectedPath() 148 SparseIntArray points, SparseIntArray paths, SparseIntArray localPaths) { in addPathAndUpdate() argument 150 for (int i = 0, size = points.size(); i < size; i++) { in addPathAndUpdate() 151 paths.put(points.keyAt(i), points.valueAt(i)); in addPathAndUpdate() 154 paths.put(points.keyAt(points.size() - 1) + 1, PATH_DELIM); in addPathAndUpdate()
|
D | UsageView.java | 105 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/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | FloatingWidgetView.java | 315 float[] points = new float[]{0, 0, descendant.getWidth(), descendant.getHeight()}; in getRelativePosition() local 316 Utilities.getDescendantCoordRelativeToAncestor(descendant, ancestor, points, in getRelativePosition() 319 Math.min(points[0], points[2]), in getRelativePosition() 320 Math.min(points[1], points[3]), in getRelativePosition() 321 Math.max(points[0], points[2]), in getRelativePosition() 322 Math.max(points[1], points[3])); in getRelativePosition()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Utilities.java | 255 float[] points = recycle == null ? new float[4] : recycle; in getBoundsForViewInDragLayer() local 256 points[0] = viewBounds.left; in getBoundsForViewInDragLayer() 257 points[1] = viewBounds.top; in getBoundsForViewInDragLayer() 258 points[2] = viewBounds.right; in getBoundsForViewInDragLayer() 259 points[3] = viewBounds.bottom; in getBoundsForViewInDragLayer() 261 Utilities.getDescendantCoordRelativeToAncestor(view, dragLayer, points, in getBoundsForViewInDragLayer() 264 Math.min(points[0], points[2]), in getBoundsForViewInDragLayer() 265 Math.min(points[1], points[3]), in getBoundsForViewInDragLayer() 266 Math.max(points[0], points[2]), in getBoundsForViewInDragLayer() 267 Math.max(points[1], points[3])); in getBoundsForViewInDragLayer() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocationClustering.java | 87 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/Settings/src/com/android/settings/datausage/ |
D | ChartDataUsagePreference.java | 100 final SparseIntArray points = new SparseIntArray(); in calcPoints() local 101 points.put(0, 0); in calcPoints() 115 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); in calcPoints() 116 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); in calcPoints() 118 if (points.size() > 1) { in calcPoints() 119 chart.addPath(points); in calcPoints()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | UtilitiesTest.kt | 80 val points = floatArrayOf(1f, 2f, 3f, 4f) in testOffsetPoints() constant 81 Utilities.offsetPoints(points, 5f, 6f) in testOffsetPoints() 84 assertEquals(expected, points.toList()) in testOffsetPoints()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | GestureBot.java | 66 Point[] points = new Point[LONGPRESS_STEPS + TRAVELING_STEPS]; in gestureSelectFiles() local 70 points[i] = new Point(startCoord.centerX(), startCoord.centerY()); in gestureSelectFiles() 77 points[i + LONGPRESS_STEPS] = new Point(newX, newY); in gestureSelectFiles() 79 mDevice.swipe(points, STEPS_INBETWEEN_POINTS); in gestureSelectFiles()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/state/ |
D | StateReadyForCapture.java | 364 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/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/ |
D | README.md | 10 2. Country code from Wi-Fi access points which support 80211.d (have one or more 11 wifi access points in the environment)
|
/packages/modules/Connectivity/netd/ |
D | libnetd_updatable.map.txt | 17 # This lists the entry points visible to applications that use the libnetd_updatable 18 # library. Other entry points present in the library won't be usable.
|
/packages/modules/Connectivity/DnsResolver/ |
D | libcom.android.tethering.dns_helper.map.txt | 17 # This lists the entry points visible to applications that use the 18 # libcom.android.tethering.dns_helper library. Other entry points present in
|
/packages/modules/DnsResolver/ |
D | libnetd_resolv.map.txt | 17 # 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/modules/Wifi/service/proto/src/ |
D | scorecard.proto | 31 // 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/modules/NeuralNetworks/runtime/ |
D | libneuralnetworks.map.txt | 17 # 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/Camera2/src/com/android/camera/ |
D | CaptureModule.java | 940 float points[] = new float[2]; 941 points[0] = (viewX - mPreviewArea.left) / mPreviewArea.width(); 942 points[1] = (viewY - mPreviewArea.top) / mPreviewArea.height(); 947 rotationMatrix.mapPoints(points); 951 points[0] = 1 - points[0]; 954 mCamera.triggerFocusAndMeterAtPoint(points[0], points[1]);
|
/packages/modules/Bluetooth/service/ |
D | proguard.flags | 3 # entry points and then let proguard strip out any unused code within
|