/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 90 public static float dist(float x1, float y1, float x2, float y2) { argument 92 final float y = (y2 - y1); 96 public static float dist(float x1, float y1, float z1, float x2, float y2, float z2) { argument 98 final float y = (y2 - y1);
|
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 757 private void drawLine(Canvas graphics, int x1, int y1, int x2, int y2, Paint paint) { argument 760 graphics.drawLine(dx + x1, dy + y1, dx + x2, dy + y2, paint); 763 private static void drawRect(Canvas canvas, int x1, int y1, int x2, int y2, Paint paint) { argument 764 canvas.drawRect(x1, y1, x2 - 1, y2 - 1, paint); 987 int y1 = vLocations[rowSpan.min]; 993 int cellHeight = y2 - y1; 1036 int cy = paddingTop + y1 + dy;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 119 static void quadTo__FFFF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2) { argument 121 SkScalar y1_ = SkFloatToScalar(y1); 135 static void cubicTo__FFFFFF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) { argument 137 SkScalar y1_ = SkFloatToScalar(y1); 145 static void rCubicTo(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) { argument 147 SkScalar y1_ = SkFloatToScalar(y1);
|
H A D | Shader.cpp | 111 float x0, float y0, float x1, float y1, 116 pts[1].set(SkFloatToScalar(x1), SkFloatToScalar(y1)); 144 float x0, float y0, float x1, float y1, jintArray colorArray, 152 storedBounds[2] = x1; storedBounds[3] = y1; 186 float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) { 190 storedBounds[2] = x1; storedBounds[3] = y1; 211 float x0, float y0, float x1, float y1, 216 pts[1].set(SkFloatToScalar(x1), SkFloatToScalar(y1)); 110 LinearGradient_create1(JNIEnv* env, jobject o, float x0, float y0, float x1, float y1, jintArray colorArray, jfloatArray posArray, int tileMode) argument 143 LinearGradient_postCreate1(JNIEnv* env, jobject o, SkShader* shader, float x0, float y0, float x1, float y1, jintArray colorArray, jfloatArray posArray, int tileMode) argument 185 LinearGradient_postCreate2(JNIEnv* env, jobject o, SkShader* shader, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument 210 LinearGradient_create2(JNIEnv* env, jobject o, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 260 float y1 = y0; local 279 else if (y > y1) { 280 y1 = y; 298 float dy = y1 - y0; 315 static inline float dot3(float x0, float y0, float z0, float x1, float y1, float z1) { argument 316 return x0 * x1 + y0 * y1 + z0 * z1;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | LinearGradient.java | 24 @param y1 The y-coordinate for the end of the gradient line 31 public LinearGradient(float x0, float y0, float x1, float y1, argument 39 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); 40 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions, 48 @param y1 The y-coordinate for the end of the gradient line 53 public LinearGradient(float x0, float y0, float x1, float y1, argument 55 native_instance = nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt); 56 native_shader = nativePostCreate2(native_instance, x0, y0, x1, y1, color0, color1, 60 private native int nativeCreate1(float x0, float y0, float x1, float y1, argument 62 private native int nativeCreate2(float x0, float y0, float x1, float y1, argument 64 nativePostCreate1(int native_shader, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument 66 nativePostCreate2(int native_shader, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument [all...] |
H A D | Path.java | 263 * (x1,y1), and ending at (x2,y2). If no moveTo() call has been made for 267 * @param y1 The y-coordinate of the control point on a quadratic curve 271 public void quadTo(float x1, float y1, float x2, float y2) { argument 273 native_quadTo(mNativePath, x1, y1, x2, y2); 297 * (x1,y1) and (x2,y2), and ending at (x3,y3). If no moveTo() call has been 301 * @param y1 The y-coordinate of the 1st control point on a cubic curve 307 public void cubicTo(float x1, float y1, float x2, float y2, argument 310 native_cubicTo(mNativePath, x1, y1, x2, y2, x3, y3); 318 public void rCubicTo(float x1, float y1, float x2, float y2, argument 321 native_rCubicTo(mNativePath, x1, y1, x 624 native_quadTo(int nPath, float x1, float y1, float x2, float y2) argument 628 native_cubicTo(int nPath, float x1, float y1, float x2, float y2, float x3, float y3) argument 630 native_rCubicTo(int nPath, float x1, float y1, float x2, float y2, float x3, float y3) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 614 void FontRenderer::appendMeshQuad(float x1, float y1, float z1, float u1, float v1, float x2, argument 618 (x1 > mClip->right || y1 < mClip->top || x2 < mClip->left || y4 > mClip->bottom)) { 627 (*currentPos++) = y1; 656 mBounds->bottom = fmax(mBounds->bottom, y1);
|
H A D | Patch.cpp | 154 float y1 = 0.0f; local 163 y2 = y1 + floorf(segment * stretchY + 0.5f); 165 y2 = y1 + segment; 168 float vOffset = y1 == y2 ? 0.0f : 0.5 - (0.5 * segment / (y2 - y1)); 174 y1 += i * EXPLODE_GAP; 177 generateRow(vertex, y1, y2, v1, v2, stretchX, right - left, 184 y1 = y2; 193 y1 += mYCount * EXPLODE_GAP; 196 generateRow(vertex, y1, y 214 generateRow(TextureVertex*& vertex, float y1, float y2, float v1, float v2, float stretchX, float width, float bitmapWidth, uint32_t& quadCount) argument 264 generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2, float u1, float v1, float u2, float v2, uint32_t& quadCount) argument [all...] |
/frameworks/base/libs/rs/driver/ |
H A D | rsdRuntimeStubs.cpp | 177 static void SC_DrawQuadTexCoords(float x1, float y1, float z1, float u1, float v1, argument 183 x1, y1, z1, u1, v1, 189 static void SC_DrawQuad(float x1, float y1, float z1, argument 194 rsrDrawQuad(rsc, sc, x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4); 202 static void SC_DrawRect(float x1, float y1, float x2, float y2, float z) { argument 204 rsrDrawRect(rsc, sc, x1, y1, x2, y2, z);
|
/frameworks/base/libs/rs/ |
H A D | rsFont.cpp | 645 void FontState::appendMeshQuad(float x1, float y1, float z1, argument 661 if (x1 > width || y1 < 0.0f || x2 < 0 || y4 > height) { 665 /*LOGE("V0 x: %f y: %f z: %f", x1, y1, z1); 671 (*currentPos++) = y1;
|
H A D | rsScriptC_LibGL.cpp | 132 float x1, float y1, float z1, float u1, float v1, 146 //LOGE("%4.2f, %4.2f, %4.2f", x1, y1, z1); 151 float vtx[] = {x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4}; 165 float x1, float y1, float z1, 169 rsrDrawQuadTexCoords(rsc, sc, x1, y1, z1, 0, 1, 193 void rsrDrawRect(Context *rsc, Script *sc, float x1, float y1, float x2, float y2, float z) { argument 194 //LOGE("SC_drawRect %f,%f %f,%f %f", x1, y1, x2, y2, z); 195 rsrDrawQuad(rsc, sc, x1, y2, z, x2, y2, z, x2, y1, z, x1, y1, z); 131 rsrDrawQuadTexCoords(Context *rsc, Script *sc, float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float x4, float y4, float z4, float u4, float v4) argument 164 rsrDrawQuad(Context *rsc, Script *sc, float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) argument
|
/frameworks/base/media/libeffects/testlibs/ |
H A D | AudioBiquadFilter.cpp | 156 audio_sample_t y1 = mDelays[0][2]; local 169 acc = mac_coef_sample(a1, y1, acc); 172 y2 = y1; 173 y1 = y0; 180 mDelays[0][2] = y1; 214 audio_sample_t y1 = mDelays[ch][2]; local 222 acc = mac_coef_sample(a1, y1, acc); 225 y2 = y1; 226 y1 = y0; 235 mDelays[ch][2] = y1; [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | calc_en.cpp | 407 y1 = Adaptive codebook, buffer type Word16 409 g_coeff = Correlations <xn y1> <y1 y1> 442 coeff[0] = y1 y1 443 coeff[1] = -2 xn y1 446 coeff[4] = 2 y1 y2 450 Product <y1 y1> an 592 calc_filt_energies( enum Mode mode, Word16 xn[], Word16 xn2[], Word16 y1[], Word16 Y2[], Word16 g_coeff[], Word16 frac_coeff[], Word16 exp_coeff[], Word16 *cod_gain_frac, Word16 *cod_gain_exp, Flag *pOverflow ) argument [all...] |
H A D | cod_amr.cpp | 831 Word16 y1[L_SUBFR]; // Filtered adaptive excitation 833 Word16 gCoeff[6]; // Correlations between xn, y1, & y2: 1077 &st->exc[i_subfr], res2, xn, lsp_flag, xn2, y1, 1103 xn, xn2, y1, y2, gCoeff, evenSubfr, gp_limit, 1114 gain_code, Aq, synth, xn, code, y1, y2, st->mem_syn, 1130 gain_code, Aq, synth, xn, code, y1, y2, 1145 Convolve(&st->exc[i_subfr_sf0], h1_sf0, y1, L_SUBFR); 1150 synth, xn_sf0, code_sf0, y1, y2_sf0, 1165 Convolve(&st->exc[i_subfr], st->h1, y1, L_SUBFR); 1168 gain_code, Aq, synth, xn, code, y1, y 1234 Word16 y1[L_SUBFR]; /* Filtered adaptive excitation */ local [all...] |
H A D | g_pitch.cpp | 117 y1 = pointer to filtered adaptive codebook buffer (Word16) 166 Word16 y1[], // i : Filtered adaptive codebook. 177 // divide "y1[]" by 4 to avoid overflow 184 scaled_y1[i] = shr (y1[i], 2); 187 // Compute scalar product <y1[],y1[]> 194 s = L_mac (s, y1[i], y1[i]); 213 // Compute scalar product <xn[],y1[]> 220 s = L_mac(s, xn[i], y1[ 298 G_pitch( enum Mode mode, Word16 xn[], Word16 y1[], Word16 g_coeff[], Word16 L_subfr, Flag *pOverflow ) argument [all...] |
H A D | gain_q.cpp | 392 y1 -- Word16 array -- Adaptive codebook. 394 g_coeff -- Word16 array -- Correlations <xn y1> <y1 y1> 476 Word16 y1[], /* i : Adaptive codebook. */ 478 Word16 g_coeff[], /* i : Correlations <xn y1> <y1 y1> */ 541 y1, 600 y1, 467 gainQuant( gainQuantState *st, enum Mode mode, Word16 res[], Word16 exc[], Word16 code[], Word16 xn[], Word16 xn2[], Word16 y1[], Word16 Y2[], Word16 g_coeff[], Word16 even_subframe, Word16 gp_limit, Word16 *sf0_gain_pit, Word16 *sf0_gain_cod, Word16 *gain_pit, Word16 *gain_cod, Word16 **anap, Flag *pOverflow ) argument [all...] |
H A D | spstproc.cpp | 110 y1 -- Word16 Array -- Filtered adaptive exitation 182 Word16 y1[], /* i : Filtered adaptive exitation */ 289 * y1 Q0 Q0 304 L_temp = ((Word32)y1[i] * gain_pit); 172 subframePostProc( Word16 *speech, enum Mode mode, Word16 i_subfr, Word16 gain_pit, Word16 gain_code, Word16 *Aq, Word16 synth[], Word16 xn[], Word16 code[], Word16 y1[], Word16 y2[], Word16 *mem_syn, Word16 *mem_err, Word16 *mem_w0, Word16 *exc, Word16 *sharp, Flag *pOverflow ) argument
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
H A D | g_pitch.c | 31 Word16 y1[], /* (i) : filtered adaptive codebook. */ 38 /* Compute scalar product <y1[],y1[]> */ 40 /* Compute scalar product <xn[],y1[]> */ 41 xy = extract_h(Dot_product12_asm(xn, y1, L_subfr, &exp_xy)); 42 yy = extract_h(Dot_product12_asm(y1, y1, L_subfr, &exp_yy)); 45 /* Compute scalar product <xn[],y1[]> */ 46 xy = extract_h(Dot_product12(xn, y1, L_subfr, &exp_xy)); 47 yy = extract_h(Dot_product12(y1, y 29 G_pitch( Word16 xn[], Word16 y1[], Word16 g_coeff[], Word16 L_subfr ) argument [all...] |
H A D | q_gain2.c | 64 Word16 y1[], /* (i) Q_xn: Adaptive codebook. */ 65 Word16 Q_xn, /* (i) : xn and y1 format */ 68 Word16 g_coeff[], /* (i) : Correlations <xn y1> <y1 y1> */ 130 * coeff[0] = y1 y1 * 131 * coeff[1] = -2 xn y1 * 134 * coeff[4] = 2 y1 y2 * 136 * Product <y1 y 62 Q_gain2( Word16 xn[], Word16 y1[], Word16 Q_xn, Word16 y2[], Word16 code[], Word16 g_coeff[], Word16 L_subfr, Word16 nbits, Word16 * gain_pit, Word32 * gain_cod, Word16 gp_clip, Word16 * mem ) argument [all...] |
H A D | voAMRWBEnc.c | 191 Word16 y1[L_SUBFR]; /* Filtered adaptive excitation */ local 952 * - find filtered pitch exc. y1[]=exc[] convolved with h1[]) * 964 Convolve_asm(&exc[i_subfr], h1, y1, L_SUBFR); 966 Convolve(&exc[i_subfr], h1, y1, L_SUBFR); 968 gain1 = G_pitch(xn, y1, g_coeff, L_SUBFR); 975 Updt_tar(xn, dn, y1, gain1, L_SUBFR); /* dn used temporary */ 1048 Copy(y2, y1, L_SUBFR); 1166 index = Q_gain2(xn, y1, Q_new + shift, y2, code, g_coeff, L_SUBFR, 6, 1171 index = Q_gain2(xn, y1, Q_new + shift, y2, code, g_coeff, L_SUBFR, 7, 1208 L_tmp -= (y1[L_SUBF [all...] |
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | conceal.cpp | 142 uint8 *y1, *y2, *u1, *u2, *v1, *v2; local 154 y1 = curr->yChan + lumstart; 162 oscl_memcpy(y1, y2, MB_SIZE); 163 y1 += width_Y; 165 oscl_memcpy(y1, y2, MB_SIZE); 166 y1 += width_Y; 168 oscl_memcpy(y1, y2, MB_SIZE); 169 y1 += width_Y; 171 oscl_memcpy(y1, y2, MB_SIZE); 172 y1 [all...] |
H A D | get_pred_adv_b_add.cpp | 867 uint32 x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ local 897 y1 = *((uint32*)(prev += 4)); /* a7 a6 a5 a4 */ 908 y1m = (y1 >> 2) & mask; /* zero out last 2 bits */ 910 y1 = y1 ^(y1m << 2); 913 y1 += y2; 927 /* now operate on x1m, x1, y1m, y1, x2m, x2 */ 931 /* x1, y1, x2 */ 936 y2 |= (y1 << 24); 945 y2 = y1 >> [all...] |
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | motion_comp.cpp | 1126 ULong x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ local 1153 y1 = *((ULong*)(prev += 4)); /* a7 a6 a5 a4 */ 1164 y1m = (y1 >> 2) & mask; /* zero out last 2 bits */ 1166 y1 = y1 ^(y1m << 2); 1169 y1 += y2; 1183 /* now operate on x1m, x1, y1m, y1, x2m, x2 */ 1187 /* x1, y1, x2 */ 1192 y2 |= (y1 << 24); 1201 y2 = y1 >> [all...] |
/frameworks/base/media/libstagefright/colorconversion/ |
H A D | ColorConverter.cpp | 155 signed y1 = (signed)src_ptr[2 * x + 1] - 16; local 165 signed tmp1 = y1 * 298; 238 signed y1 = (signed)src_y[x] - 16; local 249 signed tmp1 = y1 * 298; 312 signed y1 = (signed)src_y[x] - 16; local 323 signed tmp1 = y1 * 298; 383 signed y1 = (signed)src_y[x] - 16; local 394 signed tmp1 = y1 * 298; 450 signed y1 = (signed)src_y[x] - 16; local 461 signed tmp1 = y1 * 29 [all...] |