Searched refs:x1 (Results 1 - 25 of 69) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/util/
H A DDebugBoundsRenderer.java48 public static void drawBounds(Canvas canvas, Paint paint, float size, float x1, float y1, argument
52 canvas.drawLine(x1, y1, x1 + size, y1, paint);
54 canvas.drawLine(x1, y1, x1, y1 + size, paint);
70 canvas.drawLine(x1, y2, x1 + size, y2, paint);
72 canvas.drawLine(x1, y2 - size, x1, y2, paint);
75 float cX = (x1
[all...]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_image_homography.h37 \param x1 image 1 point 1
47 double x1[3],double x2[3],double x3[3],double x4[3],
54 \param x1 image 1 point 1
62 double x1[3],double x2[3],double x3[3],
69 \param x1 image 1 point 1
77 double x1[3],double x2[3],
84 x[0]=x1;
96 is required, although it could be desirable to keep x1,x2,xp1 and xp2 of reasonable magnitude.
100 DB_API int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],
74 db_StitchCameraRotation_2Points(double R[9], double x1[3],double x2[3], double xp1[3],double xp2[3]) argument
H A Ddb_image_homography.cpp80 double x1[3],double x2[3],double x3[3],double x4[3],
86 db_SProjImagePointPointConstraints(c ,c+9 ,xp1,x1);
95 double x1[3],double x2[3],double x3[3],
101 db_SAffineImagePointPointConstraints(c ,c+7 ,xp1,x1);
114 inline void db_CommonFocalLengthFromRotation_2Point(double fsol[3],int *nr_sols,double x1[3],double x2[3],double xp1[3],double xp2[3],int signed_disambiguation=1) argument
129 m=db_SafeReciprocal(x1[2]);
130 ax=x1[0]*m;
131 ay=x1[1]*m;
177 int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],double xp1[3],double xp2[3],double xp3[3],double *f,int signed_disambiguation) argument
186 db_CommonFocalLengthFromRotation_2Point(fsol,&nr_sols,x1,x
79 db_StitchProjective2D_4Points(double H[9], double x1[3],double x2[3],double x3[3],double x4[3], double xp1[3],double xp2[3],double xp3[3],double xp4[3]) argument
94 db_StitchAffine2D_3Points(double H[9], double x1[3],double x2[3],double x3[3], double xp1[3],double xp2[3],double xp3[3]) argument
[all...]
H A Ddb_metrics.h121 double x0,x1,x2,mult; local
125 x1=H[3]*x[0]+H[4]*x[1]+H[5]*x[2];
128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult));
135 double x0,x1,x2,mult; local
139 x1=H[3]*x[0]+H[4]*x[1]+H[5];
142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult));
174 [x0 x1 1 0 0 0 0 0 0]
175 [ 0 0 0 x0 x1 1 0 0 0]
176 [ 0 0 0 0 0 0 x0 x1 1]
178 [-x0/zh -x1/z
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
70 centX = (x0 + x1 + x2) / 3.0;
76 if (x0 == x1)
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
87 if (x0 == x1)
93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a
96 else if (x1 == x2)
98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3
109 // Calculate the line that goes through x1,y1 and is perpendicular to
112 double b2 = y1 - m2 * x1;
129 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double &centX, double &centY) argument
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
174 if(x0 < xLeftCorners[0] || x1 < xLeftCorners[1]) // If either of the left corners is lower
177 xLeftCorners[1] = x1;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
981 int x1 = (xx >= 0.0) ? (int) xx : (int) floor(xx); local
986 if(inSegment(x1, sptr->width, BORDER-1) &&
989 double xfrac = xx - x1;
992 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac));
996 wt1 * ciCalc(suptr, x1, y
[all...]
/packages/services/Car/tools/emulator/
H A Dvhal_consts_2_0.py20 VEHICLEUNIT_METER_PER_SEC = 0x1
42 VEHICLELIGHTSWITCH_ON = 0x1
47 VMSMESSAGEWITHLAYERINTEGERVALUESINDEX_LAYER_TYPE = 0x1
57 VEHICLEAPPOWERSTATESHUTDOWNPARAM_SHUTDOWN_IMMEDIATELY = 0x1
62 OBD2COMMONIGNITIONMONITORS_COMPONENTS_AVAILABLE = 0x1
71 PORTLOCATIONTYPE_FRONT_LEFT = 0x1
97 VMSSUBSCRIPTIONSSTATEINTEGERVALUESINDEX_SEQUENCE_NUMBER = 0x1
104 VEHICLEAPPOWERSTATEREQ_DEEP_SLEEP = 0x1
111 VEHICLEAPPOWERSTATEREQINDEX_ADDITIONAL = 0x1
115 OBD2IGNITIONMONITORKIND_COMPRESSION = 0x1
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dgeometry_utils.h33 static AK_FORCE_INLINE float getAngle(const int x1, const int y1, const int x2, const int y2) { argument
34 const int dx = x1 - x2;
52 static AK_FORCE_INLINE int getDistanceInt(const int x1, const int y1, const int x2, argument
54 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2)));
H A Dproximity_info_utils.h89 static inline float getSquaredDistanceFloat(const float x1, const float y1, const float x2, argument
91 return GeometryUtils::SQUARE_FLOAT(x1 - x2) + GeometryUtils::SQUARE_FLOAT(y1 - y2);
95 const float x1, const float y1, const float x2, const float y2, const bool extend) {
96 const float ray1x = x - x1;
98 const float ray2x = x2 - x1;
106 return getSquaredDistanceFloat(x, y, x1, y1);
113 projectionX = x1;
119 projectionX = x1 + projectionLengthSqr * ray2x;
94 pointToLineSegSquaredDistanceFloat(const float x, const float y, const float x1, const float y1, const float x2, const float y2, const bool extend) argument
/packages/services/Car/car-lib/src/android/car/diagnostic/
H A DCarDiagnosticEvent.java623 public static final int COMPONENTS_AVAILABLE = 0x1 << 0;
625 public static final int COMPONENTS_INCOMPLETE = 0x1 << 1;
628 public static final int FUEL_SYSTEM_AVAILABLE = 0x1 << 2;
630 public static final int FUEL_SYSTEM_INCOMPLETE = 0x1 << 3;
633 public static final int MISFIRE_AVAILABLE = 0x1 << 4;
635 public static final int MISFIRE_INCOMPLETE = 0x1 << 5;
688 public static final int EGR_AVAILABLE = 0x1 << 6;
690 public static final int EGR_INCOMPLETE = 0x1 << 7;
693 public static final int OXYGEN_SENSOR_HEATER_AVAILABLE = 0x1 << 8;
695 public static final int OXYGEN_SENSOR_HEATER_INCOMPLETE = 0x1 <<
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A Dconvolve3x3.rs29 uint32_t x1 = min((int32_t)x+1, gWidth-1);
34 float4 p00 = rsUnpackColor8888(gPixels[x1 + gWidth * y1]);
37 float4 p10 = rsUnpackColor8888(gPixels[x1 + gWidth * y]);
40 float4 p20 = rsUnpackColor8888(gPixels[x1 + gWidth * y2]);
H A Dgrad.rs57 float x1 = xPos1[i];
62 float denom = (y2 * y2 - 2 * y1 * y2 + x2 * x2 - 2 * x1 * x2 + y1 * y1 + x1 * x1);
67 grads[k].dx = (x1 - x2) / denom;
68 grads[k].off = (y2 * y2 + x2 * x2 - x1 * x2 - y1 * y2) / denom;
H A DSplineMath.java50 double x1 = cur[0];
57 double delta = (x2 - x1);
59 double b = (x - x1) / delta;
91 double x1 = cur[0];
98 double delta = (x2 - x1);
100 double b = (x - x1) / delta;
H A DImageFilterGrad.java122 int[] x1 = mParameters.getXPos1();
131 for (int i = 0; i < x1.length; i++) {
132 coord[0] = x1[i];
135 x1[i] = (int) coord[0];
145 mScript.set_xPos1(x1);
/packages/services/Car/car-lib/src/android/car/app/menu/
H A DCarMenuConstants.java36 public static final int FLAG_BROWSABLE = 0x1;
50 public static final int WIDGET_CHECKBOX = 0x1;
/packages/services/Car/car-lib/src/android/car/drivingstate/
H A DCarUxRestrictions.java85 public static final int UX_RESTRICTIONS_NO_FILTERING = 0x1 << 1;
91 public static final int UX_RESTRICTIONS_LIMIT_STRING_LENGTH = 0x1 << 2;
96 public static final int UX_RESTRICTIONS_NO_KEYBOARD = 0x1 << 3;
101 public static final int UX_RESTRICTIONS_NO_VIDEO = 0x1 << 4;
109 public static final int UX_RESTRICTIONS_LIMIT_CONTENT = 0x1 << 5;
114 public static final int UX_RESTRICTIONS_NO_SETUP = 0x1 << 6;
119 public static final int UX_RESTRICTIONS_NO_TEXT_MESSAGE = 0x1 << 7;
124 public static final int UX_RESTRICTIONS_NO_VOICE_TRANSCRIPTION = 0x1 << 8;
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
H A DWallpaperColorsCompat.java23 public static final int HINT_SUPPORTS_DARK_TEXT = 0x1;
/packages/apps/DevCamera/src/com/android/devcamera/
H A DPreviewOverlay.java175 float x1 = (0.92f * mLens + 0.04f) * previewW;
178 canvas.drawCircle(x1, y1, 20, mPaint2);
180 canvas.drawCircle(x1, y1, 18, mPaint2);
235 float x1, x2, y1, y2;
254 x1 = 0;
257 canvas.drawLine(x1, y1, x2, y2, mPaint);
262 x1 = x2 = previewW / 2 + focalLengthW * (float) Math.tan(i);
265 canvas.drawLine(x1, y1, x2, y2, mPaint);
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
H A Derror_type_utils.cpp22 const ErrorTypeUtils::ErrorType ErrorTypeUtils::MATCH_WITH_WRONG_CASE = 0x1;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DBogusMoveEventDetector.java107 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument
108 return (int)Math.hypot(x1 - x2, y1 - y2);
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
H A DCarHvacManagerTest.java130 assertFalse(property.hasArea(0x1 << i));
131 assertNull(property.getMinValue(0x1 << i));
132 assertNull(property.getMaxValue(0x1 << i));
155 assertFalse(property.hasArea(0x1 << i));
156 assertNull(property.getMinValue(0x1 << i));
157 assertNull(property.getMaxValue(0x1 << i));
H A DCarCabinManagerTest.java133 assertFalse(property.hasArea(0x1 << i));
134 assertNull(property.getMinValue(0x1 << i));
135 assertNull(property.getMaxValue(0x1 << i));
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
H A Dbiginteger.h263 uint64_t x0 = a0 * b0, x1 = a0 * b1, x2 = a1 * b0, x3 = a1 * b1;
264 x1 += (x0 >> 32); // can't give carry
265 x1 += x2;
266 if (x1 < x2)
268 uint64_t lo = (x1 << 32) + (x0 & 0xFFFFFFFF);
269 uint64_t hi = x3 + (x1 >> 32);
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java83 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
85 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument
87 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
89 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
/packages/apps/Messaging/src/com/android/messaging/util/
H A DCubicBezierInterpolator.java31 public CubicBezierInterpolator(final float x1, final float y1, final float x2, final float y2) { argument
32 mX1 = x1;

Completed in 1020 milliseconds

123