Home
last modified time | relevance | path

Searched refs:remainder (Results 1 – 25 of 54) 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/av/media/libstagefright/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.java262 final long remainder = time % multiple; in roundTimeToNearestThreshold() local
263 if (remainder < multiple / 2) { in roundTimeToNearestThreshold()
264 return time - remainder; in roundTimeToNearestThreshold()
266 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/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/native/libs/renderengine/
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/hidl/
DJsonWebKey.cpp118 int remainder = encodedText.length() % 4; in decodeBase64String() local
120 if (remainder > 0) { in decodeBase64String()
121 for (int i = 0; i < 4 - remainder; ++i) { in decodeBase64String()
/frameworks/base/core/java/android/net/
DNetworkUtils.java260 int remainder = prefixLength % 8; in maskRawAddress() local
261 byte mask = (byte)(0xFF << (8 - remainder)); in maskRawAddress()
/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/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp1122 size_t remainder = entry->mBuffer->size() - entry->mOffset; in onDrainAudioQueue() local
1123 if ((ssize_t)remainder < mAudioSink->frameSize()) { in onDrainAudioQueue()
1124 if (remainder > 0) { in onDrainAudioQueue()
1126 remainder); in onDrainAudioQueue()
1127 entry->mOffset += remainder; in onDrainAudioQueue()
1128 copy -= remainder; in onDrainAudioQueue()
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rscript127 TEST_FUNC_2(remainder);
/frameworks/base/startop/scripts/app_startup/
Dquery_compiler_filter.py134 str_lines = parse_result.remainder
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java890 long remainder = thousands - (hundreds*10);
891 if (remainder != 0) {
893 pw.print(remainder);
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java541 final String remainder; in adjustLanguageTag() local
545 remainder = ""; in adjustLanguageTag()
548 remainder = languageTag.substring(separator); in adjustLanguageTag()
551 return Locale.adjustLanguageCode(language) + remainder; in adjustLanguageTag()
/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/libs/androidfw/
DBackupHelpers.cpp709 ssize_t remainder = 512 - partial; in write_tarfile() local
710 memset(buf + nRead, 0, remainder); in write_tarfile()
711 nRead += remainder; in write_tarfile()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dapitest.rscript815 f = remainder(f, f);
816 f2 = remainder(f2, f2);
817 f3 = remainder(f3, f3);
818 f4 = remainder(f4, f4);
/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 …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java3419 long remainder = deltaBytesTransferred; in isSyncNotUsingNetworkH() local
3420 long mb = remainder / (1024 * 1024); in isSyncNotUsingNetworkH()
3421 remainder %= 1024 * 1024; in isSyncNotUsingNetworkH()
3422 long kb = remainder / 1024; in isSyncNotUsingNetworkH()
3423 remainder %= 1024; in isSyncNotUsingNetworkH()
3424 long b = remainder; in isSyncNotUsingNetworkH()

123