/frameworks/av/media/libstagefright/ |
D | VideoFrameScheduler.cpp | 186 Vector<nsecs_t> deltas; in prime() local 194 deltas.push(time - lastTime); in prime() 201 deltas.sort(compare<nsecs_t>); in prime() 202 size_t numDeltas = deltas.size(); in prime() 204 nsecs_t deltaMinLimit = max(deltas[0] / kMultiplesThresholdDiv, kMinPeriod); in prime() 205 nsecs_t deltaMaxLimit = deltas[numDeltas / 2] * kMultiplesThresholdDiv; in prime() 207 if (deltas[i] > deltaMaxLimit) { in prime() 208 deltas.resize(i); in prime() 214 nsecs_t delta2nd = deltas[i] - deltas[i - 1]; in prime() 217 deltas.push(delta2nd); in prime() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LongSamplingCounterArrayTest.java | 152 final long[] deltas = {123, 234, 345, 456}; in testAddCountLocked() local 153 mCounterArray.addCountLocked(deltas); in testAddCountLocked() 154 assertArrayEquals(deltas, mCounterArray.mCounts, "Unexpected counts"); in testAddCountLocked() 160 final long[] newCounts = new long[deltas.length]; in testAddCountLocked() 161 for (int i = 0; i < deltas.length; ++i) { in testAddCountLocked() 162 newCounts[i] = COUNTS[i] + deltas[i]; in testAddCountLocked() 164 mCounterArray.addCountLocked(deltas); in testAddCountLocked()
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
D | H2BGraphicBufferProducer.cpp | 782 for (size_t i = 0; i < t.deltas.size(); ++i) { in getFlattenedSize() 783 size += getFlattenedSize(t.deltas[i]); in getFlattenedSize() 798 for (size_t i = 0; i < t.deltas.size(); ++i) { in getFdCount() 799 numFds += getFdCount(t.deltas[i]); in getFdCount() 825 if (t.deltas.size() > ::android::FrameEventHistory::MAX_FRAME_HISTORY) { in flatten() 834 FlattenableUtils::write(buffer, size, static_cast<uint32_t>(t.deltas.size())); in flatten() 835 nh->resize(t.deltas.size()); in flatten() 836 for (size_t deltaIndex = 0; deltaIndex < t.deltas.size(); ++deltaIndex) { in flatten() 838 t.deltas[deltaIndex], &((*nh)[deltaIndex]), in flatten()
|
/frameworks/av/media/libstagefright/omx/1.0/ |
D | Conversion.h | 1496 for (size_t i = 0; i < t.deltas.size(); ++i) { in getFlattenedSize() 1497 size += getFlattenedSize(t.deltas[i]); in getFlattenedSize() 1512 for (size_t i = 0; i < t.deltas.size(); ++i) { in getFdCount() 1513 numFds += getFdCount(t.deltas[i]); in getFdCount() 1549 t->deltas.resize(deltaCount); in unflatten() 1553 &(t->deltas[deltaIndex]), &((*nh)[deltaIndex]), in unflatten() 1577 if (t.deltas.size() > ::android::FrameEventHistory::MAX_FRAME_HISTORY) { in flatten() 1586 FlattenableUtils::write(buffer, size, static_cast<uint32_t>(t.deltas.size())); in flatten() 1587 for (size_t deltaIndex = 0; deltaIndex < t.deltas.size(); ++deltaIndex) { in flatten() 1588 status_t status = flatten(t.deltas[deltaIndex], buffer, size, fds, numFds); in flatten()
|
/frameworks/base/core/java/android/view/ |
D | FocusFinder.java | 681 public View findNearestTouchable(ViewGroup root, int x, int y, int direction, int[] deltas) { in findNearestTouchable() argument 732 deltas[0] = -distance; in findNearestTouchable() 735 deltas[0] = distance; in findNearestTouchable() 738 deltas[1] = -distance; in findNearestTouchable() 741 deltas[1] = distance; in findNearestTouchable()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | GridLayoutManager.java | 2879 boolean getScrollPosition(View view, View childView, int[] deltas) { 2883 return getAlignedPosition(view, childView, deltas); 2886 return getNoneAlignedPosition(view, deltas); 2890 private boolean getNoneAlignedPosition(View view, int[] deltas) { 2958 deltas[0] = scrollPrimary; 2959 deltas[1] = scrollSecondary; 2965 private boolean getAlignedPosition(View view, View childView, int[] deltas) { 2977 deltas[0] = scrollPrimary; 2978 deltas[1] = scrollSecondary; 2981 deltas[0] = 0; [all …]
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
D | GridLayout.java | 1131 public int[] deltas; field in GridLayout.Axis 1620 if (deltas == null) { 1621 deltas = new int[getChildCount()]; 1623 return deltas; 1627 Arrays.fill(deltas, 0); 1638 deltas[i] = delta; 1784 deltas = null;
|
/frameworks/base/core/java/android/widget/ |
D | GridLayout.java | 1240 public int[] deltas; field in GridLayout.Axis 1729 if (deltas == null) { 1730 deltas = new int[getChildCount()]; 1732 return deltas; 1736 Arrays.fill(deltas, 0); 1747 deltas[i] = delta; 1893 deltas = null;
|