Home
last modified time | relevance | path

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

12345678

/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java129 float percent = (currentPos - mPositions[prevPos]) / in precomputeGradientColors() local
132 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); in precomputeGradientColors()
212 private int computeColor(int c1, int c2, float percent) { in computeColor() argument
213 int a = computeChannel((c1 >> 24) & 0xFF, (c2 >> 24) & 0xFF, percent); in computeColor()
214 int r = computeChannel((c1 >> 16) & 0xFF, (c2 >> 16) & 0xFF, percent); in computeColor()
215 int g = computeChannel((c1 >> 8) & 0xFF, (c2 >> 8) & 0xFF, percent); in computeColor()
216 int b = computeChannel((c1 ) & 0xFF, (c2 ) & 0xFF, percent); in computeColor()
224 private int computeChannel(int c1, int c2, float percent) { in computeChannel() argument
225 return c1 + (int)((percent * (c2-c1)) + .5); in computeChannel()
/frameworks/av/media/extractors/mp3/
DXINGSeeker.cpp53 float percent = (float)(*timeUs) * 100 / mDurationUs; in getOffsetForTime() local
55 if( percent <= 0.0f ) { in getOffsetForTime()
57 } else if( percent >= 100.0f ) { in getOffsetForTime()
60 int a = (int)percent; in getOffsetForTime()
72 fx = fa + (fb-fa)*(percent-a); in getOffsetForTime()
74 fx = percent * 2.56f; in getOffsetForTime()
/frameworks/base/media/java/android/media/
DRating.java223 public static Rating newPercentageRating(float percent) { in newPercentageRating() argument
224 if ((percent < 0.0f) || (percent > 100.0f)) { in newPercentageRating()
228 return new Rating(RATING_PERCENTAGE, 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/layoutlib/bridge/src/android/util/imagepool/
DImagePoolStatsDebugImpl.java160 double percent = (1.0 - (double) mRequestedTotalBytes / (mAllocateTotalBytes + in getStatistic() local
162 if (percent < 0.0) { in getStatistic()
164 builder.append(-1.0 * percent); in getStatistic()
168 builder.append(percent); in getStatistic()
/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
DLocalRenderer.java281 public void onBufferingUpdate(MediaPlayer player, int percent) { in onBufferingUpdate() argument
285 pushOnBufferingUpdate(percent); in onBufferingUpdate()
/frameworks/base/core/java/android/os/
DUpdateEngine.java262 public void onStatusUpdate(final int status, final float percent) { in bind()
267 callback.onStatusUpdate(status, percent); in bind()
271 callback.onStatusUpdate(status, percent); in bind()
580 public void onStatusUpdate(int status, float percent) { in onStatusUpdate() argument
DUpdateEngineCallback.java40 public abstract void onStatusUpdate(int status, float percent); in onStatusUpdate() argument
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncPredictor.cpp67 auto const percent = (timestamp - aValidTimestamp) % mIdealPeriod * kMaxPercent / mIdealPeriod; in validate() local
68 return percent < kOutlierTolerancePercent || percent > (kMaxPercent - kOutlierTolerancePercent); in validate()
162 auto const percent = std::abs(anticipatedPeriod - mIdealPeriod) * kMaxPercent / mIdealPeriod; in addVsyncTimestamp() local
163 if (percent >= kOutlierTolerancePercent) { in addVsyncTimestamp()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java65 for (boolean percent : bools) { in testDrawingForTypicalValues()
69 mBatteryDrawable.setShowPercent(percent); in testDrawingForTypicalValues()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConcreteCandidate.java249 public ConcreteCandidate setEstimatedPercentInternetAvailability(int percent) { in setEstimatedPercentInternetAvailability() argument
250 mEstimatedPercentInternetAvailability = percent; in setEstimatedPercentInternetAvailability()
/frameworks/base/media/java/android/media/tv/tuner/frontend/
DScanCallback.java38 void onProgress(@IntRange(from = 0, to = 100) int percent); in onProgress()
/frameworks/base/core/java/android/app/
DProgressDialog.java220 double percent = (double) progress / (double) max; in onCreate()
221 … SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent)); in onCreate()
/frameworks/layoutlib/bridge/src/libcore/icu/
DICU_Delegate.java123 result.percent = "%"; in initLocaleDataNative()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleFlyoutView.java359 private float clampPercentage(float percent) { in clampPercentage() argument
360 return Math.min(1f, Math.max(0f, percent)); in clampPercentage()
/frameworks/base/proto/src/
Dgnss.proto16 // Location failure (in percent)
/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java111 public double percent; field in BatterySipper
/frameworks/base/startop/scripts/app_startup/
Danalyze_metrics.py173 def confidence_interval(np_data_2d, percent=0.95): argument
187 ci = sc.norm.interval(percent, loc=mean, scale=sigma / np.sqrt(len(col_2d)))
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java465 CharSequence percent = mBatteryPercentView == null ? null : mBatteryPercentView.getText(); in dump() local
468 pw.println(" mBatteryPercentView.getText(): " + percent); in dump()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobPackageTracker.java299 int percent = (int) ((fraction * 100) + .5f); in printDuration() local
300 if (percent > 0) { in printDuration()
302 pw.print(percent); in printDuration()
/frameworks/base/core/java/android/widget/
DMediaController.java466 int percent = mPlayer.getBufferPercentage(); in setProgress() local
467 mProgress.setSecondaryProgress(percent * 10); in setProgress()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java279 private int getColorForLevel(int percent) { in getColorForLevel() argument
284 if (percent <= thresh) { in getColorForLevel()
/frameworks/base/tools/aapt/
DImages.cpp1436 int percent = (int)(factor*100); in preProcessImage() local
1437 printf(" (processed image %s: %d%% size of source)\n", printableName.string(), percent); in preProcessImage()
1572 int percent = (int)(factor*100); in preProcessImageToCache() local
1574 dest.string(), percent); in preProcessImageToCache()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerSession.java223 public void onBufferingUpdate(int percent) { in onBufferingUpdate() argument

12345678