/external/e2fsprogs/lib/e2p/ |
D | percent.c | 20 unsigned int e2p_percent(int percent, unsigned int base) in e2p_percent() argument 24 if (!percent) in e2p_percent() 26 if (100 % percent == 0) in e2p_percent() 27 return base / (100 / percent); in e2p_percent() 29 return (base / 100) * percent; in e2p_percent() 30 return base * percent / 100; in e2p_percent() 40 int percent; in main() local 49 percent = strtoul(argv[1], &p, 0); in main() 61 printf("%d percent of %u is %u.\n", percent, base, in main() 62 e2p_percent(percent, base)); in main()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | Lerp.java | 27 final float percent = timeSinceStart / duration; in lerp() local 28 value = start + (range * percent); in lerp() 43 final float percent = timeSinceStart / (duration / 2.0f); in ease() local 44 if (percent < 1.0f) in ease() 46 value = start + ((range / 2.0f) * percent * percent * percent); in ease() 50 final float shiftedPercent = percent - 2.0f; in ease()
|
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/ |
D | TemporalAction.java | 53 float percent; in act() local 55 percent = 1; in act() 57 percent = time / duration; in act() 58 if (interpolation != null) percent = interpolation.apply(percent); in act() 60 update(reverse ? 1 - percent : percent); in act() 80 abstract protected void update (float percent); in update() argument
|
D | ColorAction.java | 38 protected void update (float percent) { in update() argument 39 float r = startR + (end.r - startR) * percent; in update() 40 float g = startG + (end.g - startG) * percent; in update() 41 float b = startB + (end.b - startB) * percent; in update() 42 float a = startA + (end.a - startA) * percent; in update()
|
D | RelativeTemporalAction.java | 28 protected void update (float percent) { in update() argument 29 updateRelative(percent - lastPercent); in update() 30 lastPercent = percent; in update()
|
D | SizeToAction.java | 30 protected void update (float percent) { in update() argument 31 …setSize(startWidth + (endWidth - startWidth) * percent, startHeight + (endHeight - startHeight) * … in update()
|
D | ScaleToAction.java | 30 protected void update (float percent) { in update() argument 31 target.setScale(startX + (endX - startX) * percent, startY + (endY - startY) * percent); in update()
|
D | MoveToAction.java | 33 protected void update (float percent) { in update() argument 34 …target.setPosition(startX + (endX - startX) * percent, startY + (endY - startY) * percent, alignme… in update()
|
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ |
D | Value.java | 96 static public Value percentWidth (final float percent) { in percentWidth() argument 99 return actor.getWidth() * percent; in percentWidth() 105 static public Value percentHeight (final float percent) { 108 return actor.getHeight() * percent; 114 static public Value percentWidth (final float percent, final Actor actor) { 118 return actor.getWidth() * percent; 124 static public Value percentHeight (final float percent, final Actor actor) { 128 return actor.getHeight() * percent;
|
/external/skia/src/views/ |
D | SkProgressView.cpp | 64 SkFixed percent; in onDraw() local 74 percent = (SkFixed)x; // now its 16.8 in onDraw() 75 percent = SkMax32(0, SkMin32(percent, fMax << 8)); // now its pinned in onDraw() 76 percent = SkFixedDiv(percent, fMax << 8); // now its 0.16 in onDraw() 82 percent = SkFixedDiv(value, fMax); in onDraw() 92 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent)); in onDraw()
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/widgets/ |
D | ProgressBar.java | 160 double percent = (curProgress - minProgress) / (maxProgress - minProgress); in getPercent() local 161 return Math.max(0.0, Math.min(1.0, percent)); in getPercent() 239 int percent = (int)(100 * getPercent()); in setProgress() local 240 DOM.setStyleAttribute(barElement, "width", percent + "%"); in setProgress() 242 updateTextStyle(percent); in setProgress() 330 int percent = (int)(100 * getPercent()); in onTextStyleChange() local 331 updateTextStyle(percent); in onTextStyleChange() 334 private void updateTextStyle (int percent) { in updateTextStyle() argument 336 if (percent < 50) { in updateTextStyle()
|
/external/ltrace/ |
D | printf.c | 39 int percent; member 104 self->percent = 0; in param_printf_init() 231 if (!self->percent) { in param_printf_next() 233 self->percent = 1; in param_printf_next() 302 self->percent = 0; in param_printf_next() 315 self->percent = 0; in param_printf_next() 323 self->percent = 0; in param_printf_next() 332 self->percent = 0; in param_printf_next() 341 self->percent = 0; in param_printf_next() 349 self->percent = 0; in param_printf_next() [all …]
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/ |
D | GradientPanel.java | 56 for (float percent : value.getTimeline()) in GradientPanel() 57 gradientEditor.percentages.add(percent); in GradientPanel() 170 for (Float percent : gradientEditor.percentages) in updateColor() 171 percentages[i++] = percent; in updateColor() 237 float percent = (event.getX() - gradientX) / (float)gradientWidth; in GradientEditor() 238 if (percentages.size() == 1) percent = 1f; in GradientEditor() 240 if (i == n || percent < percentages.get(i)) { in GradientEditor() 241 percentages.add(i, percent); in GradientEditor() 254 float percent = (event.getX() - gradientX) / (float)gradientWidth; in GradientEditor() 255 percent = Math.max(percent, percentages.get(dragIndex - 1) + 0.01f); in GradientEditor() [all …]
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/ |
D | GradientPanel.java | 58 for (float percent : value.getTimeline()) in GradientPanel() 59 gradientEditor.percentages.add(percent); in GradientPanel() 171 for (Float percent : gradientEditor.percentages) in updateColor() 172 percentages[i++] = percent; in updateColor() 238 float percent = (event.getX() - gradientX) / (float)gradientWidth; in GradientEditor() 239 if (percentages.size() == 1) percent = 1f; in GradientEditor() 241 if (i == n || percent < percentages.get(i)) { in GradientEditor() 242 percentages.add(i, percent); in GradientEditor() 256 float percent = (event.getX() - gradientX) / (float)gradientWidth; in GradientEditor() 257 percent = Math.max(percent, percentages.get(dragIndex - 1) + 0.01f); in GradientEditor() [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/ |
D | PointSpawnShapeValue.java | 17 public void spawnAux (Vector3 vector, float percent) { in spawnAux() argument 18 vector.x = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); in spawnAux() 19 vector.y = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); in spawnAux() 20 vector.z = spawnDepth + (spawnDepthDiff * spawnDepthValue.getScale(percent)); in spawnAux()
|
D | LineSpawnShapeValue.java | 18 public void spawnAux (Vector3 vector, float percent) { in spawnAux() argument 19 float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); in spawnAux() 20 float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); in spawnAux() 21 float depth = spawnDepth + (spawnDepthDiff * spawnDepthValue.getScale(percent)); in spawnAux()
|
D | GradientColorValue.java | 30 public float[] getColor (float percent) { in getColor() argument 31 getColor(percent, temp, 0); in getColor() 35 public void getColor (float percent, float[] out, int index) { in getColor() argument 41 if (t > percent) { in getColor() 58 float factor = (percent - startTime) / (timeline[endIndex] - startTime); in getColor()
|
D | CylinderSpawnShapeValue.java | 18 public void spawnAux (Vector3 vector, float percent) { in spawnAux() argument 20 float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); in spawnAux() 21 float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); in spawnAux() 22 float depth = spawnDepth + (spawnDepthDiff * spawnDepthValue.getScale(percent)); in spawnAux()
|
D | RectangleSpawnShapeValue.java | 17 public void spawnAux (Vector3 vector, float percent) { in spawnAux() argument 18 float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); in spawnAux() 19 float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); in spawnAux() 20 float depth = spawnDepth + (spawnDepthDiff * spawnDepthValue.getScale(percent)); in spawnAux()
|
/external/avahi/avahi-core/ |
D | cache.c | 164 static void next_expiry(AvahiCache *c, AvahiCacheEntry *e, unsigned percent); 169 unsigned percent = 0; in elapse_func() local 192 percent = 85; in elapse_func() 197 percent = 90; in elapse_func() 201 percent = 95; in elapse_func() 206 percent = 100; in elapse_func() 212 assert(percent > 0); in elapse_func() 219 next_expiry(e->cache, e, percent); in elapse_func() 236 static void next_expiry(AvahiCache *c, AvahiCacheEntry *e, unsigned percent) { in next_expiry() argument 242 assert(percent > 0 && percent <= 100); in next_expiry() [all …]
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
D | CpuMonitor.java | 206 int percent = allTime == 0 ? 0 : (int) Math.round(percentFreq * diffRunTime / allTime); in sampleCpuUtilization() local 207 percent = Math.max(0, Math.min(percent, 100)); in sampleCpuUtilization() 210 sum3 += percent - percentVec[2]; in sampleCpuUtilization() 212 sum10 += percent - percentVec[SAMPLE_SAVE_NUMBER - 1]; in sampleCpuUtilization() 218 percentVec[0] = percent; in sampleCpuUtilization() 220 cpuCurrent = percent; in sampleCpuUtilization()
|
/external/toybox/toys/posix/ |
D | df.c | 85 long long size, used, avail, percent, block; in show_mt() local 110 if (!(used+avail)) percent = 0; in show_mt() 112 percent = (used*100)/(used+avail); in show_mt() 113 if (used*100 != percent*(used+avail)) percent++; in show_mt() 136 size_str, used_str, avail_str, percent, mt->dir); in show_mt() 142 TT.column_widths[4], percent, in show_mt()
|
/external/llvm/tools/llvm-diff/ |
D | DiffConsumer.cpp | 168 size_t percent = format.find('%'); in logf() local 169 if (percent == StringRef::npos) { in logf() 173 assert(format[percent] == '%'); in logf() 175 if (percent > 0) out << format.substr(0, percent); in logf() 177 switch (format[percent+1]) { in logf() 184 format = format.substr(percent+2); in logf()
|
/external/llvm/utils/lit/lit/ |
D | ProgressBar.py | 182 def update(self, percent, message): argument 187 next = int(percent*50) 246 def update(self, percent, message): argument 250 prefix = '%3d%% ' % (percent*100,) 254 if percent > .0001 and elapsed > 1: 255 total = elapsed / percent 262 n = int(barWidth*percent)
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
D | ParticleEmitter.java | 388 float percent = durationTimer / (float)duration; in activateParticle() local 391 particle.currentLife = particle.life = life + (int)(lifeDiff * lifeValue.getScale(percent)); in activateParticle() 454 float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); in activateParticle() 455 float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); in activateParticle() 461 float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); in activateParticle() 462 float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); in activateParticle() 504 float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); in activateParticle() 505 float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); in activateParticle() 519 int offsetTime = (int)(lifeOffset + lifeOffsetDiff * lifeOffsetValue.getScale(percent)); in activateParticle() 531 float percent = 1 - particle.currentLife / (float)particle.life; in updateParticle() local [all …]
|