Home
last modified time | relevance | path

Searched refs:subtract (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/ml/nn/tools/systrace_parser/parser/
Dtree.py28 def push(self, start_time_s, mark, layer, phase, app_phase, subtract): argument
29 node = self.current.add(start_time_s, mark, layer, phase, app_phase, subtract)
78 if node.subtract:
97 if node.subtract:
116 node.layer, node.phase(), node.app_phase, subtract=False)
118 node.subtract = True
125 if not node.is_added_detail() and not node.subtract:
151 "subtract", node.subtract,
161 node.subtract # Marker for wrong nesting
168 node.subtract), self.debugstring
[all …]
Dtracker.py84 subtract = False
97 subtract = True
121 self.mytree.push(time, mark, layer, phase, self.app_phase.current(), subtract)
161 if not node.is_added_detail() and not node.subtract:
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidClusterTimeReaderTest.java115 mCallback.verify(mUids[i], subtract(clusterTime(times2[i]), clusterTime(times1[i]))); in testReadDelta()
138 mCallback.verify(mUids[i], subtract(clusterTime(times4[i]), clusterTime(times3[i]))); in testReadDelta()
180 mCallback.verify(mUids[i], subtract(clusterTime(times2[i]), clusterTime(times1[i]))); in testReadDeltaDecreasedTime()
191 mCallback.verify(mUids[0], subtract(clusterTime(times3[0]), clusterTime(times1[0]))); in testReadDeltaDecreasedTime()
193 mCallback.verify(mUids[i], subtract(clusterTime(times3[i]), clusterTime(times2[i]))); in testReadDeltaDecreasedTime()
211 mCallback.verify(mUids[i], subtract(clusterTime(times2[i]), clusterTime(times1[i]))); in testReadDeltaNegativeTime()
222 mCallback.verify(mUids[0], subtract(clusterTime(times3[0]), clusterTime(times1[0]))); in testReadDeltaNegativeTime()
224 mCallback.verify(mUids[i], subtract(clusterTime(times3[i]), clusterTime(times2[i]))); in testReadDeltaNegativeTime()
286 private long[] subtract(long[] a1, long[] a2) { in subtract() method in KernelCpuUidClusterTimeReaderTest
DKernelCpuUidFreqTimeReaderTest.java182 mCallback.verify(mUids[i], subtract(newTimes1[i], times[i])); in testReadDelta()
205 mCallback.verify(mUids[i], subtract(newTimes3[i], newTimes2[i])); in testReadDelta()
255 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDeltaWrongData()
265 mCallback.verify(mUids[0], subtract(times3[0], times1[0])); in testReadDeltaWrongData()
267 mCallback.verify(mUids[i], subtract(times3[i], times2[i])); in testReadDeltaWrongData()
278 mCallback.verify(mUids[i], subtract(times4[i], times3[i])); in testReadDeltaWrongData()
288 mCallback.verify(mUids[0], subtract(times5[0], times3[0])); in testReadDeltaWrongData()
290 mCallback.verify(mUids[i], subtract(times5[i], times4[i])); in testReadDeltaWrongData()
372 private long[] subtract(long[] a1, long[] a2) { in subtract() method in KernelCpuUidFreqTimeReaderTest
DKernelCpuUidUserSysTimeReaderTest.java136 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDelta()
157 mCallback.verify(mUids[i], subtract(times4[i], times3[i])); in testReadDelta()
181 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDeltaWrongData()
240 private long[] subtract(long[] a1, long[] a2) { in subtract() method in KernelCpuUidUserSysTimeReaderTest
DLongSamplingCounterArrayTest.java130 private long[] subtract(long[] val, long[] toSubtract) { in subtract() method in LongSamplingCounterArrayTest
/frameworks/native/libs/ui/include/ui/
DRegion.h81 const Region subtract(const Rect& rhs) const;
87 const Region subtract(const Region& rhs) const;
103 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED;
194 return subtract(rhs);
/frameworks/native/libs/ui/include_vndk/ui/
DRegion.h81 const Region subtract(const Rect& rhs) const;
87 const Region subtract(const Region& rhs) const;
103 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED;
194 return subtract(rhs);
/frameworks/base/telephony/java/android/telephony/
DCbGeoUtils.java110 public LatLng subtract(@NonNull LatLng p) { in subtract() method in CbGeoUtils.LatLng
222 int ccw = sign(crossProduct(b.subtract(a), p.subtract(a))); in contains()
287 public Point subtract(Point p) { in subtract() method in CbGeoUtils.Polygon.Point
/frameworks/base/tests/net/common/java/android/net/netstats/
DNetworkStatsApiTest.kt193 assertNetworkStatsEquals(testStats1, testStats3.subtract(testStats2)) in testSubtract()
195 assertNetworkStatsEquals(testStats2, testStats3.subtract(testStats1)) in testSubtract()
205 it.subtract(testStats1) in testMethodsDontModifyReceiver()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java131 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); in downloadFile()
185 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); in uploadFile()
242 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); in downloadFileUsingDownloadManager()
/frameworks/layoutlib/bridge/src/android/graphics/
DRegion_Delegate.java88 result.subtract(shape2 instanceof Area ? (Area) shape2 : new Area(shape2)); in combineShapes()
129 result.subtract(shape1 instanceof Area ? (Area) shape1 : new Area(shape1)); in combineShapes()
322 dstRegion.mArea.subtract(clip.getJavaArea()); in nativeSetPath()
/frameworks/base/packages/Tethering/src/android/net/util/
DTetheringUtils.java88 public ForwardedStats subtract(@NonNull ForwardedStats other) { in subtract() method in TetheringUtils.ForwardedStats
/frameworks/base/tools/preload/
DPrintCsv.java108 = loadedClass.memoryUsage.subtract(baseline); in printRow()
DPrintHtmlDiff.java126 = clazz.memoryUsage.subtract(baseline); in printTable()
DMemoryUsage.java107 MemoryUsage subtract(MemoryUsage baseline) { in subtract() method in MemoryUsage
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java225 final NetworkStats result = after.subtract(before); in testSubtractIdenticalData()
244 final NetworkStats result = after.subtract(before); in testSubtractIdenticalRows()
264 final NetworkStats result = after.subtract(before); in testSubtractNewRows()
284 final NetworkStats result = after.subtract(before); in testSubtractMissingRows()
548 assertEquals(statsMultiple.size(), statsMultiple.subtract(statsMultiple).size()); in testRemoveEmptyEntries()
549 assertEquals(0, statsMultiple.subtract(statsMultiple).removeEmptyEntries().size()); in testRemoveEmptyEntries()
/frameworks/base/graphics/java/android/graphics/
DInsets.java104 public static @NonNull Insets subtract(@NonNull Insets a, @NonNull Insets b) { in subtract() method in Insets
/frameworks/base/core/java/android/net/
DNetworkStats.java953 public @NonNull NetworkStats subtract(@NonNull NetworkStats right) { in subtract() method in NetworkStats
954 return subtract(this, right, null, null); in subtract()
966 public static <C> NetworkStats subtract(NetworkStats left, NetworkStats right, in subtract() method in NetworkStats
968 return subtract(left, right, observer, cookie, null); in subtract()
984 public static <C> NetworkStats subtract(NetworkStats left, NetworkStats right, in subtract() method in NetworkStats
DTrafficStats.java447 final NetworkStats profilingDelta = NetworkStats.subtract( in stopDataProfiling()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java351 getTetherStats(StatsType.STATS_PER_IFACE).subtract(mIfaceStats); in pushTetherStats()
353 getTetherStats(StatsType.STATS_PER_UID).subtract(mUidStats); in pushTetherStats()
/frameworks/native/libs/ui/
DRegion.cpp363 const Region Region::subtract(const Rect& rhs) const { in subtract() function in android::Region
383 const Region Region::subtract(const Region& rhs) const { in subtract() function in android::Region
429 const Region Region::subtract(const Region& rhs, int dx, int dy) const { in subtract() function in android::Region
/frameworks/base/core/java/android/security/keymaster/
DKeymasterArguments.java40 public static final BigInteger UINT64_MAX_VALUE = UINT64_RANGE.subtract(BigInteger.ONE);
/frameworks/base/core/java/android/view/
DInsetsAnimationControlImpl.java149 final Insets offset = Insets.subtract(mShownInsets, mPendingInsets); in applyChangeInsets()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp42 return Region(Rect{win}).subtract(exclude).getBounds().toFloatRect(); in reduce()

12