Home
last modified time | relevance | path

Searched refs:remainder (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dclock_ns.h50 int32_t remainder; in NsToTimespec() local
53 remainder = ns % kNanosPerSecond; in NsToTimespec()
54 if (remainder < 0) { in NsToTimespec()
56 remainder += kNanosPerSecond; in NsToTimespec()
58 t.tv_nsec = remainder; in NsToTimespec()
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerReportTest.java83 final AppPower remainder = report.findApp(SpecialApp.REMAINDER); in testModemRemainder() local
84 Assert.assertNotNull(remainder); in testModemRemainder()
87 = (ModemRemainderPower)remainder.getComponentPower(Component.MODEM); in testModemRemainder()
116 final AppPower remainder = report.findApp(SpecialApp.REMAINDER); in testRemainderTotal() local
117 Assert.assertNotNull(remainder); in testRemainderTotal()
119 Assert.assertEquals(REMAINDER_MAH, remainder.getAppPowerMah(), EPSILON); in testRemainderTotal()
DBatteryStatsReaderTest.java69 final AppActivity remainder = report.findApp(SpecialApp.REMAINDER); in testModemRemainder() local
70 Assert.assertNotNull(remainder); in testModemRemainder()
73 = (ModemRemainderActivity)remainder.getComponentActivity(Component.MODEM); in testModemRemainder()
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/
DModemBatteryStatsReader.java89 final ModemRemainderActivity remainder in createRemainder() local
93 remainder.strengthTimeMs = strength.phoneSignalStrengthTimeMs; in createRemainder()
96 remainder.scanningTimeMs = scanning.phoneSignalScanningTimeMs; in createRemainder()
104 remainder.activeTimeMs = totalActiveTimeMs - appActiveTimeMs; in createRemainder()
106 result.add(remainder); in createRemainder()
/frameworks/base/media/java/android/media/
DExifInterfaceUtils.java55 int remainder = numBytes; in copy() local
57 while (remainder > 0) { in copy()
58 int bytesToRead = Math.min(remainder, 8192); in copy()
64 remainder -= bytesRead; in copy()
/frameworks/av/media/module/foundation/tests/
DBase64_test.cpp45 int remainder = in[i].size() % 4; in verifyDecode() local
47 if (remainder > 0) { in verifyDecode()
48 for (int i = 0; i < 4 - remainder; ++i) { in verifyDecode()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DPowerUtil.java219 final long remainder = time % multiple; in roundTimeToNearestThreshold() local
220 if (remainder < multiple / 2) { in roundTimeToNearestThreshold()
221 return time - remainder; in roundTimeToNearestThreshold()
223 return time - remainder + multiple; in roundTimeToNearestThreshold()
/frameworks/av/drm/mediacas/plugins/clearkey/
DJsonAssetLoader.cpp75 int remainder = encodedText.length() % 4; in decodeBase64String() local
77 if (remainder > 0) { in decodeBase64String()
78 for (int i = 0; i < 4 - remainder; ++i) { in decodeBase64String()
/frameworks/av/media/utils/include/mediautils/
DTimerThread.h105 auto remainder = deadline.time_since_epoch().count() & HANDLE_TYPE_MASK; in getUniqueHandleForHandleType_l() local
106 size_t offset = HANDLE_TYPE_AS_VALUE > remainder ? HANDLE_TYPE_AS_VALUE - remainder : in getUniqueHandleForHandleType_l()
107 MAX_TYPED_HANDLES + HANDLE_TYPE_AS_VALUE - remainder; in getUniqueHandleForHandleType_l()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DJsonWebKey.cpp113 int remainder = encodedText.length() % 4; in decodeBase64String() local
115 if (remainder > 0) { in decodeBase64String()
116 for (int i = 0; i < 4 - remainder; ++i) { in decodeBase64String()
/frameworks/av/media/libstagefright/renderfright/
DMesh.cpp42 size_t remainder = (stride * vertexCount) / vertexCount; in Mesh() local
46 if ((stride < vertexSize) || (remainder != stride)) { in Mesh()
/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DJsonWebKey.cpp108 int remainder = encodedText.length() % 4; in decodeBase64String() local
110 if (remainder > 0) { in decodeBase64String()
111 for (int i = 0; i < 4 - remainder; ++i) { in decodeBase64String()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/domain/interactor/
DCommunalInteractor.kt562 val remainder = size % CommunalContentSize.entries.size in <lambda>() constant
566 if (index > remainder - 1) CommunalContentSize.entries.size else remainder in <lambda>()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardUtils.java709 final int remainder = (value.length() % 3); in appearsLikeAndroidVCardQuotedPrintable() local
710 if (value.length() < 2 || (remainder != 1 && remainder != 0)) { in appearsLikeAndroidVCardQuotedPrintable()
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rscript127 TEST_FUNC_2(remainder);
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp1176 size_t remainder = entry->mBuffer->size() - entry->mOffset; in onDrainAudioQueue() local
1177 if ((ssize_t)remainder < mAudioSink->frameSize()) { in onDrainAudioQueue()
1178 if (remainder > 0) { in onDrainAudioQueue()
1180 remainder); in onDrainAudioQueue()
1181 entry->mOffset += remainder; in onDrainAudioQueue()
1182 copy -= remainder; in onDrainAudioQueue()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateSelector.cpp298 auto [quotient, remainder] = std::div(layerPeriod, displayPeriod); in getDisplayFrames()
299 if (remainder <= MARGIN_FOR_PERIOD_CALCULATION || in getDisplayFrames()
300 std::abs(remainder - displayPeriod) <= MARGIN_FOR_PERIOD_CALCULATION) { in getDisplayFrames()
302 remainder = 0; in getDisplayFrames()
305 return {quotient, remainder}; in getDisplayFrames()
/frameworks/rs/script_api/
Drs_math.spec1037 Returns the remainder of (numerator / denominator), where the quotient is rounded towards zero.
1039 The function @remainder() is similar but rounds toward the closest interger.
1041 while <code>@remainder(-3.8f, 2.f)</code> returns 0.2f (-3.8f - -2.f * 2.f).
2877 function: remainder
2887 Returns the remainder of (numerator / denominator), where the quotient is rounded towards
2892 while <code>remainder(-3.8f, 2.f)</code> returns 0.2f (-3.8f - -2.f * 2.f).
2895 function: remainder
2915 Returns the quotient and the remainder of (numerator / denominator).
2920 quotient gives the quadrant and the remainder the distance within the quadrant.
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java926 long remainder = thousands - (hundreds*10);
927 if (remainder != 0) {
929 pw.print(remainder);
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java626 final String remainder; in adjustLanguageTag() local
630 remainder = ""; in adjustLanguageTag()
633 remainder = languageTag.substring(separator); in adjustLanguageTag()
653 return adjustedLanguage + remainder; in adjustLanguageTag()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp714 ssize_t remainder = 512 - partial; in write_tarfile() local
715 memset(buf + nRead, 0, remainder); in write_tarfile()
716 nRead += remainder; in write_tarfile()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rscript833 f = remainder(f, f);
834 f2 = remainder(f2, f2);
835 f3 = remainder(f3, f3);
836 f4 = remainder(f4, f4);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dapitest.rscript835 f = remainder(f, f);
836 f2 = remainder(f2, f2);
837 f3 = remainder(f3, f3);
838 f4 = remainder(f4, f4);
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rscript167 TEST_FN_FUNC_FN_FN(remainder);
/frameworks/rs/script_api/include/
Drs_math.rsh1871 * Returns the remainder of (numerator / denominator), where the quotient is rounded towards zero.
1873 * The function remainder() is similar but rounds toward the closest interger.
1875 * while remainder(-3.8f, 2.f) returns 0.2f (-3.8f - -2.f * 2.f).
5668 * remainder: Remainder of a division
5670 * Returns the remainder of (numerator / denominator), where the quotient is rounded towards
5675 * while remainder(-3.8f, 2.f) returns 0.2f (-3.8f - -2.f * 2.f).
5678 remainder(float numerator, float denominator);
5681 remainder(float2 numerator, float2 denominator);
5684 remainder(float3 numerator, float3 denominator);
5687 remainder(float4 numerator, float4 denominator);
[all …]

123