Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 185) sorted by relevance

12345678

/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
DDeviceStateInfoTest.java79 assertEquals(0, info.diff(info)); in diff_sameObject()
86 final int diff = info.diff(otherInfo); in diff_differentSupportedStates() local
87 assertTrue((diff & DeviceStateInfo.CHANGED_SUPPORTED_STATES) > 0); in diff_differentSupportedStates()
88 assertFalse((diff & DeviceStateInfo.CHANGED_BASE_STATE) > 0); in diff_differentSupportedStates()
89 assertFalse((diff & DeviceStateInfo.CHANGED_CURRENT_STATE) > 0); in diff_differentSupportedStates()
96 final int diff = info.diff(otherInfo); in diff_differentNonOverrideState() local
97 assertFalse((diff & DeviceStateInfo.CHANGED_SUPPORTED_STATES) > 0); in diff_differentNonOverrideState()
98 assertTrue((diff & DeviceStateInfo.CHANGED_BASE_STATE) > 0); in diff_differentNonOverrideState()
99 assertFalse((diff & DeviceStateInfo.CHANGED_CURRENT_STATE) > 0); in diff_differentNonOverrideState()
106 final int diff = info.diff(otherInfo); in diff_differentState() local
[all …]
/frameworks/av/media/codecs/amrnb/common/src/
Dsub.cpp196 Word32 diff; in sub() local
198 diff = (Word32) var1 - var2; in sub()
205 if ((UWord32)(diff - 0xFFFF8000L) > 0x000FFFF) in sub()
207 if (diff > (Word32) 0x0007FFFL) in sub()
209 diff = MAX_16; in sub()
213 diff = MIN_16; in sub()
220 return ((Word16) diff); in sub()
/frameworks/base/tools/aapt2/cmd/
DDiff.cpp126 bool diff = false; in EmitResourceEntryDiff() local
134 diff = true; in EmitResourceEntryDiff()
136 diff |= EmitResourceConfigValueDiff(context, apk_a, pkg_a, type_a, entry_a, config_value_a, in EmitResourceEntryDiff()
149 diff = true; in EmitResourceEntryDiff()
152 return diff; in EmitResourceEntryDiff()
160 bool diff = false; in EmitResourceTypeDiff() local
169 diff = true; in EmitResourceTypeDiff()
175 diff = true; in EmitResourceTypeDiff()
202 diff = true; in EmitResourceTypeDiff()
221 diff = true; in EmitResourceTypeDiff()
[all …]
/frameworks/base/core/java/android/text/format/
DTime.java1020 int diff = julianDay - approximateDay; in setJulianDay() local
1021 monthDay += diff; in setJulianDay()
1044 int diff = THURSDAY - firstDayOfWeek; in getWeeksSinceEpochFromJulianDay() local
1045 if (diff < 0) { in getWeeksSinceEpochFromJulianDay()
1046 diff += 7; in getWeeksSinceEpochFromJulianDay()
1048 int refDay = EPOCH_JULIAN_DAY - diff; in getWeeksSinceEpochFromJulianDay()
1215 int diff = aObject.wallTime.getYear() - bObject.wallTime.getYear(); in compare() local
1216 if (diff != 0) { in compare()
1217 return diff; in compare()
1220 diff = aObject.wallTime.getMonth() - bObject.wallTime.getMonth(); in compare()
[all …]
DTimeFormatter.java440 int diff = wallTime.getGmtOffset(); in handleToken() local
442 if (diff < 0) { in handleToken()
444 diff = -diff; in handleToken()
449 diff /= SECSPERMIN; in handleToken()
450 diff = (diff / MINSPERHOUR) * 100 + (diff % MINSPERHOUR); in handleToken()
451 numberFormatter.format(getFormat(modifier, "%04d", "%4d", "%d", "%04d"), diff); in handleToken() local
/frameworks/base/tools/aapt2/filter/
DConfigFilter.cpp27 uint32_t diff_mask = ConfigDescription::DefaultConfig().diff(config); in AddConfig()
80 const uint32_t mask = ConfigDescription::DefaultConfig().diff(config); in Match()
90 uint32_t diff = target.diff(config); in Match() local
91 if ((diff & diff_mask) == 0) { in Match()
94 } else if ((diff & diff_mask) == android::ResTable_config::CONFIG_LOCALE) { in Match()
109 } else if ((diff & diff_mask) == in Match()
/frameworks/av/media/codecs/amrnb/dec/src/
Dc_g_aver.cpp480 Word16 diff; in Cb_gain_average() local
511 diff = 0; in Cb_gain_average()
537 diff = add(diff, *(tmp + i), pOverflow); /* Q13 */ in Cb_gain_average()
542 if (diff > 5325) /* 0.65 in Q11 */ in Cb_gain_average()
574 tmp_diff = sub(diff, 4506, pOverflow); /* 0.55 in Q13 */ in Cb_gain_average()
579 tmp_diff = sub(diff, 3277, pOverflow); /* 0.4 in Q13 */ in Cb_gain_average()
603 if ((st->hangCount < 40) || (diff > 5325)) /* 0.65 in Q13 */ in Cb_gain_average()
/frameworks/base/cmds/incident_helper/src/parsers/
DPsParser.cpp33 int diff = 0; in Parse() local
61 diff = record.size() - header.size(); in Parse()
62 if (diff < 0) { in Parse()
64 …tderr, "[%s]Line %d has %d missing fields\n%s\n", this->name.string(), nline, -diff, line.c_str()); in Parse()
67 } else if (diff > 0) { in Parse()
69 …f(stderr, "[%s]Line %d has %d extra fields\n%s\n", this->name.string(), nline, diff, line.c_str()); in Parse()
DCpuInfoParser.cpp52 int diff = 0; in Parse() local
131 diff = record.size() - header.size(); in Parse()
132 if (diff < 0) { in Parse()
133 …tderr, "[%s]Line %d has %d missing fields\n%s\n", this->name.string(), nline, -diff, line.c_str()); in Parse()
136 } else if (diff > 0) { in Parse()
137 …f(stderr, "[%s]Line %d has %d extra fields\n%s\n", this->name.string(), nline, diff, line.c_str()); in Parse()
/frameworks/base/tools/aapt/
DResourceFilter.cpp39 entry.second = mDefault.diff(entry.first); in parse()
100 uint32_t mask = mDefault.diff(config); in match()
110 uint32_t diff = entry.first.diff(config); in match() local
111 if ((diff & entry.second) == 0) { in match()
114 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { in match()
132 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in match()
/frameworks/base/core/java/android/hardware/devicestate/
DDeviceStateInfo.java113 public int diff(@NonNull DeviceStateInfo other) { in diff() method in DeviceStateInfo
114 int diff = 0; in diff() local
116 diff |= CHANGED_SUPPORTED_STATES; in diff()
119 diff |= CHANGED_BASE_STATE; in diff()
122 diff |= CHANGED_CURRENT_STATE; in diff()
124 return diff; in diff()
/frameworks/base/core/java/com/android/server/
DResettableTimeout.java104 long diff; in run() local
106 diff = mOffAt - SystemClock.uptimeMillis(); in run()
107 if (diff <= 0) { in run()
115 sleep(diff); in run()
/frameworks/base/core/java/android/window/
DSizeConfigurationBuckets.java85 public static int filterDiff(int diff, Configuration oldConfig, Configuration newConfig, in filterDiff() argument
88 return diff & ~(CONFIG_SCREEN_SIZE | CONFIG_SMALLEST_SCREEN_SIZE); in filterDiff()
90 if ((diff & CONFIG_SCREEN_SIZE) != 0) { in filterDiff()
96 diff &= ~CONFIG_SCREEN_SIZE; in filterDiff()
99 if ((diff & CONFIG_SMALLEST_SCREEN_SIZE) != 0) { in filterDiff()
103 diff &= ~CONFIG_SMALLEST_SCREEN_SIZE; in filterDiff()
106 return diff; in filterDiff()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DerrorCalculator.rscript54 float4 diff = idealPixel - givenPixel;
55 float totalDiff = diff.x + diff.y + diff.z + diff.w;
/frameworks/base/media/mca/filterfw/native/core/
Dstatistics.cpp52 const float diff = value - mean_; in Pdf() local
53 return expf(-diff * diff / exp_denom_) / pdf_denom_; in Pdf()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowConfigurationTests.java91 assertEquals(CONFIG_WINDOW_CONFIGURATION, config1.diff(config2)); in testDiff()
94 winConfig1.diff(winConfig2, false /* compareUndefined */)); in testDiff()
98 winConfig1.diff(winConfig2, false /* compareUndefined */)); in testDiff()
103 winConfig1.diff(winConfig2, false /* compareUndefined */)); in testDiff()
106 winConfig1.diff(winConfig4, false /* compareUndefined */)); in testDiff()
108 assertEquals(0, config1.diff(config3)); in testDiff()
110 assertEquals(0, winConfig1.diff(winConfig3, false /* compareUndefined */)); in testDiff()
115 winConfig1.diff(winConfig5, false /* compareUndefined */)); in testDiff()
116 assertEquals(CONFIG_WINDOW_CONFIGURATION, config1.diff(config5)); in testDiff()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DResult.java58 float diff = time - avg; in getStdevp() local
59 sumSqDiff += diff * diff; in getStdevp()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
DFlingAnimationUtils.java167 float diff = Math.abs(endValue - currValue); in getProperties() local
173 float durationSeconds = startGradient * diff / velAbs; in getProperties()
182 durationSeconds, velAbs, diff); in getProperties()
264 float diff = Math.abs(endValue - currValue); in getDismissingProperties() local
270 float durationSeconds = startGradient * diff / velAbs; in getDismissingProperties()
279 durationSeconds, velAbs, diff); in getDismissingProperties()
354 private VelocityInterpolator(float durationSeconds, float velocity, float diff) { in VelocityInterpolator() argument
357 mDiff = diff; in VelocityInterpolator()
/frameworks/base/core/java/android/inputmethodservice/
DImsConfigurationTracker.java90 final int diff = mLastKnownConfig != null in onConfigurationChanged() local
94 final int unhandledDiff = (diff & ~mHandledConfigChanges); in onConfigurationChanged()
98 if (diff != 0) { in onConfigurationChanged()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceRepository.java149 int diff = device.mDebugLastLoggedDeviceInfo.diff(info); in handleDisplayDeviceChanged() local
150 if (diff == DisplayDeviceInfo.DIFF_STATE) { in handleDisplayDeviceChanged()
153 } else if (diff != 0) { in handleDisplayDeviceChanged()
157 if ((diff & DisplayDeviceInfo.DIFF_COLOR_MODE) != 0) { in handleDisplayDeviceChanged()
/frameworks/base/tools/aapt2/format/binary/
DResChunkPullParser.cpp51 const std::ptrdiff_t diff = (const char*)current_chunk_ - (const char*)data_; in Next() local
52 CHECK(diff >= 0) << "diff is negative"; in Next()
53 const size_t offset = static_cast<const size_t>(diff); in Next()
/frameworks/base/tests/benchmarks/internal/src/com/android/internal/
DLambdaPerfTest.java428 final int diff = newStatus.mPatterns[i].mIntValue - p.mIntValue; in calculateGcTime() local
429 Log.i(TAG, " " + p.mRawPattern + diff); in calculateGcTime()
430 if (diff > 0) { in calculateGcTime()
431 result.putInt("[" + title + "] " + p.mRawPattern, diff); in calculateGcTime()
435 final float diff = newStatus.mPatterns[i].mFloatValue - p.mFloatValue; in calculateGcTime() local
436 Log.i(TAG, " " + p.mRawPattern + diff + "ms"); in calculateGcTime()
437 if (diff > 0) { in calculateGcTime()
438 result.putFloat("[" + title + "] " + p.mRawPattern + "(ms)", diff); in calculateGcTime()
441 info.mTotalGcTime = diff; in calculateGcTime()
443 info.mTotalGcPausedTime = diff; in calculateGcTime()
/frameworks/av/media/libnblog/
DPerformanceAnalysis.cpp236 bool PerformanceAnalysis::detectAndStorePeak(msInterval diff, timestamp ts) { in detectAndStorePeak() argument
245 (mOutlierData.size() - 1) + diff) / mOutlierData.size(); in detectAndStorePeak()
249 mOutlierDistribution.mMean = diff; in detectAndStorePeak()
257 if ((fabs(diff - mOutlierDistribution.mMean) < in detectAndStorePeak()
260 fabs(diff - mOutlierDistribution.mMean) < in detectAndStorePeak()
266 const double kDelta = diff - mOutlierDistribution.mMean; in detectAndStorePeak()
268 const double kDelta2 = diff - mOutlierDistribution.mMean; in detectAndStorePeak()
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.h40 const double diff(tst[i] - value); in computeSnr()
42 noise += diff * diff; in computeSnr()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBenchmarkResults.java105 double diff = mResults.get(i) - mean; in standardDeviation() local
106 sd += diff * diff; in standardDeviation()

12345678