Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 165) sorted by relevance

1234567

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DMeasuredEnergySnapshotTest.java121 MeasuredEnergyDeltaData delta = snapshot.updateAndGetDelta(RESULTS_0, VOLTAGE_0); in testUpdateAndGetDelta() local
122 if (delta != null) { // null is fine here. If non-null, it better be uninteresting though. in testUpdateAndGetDelta()
123 assertEquals(UNAVAILABLE, delta.displayChargeUC); in testUpdateAndGetDelta()
124 assertNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta()
125 assertNull(delta.otherUidChargesUC); in testUpdateAndGetDelta()
129 delta = snapshot.updateAndGetDelta(RESULTS_1, VOLTAGE_1); in testUpdateAndGetDelta()
130 assertNotNull(delta); in testUpdateAndGetDelta()
133 assertEquals(expectedChargeUC, delta.displayChargeUC); in testUpdateAndGetDelta()
135 assertNotNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta()
138 assertEquals(expectedChargeUC, delta.otherTotalChargeUC[0]); in testUpdateAndGetDelta()
[all …]
/frameworks/base/core/java/android/content/res/
DConfiguration.java1472 public @Config int updateFrom(@NonNull Configuration delta) { in updateFrom() argument
1474 if (delta.fontScale > 0 && fontScale != delta.fontScale) { in updateFrom()
1476 fontScale = delta.fontScale; in updateFrom()
1478 if (delta.mcc != 0 && mcc != delta.mcc) { in updateFrom()
1480 mcc = delta.mcc; in updateFrom()
1482 if (delta.mnc != 0 && mnc != delta.mnc) { in updateFrom()
1484 mnc = delta.mnc; in updateFrom()
1487 delta.fixUpLocaleList(); in updateFrom()
1488 if (!delta.mLocaleList.isEmpty() && !mLocaleList.equals(delta.mLocaleList)) { in updateFrom()
1490 mLocaleList = delta.mLocaleList; in updateFrom()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DCube.java25 public Cube(Volume v, float delta) { in Cube() argument
26 this(v, delta, new float[]{0, 0, 0, 0, 0, 0}); in Cube()
29 public Cube(Volume v, float delta, float[] trim) { in Cube() argument
32 float minx = delta + trim[0] * (v.mDimx - delta); in Cube()
33 float miny = delta + trim[1] * (v.mDimy - delta); in Cube()
34 float minz = delta + trim[2] * (v.mDimz - delta); in Cube()
35 float maxx = v.mDimx - delta - trim[3] * (v.mDimx - delta); in Cube()
36 float maxy = v.mDimy - delta - trim[4] * (v.mDimy - delta); in Cube()
37 float maxz = v.mDimz - delta - trim[5] * (v.mDimz - delta); in Cube()
Dvr.rscript67 float3 delta) {
68 float v_0_0 = mix(v_0_0_0, v_0_0_1, delta.x);
69 float v_0_1 = mix(v_0_1_0, v_0_1_1, delta.x);
70 float v_1_0 = mix(v_1_0_0, v_1_0_1, delta.x);
71 float v_1_1 = mix(v_1_1_0, v_1_1_1, delta.x);
72 float v_0 = mix(v_0_0, v_0_1, delta.y);
73 float v_1 = mix(v_1_0, v_1_1, delta.y);
74 float v = mix(v_0, v_1, delta.z);
139 float3 delta = p - convert_float3(ip);
154 delta);
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowSettings.java466 boolean updateFrom(@NonNull SettingsEntry delta) { in updateFrom() argument
468 if (delta.mWindowingMode != WindowConfiguration.WINDOWING_MODE_UNDEFINED in updateFrom()
469 && delta.mWindowingMode != mWindowingMode) { in updateFrom()
470 mWindowingMode = delta.mWindowingMode; in updateFrom()
473 if (delta.mUserRotationMode != null in updateFrom()
474 && !Objects.equals(delta.mUserRotationMode, mUserRotationMode)) { in updateFrom()
475 mUserRotationMode = delta.mUserRotationMode; in updateFrom()
478 if (delta.mUserRotation != null in updateFrom()
479 && !Objects.equals(delta.mUserRotation, mUserRotation)) { in updateFrom()
480 mUserRotation = delta.mUserRotation; in updateFrom()
[all …]
/frameworks/base/core/java/android/app/
DWindowConfiguration.java449 public @WindowConfig int updateFrom(@NonNull WindowConfiguration delta) { in updateFrom() argument
452 if (!delta.mBounds.isEmpty() && !delta.mBounds.equals(mBounds)) { in updateFrom()
454 setBounds(delta.mBounds); in updateFrom()
456 if (delta.mAppBounds != null && !delta.mAppBounds.equals(mAppBounds)) { in updateFrom()
458 setAppBounds(delta.mAppBounds); in updateFrom()
460 if (!delta.mMaxBounds.isEmpty() && !delta.mMaxBounds.equals(mMaxBounds)) { in updateFrom()
462 setMaxBounds(delta.mMaxBounds); in updateFrom()
464 if (delta.mWindowingMode != WINDOWING_MODE_UNDEFINED in updateFrom()
465 && mWindowingMode != delta.mWindowingMode) { in updateFrom()
467 setWindowingMode(delta.mWindowingMode); in updateFrom()
[all …]
/frameworks/av/media/libaaudio/src/utility/
DMonotonicCounter.h56 int64_t increment(int64_t delta) { in increment() argument
57 if (delta > 0) { in increment()
58 mCounter64 += delta; in increment()
77 int32_t delta = counter32 - mCounter32; in update32() local
79 if (delta > 0) { in update32()
80 mCounter64 += delta; in update32()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DTokenBucketTest.java79 int delta = 50; in testFill() local
80 TokenBucket tb = new TokenBucket(delta, 10, 0); in testFill()
84 Thread.sleep(3 * delta / 2); in testFill()
109 final int delta = 3; in testAverage() local
113 TokenBucket tb = new TokenBucket(delta, 20, 0); in testAverage()
117 Thread.sleep(5 * delta); in testAverage()
122 assertDuration(want * delta, SystemClock.elapsedRealtime() - start); in testAverage()
126 final int delta = 2; in testBurst() local
131 TokenBucket tb = new TokenBucket(delta, capacity, 0); in testBurst()
136 Thread.sleep(capacity * delta - 2); in testBurst()
[all …]
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
Dball_physics.rscript87 ball->delta = (ball->delta * (1.f - 0.008f)) + fv;
88 ball->position = ball->position + (ball->delta * gDT);
94 if (ball->delta.x > 0) {
95 ball->delta.x *= -0.7f;
99 ball->delta.x -= min(wallForce / (d * d), 10.f);
106 if (ball->delta.x < 0) {
107 ball->delta.x *= -0.7f;
111 ball->delta.x += min(wallForce / (d * d), 10.f);
118 if (ball->delta.y > 0) {
119 ball->delta.y *= -0.7f;
[all …]
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocalEventLog.java146 long delta = 0; in addLogEvent() local
148 delta = timeMs - mLastLogRealtimeMs; in addLogEvent()
153 if (delta < 0 || (delta / FillerEvent.MAX_TIME_DELTA) >= mLog.length - 1) { in addLogEvent()
155 delta = 0; in addLogEvent()
157 while (delta >= LogEvent.MAX_TIME_DELTA) { in addLogEvent()
158 long timeDelta = Math.min(FillerEvent.MAX_TIME_DELTA, delta); in addLogEvent()
160 delta -= timeDelta; in addLogEvent()
171 addLogEventInternal(createLogEvent(delta, event, args)); in addLogEvent()
/frameworks/base/startop/scripts/app_startup/
Danalyze_metrics.py299 def stats_tvalue(a, b, axis, delta = 0): argument
303 return (a_mean - b_mean - delta) / stats_standard_error(a, b, axis)
305 def stats_pvalue(a, b, axis, delta, left:bool = False): argument
320 t_value = stats_tvalue(a, b, axis, delta)
338 delta = _DELTA
352 …-- Right-tailed t-test checks if the baseline >= current %s by at least %d" %(_BASELINE[0], delta))
378 t2 = stats_tvalue(baseline_np_data_2d, rest_np_data_2d, axis=0, delta=delta)
379 p2 = stats_pvalue(baseline_np_data_2d, rest_np_data_2d, axis=0, delta=delta)
381 t2_b = stats_tvalue(baseline_np_data_2d, rest_np_data_2d, axis=0, delta=_DELTA2)
382 p2_b = stats_pvalue(baseline_np_data_2d, rest_np_data_2d, axis=0, delta=_DELTA2)
[all …]
/frameworks/rs/script_api/
DGenerateRSFunctionsList.cpp199 string delta; // The part of the mangling we're generating for this recursion. in mangleType() local
204 delta = "P"; in mangleType()
207 delta = "K"; in mangleType()
209 delta = "V"; in mangleType()
212 delta = "Dv" + vectorSize + "_"; in mangleType()
220 delta = mangleLongName(tokens->front()); in mangleType()
224 delta = "z"; in mangleType()
230 delta = c; in mangleType()
235 delta = mangleLongName(tokens->front()); in mangleType()
251 *mangling = delta; in mangleType()
[all …]
/frameworks/native/libs/gui/
DOccupancyTracker.cpp66 nsecs_t delta = now - mLastOccupancyChangeTime; in registerOccupancyChange() local
67 if (delta > NEW_SEGMENT_DELAY) { in registerOccupancyChange()
70 mPendingSegment.totalTime += delta; in registerOccupancyChange()
72 mPendingSegment.mOccupancyTimes[mLastOccupancy] += delta; in registerOccupancyChange()
74 mPendingSegment.mOccupancyTimes[mLastOccupancy] = delta; in registerOccupancyChange()
DFrameTimestamps.cpp273 const FrameEventHistoryDelta& delta) { in applyDelta() argument
274 mCompositorTiming = delta.mCompositorTiming; in applyDelta()
276 for (auto& d : delta.mDeltas) { in applyDelta()
459 void ConsumerFrameEventHistory::getFrameDelta(FrameEventHistoryDelta* delta, in getFrameDelta() argument
468 delta->mDeltas.emplace_back(i, *frame, mFramesDirty[i]); in getFrameDelta()
475 FrameEventHistoryDelta* delta) { in getAndResetDelta() argument
477 delta->mCompositorTiming = mCompositorTiming; in getAndResetDelta()
481 delta->mDeltas.reserve(mFramesDirty.size()); in getAndResetDelta()
485 getFrameDelta(delta, frame); in getAndResetDelta()
488 getFrameDelta(delta, frame); in getAndResetDelta()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dcolorspace.cpp116 float delta; in JNI_COLORSPACE_METHOD() local
132 delta = c_max -c_min; in JNI_COLORSPACE_METHOD()
136 h = (g > b) ? static_cast<int>(scaler * (g - b) / delta) : in JNI_COLORSPACE_METHOD()
137 static_cast<int>(scaler * ((g - b) / delta + 6)); in JNI_COLORSPACE_METHOD()
139 h = static_cast<int>(scaler * ((b - r) / delta + 2)); in JNI_COLORSPACE_METHOD()
141 h = static_cast<int>(scaler * ((r - g) / delta + 4)); in JNI_COLORSPACE_METHOD()
143 s = (delta == 0.0f) ? 0 : static_cast<unsigned char>(delta / c_max * 255); in JNI_COLORSPACE_METHOD()
/frameworks/base/test-base/src/junit/framework/
DAssert.java98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
101 if (!(Math.abs(expected-actual) <= delta)) in assertEquals()
108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument
109 assertEquals(null, expected, actual, delta); in assertEquals()
116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
119 if (!(Math.abs(expected - actual) <= delta)) in assertEquals()
126 static public void assertEquals(float expected, float actual, float delta) { in assertEquals() argument
127 assertEquals(null, expected, actual, delta); in assertEquals()
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBNNMTest.java94 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta)); in addByteNoise() local
96 delta = -delta; in addByteNoise()
98 int newValue = (originalValue + delta); in addByteNoise()
135 int delta = (expectedValue - actualValue); in testWithTolerance() local
137 if ((delta < -1) || (delta > 1)) { in testWithTolerance()
141 if (delta != 0) { in testWithTolerance()
/frameworks/av/media/libcpustats/
DCentralTendencyStatistics.cpp33 double delta = x - mMean; in sample() local
34 mMean += delta / mN; in sample()
35 mM2 += delta * (x - mMean); in sample()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DAdaptiveIconDrawableTest.java143 double delta = 0.01; in testGetIconMask_withoutBounds() local
144 assertEquals("left", boundFromDrawable.left, boundFromDeviceConfig.left, delta); in testGetIconMask_withoutBounds()
145 assertEquals("top", boundFromDrawable.top, boundFromDeviceConfig.top, delta); in testGetIconMask_withoutBounds()
146 assertEquals("right", boundFromDrawable.right, boundFromDeviceConfig.right, delta); in testGetIconMask_withoutBounds()
147 assertEquals("bottom", boundFromDrawable.bottom, boundFromDeviceConfig.bottom, delta); in testGetIconMask_withoutBounds()
164 double delta = 0.01; in testGetIconMaskAfterSetBounds() local
165 assertEquals("left", left, maskBounds.left, delta); in testGetIconMaskAfterSetBounds()
166 assertEquals("top", top, maskBounds.top, delta); in testGetIconMaskAfterSetBounds()
167 assertEquals("right", right, maskBounds.right, delta); in testGetIconMaskAfterSetBounds()
168 assertEquals("bottom", bottom, maskBounds.bottom, delta); in testGetIconMaskAfterSetBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DCornerPathRenderer.java60 private Path approximateInnerPath(Path input, float delta) { in approximateInnerPath() argument
61 List<PointF> points = shiftBy(getApproximatePoints(input), delta); in approximateInnerPath()
77 private ArrayList<PointF> shiftBy(ArrayList<PointF> input, float delta) { in shiftBy() argument
84 new PointF(point.x + (normal.x * delta), point.y + (normal.y * delta)); in shiftBy()
/frameworks/av/media/libmediaformatshaper/
DVQApply.cpp251 void qpSpreadPerFrameType(AMediaFormat *format, int delta, in qpSpreadPerFrameType() argument
255 qpSpreadMaxPerFrameType(format, delta, qphigh, override); in qpSpreadPerFrameType()
260 void qpSpreadMaxPerFrameType(AMediaFormat *format, int delta, int qphigh, bool override) { in qpSpreadMaxPerFrameType() argument
261 ALOGV("format %p delta %d hi %d override %d", format, delta, qphigh, override); in qpSpreadMaxPerFrameType()
276 int32_t value = std::min({(std::min(qpOffered, INT32_MAX-1*delta) + 1*delta), in qpSpreadMaxPerFrameType()
283 int32_t value = std::min({(std::min(qpOffered, INT32_MAX-2*delta) + 2*delta), in qpSpreadMaxPerFrameType()
/frameworks/opt/car/services/src/com/android/internal/car/
DUserMetrics.java311 long delta = switchTime - startTime; in dump() local
317 TimeUtils.formatDuration(delta, pw); in dump()
321 long delta = unlockingTime - startTime; in dump() local
323 TimeUtils.formatDuration(delta, pw); in dump()
326 long delta = unlockedTime - startTime; in dump() local
328 TimeUtils.formatDuration(delta, pw); in dump()
349 long delta = shutdownTime - stopTime; in dump() local
351 TimeUtils.formatDuration(delta, pw); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java321 float delta = pos - mInitialTouchPos; in onInterceptTouchEvent() local
328 if (Math.abs(delta) > pagingTouchSlop in onInterceptTouchEvent()
329 && Math.abs(delta) > Math.abs(deltaPerpendicular)) { in onInterceptTouchEvent()
547 protected void onMoveUpdate(View view, MotionEvent ev, float totalTranslation, float delta) { in onMoveUpdate() argument
621 float delta = getPos(ev) - mInitialTouchPos; in onTouchEvent() local
622 float absDelta = Math.abs(delta); in onTouchEvent()
630 delta > 0)) { in onTouchEvent()
634 delta = delta > 0 ? maxScrollDistance : -maxScrollDistance; in onTouchEvent()
639 (int) (startPosition * Math.signum(delta)); in onTouchEvent()
640 delta = signedStartPosition in onTouchEvent()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DClientDescriptor.h125 int delta = active ? 1 : -1; in setActive() local
126 changeActivityCount(delta); in setActive()
128 void changeActivityCount(int delta) in changeActivityCount() argument
130 if (delta > 0) { in changeActivityCount()
131 mActivityCount += delta; in changeActivityCount()
134 __func__, toShortString().c_str(), delta); in changeActivityCount()
135 LOG_ALWAYS_FATAL_IF(static_cast<int>(mActivityCount) < -delta, in changeActivityCount()
137 __func__, toShortString().c_str(), delta, mActivityCount); in changeActivityCount()
138 mActivityCount += delta; in changeActivityCount()
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/
DMainActivity.java72 float delta = (pos - clickedPosition) * 1.1f; in onItemClick() local
73 if (delta == 0) delta = -1; in onItemClick()
75 RenderNodeAnimator.TRANSLATION_Y, dy * delta); in onItemClick()

1234567