/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 1111 public @Config int updateFrom(@NonNull Configuration delta) { in updateFrom() argument 1113 if (delta.fontScale > 0 && fontScale != delta.fontScale) { in updateFrom() 1115 fontScale = delta.fontScale; in updateFrom() 1117 if (delta.mcc != 0 && mcc != delta.mcc) { in updateFrom() 1119 mcc = delta.mcc; in updateFrom() 1121 if (delta.mnc != 0 && mnc != delta.mnc) { in updateFrom() 1123 mnc = delta.mnc; in updateFrom() 1126 delta.fixUpLocaleList(); in updateFrom() 1127 if (!delta.mLocaleList.isEmpty() && !mLocaleList.equals(delta.mLocaleList)) { in updateFrom() 1129 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.rs | 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/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | chvr_filter.cpp | 42 int sum, delta; in CombinedHorzVertRingFilter() local 146 … delta = (sum + *ptr_c + 4) >> 3; /* Average pixel values with rounding */ in CombinedHorzVertRingFilter() 147 *(ptr_c) = (uint8) delta; in CombinedHorzVertRingFilter() 158 delta = (sum + *ptr_c + 4) >> 3; in CombinedHorzVertRingFilter() 159 *ptr_c = (uint8)(delta); in CombinedHorzVertRingFilter() 209 delta = (*(ptr - w1) - *(ptr)) >> 1; in CombinedHorzVertRingFilter() 210 if (delta >= 0) in CombinedHorzVertRingFilter() 212 if (delta >= A3_0) in CombinedHorzVertRingFilter() 214 delta = PV_MAX(A3_0, 0); in CombinedHorzVertRingFilter() 221 delta = 0; in CombinedHorzVertRingFilter() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/ |
D | armVCM4P10_DeBlockPixel.c | 71 int ap, aq, delta; in armVCM4P10_DeBlockPixel() local 117 delta = (((q0-p0)<<2) + (p1-q1) + 4) >> 3; in armVCM4P10_DeBlockPixel() 118 delta = armClip(-tC, tC, delta); in armVCM4P10_DeBlockPixel() 120 pQ0[-1*Step] = (OMX_U8)armClip(0, 255, p0 + delta); in armVCM4P10_DeBlockPixel() 121 pQ0[ 0*Step] = (OMX_U8)armClip(0, 255, q0 - delta); in armVCM4P10_DeBlockPixel() 125 delta = (p2 + ((p0+q0+1)>>1) - (p1<<1))>>1; in armVCM4P10_DeBlockPixel() 126 delta = armClip(-tC0, tC0, delta); in armVCM4P10_DeBlockPixel() 127 pQ0[-2*Step] = (OMX_U8)(p1 + delta); in armVCM4P10_DeBlockPixel() 132 delta = (q2 + ((p0+q0+1)>>1) - (q1<<1))>>1; in armVCM4P10_DeBlockPixel() 133 delta = armClip(-tC0, tC0, delta); in armVCM4P10_DeBlockPixel() [all …]
|
/frameworks/av/media/libaaudio/src/utility/ |
D | MonotonicCounter.h | 54 int64_t increment(int64_t delta) { in increment() argument 55 if (delta > 0) { in increment() 56 mCounter64 += delta; in increment() 75 int32_t delta = counter32 - mCounter32; in update32() local 77 if (delta > 0) { in update32() 78 mCounter64 += delta; in update32()
|
D | AAudioUtilities.cpp | 122 float delta = (amplitude2 - amplitude1) / numFrames; in AAudioConvert_floatToPcm16() local 128 scaler += delta; in AAudioConvert_floatToPcm16() 152 float delta = (amplitude2 - amplitude1) / (SHORT_SCALE * (float) numFrames); in AAudioConvert_pcm16ToFloat() local 157 scaler += delta; in AAudioConvert_pcm16ToFloat() 169 float delta = (amplitude2 - amplitude1) / numFrames; in AAudio_linearRamp() local 180 scaler += delta; in AAudio_linearRamp() 192 float delta = (amplitude2 - amplitude1) / (SHORT_SCALE * (float) numFrames); in AAudio_linearRamp() local 199 scaler += delta; in AAudio_linearRamp()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | TokenBucketTest.java | 78 int delta = 50; in testFill() local 79 TokenBucket tb = new TokenBucket(delta, 10, 0); in testFill() 83 Thread.sleep(3 * delta / 2); in testFill() 108 final int delta = 3; in testAverage() local 112 TokenBucket tb = new TokenBucket(delta, 20, 0); in testAverage() 116 Thread.sleep(5 * delta); in testAverage() 121 assertDuration(want * delta, SystemClock.elapsedRealtime() - start); in testAverage() 125 final int delta = 2; in testBurst() local 130 TokenBucket tb = new TokenBucket(delta, capacity, 0); in testBurst() 135 Thread.sleep(capacity * delta - 2); in testBurst() [all …]
|
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/ |
D | ball_physics.rs | 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/tests/net/java/android/net/ |
D | NetworkStatsTest.java | 467 NetworkStats delta = new NetworkStats(TEST_START, 17) in testMigrateTun() local 500 assertTrue(delta.migrateTun(tunUid, tunIface, underlyingIface)); in testMigrateTun() 501 assertEquals(20, delta.size()); in testMigrateTun() 504 assertValues(delta, 0, tunIface, 10100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 506 assertValues(delta, 1, tunIface, 10100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 508 assertValues(delta, 2, tunIface, 10120, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 510 assertValues(delta, 3, tunIface, 10120, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 512 assertValues(delta, 4, tunIface, tunUid, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 514 assertValues(delta, 5, tunIface, tunUid, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testMigrateTun() 516 assertValues(delta, 6, tunIface, 10120, SET_DEFAULT, testTag1, METERED_NO, ROAMING_NO, in testMigrateTun() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryExternalStatsWorker.java | 339 final WifiActivityEnergyInfo delta = mLastInfo; in extractDeltaLocked() local 340 delta.mTimestamp = latest.getTimeStamp(); in extractDeltaLocked() 341 delta.mStackState = latest.getStackState(); in extractDeltaLocked() 350 delta.mControllerEnergyUsed = latest.mControllerEnergyUsed; in extractDeltaLocked() 351 delta.mControllerRxTimeMs = latest.mControllerRxTimeMs; in extractDeltaLocked() 352 delta.mControllerTxTimeMs = latest.mControllerTxTimeMs; in extractDeltaLocked() 353 delta.mControllerIdleTimeMs = latest.mControllerIdleTimeMs; in extractDeltaLocked() 354 Slog.v(TAG, "WiFi energy data was reset, new WiFi energy data is " + delta); in extractDeltaLocked() 389 delta.mControllerTxTimeMs = txTimeMs; in extractDeltaLocked() 390 delta.mControllerRxTimeMs = rxTimeMs; in extractDeltaLocked() [all …]
|
/frameworks/rs/script_api/ |
D | GenerateStubsWhiteList.cpp | 198 string delta; // The part of the mangling we're generating for this recursion. in mangleType() local 203 delta = "P"; in mangleType() 206 delta = "K"; in mangleType() 208 delta = "V"; in mangleType() 211 delta = "Dv" + vectorSize + "_"; in mangleType() 219 delta = mangleLongName(tokens->front()); in mangleType() 223 delta = "z"; in mangleType() 229 delta = c; in mangleType() 234 delta = mangleLongName(tokens->front()); in mangleType() 250 *mangling = delta; in mangleType() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioSession.cpp | 50 uint32_t AudioSession::changeOpenCount(int delta) in changeOpenCount() argument 52 if ((delta + (int)mOpenCount) < 0) { in changeOpenCount() 54 __FUNCTION__, delta, mOpenCount); in changeOpenCount() 55 mOpenCount = (uint32_t)(-delta); in changeOpenCount() 57 mOpenCount += delta; in changeOpenCount() 62 uint32_t AudioSession::changeActiveCount(int delta) in changeActiveCount() argument 65 if ((delta + (int)mActiveCount) < 0) { in changeActiveCount() 67 __FUNCTION__, delta, mActiveCount); in changeActiveCount() 68 mActiveCount = (uint32_t)(-delta); in changeActiveCount() 70 mActiveCount += delta; in changeActiveCount()
|
D | AudioOutputDescriptor.cpp | 90 int delta) in changeRefCount() argument 92 if ((delta + (int)mRefCount[stream]) < 0) { in changeRefCount() 94 delta, stream, mRefCount[stream]); in changeRefCount() 98 mRefCount[stream] += delta; in changeRefCount() 300 int delta) in changeRefCount() argument 304 mOutput1->changeRefCount(stream, delta); in changeRefCount() 305 mOutput2->changeRefCount(stream, delta); in changeRefCount() 307 AudioOutputDescriptor::changeRefCount(stream, delta); in changeRefCount() 311 if ((delta + (int)mGlobalRefCount) < 0) { in changeRefCount() 312 ALOGW("changeRefCount() invalid delta %d globalRefCount %d", delta, mGlobalRefCount); in changeRefCount() [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 | 267 const FrameEventHistoryDelta& delta) { in applyDelta() argument 268 mCompositorTiming = delta.mCompositorTiming; in applyDelta() 270 for (auto& d : delta.mDeltas) { in applyDelta() 447 FrameEventHistoryDelta* delta, in getFrameDelta() argument 456 delta->mDeltas.emplace_back(i, *frame, mFramesDirty[i]); in getFrameDelta() 463 FrameEventHistoryDelta* delta) { in getAndResetDelta() argument 465 delta->mCompositorTiming = mCompositorTiming; in getAndResetDelta() 469 delta->mDeltas.reserve(mFramesDirty.size()); in getAndResetDelta() 473 getFrameDelta(delta, frame); in getAndResetDelta() 476 getFrameDelta(delta, frame); in getAndResetDelta() [all …]
|
/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/legacy-test/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/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 | 126 double delta = 0.01; in testGetIconMask_withoutBounds() local 127 assertEquals("left", boundFromDrawable.left, boundFromDeviceConfig.left, delta); in testGetIconMask_withoutBounds() 128 assertEquals("top", boundFromDrawable.top, boundFromDeviceConfig.top, delta); in testGetIconMask_withoutBounds() 129 assertEquals("right", boundFromDrawable.right, boundFromDeviceConfig.right, delta); in testGetIconMask_withoutBounds() 130 assertEquals("bottom", boundFromDrawable.bottom, boundFromDeviceConfig.bottom, delta); in testGetIconMask_withoutBounds() 150 double delta = 0.01; in testGetIconMaskAfterSetBounds() local 151 assertEquals("left", left, maskBounds.left, delta); in testGetIconMaskAfterSetBounds() 152 assertEquals("top", top, maskBounds.top, delta); in testGetIconMaskAfterSetBounds() 153 assertEquals("right", right, maskBounds.right, delta); in testGetIconMaskAfterSetBounds() 154 assertEquals("bottom", bottom, maskBounds.bottom, delta); in testGetIconMaskAfterSetBounds()
|
/frameworks/base/libs/common_time/ |
D | utils.cpp | 42 nsecs_t delta = mSystemEndTime - nowTime; in msecTillTimeout() local 43 delta += 999999; in msecTillTimeout() 44 delta /= 1000000; in msecTillTimeout() 45 if (delta > 0x7FFFFFFF) { in msecTillTimeout() 49 return static_cast<int>(delta); in msecTillTimeout()
|
/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/minikin/libs/minikin/ |
D | Measurement.cpp | 109 float delta = getRunAdvance(advances, buf, start, searchStart, count - searchStart, i) in getOffsetForAdvance() local 112 if (std::abs(delta) < bestDist) { in getOffsetForAdvance() 113 bestDist = std::abs(delta); in getOffsetForAdvance() 116 if (delta >= 0.0f) { in getOffsetForAdvance()
|
/frameworks/base/services/net/java/android/net/ip/ |
D | IpManager.java | 941 ProvisioningChange delta; in compareProvisioning() local 947 delta = ProvisioningChange.GAINED_PROVISIONING; in compareProvisioning() 949 delta = ProvisioningChange.STILL_PROVISIONED; in compareProvisioning() 951 delta = ProvisioningChange.STILL_NOT_PROVISIONED; in compareProvisioning() 963 delta = ProvisioningChange.LOST_PROVISIONING; in compareProvisioning() 998 delta = ProvisioningChange.LOST_PROVISIONING; in compareProvisioning() 1007 delta = ProvisioningChange.LOST_PROVISIONING; in compareProvisioning() 1010 return delta; in compareProvisioning() 1013 private void dispatchCallback(ProvisioningChange delta, LinkProperties newLp) { in dispatchCallback() argument 1014 switch (delta) { in dispatchCallback() [all …]
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/ |
D | OSUInfo.java | 215 int delta = iconInfo.getWidth() - width; in getIconInfo() local 217 if (delta >= 0) { in getIconInfo() 218 score += (256 - delta) * 4; // Prefer down-scaling in getIconInfo() 220 score += 256 + delta; // Before up-scaling in getIconInfo() 222 delta = iconInfo.getHeight() - height; in getIconInfo() 223 if (delta >= 0) { in getIconInfo() 224 score += (256 - delta) * 4; in getIconInfo() 226 score += 256 + delta; in getIconInfo()
|