/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 129 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/ |
D | XINGSeeker.cpp | 53 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/ |
D | Rating.java | 223 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/ |
D | UiObject.java | 927 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/ |
D | ImagePoolStatsDebugImpl.java | 160 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/ |
D | Renderer.java | 175 protected void pushOnBufferingUpdate(int percent) { in pushOnBufferingUpdate() argument 177 listener.onBufferingUpdate(percent); in pushOnBufferingUpdate() 216 public void onBufferingUpdate(int percent); in onBufferingUpdate() argument
|
D | LocalRenderer.java | 281 public void onBufferingUpdate(MediaPlayer player, int percent) { in onBufferingUpdate() argument 285 pushOnBufferingUpdate(percent); in onBufferingUpdate()
|
/frameworks/base/core/java/android/os/ |
D | UpdateEngine.java | 262 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
|
D | UpdateEngineCallback.java | 40 public abstract void onStatusUpdate(int status, float percent); in onStatusUpdate() argument
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncPredictor.cpp | 67 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/ |
D | BatteryMeterDrawableBaseTest.java | 65 for (boolean percent : bools) { in testDrawingForTypicalValues() 69 mBatteryDrawable.setShowPercent(percent); in testDrawingForTypicalValues()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ConcreteCandidate.java | 249 public ConcreteCandidate setEstimatedPercentInternetAvailability(int percent) { in setEstimatedPercentInternetAvailability() argument 250 mEstimatedPercentInternetAvailability = percent; in setEstimatedPercentInternetAvailability()
|
/frameworks/base/media/java/android/media/tv/tuner/frontend/ |
D | ScanCallback.java | 38 void onProgress(@IntRange(from = 0, to = 100) int percent); in onProgress()
|
/frameworks/base/core/java/android/app/ |
D | ProgressDialog.java | 220 double percent = (double) progress / (double) max; in onCreate() 221 … SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent)); in onCreate()
|
/frameworks/layoutlib/bridge/src/libcore/icu/ |
D | ICU_Delegate.java | 123 result.percent = "%"; in initLocaleDataNative()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleFlyoutView.java | 359 private float clampPercentage(float percent) { in clampPercentage() argument 360 return Math.min(1f, Math.max(0f, percent)); in clampPercentage()
|
/frameworks/base/proto/src/ |
D | gnss.proto | 16 // Location failure (in percent)
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatterySipper.java | 111 public double percent; field in BatterySipper
|
/frameworks/base/startop/scripts/app_startup/ |
D | analyze_metrics.py | 173 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/ |
D | BatteryMeterView.java | 465 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/ |
D | JobPackageTracker.java | 299 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/ |
D | MediaController.java | 466 int percent = mPlayer.getBufferPercentage(); in setProgress() local 467 mProgress.setSecondaryProgress(percent * 10); in setProgress()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | BatteryMeterDrawableBase.java | 279 private int getColorForLevel(int percent) { in getColorForLevel() argument 284 if (percent <= thresh) { in getColorForLevel()
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 1436 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/ |
D | PlayerSession.java | 223 public void onBufferingUpdate(int percent) { in onBufferingUpdate() argument
|