/cts/tests/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityRecordTest.java | 82 static void assertAccessibilityRecordCleared(AccessibilityRecord record) { in assertAccessibilityRecordCleared() argument 83 TestCase.assertEquals("addedCount not properly recycled", -1, record.getAddedCount()); in assertAccessibilityRecordCleared() 84 TestCase.assertNull("beforeText not properly recycled", record.getBeforeText()); in assertAccessibilityRecordCleared() 85 TestCase.assertFalse("checked not properly recycled", record.isChecked()); in assertAccessibilityRecordCleared() 86 TestCase.assertNull("className not properly recycled", record.getClassName()); in assertAccessibilityRecordCleared() 88 record.getContentDescription()); in assertAccessibilityRecordCleared() 90 record.getCurrentItemIndex()); in assertAccessibilityRecordCleared() 91 TestCase.assertFalse("enabled not properly recycled", record.isEnabled()); in assertAccessibilityRecordCleared() 92 TestCase.assertEquals("fromIndex not properly recycled", -1, record.getFromIndex()); in assertAccessibilityRecordCleared() 93 TestCase.assertFalse("fullScreen not properly recycled", record.isFullScreen()); in assertAccessibilityRecordCleared() [all …]
|
D | AccessibilityEventTest.java | 195 AccessibilityRecord record = AccessibilityRecord.obtain(); in fullyPopulateAccessibilityEvent() local 196 AccessibilityRecordTest.fullyPopulateAccessibilityRecord(record); in fullyPopulateAccessibilityEvent() 197 sentEvent.appendRecord(record); in fullyPopulateAccessibilityEvent()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | OpenSSLHeartbleedTest.java | 394 TlsRecord record = TlsRecord.parse(recordBytes); in forwardTlsRecords() local 397 record, in forwardTlsRecords() 402 if (record.protocol == TlsProtocols.CHANGE_CIPHER_SPEC) { in forwardTlsRecords() 417 TlsRecord record, in forwardTlsRecord() argument 424 switch (record.protocol) { in forwardTlsRecord() 427 AlertMessage alert = AlertMessage.tryParse(record); in forwardTlsRecord() 447 + getRecordInfo(record, fragmentEncryptionMayBeEnabled)); in forwardTlsRecord() 454 record, handshakeMessageTypeAfterWhichToInjectHeartbeatRequest))) { in forwardTlsRecord() 460 record.versionMajor, in forwardTlsRecord() 461 record.versionMinor, in forwardTlsRecord() [all …]
|
D | OpenSSLEarlyCCSTest.java | 394 TlsRecord record = TlsRecord.parse(recordBytes); in forwardTlsRecords() local 397 record, in forwardTlsRecords() 402 if (record.protocol == TlsProtocols.CHANGE_CIPHER_SPEC) { in forwardTlsRecords() 414 TlsRecord record, in forwardTlsRecord() argument 422 setFirstRecordReceivedAfterCCSWasInjected(record, fragmentEncryptionMayBeEnabled); in forwardTlsRecord() 424 } else if ((record.protocol == TlsProtocols.CHANGE_CIPHER_SPEC) in forwardTlsRecord() 429 + getRecordInfo(record, fragmentEncryptionMayBeEnabled)); in forwardTlsRecord() 436 record, handshakeMessageTypeBeforeWhichToInjectCCS))) { in forwardTlsRecord() 439 out.write(createChangeCipherSpecRecord(record.versionMajor, record.versionMinor)); in forwardTlsRecord() 445 + getRecordInfo(record, fragmentEncryptionMayBeEnabled)); in forwardTlsRecord() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordNative.java | 133 private static native void nativeDestroyRecord(long record); in nativeDestroyRecord() argument 135 long record, int numChannels, int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument 136 private static native void nativeClose(long record); in nativeClose() argument 137 private static native int nativeStart(long record); in nativeStart() argument 138 private static native int nativeStop(long record); in nativeStop() argument 139 private static native int nativePause(long record); in nativePause() argument 140 private static native int nativeFlush(long record); in nativeFlush() argument 141 private static native int nativeGetPositionInMsec(long record, @NonNull long[] position); in nativeGetPositionInMsec() argument 142 private static native int nativeGetBuffersPending(long record); in nativeGetBuffersPending() argument 143 private static native int nativeReadByteArray(long record, @NonNull byte[] byteArray, in nativeReadByteArray() argument [all …]
|
D | AudioNativeTest.java | 175 AudioRecordNative record = new AudioRecordNative(); in testRecordStreamData() local 176 doRecordTest(record, TEST_CHANNELS, TEST_SR, TEST_FLOAT, in testRecordStreamData() 187 AudioRecordNative record = new AudioHelper.AudioRecordAuditNative(); in testRecordAudit() local 188 doRecordTest(record, 4 /* numChannels */, 44100 /* sampleRate */, false /* useFloat */, in testRecordAudit() 198 private void doRecordTest(AudioRecordNative record, in doRecordTest() argument 204 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 206 assertTrue(TEST_NAME, record.start()); in doRecordTest() 215 record.read(data, 0 /* offset */, sourceSamples, in doRecordTest() 222 record.read(data, 0 /* offset */, sourceSamples, in doRecordTest() 226 assertTrue(TEST_NAME, record.stop()); in doRecordTest() [all …]
|
D | AudioRecordTest.java | 439 final AudioRecord record = new AudioRecord.Builder() in testAudioRecordBufferSize() local 442 record.release(); in testAudioRecordBufferSize() 470 AudioRecord record = null; in testSynchronizedRecord() local 502 record = new AudioRecord.Builder() in testSynchronizedRecord() 510 assertEquals(TEST_NAME, AudioRecord.STATE_INITIALIZED, record.getState()); in testSynchronizedRecord() 534 record.startRecording(event); in testSynchronizedRecord() 536 AudioRecord.RECORDSTATE_RECORDING, record.getRecordingState()); in testSynchronizedRecord() 564 int ret = record.read(shortData, 0, amount); in testSynchronizedRecord() 586 record.stop(); in testSynchronizedRecord() 587 assertEquals(TEST_NAME, AudioRecord.RECORDSTATE_STOPPED, record.getRecordingState()); in testSynchronizedRecord() [all …]
|
D | AudioRecord_BufferSizeTest.java | 52 record(SAMPLE_RATES_IN_HZ[i]); in testGetMinBufferSize() 67 private void record(int sampleRateInHz) { in record() method in AudioRecord_BufferSizeTest
|
/cts/tests/tests/media/libaudiojni/ |
D | audio-record-native.cpp | 406 AudioRecordNative *record = (AudioRecordNative *)pContext; in BufferQueueCallback() local 407 record->bufferQueueCallback(queueItf); in BufferQueueCallback() 441 AudioRecordNative record; in Java_android_media_cts_AudioRecordNative_nativeTest() local 448 res = record.open(numChannels, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest() 451 record.logBufferState(); in Java_android_media_cts_AudioRecordNative_nativeTest() 452 res = record.start(); in Java_android_media_cts_AudioRecordNative_nativeTest() 457 ssize_t amount = record.read((char *)buffer + offset, size -offset); in Java_android_media_cts_AudioRecordNative_nativeTest() 464 res = record.stop(); in Java_android_media_cts_AudioRecordNative_nativeTest() 467 record.close(); in Java_android_media_cts_AudioRecordNative_nativeTest() 488 auto record = *(shared_pointer<AudioRecordNative> *)jrecord; in Java_android_media_cts_AudioRecordNative_nativeOpen() local [all …]
|
D | Android.mk | 26 audio-record-native.cpp \
|
/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/provider/src/android/provider/cts/ |
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 | ContactsContract_DataUsageTest.java | 142 String[] record = DataUtil.queryById(mResolver, dataId, projection); in assertDataUsageEquals() local 143 assertNotNull(record); in assertDataUsageEquals() 146 if (record[0] != null) { in assertDataUsageEquals() 147 actual = Long.parseLong(record[0]); in assertDataUsageEquals()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
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()
|
/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/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 134 ScanRecord record = result.getScanRecord(); in createScanFilter() local 135 if (record == null) { in createScanFilter() 138 Map<ParcelUuid, byte[]> serviceData = record.getServiceData(); in createScanFilter() 144 SparseArray<byte[]> manufacturerSpecificData = record.getManufacturerSpecificData(); in createScanFilter() 149 List<ParcelUuid> serviceUuids = record.getServiceUuids(); in createScanFilter()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleScannerService.java | 166 ScanRecord record = result.getScanRecord(); in onScanResult() local 168 Map<ParcelUuid, byte[]> serviceData = record.getServiceData(); in onScanResult() 176 powerIntent.putExtra(EXTRA_POWER_LEVEL, record.getTxPowerLevel()); in onScanResult()
|
/cts/tests/expectations/ |
D | knownfailures.txt | 300 description: "New assist tests that do not yet have a track record.",
|