Searched refs:diff (Results 51 - 75 of 133) sorted by relevance

123456

/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java186 float diff = mTempEndValues[i] - mTempStartValues[i];
187 mTempEndValues[i] = mTempStartValues[i] + (fraction * diff);
/frameworks/native/cmds/dumpsys/
H A Ddumpsys.cpp226 auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(end - now);
227 return std::max(diff.count(), 0ll);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java560 float diff;
563 diff = dst.width() - src.width() * sy;
565 diff = dst.height() - src.height() * sy;
569 diff = diff / 2;
573 tx += diff;
575 ty += diff;
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dadj_thr.c889 Word16 diff; local
896 diff = currPe - *peMax ;
898 if (diff > 0) {
899 *peMin = *peMin + ((diff * minFacHi) / 100);
900 *peMax = *peMax + ((diff * maxFacHi) / 100);
902 diff = *peMin - currPe;
904 if (diff > 0) {
905 *peMin = *peMin - ((diff * minFacLo) / 100);
906 *peMax = *peMax - ((diff * maxFacLo) / 100);
/frameworks/av/media/img_utils/src/
H A DTiffIfd.cpp140 size_t diff = (next - last); local
142 if (diff != actual) {
144 mEntries[i]->getTag(), actual, diff);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
H A DItemTouchHelper.java200 * The diff between the last event and initial touch.
1779 int diff = target.itemView.getRight() - right;
1780 if (diff < 0 && target.itemView.getRight() > selected.itemView.getRight()) {
1781 final int score = Math.abs(diff);
1789 int diff = target.itemView.getLeft() - curX;
1790 if (diff > 0 && target.itemView.getLeft() < selected.itemView.getLeft()) {
1791 final int score = Math.abs(diff);
1799 int diff = target.itemView.getTop() - curY;
1800 if (diff > 0 && target.itemView.getTop() < selected.itemView.getTop()) {
1801 final int score = Math.abs(diff);
[all...]
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java218 long diff = Math.abs(expected - value);
219 assertTrue(diff < fudgeFactor);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DBackgroundScanSchedulerTest.java959 int diff = Math.abs(bucketPeriod - requestedPeriod);
960 if (diff < minDiff) {
961 minDiff = diff;
975 int diff = Math.abs(bucketPeriod - requestedPeriod);
976 if (diff < minDiff) {
977 minDiff = diff;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java412 final int diff = end > start ? 1 : -1;
413 for (int i = start; i != end; i += diff) {
745 int span, spanDiff, start, end, diff;
750 diff = 1;
754 diff = -1;
763 for (int i = start; i != end; i += diff) {
H A DStaggeredGridLayoutManager.java1668 final int diff;
1671 diff = mPrimaryOrientation.getStartAfterPadding() - minStart;
1674 diff = maxEnd - mPrimaryOrientation.getEndAfterPadding();
1676 return diff > 0 ? Math.min(layoutState.mAvailable, diff) : 0;
1929 final int startIndex, endIndex, diff;
1933 diff = -1;
1937 diff = 1;
1943 for (int i = startIndex; i != endIndex; i += diff) {
1956 for (int i = startIndex; i != endIndex; i += diff) {
[all...]
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1867 // The diff value here doesn't make much sense (given our bit packing scheme)
1888 int32_t diff = (int32_t)(imsi - o.imsi); local
1889 if (diff != 0) return diff;
1890 diff = compareLocales(*this, o);
1891 if (diff != 0) return diff;
1892 diff = (int32_t)(screenType - o.screenType);
1893 if (diff != 0) return diff;
1920 int diff = compareLocales(*this, o); local
1973 int ResTable_config::diff(const ResTable_config& o) const { function in class:android::ResTable_config
1993 const int diff = compareLocales(*this, o); local
2047 const int diff = isLocaleMoreSpecificThan(o); local
[all...]
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp253 int64_t diff = timestampUs - seekTimeUs; local
255 if (diff < 0) {
256 diff = -diff;
259 if ((gReproduceBug == 4 && diff > 500000)
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp529 int64_t diff = time1Us - time2Us;
530 if (diff < 0) {
531 diff = -diff;
534 return diff <= 50000;
/frameworks/av/media/libstagefright/mpeg2ts/
H A DAnotherPacketSource.cpp451 int64_t diff = duration - mLastQueuedTimeUs; local
452 if (diff < kNearEOSMarkUs && diff > -kNearEOSMarkUs) {
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsDatabase.java469 long diff = Math.abs(mSortedStatFiles[i].keyAt(index) - beginTimeStamp);
470 if (diff < smallestDiff) {
471 smallestDiff = diff;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DBackgroundScanScheduler.java528 int diff = Math.abs(PREDEFINED_BUCKET_PERIODS[i] - requestedPeriod);
529 if (diff < minDiff) {
530 minDiff = diff;
/frameworks/base/libs/androidfw/tests/
H A DConfig_test.cpp159 EXPECT_EQ(defaultConfig.diff(roundConfig), ResTable_config::CONFIG_SCREEN_ROUND);
/frameworks/base/native/android/
H A Dconfiguration.cpp235 return (config1->diff(*config2));
/frameworks/base/services/core/java/com/android/server/notification/
H A DZenLog.java123 + "," + ZenModeConfig.diff(oldConfig, newConfig));
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DStaggeredGridLayoutManagerBaseConfigSetTest.java381 final int diff;
383 diff = -1;
385 diff = 1;
387 final int distance = diff * 10;
H A DBaseRecyclerViewInstrumentationTest.java610 int diff = end > start ? 1 : -1;
612 for (int i = start; i != end; i+=diff) {
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarOverlayLayout.java259 final int diff = mLastSystemUiVisibility ^ visible;
271 if ((diff & SYSTEM_UI_FLAG_LAYOUT_STABLE) != 0) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardAffordanceView.java338 float diff = circleRadius - mMinBackgroundRadius;
340 values[0].setFloatValues(mCircleStartValue + diff, circleRadius);
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp46 | base col1 | base col2 | table | table |diff|flip|
61 | base col 1 | dcol 2 | table | table |diff|flip|
162 inline int convertDiff(int base, int diff) { argument
163 return convert5To8((0x1f & base) + kLookup[0x7 & diff]);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionBarOverlayLayout.java227 final int diff = mLastSystemUiVisibility ^ visible;
239 if ((diff & SYSTEM_UI_FLAG_LAYOUT_STABLE) != 0) {

Completed in 872 milliseconds

123456