Home
last modified time | relevance | path

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

12

/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.java168 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDelta()
189 mCallback.verify(mUids[i], subtract(times4[i], times3[i])); in testReadDelta()
213 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDeltaWrongData()
272 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/base/services/core/java/com/android/server/am/
DBaseAppStateDurationsTracker.java104 res.subtract(uidDurations, index, UidStateDurations.DEFAULT_INDEX); in getTotalDurations()
129 durations.subtract(uidDurations, index, UidStateDurations.DEFAULT_INDEX); in getTotalDurations()
155 res.subtract(uidDurations, index, UidStateDurations.DEFAULT_INDEX); in getTotalDurationsSince()
181 durations.subtract(uidDurations, index, UidStateDurations.DEFAULT_INDEX); in getTotalDurationsSince()
216 bgEvents.subtract(uidDurations, SimplePackageDurations.DEFAULT_INDEX); in dumpEventLocked()
DBaseAppStateDurations.java143 void subtract(BaseAppStateDurations otherDurations, int thisIndex, int otherIndex) { in subtract() method in BaseAppStateDurations
153 mEvents[thisIndex] = subtract(mEvents[thisIndex], otherDurations.mEvents[otherIndex]); in subtract()
159 void subtract(BaseAppStateDurations otherDurations, int otherIndex) { in subtract() method in BaseAppStateDurations
170 mEvents[i] = subtract(mEvents[i], otherDurations.mEvents[otherIndex]); in subtract()
178 LinkedList<T> subtract(LinkedList<T> durations, LinkedList<T> otherDurations) { in subtract() method in BaseAppStateDurations
DAppBatteryExemptionTracker.java222 return result.first.mutate().add(batteryUsage).subtract(result.second).unmutate(); in getUidBatteryExemptedUsageSince()
256 batteryUsage.mutate().subtract(last.getBatteryUsage()).unmutate(), last), in addEvent()
446 .subtract(mPeer.mBatteryUsage) in trimTo()
DAppBatteryTracker.java451 .subtract(exemptedUsage) in checkBatteryUsageStats()
597 totalUsage.subtract(lastUsage).add(curUsage); in updateBatteryUsageStatsOnce()
603 final BatteryUsage actualDelta = new BatteryUsage(curUsage).subtract(lastUsage); in updateBatteryUsageStatsOnce()
822 .subtract(exemptedUsage) in dump()
983 BatteryUsage subtract(@NonNull BatteryUsage other) { in subtract() method in AppBatteryTracker.BatteryUsage
1152 BatteryUsage subtract(@NonNull BatteryUsage other) { in subtract() method in AppBatteryTracker.ImmutableBatteryUsage
/frameworks/native/libs/ui/include_vndk/ui/
DRegion.h83 const Region subtract(const Rect& rhs) const;
89 const Region subtract(const Region& rhs) const;
105 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED;
198 return subtract(rhs);
/frameworks/native/libs/ui/include/ui/
DRegion.h83 const Region subtract(const Rect& rhs) const;
89 const Region subtract(const Region& rhs) const;
105 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED;
198 return subtract(rhs);
/frameworks/native/include/ui/
DRegion.h83 const Region subtract(const Rect& rhs) const;
89 const Region subtract(const Region& rhs) const;
105 const Region subtract(const Region& rhs, int dx, int dy) const WARN_UNUSED;
198 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/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/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/graphics/java/android/graphics/
DInsets.java104 public static @NonNull Insets subtract(@NonNull Insets a, @NonNull Insets b) { in subtract() method in Insets
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java2710 assertAppStateDurations(null, testObj.subtract(null, null));
2711 assertAppStateDurations(null, testObj.subtract(null, new LinkedList<BaseTimeEvent>()));
2712 assertAppStateDurations(new LinkedList<BaseTimeEvent>(), testObj.subtract(
2714 assertAppStateDurations(createDurations(1), testObj.subtract(
2716 assertAppStateDurations(new LinkedList<BaseTimeEvent>(), testObj.subtract(
2718 assertAppStateDurations(new LinkedList<BaseTimeEvent>(), testObj.subtract(
2720 assertAppStateDurations(createDurations(1, 2, 5, 6, 9, 10), testObj.subtract(
2722 assertAppStateDurations(createDurations(1, 2, 3, 4), testObj.subtract(
2724 assertAppStateDurations(createDurations(3, 4, 9, 10), testObj.subtract(
2726 assertAppStateDurations(createDurations(1, 2, 3, 4, 5, 6, 7, 8), testObj.subtract(
[all …]
/frameworks/native/libs/ui/
DRegion.cpp391 const Region Region::subtract(const Rect& rhs) const { in subtract() function in android::Region
411 const Region Region::subtract(const Region& rhs) const { in subtract() function in android::Region
457 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.java41 public static final BigInteger UINT64_MAX_VALUE = UINT64_RANGE.subtract(BigInteger.ONE);
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutput.cpp579 shadowRegion = visibleRegion.subtract(visibleRect); in ensureOutputLayerIfVisible()
691 Region visibleNonTransparentRegion = visibleRegion.subtract(transparentRegion); in ensureOutputLayerIfVisible()
702 Region visibleNonShadowRegion = visibleRegion.subtract(shadowRegion); in ensureOutputLayerIfVisible()
1356 !layerState.visibleRegion.subtract(layerState.shadowRegion).isEmpty(); in generateClientCompositionRequests()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsControllerImpl.kt196 favoriteComponentSet.subtract(serviceInfoSet).forEach { in <lambda>()
203 serviceInfoSet.subtract(favoriteComponentSet).forEach { in <lambda>()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DSecureBox.java105 private static final BigInteger EC_PARAM_A = EC_PARAM_P.subtract(new BigInteger("3"));
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipBoundsAlgorithm.java125 Insets pipDecorReverseInsets = Insets.subtract(Insets.NONE, decorInset); in adjustBoundsForTemporaryDecor()
/frameworks/rs/script_api/include/
Drs_atomic.rsh221 * value: Amount to subtract.

12