Searched refs:delta (Results 1 - 25 of 174) sorted by relevance

1234567

/frameworks/av/media/libaaudio/src/utility/
H A DMonotonicCounter.h51 * Advance the counter if delta is positive.
54 int64_t increment(int64_t delta) { argument
55 if (delta > 0) {
56 mCounter64 += delta;
75 int32_t delta = counter32 - mCounter32; local
77 if (delta > 0) {
78 mCounter64 += delta;
H A DAAudioUtilities.cpp96 float delta = (amplitude2 - amplitude1) / numFrames; local
102 scaler += delta;
126 const float delta = (amplitude2 - amplitude1) / (SHORT_SCALE * (float) numFrames); local
131 scaler += delta;
144 const float delta = (amplitude2 - amplitude1) / numFrames; local
153 scaler += delta;
166 const float delta = (amplitude2 - amplitude1) / numFrames; local
173 scaler += delta;
198 const float delta = (amplitude2 - amplitude1) / numFrames; local
200 const float scaler = amplitude1 + (frameIndex * delta);
227 const float delta = (amplitude2 - amplitude1) / (SHORT_SCALE * (float) numFrames); local
242 const float delta = (amplitude2 - amplitude1) / numFrames; local
263 const float delta = (amplitude2 - amplitude1) / numFrames; local
[all...]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DCube.java25 public Cube(Volume v, float delta) { argument
26 this(v, delta, new float[]{0, 0, 0, 0, 0, 0});
29 public Cube(Volume v, float delta, float[] trim) { argument
32 float minx = delta + trim[0] * (v.mDimx - delta);
33 float miny = delta + trim[1] * (v.mDimy - delta);
34 float minz = delta + trim[2] * (v.mDimz - delta);
35 float maxx = v.mDimx - delta
[all...]
H A Dvr.rs67 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/java/android/content/res/
H A DConfiguration.java857 * Configuration delta that will be applied to some valid Configuration object. In order to
1215 * Copies the fields from delta into this Configuration object, keeping
1216 * track of which ones have changed. Any undefined fields in {@code delta}
1221 public @Config int updateFrom(@NonNull Configuration delta) { argument
1223 if (delta.fontScale > 0 && fontScale != delta.fontScale) {
1225 fontScale = delta.fontScale;
1227 if (delta.mcc != 0 && mcc != delta.mcc) {
1229 mcc = delta
1428 diff(Configuration delta) argument
1440 diffPublicOnly(Configuration delta) argument
1449 diff(Configuration delta, boolean compareUndefined, boolean publicOnly) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dchvr_filter.cpp42 int sum, delta; local
146 delta = (sum + *ptr_c + 4) >> 3; /* Average pixel values with rounding */
147 *(ptr_c) = (uint8) delta;
158 delta = (sum + *ptr_c + 4) >> 3;
159 *ptr_c = (uint8)(delta);
209 delta = (*(ptr - w1) - *(ptr)) >> 1;
210 if (delta >= 0)
212 if (delta >= A3_0)
214 delta = PV_MAX(A3_0, 0);
221 delta
[all...]
/frameworks/av/media/libcpustats/
H A DCentralTendencyStatistics.cpp33 double delta = x - mMean; local
34 mMean += delta / mN;
35 mM2 += delta * (x - mMean);
H A DThreadCpuUsage.cpp68 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + local
70 mAccumulator += delta;
113 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + local
115 mAccumulator += delta;
/frameworks/base/media/java/android/media/
H A DIRemoteDisplayProvider.aidl30 void adjustVolume(String id, int delta);
/frameworks/base/core/tests/coretests/src/android/util/
H A DTokenBucketTest.java78 int delta = 50;
79 TokenBucket tb = new TokenBucket(delta, 10, 0);
83 Thread.sleep(3 * delta / 2);
108 final int delta = 3;
112 TokenBucket tb = new TokenBucket(delta, 20, 0);
116 Thread.sleep(5 * delta);
121 assertDuration(want * delta, SystemClock.elapsedRealtime() - start);
125 final int delta = 2;
130 TokenBucket tb = new TokenBucket(delta, capacity, 0);
135 Thread.sleep(capacity * delta
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DKernelUidCpuActiveTimeReader.java42 * proper delta.
50 * caller has its own view of delta.
85 double delta = activeTime - mLastUidCpuActiveTimeMs.get(uid, 0.0);
86 if (delta > 0) {
89 callback.onUidCpuActiveTime(uid, (long) delta);
91 } else if (delta < 0) {
92 Slog.e(TAG, "Negative delta from active time proc: " + delta);
/frameworks/native/libs/gui/
H A DOccupancyTracker.cpp66 nsecs_t delta = now - mLastOccupancyChangeTime; local
67 if (delta > NEW_SEGMENT_DELAY) {
70 mPendingSegment.totalTime += delta;
72 mPendingSegment.mOccupancyTimes[mLastOccupancy] += delta;
74 mPendingSegment.mOccupancyTimes[mLastOccupancy] = delta;
/frameworks/base/core/java/android/app/
H A DWindowConfiguration.java301 * Copies the fields from delta into this Configuration object, keeping
302 * track of which ones have changed. Any undefined fields in {@code delta}
308 public @WindowConfig int updateFrom(@NonNull WindowConfiguration delta) { argument
311 if (!delta.mBounds.isEmpty() && !delta.mBounds.equals(mBounds)) {
313 setBounds(delta.mBounds);
315 if (delta.mAppBounds != null && !delta.mAppBounds.equals(mAppBounds)) {
317 setAppBounds(delta.mAppBounds);
319 if (delta
[all...]
/frameworks/rs/script_api/
H A DGenerateStubsWhiteList.cpp199 string delta; // The part of the mangling we're generating for this recursion. local
204 delta = "P";
207 delta = "K";
209 delta = "V";
212 delta = "Dv" + vectorSize + "_";
220 delta = mangleLongName(tokens->front());
224 delta = "z";
230 delta = c;
235 delta = mangleLongName(tokens->front());
251 *mangling = delta;
[all...]
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
H A DSelection.java120 Map<K, Boolean> delta = new HashMap<>();
126 delta.put(key, false);
134 delta.put(key, false);
142 delta.put(key, true);
149 for (Map.Entry<K, Boolean> entry: delta.entrySet()) {
158 return delta;
/frameworks/base/core/java/android/gesture/
H A DInstance.java100 float delta = ORIENTATIONS[i] - orientation;
101 if (Math.abs(delta) < Math.abs(adjustment)) {
102 adjustment = delta;
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/
H A DMainActivity.java72 float delta = (pos - clickedPosition) * 1.1f;
73 if (delta == 0) delta = -1;
75 RenderNodeAnimator.TRANSLATION_Y, dy * delta);
/frameworks/minikin/libs/minikin/
H A DMeasurement.cpp106 float delta = getRunAdvance(advances, buf, start, searchStart, count - searchStart, i) local
109 if (std::abs(delta) < bestDist) {
110 bestDist = std::abs(delta);
113 if (delta >= 0.0f) {
/frameworks/support/media/api21/androidx/media/
H A DVolumeProviderCompatApi21.java46 void onAdjustVolume(int delta); argument
/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryExternalStatsWorker.java118 // Keep the last WiFi stats so we can compute a delta.
535 // We will modify the last info object to be the delta, and store the new
537 final WifiActivityEnergyInfo delta = mLastInfo;
538 delta.mTimestamp = latest.getTimeStamp();
539 delta.mStackState = latest.getStackState();
547 // The stats were reset by the WiFi system (which is why our delta is negative).
549 delta.mControllerEnergyUsed = latest.mControllerEnergyUsed;
550 delta.mControllerRxTimeMs = latest.mControllerRxTimeMs;
551 delta.mControllerTxTimeMs = latest.mControllerTxTimeMs;
552 delta
[all...]
/frameworks/base/test-base/src/junit/framework/
H A DAssert.java94 * Asserts that two doubles are equal concerning a delta. If they are not
96 * value is infinity then the delta value is ignored.
98 static public void assertEquals(String message, double expected, double actual, double delta) { argument
101 if (!(Math.abs(expected-actual) <= delta))
105 * Asserts that two doubles are equal concerning a delta. If the expected
106 * value is infinity then the delta value is ignored.
108 static public void assertEquals(double expected, double actual, double delta) { argument
109 assertEquals(null, expected, actual, delta);
112 * Asserts that two floats are equal concerning a positive delta. If they
114 * expected value is infinity then the delta valu
116 assertEquals(String message, float expected, float actual, float delta) argument
126 assertEquals(float expected, float actual, float delta) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dcolorspace.cpp116 float delta; local
132 delta = c_max -c_min;
136 h = (g > b) ? static_cast<int>(scaler * (g - b) / delta) :
137 static_cast<int>(scaler * ((g - b) / delta + 6));
139 h = static_cast<int>(scaler * ((b - r) / delta + 2));
141 h = static_cast<int>(scaler * ((r - g) / delta + 4));
143 s = (delta == 0.0f) ? 0 : static_cast<unsigned char>(delta / c_max * 255);
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
H A DBNNMTest.java94 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta));
96 delta = -delta;
98 int newValue = (originalValue + delta);
135 int delta = (expectedValue - actualValue);
137 if ((delta < -1) || (delta > 1)) {
141 if (delta != 0) {
/frameworks/base/libs/common_time/
H A Dutils.cpp42 nsecs_t delta = mSystemEndTime - nowTime; local
43 delta += 999999;
44 delta /= 1000000;
45 if (delta > 0x7FFFFFFF) {
49 return static_cast<int>(delta);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioSession.cpp49 uint32_t AudioSession::changeOpenCount(int delta) argument
51 if ((delta + (int)mOpenCount) < 0) {
52 ALOGW("%s invalid delta %d, open count %d",
53 __FUNCTION__, delta, mOpenCount);
54 mOpenCount = (uint32_t)(-delta);
56 mOpenCount += delta;
61 uint32_t AudioSession::changeActiveCount(int delta) argument
64 if ((delta + (int)mActiveCount) < 0) {
65 ALOGW("%s invalid delta %d, active count %d",
66 __FUNCTION__, delta, mActiveCoun
[all...]

Completed in 2565 milliseconds

1234567