Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 26) sorted by relevance

12

/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DStorageDeviceInfo.java37 int total = 0; in collectDeviceInfo() local
38 total = Math.max(total, getContext().getExternalCacheDirs().length); in collectDeviceInfo()
39 total = Math.max(total, getContext().getExternalFilesDirs(null).length); in collectDeviceInfo()
40 total = Math.max( in collectDeviceInfo()
41 total, getContext().getExternalFilesDirs(Environment.DIRECTORY_PICTURES).length); in collectDeviceInfo()
42 total = Math.max(total, getContext().getObbDirs().length); in collectDeviceInfo()
47 if (total == 1) { in collectDeviceInfo()
51 physical = total - 1; in collectDeviceInfo()
54 physical = total; in collectDeviceInfo()
/cts/tools/cts-api-coverage/src/com/android/cts/apicommon/
DApiPackage.java63 int total = 0; in getTotalMethods() local
65 total += apiClass.getTotalMethods(); in getTotalMethods()
67 return total; in getTotalMethods()
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DMssimCalculator.java164 double total = 0; in getMean() local
167 total += pixelBuffer[get1dIndex(x, y, stride, bufferIndexOffset)] & 0xFF; in getMean()
170 return total / (windowWidth * windowHeight); in getMean()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java145 int total = 0; in run() local
147 while (streamIn.available() > 0 || total == 0) { in run()
148 if (total < BUFFER_SIZE) { in run()
149 int bytesRead = streamIn.read(buffer, total, in run()
150 (BUFFER_SIZE - total)); in run()
152 total += bytesRead; in run()
159 clientRequest = clientRequest.substring(0, total); in run()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DXmlWriter.java230 Element total = mDoc.createElement("total"); in createApiTotalElement() local
231 total.setAttribute("numCovered", String.valueOf(totalCoveredMethods)); in createApiTotalElement()
232 total.setAttribute("numTotal", String.valueOf(totalMethods)); in createApiTotalElement()
233 total.setAttribute("coveragePercentage", String.valueOf( in createApiTotalElement()
235 return total; in createApiTotalElement()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DMathsUtils.java198 double total = 0.0; in dotProduct() local
200 total += vector1[i] * vector2[i]; in dotProduct()
202 return total; in dotProduct()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtils.java200 int total = 0; in copy() local
204 total += c; in copy()
207 return total; in copy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsReport.java214 (total, current) -> { in getTestResultHistories() argument
215 prefixes.add(total); in getTestResultHistories()
216 return total + ":" + current; in getTestResultHistories()
/cts/tests/tests/telecom/src/android/telecom/cts/
DMockConnectionService.java287 private static final Semaphore[] initializeSemaphore(int total) { in initializeSemaphore() argument
288 Semaphore[] locks = new Semaphore[total]; in initializeSemaphore()
289 for (int i = 0; i < total; i++) { in initializeSemaphore()
/cts/libs/json/src/com/android/json/stream/
DJsonReader.java699 int total; in fillBuffer() local
700 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) { in fillBuffer()
701 limit += total; in fillBuffer()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseCursorTest.java286 int total; field in DatabaseCursorTest.TestObserver
292 total = total_; in TestObserver()
298 if (total == count) { in onChanged()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java488 int total = 0; in copy() local
492 total += c; in copy()
495 return total; in copy()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java207 int total = 0; in getTotalBytes() local
211 total += bytesRead; in getTotalBytes()
213 return total; in getTotalBytes()
/cts/apps/CameraITS/utils/
Dopencv_processing_utils.py463 total = 0
465 total += 1
468 total += 1
470 logging.debug('Found %d matching points out of %d', matching, total)
471 return matching / total
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DArchiveTest.java318 long total = 0; in writeFullStream() local
322 total += length; in writeFullStream()
325 assertThat(total).isEqualTo(expected); in writeFullStream()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsMessageTest.java187 private boolean checkRemaining(int total, int messageLength, int remaining) { in checkRemaining() argument
188 return total - messageLength == remaining; in checkRemaining()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DHeifWriterTest.java333 int total = 0; in copy() local
337 total += c; in copy()
340 return total; in copy()
DMediaMetadataRetrieverTest.java1421 int total = 0; in copy() local
1425 total += c; in copy()
1428 return total; in copy()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandIncrementalTest.java1345 long total = 0; in writeFullStream() local
1347 while ((length = inputStream.read(buffer)) != -1 && (expected < 0 || total < expected)) { in writeFullStream()
1349 total += length; in writeFullStream()
1352 assertEquals(expected, total); in writeFullStream()
DChecksumsTest.java1533 long total = 0; in writeFullStream() local
1537 total += length; in writeFullStream()
1540 Assert.assertEquals(expected, total); in writeFullStream()
DPackageManagerShellCommandInstallTest.java285 long total = 0; in writeFullStream() local
289 total += length; in writeFullStream()
292 assertEquals(expected, total); in writeFullStream()
/cts/tests/tests/keystore/src/android/keystore/cts/
DCipherTest.java597 int total = 0; in testEncryptsAndDecryptsUsingCipherStreams() local
599 while((count = cipherInputStream.read(actualPlaintext, total, in testEncryptsAndDecryptsUsingCipherStreams()
600 actualPlaintext.length - total)) != -1) { in testEncryptsAndDecryptsUsingCipherStreams()
601 total += count; in testEncryptsAndDecryptsUsingCipherStreams()
603 actualPlaintext = Arrays.copyOf(actualPlaintext, total); in testEncryptsAndDecryptsUsingCipherStreams()
/cts/tools/vm-tests-tf/lib/
Djunit.jar ... w int h public void start (int) int total public void step (boolean) boolean successful int x ...
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebSettingsTest.java773 long estimatedSize, long total, WebStorage.QuotaUpdater updater) { in testDatabaseDisabled()
/cts/tests/mediapc/requirements/
Drequirements.txtpb531 …her with 1 instance of secure hardware video decoder session (4 instances total) (AVC, HEVC, VP9, …
538 …her with 1 instance of secure hardware video decoder session (4 instances total) (AVC, HEVC, VP9, …
545 …her with 1 instance of secure hardware video decoder session (4 instances total) (AVC, HEVC, VP9, …

12