/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 1415 public @Config int updateFrom(@NonNull Configuration delta) { in updateFrom() argument 1417 if (delta.fontScale > 0 && fontScale != delta.fontScale) { in updateFrom() 1419 fontScale = delta.fontScale; in updateFrom() 1421 if (delta.mcc != 0 && mcc != delta.mcc) { in updateFrom() 1423 mcc = delta.mcc; in updateFrom() 1425 if (delta.mnc != 0 && mnc != delta.mnc) { in updateFrom() 1427 mnc = delta.mnc; in updateFrom() 1430 delta.fixUpLocaleList(); in updateFrom() 1431 if (!delta.mLocaleList.isEmpty() && !mLocaleList.equals(delta.mLocaleList)) { in updateFrom() 1433 mLocaleList = delta.mLocaleList; in updateFrom() [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Cube.java | 25 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()
|
D | vr.rscript | 67 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/core/tests/coretests/src/com/android/internal/util/ |
D | TokenBucketTest.java | 79 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/av/media/libaaudio/src/utility/ |
D | MonotonicCounter.h | 56 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/rs/tests/java_api/Balls/src/com/example/android/rs/balls/ |
D | ball_physics.rscript | 87 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/core/java/android/app/ |
D | WindowConfiguration.java | 401 public @WindowConfig int updateFrom(@NonNull WindowConfiguration delta) { in updateFrom() argument 404 if (!delta.mBounds.isEmpty() && !delta.mBounds.equals(mBounds)) { in updateFrom() 406 setBounds(delta.mBounds); in updateFrom() 408 if (delta.mAppBounds != null && !delta.mAppBounds.equals(mAppBounds)) { in updateFrom() 410 setAppBounds(delta.mAppBounds); in updateFrom() 412 if (delta.mWindowingMode != WINDOWING_MODE_UNDEFINED in updateFrom() 413 && mWindowingMode != delta.mWindowingMode) { in updateFrom() 415 setWindowingMode(delta.mWindowingMode); in updateFrom() 417 if (delta.mActivityType != ACTIVITY_TYPE_UNDEFINED in updateFrom() 418 && mActivityType != delta.mActivityType) { in updateFrom() [all …]
|
/frameworks/ml/nn/common/operations/ |
D | HeatmapMaxKeypoint.cpp | 55 static void solveForDelta(const float grid[3][3], float* delta, float* deltaScore, in solveForDelta() argument 72 delta[0] = (A[1][1] * b[0] - A[0][1] * b[1]) / detA; in solveForDelta() 73 delta[1] = (A[0][0] * b[1] - A[1][0] * b[0]) / detA; in solveForDelta() 76 if (std::abs(delta[0]) > 1.5f || std::abs(delta[1]) > 1.5f) { in solveForDelta() 77 float scale = 1.5f / std::max(std::abs(delta[0]), std::abs(delta[1])); in solveForDelta() 78 delta[0] *= scale; in solveForDelta() 79 delta[1] *= scale; in solveForDelta() 82 *deltaScore = grid[1][1] - b[0] * delta[0] - b[1] * delta[1] + in solveForDelta() 83 ((A[0][0] * delta[0] + A[0][1] * delta[1]) * delta[0] + in solveForDelta() 84 (A[1][0] * delta[0] + A[1][1] * delta[1]) * delta[1]) / in solveForDelta() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryExternalStatsWorker.java | 560 final WifiActivityEnergyInfo delta = mLastInfo; in extractDeltaLocked() local 561 delta.mTimestamp = latest.getTimeStamp(); in extractDeltaLocked() 562 delta.mStackState = latest.getStackState(); in extractDeltaLocked() 576 delta.mControllerEnergyUsed = latest.mControllerEnergyUsed; in extractDeltaLocked() 577 delta.mControllerRxTimeMs = latest.mControllerRxTimeMs; in extractDeltaLocked() 578 delta.mControllerTxTimeMs = latest.mControllerTxTimeMs; in extractDeltaLocked() 579 delta.mControllerIdleTimeMs = latest.mControllerIdleTimeMs; in extractDeltaLocked() 580 delta.mControllerScanTimeMs = latest.mControllerScanTimeMs; in extractDeltaLocked() 582 delta.mControllerEnergyUsed = 0; in extractDeltaLocked() 583 delta.mControllerRxTimeMs = 0; in extractDeltaLocked() [all …]
|
/frameworks/base/startop/scripts/app_startup/ |
D | analyze_metrics.py | 299 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/ |
D | GenerateRSFunctionsList.cpp | 199 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/ |
D | OccupancyTracker.cpp | 66 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()
|
D | FrameTimestamps.cpp | 273 const FrameEventHistoryDelta& delta) { in applyDelta() argument 274 mCompositorTiming = delta.mCompositorTiming; in applyDelta() 276 for (auto& d : delta.mDeltas) { in applyDelta() 455 void ConsumerFrameEventHistory::getFrameDelta(FrameEventHistoryDelta* delta, in getFrameDelta() argument 464 delta->mDeltas.emplace_back(i, *frame, mFramesDirty[i]); in getFrameDelta() 471 FrameEventHistoryDelta* delta) { in getAndResetDelta() argument 473 delta->mCompositorTiming = mCompositorTiming; in getAndResetDelta() 477 delta->mDeltas.reserve(mFramesDirty.size()); in getAndResetDelta() 481 getFrameDelta(delta, frame); in getAndResetDelta() 484 getFrameDelta(delta, frame); in getAndResetDelta() [all …]
|
/frameworks/base/test-base/src/junit/framework/ |
D | Assert.java | 98 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
D | colorspace.cpp | 116 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/tests/net/java/android/net/ |
D | NetworkStatsTest.java | 586 NetworkStats delta = new NetworkStats(TEST_START, 17) in testMigrateTun() local 619 delta.migrateTun(tunUid, tunIface, new String[]{underlyingIface}); in testMigrateTun() 620 assertEquals(20, delta.size()); in testMigrateTun() 623 assertValues(delta, 0, tunIface, 10100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 625 assertValues(delta, 1, tunIface, 10100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 627 assertValues(delta, 2, tunIface, 10120, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 629 assertValues(delta, 3, tunIface, 10120, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 631 assertValues(delta, 4, tunIface, tunUid, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 633 assertValues(delta, 5, tunIface, tunUid, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 635 assertValues(delta, 6, tunIface, 10120, SET_DEFAULT, testTag1, METERED_NO, ROAMING_NO, in testMigrateTun() [all …]
|
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
D | BNNMTest.java | 94 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/base/core/tests/coretests/src/android/graphics/drawable/ |
D | AdaptiveIconDrawableTest.java | 143 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() 167 double delta = 0.01; in testGetIconMaskAfterSetBounds() local 168 assertEquals("left", left, maskBounds.left, delta); in testGetIconMaskAfterSetBounds() 169 assertEquals("top", top, maskBounds.top, delta); in testGetIconMaskAfterSetBounds() 170 assertEquals("right", right, maskBounds.right, delta); in testGetIconMaskAfterSetBounds() 171 assertEquals("bottom", bottom, maskBounds.bottom, delta); in testGetIconMaskAfterSetBounds()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | ClientDescriptor.h | 114 int delta = active ? 1 : -1; in setActive() local 115 changeActivityCount(delta); in setActive() 117 void changeActivityCount(int delta) in changeActivityCount() argument 119 if (delta > 0) { in changeActivityCount() 120 mActivityCount += delta; in changeActivityCount() 123 __func__, toShortString().c_str(), delta); in changeActivityCount() 124 LOG_ALWAYS_FATAL_IF(static_cast<int>(mActivityCount) < -delta, in changeActivityCount() 126 __func__, toShortString().c_str(), delta, mActivityCount); in changeActivityCount() 127 mActivityCount += delta; in changeActivityCount()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | CornerPathRenderer.java | 60 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/libcpustats/ |
D | CentralTendencyStatistics.cpp | 33 double delta = x - mMean; in sample() local 34 mMean += delta / mN; in sample() 35 mM2 += delta * (x - mMean); in sample()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 320 float delta = pos - mInitialTouchPos; in onInterceptTouchEvent() local 322 if (Math.abs(delta) > mPagingTouchSlop in onInterceptTouchEvent() 323 && Math.abs(delta) > Math.abs(deltaPerpendicular)) { in onInterceptTouchEvent() 530 protected void onMoveUpdate(View view, MotionEvent ev, float totalTranslation, float delta) { in onMoveUpdate() argument 605 float delta = getPos(ev) - mInitialTouchPos; in onTouchEvent() local 606 float absDelta = Math.abs(delta); in onTouchEvent() 613 delta > 0)) { in onTouchEvent() 617 delta = delta > 0 ? maxScrollDistance : -maxScrollDistance; in onTouchEvent() 622 (int) (startPosition * Math.signum(delta)); in onTouchEvent() 623 delta = signedStartPosition in onTouchEvent() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | Measurement.cpp | 106 float delta = getRunAdvance(advances, buf, start, searchStart, count - searchStart, i) in getOffsetForAdvance() local 109 if (std::abs(delta) < bestDist) { in getOffsetForAdvance() 110 bestDist = std::abs(delta); in getOffsetForAdvance() 113 if (delta >= 0.0f) { in getOffsetForAdvance()
|
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/ |
D | MainActivity.java | 72 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()
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 160 void inset(float delta) { outset(-delta); } in inset() argument 162 void outset(float delta) { in outset() argument 163 left -= delta; in outset() 164 top -= delta; in outset() 165 right += delta; in outset() 166 bottom += delta; in outset()
|