Home
last modified time | relevance | path

Searched refs:alpha (Results 1 – 25 of 120) sorted by relevance

12345

/frameworks/base/core/java/android/view/
DWindowOrientationListener.java332 private float lowpassFilter(float newValue, float oldValue, float alpha) { in lowpassFilter() argument
333 return alpha * newValue + (1 - alpha) * oldValue; in lowpassFilter()
363 float alpha = 1; in onSensorChanged() local
365 alpha = ACCELERATING_LOWPASS_ALPHA; in onSensorChanged()
368 mTiltAngle = lowpassFilter(newTiltAngle, mTiltAngle, alpha); in onSensorChanged()
451 float alpha = DEFAULT_LOWPASS_ALPHA; in filterOrientation() local
454 alpha = ACCELERATING_LOWPASS_ALPHA; in filterOrientation()
457 alpha = TILTED_LOWPASS_ALPHA; in filterOrientation()
468 mOrientationAngle = lowpassFilter(orientationAngle, mOrientationAngle, alpha); in filterOrientation()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPorterDuffXfermode_Delegate.java55 public Composite getComposite(int alpha) { in getComposite() argument
56 return getComposite(getPorterDuffMode(mMode), alpha); in getComposite()
83 public static Composite getComposite(PorterDuff.Mode mode, int alpha) { in getComposite() argument
84 float falpha = alpha != 0xFF ? (float)alpha / 255.f : 1.f; in getComposite()
/frameworks/base/services/surfaceflinger/
DLayerDim.cpp65 if (s.alpha>0 && (it != end)) { in onDraw()
67 const GLfloat alpha = s.alpha/255.0f; in onDraw() local
72 glColor4f(0, 0, 0, alpha); in onDraw()
DLayerBase.cpp97 mCurrentState.alpha = 0xFF; in initStates()
150 bool LayerBase::setAlpha(uint8_t alpha) { in setAlpha() argument
151 if (mCurrentState.alpha == alpha) in setAlpha()
154 mCurrentState.alpha = alpha; in setAlpha()
320 GLclampf alpha) const in clearWithOpenGL()
324 glColor4f(red,green,blue,alpha); in clearWithOpenGL()
368 if (UNLIKELY(s.alpha < 0xFF)) { in drawWithOpenGL()
369 const GLfloat alpha = s.alpha * (1.0f/255.0f); in drawWithOpenGL() local
371 glColor4f(alpha, alpha, alpha, alpha); in drawWithOpenGL()
373 glColor4f(1, 1, 1, alpha); in drawWithOpenGL()
[all …]
DLayerBlur.cpp210 if (UNLIKELY(s.alpha < 0xFF)) { in onDraw()
211 const GLfloat alpha = s.alpha * (1.0f/255.0f); in onDraw() local
212 glColor4f(0, 0, 0, alpha); in onDraw()
/frameworks/base/core/java/android/appwidget/
DAppWidgetHostView.java280 int alpha; in drawChild() local
284 alpha = (int)(((drawingTime-mFadeStartTime)*255)/FADE_DURATION); in drawChild()
285 if (alpha > 255) { in drawChild()
286 alpha = 255; in drawChild()
288 Log.d(TAG, "drawChild alpha=" + alpha + " l=" + l + " t=" + t in drawChild()
290 if (alpha != 255 && mOld != null) { in drawChild()
291 mOldPaint.setAlpha(255-alpha); in drawChild()
295 alpha = 255; in drawChild()
297 int restoreTo = canvas.saveLayerAlpha(l, t, child.getWidth(), child.getHeight(), alpha, in drawChild()
301 if (alpha < 255) { in drawChild()
/frameworks/base/core/java/android/view/animation/
DAlphaAnimation.java68 final float alpha = mFromAlpha; in applyTransformation() local
69 t.setAlpha(alpha + ((mToAlpha - alpha) * interpolatedTime)); in applyTransformation()
/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java86 public void setAlpha(int alpha) { in setAlpha() argument
87 alpha += alpha >> 7; // make it 0..256 in setAlpha()
89 int useAlpha = baseAlpha * alpha >> 8; in setAlpha()
DShapeDrawable.java187 private static int modulateAlpha(int paintAlpha, int alpha) { in modulateAlpha() argument
188 int scale = alpha + (alpha >>> 7); // convert to 0..256 in modulateAlpha()
237 @Override public void setAlpha(int alpha) { in setAlpha() argument
238 mShapeState.mAlpha = alpha; in setAlpha()
251 final int alpha = p.getAlpha(); in getOpacity() local
252 if (alpha == 0) { in getOpacity()
255 if (alpha == 255) { in getOpacity()
DTransitionDrawable.java187 final int alpha = mAlpha; in draw() local
194 d.setAlpha(255 - alpha); in draw()
201 if (alpha > 0) { in draw()
203 d.setAlpha(alpha); in draw()
/frameworks/base/graphics/java/android/graphics/
DColor.java54 public static int alpha(int color) { in alpha() method in Color
106 public static int argb(int alpha, int red, int green, int blue) { in argb() argument
107 return (alpha << 24) | (red << 16) | (green << 8) | blue; in argb()
359 public static int HSVToColor(int alpha, float hsv[]) { in HSVToColor() argument
363 return nativeHSVToColor(alpha, hsv); in HSVToColor()
367 private static native int nativeHSVToColor(int alpha, float hsv[]); in nativeHSVToColor() argument
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaInformationRecords.java133 public String alpha; field in CdmaInformationRecords.CdmaDisplayInfoRec
135 public CdmaDisplayInfoRec(int id, String alpha) { in CdmaDisplayInfoRec() argument
137 this.alpha = alpha; in CdmaDisplayInfoRec()
144 ", alpha: " + alpha + in toString()
/frameworks/base/core/java/android/widget/
DScrollBarDrawable.java218 public void setAlpha(int alpha) { in setAlpha() argument
220 mVerticalTrack.setAlpha(alpha); in setAlpha()
222 mVerticalThumb.setAlpha(alpha); in setAlpha()
224 mHorizontalTrack.setAlpha(alpha); in setAlpha()
226 mHorizontalThumb.setAlpha(alpha); in setAlpha()
DFastScroller.java180 int alpha = -1; in draw() local
182 alpha = scrollFade.getAlpha(); in draw()
183 if (alpha < ScrollFade.ALPHA_MAX / 2) { in draw()
184 mThumbDrawable.setAlpha(alpha * 2); in draw()
186 int left = viewWidth - (mThumbW * alpha) / ScrollFade.ALPHA_MAX; in draw()
204 if (alpha == 0) { // Done with exit in draw()
500 int alpha; in getAlpha() local
503 alpha = 0; in getAlpha()
505 alpha = (int) (ALPHA_MAX - ((now - mStartTime) * ALPHA_MAX) / mFadeDuration); in getAlpha()
507 return alpha; in getAlpha()
DRemoteViews.java190 public SetDrawableParameters(int id, boolean targetBackground, int alpha, in SetDrawableParameters() argument
194 this.alpha = alpha; in SetDrawableParameters()
203 alpha = parcel.readInt(); in SetDrawableParameters()
218 dest.writeInt(alpha); in writeToParcel()
247 if (alpha != -1) { in apply()
248 targetDrawable.setAlpha(alpha); in apply()
261 int alpha; field in RemoteViews.SetDrawableParameters
754 public void setDrawableParameters(int viewId, boolean targetBackground, int alpha, in setDrawableParameters() argument
756 addAction(new SetDrawableParameters(viewId, targetBackground, alpha, in setDrawableParameters()
/frameworks/base/media/libstagefright/codecs/aacdec/
Dsbr_aliasing_reduction.cpp273 Int32 alpha; in sbr_aliasing_reduction() local
277 alpha = degreeAlias[temp1 + 1] > degreeAlias[temp1 ] ? in sbr_aliasing_reduction()
282 alpha = degreeAlias[temp1]; in sbr_aliasing_reduction()
292 tmp_q3 = fxp_mul32_Q30(alpha, quotient.quotient); in sbr_aliasing_reduction()
293 tmp_q4 = fxp_mul32_Q30(Q30fmt(1.0f) - alpha, nrg_gain_man[k]); in sbr_aliasing_reduction()
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
Dqgain795.cpp483 Word16 alpha, /* i : gain adaptor factor (>0), Q15 */ in MR795_gain_code_quant_mod() argument
559 one_alpha = add(sub(32767, alpha, pOverflow), 1, pOverflow); /* 32768 - alpha */ in MR795_gain_code_quant_mod()
563 L_t1 = L_mult(alpha, frac_en[1], pOverflow); in MR795_gain_code_quant_mod()
572 tmp = extract_h(L_shl(L_mult(alpha, frac_en[2], pOverflow), 1, pOverflow)); in MR795_gain_code_quant_mod()
579 coeff[3] = extract_h(L_shl(L_mult(alpha, frac_en[3], pOverflow), 1, pOverflow)); in MR795_gain_code_quant_mod()
588 L_tmp = L_mult(alpha, frac_en[0], pOverflow); in MR795_gain_code_quant_mod()
837 Word16 ltpg, alpha, gcode0; in MR795_gain_quant() local
879 gain_adapt(adapt_st, ltpg, *gain_cod, &alpha, pOverflow); in MR795_gain_quant()
884 if (frac_en[0] != 0 && alpha > 0) in MR795_gain_quant()
898 frac_en, exp_en, alpha, gain_cod_unq, in MR795_gain_quant()
/frameworks/base/opengl/libagl/
Ddxt.cpp346 uint64_t alpha = ((uint64_t)alphahi << 32) | alphalo; in decodeDXT3() local
401 int a = alpha & 0xf; in decodeDXT3()
402 alpha >>= 4; in decodeDXT3()
470 uint64_t alpha = ((uint64_t)alphahi << 32) | alphalo; in decodeDXT5() local
471 uint64_t alpha0 = alpha & 0xff; in decodeDXT5()
472 alpha >>= 8; in decodeDXT5()
473 uint64_t alpha1 = alpha & 0xff; in decodeDXT5()
474 alpha >>= 8; in decodeDXT5()
558 int acode = alpha & 0x7; in decodeDXT5()
559 alpha >>= 3; in decodeDXT5()
/frameworks/base/tests/CoreTests/android/core/
DPerformanceTests.java410 Alphabet alpha = new Alphabet(); in testInterfaceCalls0() local
413 alpha.funcABC1(); in testInterfaceCalls0()
414 alpha.funcABC1(); in testInterfaceCalls0()
415 alpha.funcABC1(); in testInterfaceCalls0()
416 alpha.funcABC1(); in testInterfaceCalls0()
417 alpha.funcABC1(); in testInterfaceCalls0()
418 alpha.funcABC1(); in testInterfaceCalls0()
419 alpha.funcABC1(); in testInterfaceCalls0()
420 alpha.funcABC1(); in testInterfaceCalls0()
421 alpha.funcABC1(); in testInterfaceCalls0()
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapTest.java167 private static int computePrePostMul(int alpha, int comp) { in computePrePostMul() argument
168 if (alpha == 0) { in computePrePostMul()
171 int premul = Math.round(alpha * comp / 255.f); in computePrePostMul()
172 int unpre = Math.round(255.0f * premul / alpha); in computePrePostMul()
205 int a0 = Color.alpha(c0); in testSetPixelsWithNonOpaqueAlpha()
206 int a1 = Color.alpha(c1); in testSetPixelsWithNonOpaqueAlpha()
/frameworks/base/include/private/surfaceflinger/
DLayerState.h38 alpha(0), tint(0), flags(0), mask(0), in layer_state_t()
61 float alpha; member
/frameworks/base/cmds/installd/
Dutils.c36 int alpha = -1; in create_pkg_path() local
49 alpha = 1; in create_pkg_path()
57 if (alpha == 1) { in create_pkg_path()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DFixedSizeDrawable.java59 public void setAlpha(int alpha) { in setAlpha() argument
60 mDrawable.setAlpha(alpha); in setAlpha()
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/
Dvad1.cpp762 Word16 alpha; in update_cntrl() local
846 alpha = ALPHA4; in update_cntrl()
849 alpha = 32767; in update_cntrl()
853 alpha = ALPHA5; in update_cntrl()
859 temp = mult_r(alpha, temp, pOverflow); in update_cntrl()
1259 Word16 alpha; /* Q15 */ in complex_estimate_adapt() local
1268 alpha = CVAD_ADAPT_FAST; in complex_estimate_adapt()
1272 alpha = CVAD_ADAPT_REALLY_FAST; in complex_estimate_adapt()
1279 alpha = CVAD_ADAPT_FAST; in complex_estimate_adapt()
1283 alpha = CVAD_ADAPT_SLOW; in complex_estimate_adapt()
[all …]
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/
Dwb_vad.c264 Word16 alpha; in update_cntrl() local
326 alpha = ALPHA4; in update_cntrl()
329 alpha = 32767; in update_cntrl()
332 alpha = ALPHA5; in update_cntrl()
336 …st->ave_level[i] = add1(st->ave_level[i], vo_mult_r(alpha, vo_sub(level[i], st->ave_level[i]))); in update_cntrl()
573 Word16 alpha; in Estimate_Speech() local
602 alpha = ALPHA_SP_UP; in Estimate_Speech()
605 alpha = ALPHA_SP_DOWN; in Estimate_Speech()
609 st->speech_level = add1(st->speech_level, vo_mult_r(alpha, vo_sub(tmp, st->speech_level))); in Estimate_Speech()

12345