/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityRecordTest.java | 84 static void assertAccessibilityRecordCleared(AccessibilityRecord record) { in assertAccessibilityRecordCleared() argument 85 TestCase.assertEquals("addedCount not properly recycled", -1, record.getAddedCount()); in assertAccessibilityRecordCleared() 86 TestCase.assertNull("beforeText not properly recycled", record.getBeforeText()); in assertAccessibilityRecordCleared() 87 TestCase.assertFalse("checked not properly recycled", record.isChecked()); in assertAccessibilityRecordCleared() 88 TestCase.assertNull("className not properly recycled", record.getClassName()); in assertAccessibilityRecordCleared() 90 record.getContentDescription()); in assertAccessibilityRecordCleared() 92 record.getCurrentItemIndex()); in assertAccessibilityRecordCleared() 93 TestCase.assertFalse("enabled not properly recycled", record.isEnabled()); in assertAccessibilityRecordCleared() 94 TestCase.assertEquals("fromIndex not properly recycled", -1, record.getFromIndex()); in assertAccessibilityRecordCleared() 95 TestCase.assertFalse("fullScreen not properly recycled", record.isFullScreen()); in assertAccessibilityRecordCleared() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | AImageDecoderTest.java | 116 public void testNullDecoder(ImageDecoderTest.AssetRecord record) { in testNullDecoder() argument 117 nTestNullDecoder(getAssetManager(), record.name); in testNullDecoder() 129 public void testCreateBuffer(ImageDecoderTest.AssetRecord record) { in testCreateBuffer() argument 132 long asset = nOpenAsset(getAssetManager(), record.name); in testCreateBuffer() 135 nTestInfo(aimagedecoder, record.width, record.height, "image/png", in testCreateBuffer() 136 record.isF16, nativeDataSpace(record.getColorSpace())); in testCreateBuffer() 142 public void testCreateFd(ImageDecoderTest.AssetRecord record) { in testCreateFd() argument 145 long asset = nOpenAsset(getAssetManager(), record.name); in testCreateFd() 148 nTestInfo(aimagedecoder, record.width, record.height, "image/png", in testCreateFd() 149 record.isF16, nativeDataSpace(record.getColorSpace())); in testCreateFd() [all …]
|
D | ImageDecoderTest.java | 240 public void testUris(Record record) { in testUris() argument 241 int resId = record.resId; in testUris() 274 public void testInfo(Record record) { in testInfo() argument 276 ImageDecoder.Source src = f.apply(record.resId); in testInfo() 280 assertEquals(record.width, info.getSize().getWidth()); in testInfo() 281 assertEquals(record.height, info.getSize().getHeight()); in testInfo() 282 assertEquals(record.mimeType, info.getMimeType()); in testInfo() 283 assertSame(record.colorSpace, info.getColorSpace()); in testInfo() 286 fail("Failed " + Utils.getAsResourceUri(record.resId) + " with exception " + e); in testInfo() 293 public void testDecodeDrawable(Record record) { in testDecodeDrawable() argument [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordNative.java | 149 private static native void nativeDestroyRecord(long record); in nativeDestroyRecord() argument 151 long record, int numChannels, int channelMask, in nativeOpen() argument 153 private static native void nativeClose(long record); in nativeClose() argument 154 private static native int nativeStart(long record); in nativeStart() argument 155 private static native int nativeStop(long record); in nativeStop() argument 156 private static native int nativePause(long record); in nativePause() argument 157 private static native int nativeFlush(long record); in nativeFlush() argument 158 private static native int nativeGetPositionInMsec(long record, @NonNull long[] position); in nativeGetPositionInMsec() argument 159 private static native int nativeGetBuffersPending(long record); in nativeGetBuffersPending() argument 160 private static native int nativeReadByteArray(long record, @NonNull byte[] byteArray, in nativeReadByteArray() argument [all …]
|
D | AudioRecordSharedAudioTest.java | 75 AudioRecord record = new AudioRecord.Builder().setMaxSharedAudioHistoryMillis( in testPermissionFailure() 79 final AudioRecord record = in testPermissionFailure() local 88 assertEquals(AudioRecord.STATE_INITIALIZED, record.getState()); in testPermissionFailure() 89 record.startRecording(); in testPermissionFailure() 93 record.shareAudioHistory( in testPermissionFailure() 97 record.stop(); in testPermissionFailure() 98 record.release(); in testPermissionFailure() 103 AudioRecord record = new AudioRecord.Builder().setAudioFormat(new AudioFormat.Builder() in testPermissionSuccess() local 113 assertEquals(AudioRecord.STATE_INITIALIZED, record.getState()); in testPermissionSuccess() 115 record.startRecording(); in testPermissionSuccess() [all …]
|
D | MediaSyncEventTest.java | 52 AudioRecord record = null; in testSynchronizedRecord() local 84 record = new AudioRecord.Builder() in testSynchronizedRecord() 92 assertEquals(TEST_NAME, AudioRecord.STATE_INITIALIZED, record.getState()); in testSynchronizedRecord() 116 record.startRecording(event); in testSynchronizedRecord() 118 AudioRecord.RECORDSTATE_RECORDING, record.getRecordingState()); in testSynchronizedRecord() 146 int ret = record.read(shortData, 0, amount); in testSynchronizedRecord() 170 record.stop(); in testSynchronizedRecord() 171 assertEquals(TEST_NAME, AudioRecord.RECORDSTATE_STOPPED, record.getRecordingState()); in testSynchronizedRecord() 173 if (record != null) { in testSynchronizedRecord() 174 record.release(); in testSynchronizedRecord() [all …]
|
D | AudioRecordTest.java | 555 final AudioRecord record = new AudioRecord.Builder() in testAudioRecordBufferSize() local 558 record.release(); in testAudioRecordBufferSize() 586 AudioRecord record = null; in testTimestamp() local 595 record = new AudioRecord.Builder() in testTimestamp() 622 record.startRecording(); in testTimestamp() 635 final int ret = record.read(shortData, 0, amount); in testTimestamp() 640 if (record.getTimestamp(ts, AudioTimestamp.TIMEBASE_MONOTONIC) in testTimestamp() 646 record.stop(); in testTimestamp() 656 record.getTimestamp(stopTs, AudioTimestamp.TIMEBASE_MONOTONIC)); in testTimestamp() 658 record.getTimestamp(stopTsBoot, AudioTimestamp.TIMEBASE_BOOTTIME)); in testTimestamp() [all …]
|
D | AudioNativeTest.java | 200 AudioRecordNative record = new AudioRecordNative(); in testRecordStreamData() local 201 doRecordTest(record, TEST_CHANNELS, TEST_SR, TEST_FLOAT, in testRecordStreamData() 212 AudioRecordNative record = new AudioHelper.AudioRecordAuditNative(); in testRecordAudit() local 213 doRecordTest(record, 4 /* numChannels */, 44100 /* sampleRate */, false /* useFloat */, in testRecordAudit() 339 private void doRecordTest(AudioRecordNative record, in doRecordTest() argument 345 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 347 assertTrue(TEST_NAME, record.start()); in doRecordTest() 356 record.read(data, 0 /* offset */, sourceSamples, in doRecordTest() 363 record.read(data, 0 /* offset */, sourceSamples, in doRecordTest() 367 assertTrue(TEST_NAME, record.stop()); in doRecordTest() [all …]
|
D | AudioRecord_BufferSizeTest.java | 57 record(SAMPLE_RATES_IN_HZ[i]); in testGetMinBufferSize() 72 private void record(int sampleRateInHz) { in record() method in AudioRecord_BufferSizeTest
|
/cts/tests/tests/media/libaudiojni/ |
D | audio-record-native.cpp | 433 AudioRecordNative *record = (AudioRecordNative *)pContext; in BufferQueueCallback() local 434 record->bufferQueueCallback(queueItf); in BufferQueueCallback() 470 AudioRecordNative record; in Java_android_media_cts_AudioRecordNative_nativeTest() local 477 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest() 480 record.logBufferState(); in Java_android_media_cts_AudioRecordNative_nativeTest() 481 res = record.start(); in Java_android_media_cts_AudioRecordNative_nativeTest() 486 ssize_t amount = record.read((char *)buffer + offset, size -offset); in Java_android_media_cts_AudioRecordNative_nativeTest() 493 res = record.stop(); in Java_android_media_cts_AudioRecordNative_nativeTest() 496 record.close(); in Java_android_media_cts_AudioRecordNative_nativeTest() 517 auto record = *(shared_pointer<AudioRecordNative> *)jrecord; in Java_android_media_cts_AudioRecordNative_nativeOpen() local [all …]
|
/cts/tools/incremental-cts/testdata/ |
D | perf_dump.txt | 1 record mmap2: type 10, misc 1, size 136 9 record mmap2: type 10, misc 8194, size 136 17 record comm: type 3, misc 0, size 64 23 record comm: type 3, misc 8192, size 64 29 record mmap2: type 10, misc 8194, size 136 37 record mmap2: type 10, misc 8194, size 136 45 record mmap2: type 10, misc 8194, size 136 53 record mmap2: type 10, misc 8194, size 136 61 record mmap2: type 10, misc 8194, size 136
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoAudioPermissionTest.java | 109 final AudioRecord record = new AudioRecord.Builder().build(); in testRecordPermission() 110 record.release(); in testRecordPermission() 116 AudioRecord record = new AudioRecord( in testRecordPermission() local 119 final int state = record.getState(); in testRecordPermission() 120 record.release(); in testRecordPermission()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoCaptureAudioOutputPermissionTest.java | 59 AudioRecord record = new AudioRecord(AudioSource.REMOTE_SUBMIX, 44100, in testCreateAudioRecord() local 64 record.getState() != AudioRecord.STATE_INITIALIZED); in testCreateAudioRecord() 66 record.release(); in testCreateAudioRecord()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | AttestationTest.java | 92 ParsedAttestationRecord record = new ParsedAttestationRecord(cert); in attestationTest() local 96 assertTrue(record.getAttestationVersion() >= 3); in attestationTest() 106 assertArrayEquals(challenge, record.getAttestationChallenge()); in attestationTest() 117 record.getSoftwareAuthorizationByteString(KM_TAG_ATTESTATION_APPLICATION_ID); in attestationTest() 125 record.getTeeAuthorizationBoolean(KM_TAG_IDENTITY_CREDENTIAL_KEY); in attestationTest()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_DeletedContacts.java | 69 for (String[] record : records) { in testQuery_returnsProperColumns() 70 if (Long.parseLong(record[0]) == ids.mContactId) { in testQuery_returnsProperColumns() 72 assertTrue(Long.parseLong(record[1]) > start); in testQuery_returnsProperColumns() 122 for (String[] record : records) { in testQuerySinceTimestamp() 124 long contactId = Long.parseLong(record[0]); in testQuerySinceTimestamp() 129 assertTrue(Long.parseLong(record[1]) > start); in testQuerySinceTimestamp()
|
D | CommonDatabaseUtils.java | 52 String[] record = new String[cursor.getColumnCount()]; in multiRecordToArray() local 53 fillArray(cursor, record); in multiRecordToArray() 54 result.add(record); in multiRecordToArray()
|
D | ContactsContract_DataUsageTest.java | 137 String[] record = DataUtil.queryById(mResolver, dataId, projection); in assertDataUsageEquals() local 138 assertNotNull(record); in assertDataUsageEquals() 141 if (record[0] != null) { in assertDataUsageEquals() 142 actual = Long.parseLong(record[0]); in assertDataUsageEquals()
|
/cts/tests/musicrecognition/src/android/musicrecognition/cts/ |
D | MusicRecognitionManagerTest.java | 113 AudioRecord record = new AudioRecord(MediaRecorder.AudioSource.MIC, 16_000, in testRecognitionRequest() local 120 .setAudioFormat(record.getFormat()) in testRecognitionRequest() 121 .setCaptureSession(record.getAudioSessionId()) in testRecognitionRequest() 127 assertThat(request.getAudioFormat()).isEqualTo(record.getFormat()); in testRecognitionRequest() 129 assertThat(request.getCaptureSession()).isEqualTo(record.getAudioSessionId()); in testRecognitionRequest() 131 assertThat(request.getAudioAttributes()).isEqualTo(record.getAudioAttributes()); in testRecognitionRequest() 268 AudioRecord record = new AudioRecord(MediaRecorder.AudioSource.MIC, 16_000, in invokeMusicRecognitionApi() local 275 .setAudioFormat(record.getFormat()) in invokeMusicRecognitionApi() 276 .setCaptureSession(record.getAudioSessionId()) in invokeMusicRecognitionApi()
|
/cts/hostsidetests/sustainedperf/dhrystone/ |
D | dhry.h | 415 typedef struct record struct 417 struct record *Ptr_Comp; argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | NdefTagTester.java | 84 NdefRecord record = records[0]; in writeTag() local 86 NfcUtils.displayByteArray(record.getId()), in writeTag() 87 new String(record.getType(), Charset.forName("US-ASCII")), in writeTag() 88 new String(record.getPayload(), Charset.forName("US-ASCII"))); in writeTag()
|
D | NfcUtils.java | 45 private static boolean areRecordsEqual(NdefRecord record, NdefRecord otherRecord) { in areRecordsEqual() argument 46 return Arrays.equals(record.toByteArray(), otherRecord.toByteArray()); in areRecordsEqual()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2115/ |
D | poc.cpp | 66 failure_record_t *record __attribute__((unused)), in GetFailureRecord() argument 76 failure_record_t *record __attribute__((unused)), in WriteFailureRecord() argument 80 uint32_t ComputeRetryTimeout(const failure_record_t *record __attribute__((unused))) { in ComputeRetryTimeout() argument
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainHotwordDetectionService.java | 294 AudioRecord record = in canReadAudio() local 308 if (record.getState() != AudioRecord.STATE_INITIALIZED) { in canReadAudio() 310 record.release(); in canReadAudio() 314 record.startRecording(); in canReadAudio() 320 record.read(buffer, numBytes, Math.min(1024, buffer.length - numBytes)); in canReadAudio() 341 record.release(); in canReadAudio()
|
/cts/apps/CameraITS/tests/ |
D | its_base_test.py | 221 def on_pass(self, record): argument 222 logging.debug('%s on PASS.', record.test_name) 224 def on_fail(self, record): argument 225 logging.debug('%s on FAIL.', record.test_name)
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | TestLogService.java | 57 record(intent.getStringExtra(TestLogClient.EXTRA_LOG_TAG), in onStartCommand() 106 private static void record(String logtag, String key, String value) { in record() method in TestLogService
|