/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
H A D | Point.java | 52 public Point plus(Point point) { argument 53 return this.plus(point.x, point.y); 60 public Point minus(Point point) { argument 61 return this.minus(point.x, point.y);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | AccelerationClassifier.java | 53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1); 55 mStrokeMap.put(stroke, new Data(point)); 57 mStrokeMap.get(stroke).addPoint(point); 76 public Data(Point point) { argument 77 previousPoint = point; 82 public void addPoint(Point point) { argument 83 float distance = previousPoint.dist(point); 84 float duration = (float) (point.timeOffsetNano - previousPoint.timeOffsetNano + 1); 96 previousPoint = point;
|
H A D | AnglesClassifier.java | 28 * ignores the repetitions. If a new point is added, the classifier calculates the angle between 117 public void addPoint(Point point) { argument 118 // Checking if the added point is different than the previously added point 121 || !mLastThreePoints.get(mLastThreePoints.size() - 1).equals(point)) { 123 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point); 125 mLastThreePoints.add(point);
|
H A D | SpeedAnglesClassifier.java | 26 * A classifier which for each point from a stroke, it creates a point on plane with coordinates 30 * the last point of a stroke because the UP event comes in with some delay and this ruins the 103 public void addPoint(Point point) { argument 105 mDist += mPreviousPoint.dist(point); 108 mPreviousPoint = point; 109 Point speedPoint = new Point((float) point.timeOffsetNano / DURATION_SCALE, 112 // Checking if the added point is different than the previously added point
|
/frameworks/support/v13/java/android/support/v13/view/ |
H A D | DragStartHelper.java | 154 * @param point The position of the touch event that started the drag operation. 156 public void getTouchPosition(Point point) { argument 157 point.set(mLastTouchX, mLastTouchY);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | StreamDescriptor.cpp | 77 const VolumeCurvePoint *point) 79 mVolumeCurve[deviceCategory] = point; 127 const VolumeCurvePoint *point) 129 editValueAt(stream).setVolumeCurvePoint(deviceCategory, point); 76 setVolumeCurvePoint(device_category deviceCategory, const VolumeCurvePoint *point) argument 125 setVolumeCurvePoint(audio_stream_type_t stream, device_category deviceCategory, const VolumeCurvePoint *point) argument
|
H A D | Serializer.cpp | 514 const char *const VolumeTraits::volumePointTag = "point"; 565 Vector<int32_t> point; local 566 collectionFromString<DefaultTraits<int32_t> >((const char*)pointDefinition, point, ","); 567 if (point.size() != 2) { 572 element->add(CurvePoint(point[0], point[1]));
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | geometry.cpp | 131 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | geometry.cpp | 130 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
|
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MainActivity.java | 216 void getScreenCoord(float[] point) { argument
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | VolumeCurve.h | 59 void add(const CurvePoint &point) { mCurvePoints.add(point); } argument
|
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 54 * Sets the position of the mid-point between the eyes. 55 * @param point the PointF coordinates (float values) of the 56 * face's mid-point 58 public void getMidPoint(PointF point) { argument 60 point.set(mMidPointX, mMidPointY);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | CachedPathIteratorFactory.java | 58 int nPoints = getNumberOfPoints(type) * 2; // 2 coordinates per point 129 // Calculate X and Y at 0.5 (We'll use this to reconstruct the control point later) 146 // estimated control point at t'=0.5 183 * Returns the end point of a given segment 187 * @param point the return array where the point will be stored 190 point) { 191 // start index of the end point for the segment type 193 point[0] = coords[pointIndex]; 194 point[ 189 getShapeEndPoint(int type, @NonNull float[] coords, @NonNull float[] point) argument 247 getPointAtLength(int type, @NonNull float[] coords, float lastX, float lastY, float t, @NonNull float[] point) argument 391 getCurrentSegmentEnd(float[] point) argument [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | CompatibilityInfo.java | 379 public void translatePointInScreenToAppWindow(PointF point) { argument 382 point.x *= scale; 383 point.y *= scale;
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 46 /** Upper/left minimal point of a normalized rectangle */ 48 /** Lower/right maximal point of a normalized rectangle */ 943 Rect activeArray, ZoomData zoomData, Point point, boolean usePreviewCrop) { 944 Rect pointedRect = new Rect(point.x, point.y, point.x, point.y); 978 // Move the rect so that the [-1000,-1000] point ends up at the preview [left, top] 942 convertCameraPointToActiveArrayPoint( Rect activeArray, ZoomData zoomData, Point point, boolean usePreviewCrop) argument
|
/frameworks/base/core/java/android/view/ |
H A D | AccessibilityInteractionController.java | 732 private void applyAppScaleAndMagnificationSpecIfNeeded(Point point, argument 740 point.x *= applicationScale; 741 point.y *= applicationScale; 745 point.x *= spec.scale; 746 point.y *= spec.scale; 747 point.x += (int) spec.offsetX; 748 point.y += (int) spec.offsetY;
|
/frameworks/base/libs/hwui/ |
H A D | TessellationCache.cpp | 189 static void mapPointFakeZ(Vector3& point, const mat4* transformXY, const mat4* transformZ) { argument 191 point.z = transformZ->mapZ(point); 194 transformXY->mapPoint(point.x, point.y);
|
H A D | PathTessellator.cpp | 23 ALOGD("point %d at %f %f, alpha %f", \ 28 ALOGD("point %d at %f %f", i, buffer[i].x, buffer[i].y); \ 165 * Outset the bounds of point data (for line endpoints or points) to account for stroke 202 * Fills a vertexBuffer with non-alpha vertices, zig-zagging at each perimeter point to create a 339 * 1 - create the AA perimeter of unit width, by zig-zagging at each point around the perimeter of 351 // generate alpha points - fill Alpha vertex gaps in between each point with 363 // AA point offset from original point is that point's normal, such that each side is offset 385 // triangle strip that fills the hull, repeating the first inner point t 431 const Vertex& point = isFirst ? vertices.front() : vertices.back(); local 910 addPoint(const SkPoint& point) argument [all...] |
H A D | SpotShadow.cpp | 102 static float angle(const Vector2& point, const Vector2& center) { argument 103 return atan2(point.y - center.y, point.x - center.x); 114 * @param p1 The first point defining the line segment 115 * @param p2 The second point defining the line segment 121 // intersection point should stay on both the ray and the edge of (p1, p2). 178 // Remove the middle point of the three last 199 // Remove the middle point of the three last 232 * Sort points about a center point 278 * Test whether a point i [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 269 const SkPoint& point) { 274 segmentPoints.push_back(point); 320 // Subdivide a section of the Bezier curve, set the mid-point and the mid-t value. 337 // errorSquared as a metric. Cubic Bezier curves can have an inflection point that improperly 340 // the point. It is clearly not the case that we can linearly interpolate at that point. 368 // Found an inflection point. No need to double-check. 412 // Returns a float[] with each point along the path represented by 3 floats 413 // * fractional length along the path that the point resides 416 // Note that more than one point ma 268 addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, const SkPoint& point) argument 459 const SkPoint& point = segmentPoints[i]; local [all...] |
H A D | Graphics.cpp | 263 SkIPoint* GraphicsJNI::jpoint_to_ipoint(JNIEnv* env, jobject obj, SkIPoint* point) argument 267 point->set(env->GetIntField(obj, gPoint_xFieldID), 269 return point; 280 SkPoint* GraphicsJNI::jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) argument 284 point->set(env->GetIntField(obj, gPointF_xFieldID), 286 return point;
|
/frameworks/native/opengl/tests/angeles/ |
H A D | demo.c | 177 static void superShapeMap(VECTOR3 *point, float r1, float r2, float t, float p) argument 180 point->x = (float)(cos(t) * cos(p) / r1 / r2); 181 point->y = (float)(sin(t) * cos(p) / r1 / r2); 182 point->z = (float)(sin(p) / r2);
|
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 520 // Adjust the point at which to start rendering depending on the 1424 public void getCursorPath(int point, Path dest, argument 1428 int line = getLineForOffset(point); 1433 float h1 = getPrimaryHorizontal(point, clamped) - 0.5f; 1434 float h2 = isLevelBoundary(point) ? getSecondaryHorizontal(point, clamped) - 0.5f : h1;
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | MultiSelectManager.java | 390 * Sets the end point for the current range selection, started by a call to 1482 * Start a band select operation at the given point. 1485 * would have a relative origin of (0, 0), even though its absolute point has a higher 1509 * absolute point has a higher y-value. 1802 * view as it relates to band selection rather than an explicit point. For example, two 1804 * selection originating within the item would select the same items no matter which point 1923 * The location of a point relative to the Limits of nearby items; consists of both an x- and 1930 RelativePoint(Point point) { argument 1931 this.xLocation = new RelativeCoordinate(mColumnBounds, point.x); 1932 this.yLocation = new RelativeCoordinate(mRowBounds, point [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Layer.cpp | 179 for (auto& point : mRemoteSyncPoints) { 180 point->setTransactionApplied(); 182 for (auto& point : mLocalSyncPoints) { 183 point->setFrameAvailable(); 406 // a viewport clipping and a window transform. we should use floating point to fix this. 1107 bool Layer::addSyncPoint(const std::shared_ptr<SyncPoint>& point) { argument 1108 if (point->getFrameNumber() <= mCurrentFrameNumber) { 1115 mLocalSyncPoints.push_back(point); 1151 static void boundPoint(vec2* point, const Rect& crop) { argument 1152 if (point 2034 auto point = mLocalSyncPoints.begin(); local [all...] |