Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 221) sorted by relevance

123456789

/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java114 float percent = (currentPos - mPositions[prevPos]) / in precomputeGradientColors() local
117 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); in precomputeGradientColors()
196 private int computeColor(int c1, int c2, float percent) { in computeColor() argument
197 int a = computeChannel((c1 >> 24) & 0xFF, (c2 >> 24) & 0xFF, percent); in computeColor()
198 int r = computeChannel((c1 >> 16) & 0xFF, (c2 >> 16) & 0xFF, percent); in computeColor()
199 int g = computeChannel((c1 >> 8) & 0xFF, (c2 >> 8) & 0xFF, percent); in computeColor()
200 int b = computeChannel((c1 ) & 0xFF, (c2 ) & 0xFF, percent); in computeColor()
208 private int computeChannel(int c1, int c2, float percent) { in computeChannel() argument
209 return c1 + (int)((percent * (c2-c1)) + .5); in computeChannel()
/frameworks/support/percent/api_legacy/
D28.0.0-alpha1.txt1 package android.support.percent {
7 …method protected android.support.percent.PercentFrameLayout.LayoutParams generateDefaultLayoutPara…
8 …method public android.support.percent.PercentFrameLayout.LayoutParams generateLayoutParams(android…
11 …tends android.widget.FrameLayout.LayoutParams implements android.support.percent.PercentLayoutHelp…
18 …ctor public PercentFrameLayout.LayoutParams(android.support.percent.PercentFrameLayout.LayoutParam…
19 …method public android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo();
26 …method public static android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayou…
50 …method public abstract android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLay…
57 …method protected android.support.percent.PercentRelativeLayout.LayoutParams generateDefaultLayoutP…
58 …method public android.support.percent.PercentRelativeLayout.LayoutParams generateLayoutParams(andr…
[all …]
Dcurrent.txt1 package android.support.percent {
7 …method protected android.support.percent.PercentFrameLayout.LayoutParams generateDefaultLayoutPara…
8 …method public android.support.percent.PercentFrameLayout.LayoutParams generateLayoutParams(android…
11 …tends android.widget.FrameLayout.LayoutParams implements android.support.percent.PercentLayoutHelp…
18 …ctor public PercentFrameLayout.LayoutParams(android.support.percent.PercentFrameLayout.LayoutParam…
19 …method public android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo();
26 …method public static android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayou…
50 …method public abstract android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLay…
57 …method protected android.support.percent.PercentRelativeLayout.LayoutParams generateDefaultLayoutP…
58 …method public android.support.percent.PercentRelativeLayout.LayoutParams generateLayoutParams(andr…
[all …]
D26.0.0.txt1 package android.support.percent {
7 …method protected android.support.percent.PercentFrameLayout.LayoutParams generateDefaultLayoutPara…
8 …method public android.support.percent.PercentFrameLayout.LayoutParams generateLayoutParams(android…
11 …tends android.widget.FrameLayout.LayoutParams implements android.support.percent.PercentLayoutHelp…
18 …ctor public PercentFrameLayout.LayoutParams(android.support.percent.PercentFrameLayout.LayoutParam…
19 …method public android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo();
26 …method public static android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayou…
50 …method public abstract android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLay…
57 …method protected android.support.percent.PercentRelativeLayout.LayoutParams generateDefaultLayoutP…
58 …method public android.support.percent.PercentRelativeLayout.LayoutParams generateLayoutParams(andr…
[all …]
D26.1.0.txt1 package android.support.percent {
7 …method protected android.support.percent.PercentFrameLayout.LayoutParams generateDefaultLayoutPara…
8 …method public android.support.percent.PercentFrameLayout.LayoutParams generateLayoutParams(android…
11 …tends android.widget.FrameLayout.LayoutParams implements android.support.percent.PercentLayoutHelp…
18 …ctor public PercentFrameLayout.LayoutParams(android.support.percent.PercentFrameLayout.LayoutParam…
19 …method public android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo();
26 …method public static android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayou…
50 …method public abstract android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLay…
57 …method protected android.support.percent.PercentRelativeLayout.LayoutParams generateDefaultLayoutP…
58 …method public android.support.percent.PercentRelativeLayout.LayoutParams generateLayoutParams(andr…
[all …]
D27.0.0.txt1 package android.support.percent {
7 …method protected android.support.percent.PercentFrameLayout.LayoutParams generateDefaultLayoutPara…
8 …method public android.support.percent.PercentFrameLayout.LayoutParams generateLayoutParams(android…
11 …tends android.widget.FrameLayout.LayoutParams implements android.support.percent.PercentLayoutHelp…
18 …ctor public PercentFrameLayout.LayoutParams(android.support.percent.PercentFrameLayout.LayoutParam…
19 …method public android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo();
26 …method public static android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayou…
50 …method public abstract android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLay…
57 …method protected android.support.percent.PercentRelativeLayout.LayoutParams generateDefaultLayoutP…
58 …method public android.support.percent.PercentRelativeLayout.LayoutParams generateLayoutParams(andr…
[all …]
D27.1.0.txt1 package android.support.percent {
7 …method protected android.support.percent.PercentFrameLayout.LayoutParams generateDefaultLayoutPara…
8 …method public android.support.percent.PercentFrameLayout.LayoutParams generateLayoutParams(android…
11 …tends android.widget.FrameLayout.LayoutParams implements android.support.percent.PercentLayoutHelp…
18 …ctor public PercentFrameLayout.LayoutParams(android.support.percent.PercentFrameLayout.LayoutParam…
19 …method public android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo();
26 …method public static android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLayou…
50 …method public abstract android.support.percent.PercentLayoutHelper.PercentLayoutInfo getPercentLay…
57 …method protected android.support.percent.PercentRelativeLayout.LayoutParams generateDefaultLayoutP…
58 …method public android.support.percent.PercentRelativeLayout.LayoutParams generateLayoutParams(andr…
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DItemAlignmentFacet.java107 public final void setItemAlignmentOffsetPercent(float percent) { in setItemAlignmentOffsetPercent() argument
108 if ((percent < 0 || percent > 100) in setItemAlignmentOffsetPercent()
109 && percent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) { in setItemAlignmentOffsetPercent()
112 mOffsetPercent = percent; in setItemAlignmentOffsetPercent()
DWindowAlignment.java120 public final void setWindowAlignmentOffsetPercent(float percent) { in setWindowAlignmentOffsetPercent() argument
121 if ((percent < 0 || percent > 100) in setWindowAlignmentOffsetPercent()
122 && percent != WINDOW_ALIGN_OFFSET_PERCENT_DISABLED) { in setWindowAlignmentOffsetPercent()
125 mWindowAlignmentOffsetPercent = percent; in setWindowAlignmentOffsetPercent()
DGuidanceStylingRelativeLayout.java39 float percent = ta.getFloat(R.styleable.LeanbackGuidedStepTheme_guidedStepKeyline, 40); in getKeyLinePercent() local
41 return percent; in getKeyLinePercent()
/frameworks/av/media/extractors/mp3/
DXINGSeeker.cpp51 float percent = (float)(*timeUs) * 100 / mDurationUs; in getOffsetForTime() local
53 if( percent <= 0.0f ) { in getOffsetForTime()
55 } else if( percent >= 100.0f ) { in getOffsetForTime()
58 int a = (int)percent; in getOffsetForTime()
70 fx = fa + (fb-fa)*(percent-a); in getOffsetForTime()
/frameworks/base/media/java/android/media/
DRating.java224 public static Rating newPercentageRating(float percent) { in newPercentageRating() argument
225 if ((percent < 0.0f) || (percent > 100.0f)) { in newPercentageRating()
229 return new Rating(RATING_PERCENTAGE, percent); in newPercentageRating()
DRating2.java203 public static @Nullable Rating2 newPercentageRating(float percent) { in newPercentageRating() argument
204 return ApiLoader.getProvider().newPercentageRating_Rating2(percent); in newPercentageRating()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java927 public boolean pinchOut(int percent, int steps) throws UiObjectNotFoundException { in pinchOut() argument
929 percent = (percent < 0) ? 1 : (percent > 100) ? 100 : percent; in pinchOut()
930 float percentage = percent / 100f; in pinchOut()
965 public boolean pinchIn(int percent, int steps) throws UiObjectNotFoundException { in pinchIn() argument
967 percent = (percent < 0) ? 0 : (percent > 100) ? 100 : percent; in pinchIn()
968 float percentage = percent / 100f; in pinchIn()
/frameworks/av/packages/MediaComponents/src/com/android/media/
DRating2Impl.java132 public static Rating2 newPercentageRating_impl(float percent) { in newPercentageRating_impl() argument
133 if ((percent < 0.0f) || (percent > 100.0f)) { in newPercentageRating_impl()
137 return new Rating2Impl(RATING_PERCENTAGE, percent).getInstance(); in newPercentageRating_impl()
/frameworks/support/media/src/main/java/androidx/media/
DRating2.java249 public static @Nullable Rating2 newPercentageRating(float percent) { in newPercentageRating() argument
250 if ((percent < 0.0f) || (percent > 100.0f)) { in newPercentageRating()
254 return new Rating2(RATING_PERCENTAGE, percent); in newPercentageRating()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DRenderer.java175 protected void pushOnBufferingUpdate(int percent) { in pushOnBufferingUpdate() argument
177 listener.onBufferingUpdate(percent); in pushOnBufferingUpdate()
216 public void onBufferingUpdate(int percent); in onBufferingUpdate() argument
/frameworks/support/media/src/main/java/android/support/v4/media/
DRatingCompat.java234 public static RatingCompat newPercentageRating(float percent) { in newPercentageRating() argument
235 if ((percent < 0.0f) || (percent > 100.0f)) { in newPercentageRating()
239 return new RatingCompat(RATING_PERCENTAGE, percent); in newPercentageRating()
/frameworks/base/core/java/android/os/
DUpdateEngine.java114 public void onStatusUpdate(final int status, final float percent) { in bind()
119 callback.onStatusUpdate(status, percent); in bind()
123 callback.onStatusUpdate(status, percent); in bind()
DUpdateEngineCallback.java41 public abstract void onStatusUpdate(int status, float percent); in onStatusUpdate() argument
/frameworks/support/samples/SupportPercentDemos/src/main/java/com/example/android/support/percent/
DSimplePercentFrameLayoutActivity.java17 package com.example.android.support.percent;
DIncludePercentFrameLayoutActivity.java17 package com.example.android.support.percent;
DSimplePercentRelativeLayoutActivity.java17 package com.example.android.support.percent;
DPercentRelativeLayoutActivityHPaddings.java17 package com.example.android.support.percent;
DPercentRelativeLayoutActivityVPaddings.java17 package com.example.android.support.percent;

123456789