Home
last modified time | relevance | path

Searched refs:units (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/core/java/android/text/format/
DFormatter.java58 public final String units; field in Formatter.BytesResult
66 public BytesResult(String value, String units, String unitsContentDescription, in BytesResult() argument
69 this.units = units; in BytesResult()
158 float value, MeasureUnit units) { in formatMeasureShort() argument
161 return measureFormatter.format(new Measure(value, units)); in formatMeasureShort()
171 if (input.units == MeasureUnit.BYTE) { in formatRoundedBytesResult()
177 return formatMeasureShort(locale, numberFormatter, input.value, input.units); in formatRoundedBytesResult()
184 public final MeasureUnit units; field in Formatter.RoundedBytesResult
189 float value, MeasureUnit units, int fractionDigits, long roundedBytes) { in RoundedBytesResult() argument
191 this.units = units; in RoundedBytesResult()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaMemoryTracer.cpp68 type = typeResult->second.units; in processElement()
82 resourceName = categoryResult->second.units; in processElement()
98 SkASSERT(sizeResult->second.units == typeResult->second.units); in processElement()
117 const char* units, uint64_t value) { in dumpNumericValue() argument
122 mCurrentValues.insert({valueName, {units, value}}); in dumpNumericValue()
142 traceValue.value, traceValue.units.c_str(), traceValue.count, in logOutput()
151 traceValue.value, traceValue.units.c_str(), traceValue.count, in logOutput()
160 if ("bytes" == mTotalSize.units) { in total()
170 total.value, total.units.c_str(), purgeable.value, purgeable.units.c_str()); in logTotals()
175 if ("bytes" == output.units && output.value >= 1024) { in convertUnits()
[all …]
DSkiaMemoryTracer.h43 void dumpNumericValue(const char* dumpName, const char* valueName, const char* units,
61 TraceValue(const char* units, uint64_t value) : units(units), value(value), count(1) {} in TraceValue()
62 TraceValue(const TraceValue& v) : units(v.units), value(v.value), count(v.count) {} in TraceValue()
64 std::string units; member
DATraceMemoryDump.cpp67 const char* units, uint64_t value) { in dumpNumericValue() argument
68 if (!strcmp(units, "bytes")) { in dumpNumericValue()
DATraceMemoryDump.h36 void dumpNumericValue(const char* dumpName, const char* valueName, const char* units,
/frameworks/native/libs/renderengine/skia/debug/
DSkiaMemoryReporter.cpp95 ALOGE_IF(sizeResult->second.units != totalResult->second.units, in processCurrentElement()
112 const char* units, uint64_t value) { in dumpNumericValue() argument
117 mCurrentValues.insert({valueName, {units, value}}); in dumpNumericValue()
144 traceValue.value, traceValue.units.c_str(), traceValue.count, entry); in logOutput()
155 size.value, size.units.c_str()); in logOutput()
164 traceValue.units.c_str()); in logOutput()
167 traceValue.value, traceValue.units.c_str()); in logOutput()
186 total.value, total.units.c_str(), purgeable.value, purgeable.units.c_str()); in logTotals()
191 if (SkString("bytes") == output.units && output.value >= 1024) { in convertUnits()
193 output.units = "KB"; in convertUnits()
[all …]
DSkiaMemoryReporter.h57 void dumpNumericValue(const char* dumpName, const char* valueName, const char* units,
76 TraceValue(const char* units, uint64_t value) : units(units), value(value), count(1) {} in TraceValue()
77 TraceValue(const TraceValue& v) : units(v.units), value(v.value), count(v.count) {} in TraceValue()
79 SkString units; member
/frameworks/base/core/java/android/util/
DTypedValue.java662 @ComplexDimensionUnit int units) { in createComplexDimension() argument
663 if (units < TypedValue.COMPLEX_UNIT_PX || units > TypedValue.COMPLEX_UNIT_MM) { in createComplexDimension()
664 throw new IllegalArgumentException("Must be a valid COMPLEX_UNIT_*: " + units); in createComplexDimension()
666 return intToComplex(value) | units; in createComplexDimension()
683 @ComplexDimensionUnit int units) { in createComplexDimension() argument
684 if (units < TypedValue.COMPLEX_UNIT_PX || units > TypedValue.COMPLEX_UNIT_MM) { in createComplexDimension()
685 throw new IllegalArgumentException("Must be a valid COMPLEX_UNIT_*: " + units); in createComplexDimension()
687 return floatToComplex(value) | units; in createComplexDimension()
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp45 void computeCurrentVelocity(int32_t units, float maxVelocity);
64 void VelocityTrackerState::computeCurrentVelocity(int32_t units, float maxVelocity) { in computeCurrentVelocity() argument
65 mComputedVelocity = mVelocityTracker.getComputedVelocity(units, maxVelocity); in computeCurrentVelocity()
115 jlong ptr, jint units, jfloat maxVelocity) { in android_view_VelocityTracker_nativeComputeCurrentVelocity() argument
117 state->computeCurrentVelocity(units, maxVelocity); in android_view_VelocityTracker_nativeComputeCurrentVelocity()
/frameworks/base/core/java/android/view/
DVelocityTracker.java204 private static native void nativeComputeCurrentVelocity(long ptr, int units, float maxVelocity); in nativeComputeCurrentVelocity() argument
378 public void computeCurrentVelocity(int units) { in computeCurrentVelocity() argument
379 nativeComputeCurrentVelocity(mPtr, units, Float.MAX_VALUE); in computeCurrentVelocity()
397 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
398 nativeComputeCurrentVelocity(mPtr, units, maxVelocity); in computeCurrentVelocity()
/frameworks/native/cmds/bugreportz/
Dreadme.md12 progress units out of a max of `<total>`).
/frameworks/base/core/proto/
DREADME.md38 1. Include units in the field names. For example, `screen_time_ms` vs
/frameworks/proto_logging/stats/atoms/nfc/
Dnfc_extension_atoms.proto60 optional int32 field_strength = 2; // units are undefined and will vary by vendor
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES10.spec78 void glPolygonOffset ( GLfloat factor, GLfloat units )
79 void glPolygonOffsetx ( GLfixed factor, GLfixed units )
DGLES11Ext.spec44 void glPolygonOffsetxOES ( GLfixed factor, GLfixed units )
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java778 float units in glPolygonOffset() argument
783 int units in glPolygonOffsetx() argument
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.078 void glPolygonOffset ( GLfloat factor, GLfloat units )
79 void glPolygonOffsetx ( GLfixed factor, GLfixed units )
/frameworks/native/opengl/libs/GLES_CM/
Dgl_api.in91 void API_ENTRY(glPolygonOffset)(GLfloat factor, GLfloat units) {
92 CALL_GL_API(glPolygonOffset, factor, units);
352 void API_ENTRY(glPolygonOffsetx)(GLfixed factor, GLfixed units) {
353 CALL_GL_API(glPolygonOffsetx, factor, units);
/frameworks/base/opengl/java/android/opengl/
DGLES10.java1019 float units in glPolygonOffset() argument
1026 int units in glPolygonOffsetx() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
DZoneGetter.java290 final int units = input % 10; in formatDigits() local
295 builder.append(localizedDigits.charAt(units)); in formatDigits()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java1525 public void computeCurrentVelocity(int units) { in computeCurrentVelocity() argument
1526 computeCurrentVelocity(units, Float.MAX_VALUE); in computeCurrentVelocity()
1529 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
1551 float vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
1556 vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
/frameworks/native/include/input/
DVelocityTracker.h111 ComputedVelocity getComputedVelocity(int32_t units, float maxVelocity);
/frameworks/native/opengl/tests/angeles/include/GLES/
Dgl.h550 GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
551 GLAPI void APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units);
/frameworks/base/core/java/android/widget/
DRemoteViews.java3380 TextViewSizeAction(@IdRes int viewId, @ComplexDimensionUnit int units, float size) {
3382 this.mUnits = units;
3479 @ComplexDimensionUnit int units) {
3483 this.mValue = TypedValue.createComplexDimension(value, units);
3839 @IdRes int viewId, float radius, @ComplexDimensionUnit int units) {
3842 this.mValue = TypedValue.createComplexDimension(radius, units);
4672 public void setTextViewTextSize(@IdRes int viewId, int units, float size) {
4673 addAction(new TextViewSizeAction(viewId, units, size));
5253 @ComplexDimensionUnit int units) {
5254 addAction(new LayoutParamAction(viewId, type, value, units));
[all …]
/frameworks/proto_logging/stats/atoms/input/
Dinput_atoms.proto62 * in the kernel and inputflinger. The units are microseconds.
176 * The units are "hundreds of microseconds", or 0.1 ms. They are chosen like this in order

123