/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityRecordTest.java | 69 static void assertAccessibilityRecordCleared(AccessibilityRecord record) { in assertAccessibilityRecordCleared() argument 70 TestCase.assertEquals("addedCount not properly recycled", -1, record.getAddedCount()); in assertAccessibilityRecordCleared() 71 TestCase.assertNull("beforeText not properly recycled", record.getBeforeText()); in assertAccessibilityRecordCleared() 72 TestCase.assertFalse("checked not properly recycled", record.isChecked()); in assertAccessibilityRecordCleared() 73 TestCase.assertNull("className not properly recycled", record.getClassName()); in assertAccessibilityRecordCleared() 75 record.getContentDescription()); in assertAccessibilityRecordCleared() 77 record.getCurrentItemIndex()); in assertAccessibilityRecordCleared() 78 TestCase.assertFalse("enabled not properly recycled", record.isEnabled()); in assertAccessibilityRecordCleared() 79 TestCase.assertEquals("fromIndex not properly recycled", -1, record.getFromIndex()); in assertAccessibilityRecordCleared() 80 TestCase.assertFalse("fullScreen not properly recycled", record.isFullScreen()); in assertAccessibilityRecordCleared() [all …]
|
D | AccessibilityEventTest.java | 207 AccessibilityRecord record = AccessibilityRecord.obtain(); in fullyPopulateAccessibilityEvent() local 208 AccessibilityRecordTest.fullyPopulateAccessibilityRecord(record); in fullyPopulateAccessibilityEvent() 209 sentEvent.appendRecord(record); in fullyPopulateAccessibilityEvent()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | NotificationIncidentTest.java | 62 for (NotificationRecordProto record : dump.getRecordsList()) { in testNotificationRecords() 63 if (record.getKey().contains("android")) { in testNotificationRecords() 65 assertTrue(record.getImportance() > IMPORTANCE_NONE); in testNotificationRecords() 68 record.getFlags(); in testNotificationRecords() 69 record.getChannelId(); in testNotificationRecords() 70 record.getSound(); in testNotificationRecords() 71 record.getAudioAttributes(); in testNotificationRecords() 72 record.getCanVibrate(); in testNotificationRecords() 73 record.getCanShowLight(); in testNotificationRecords() 74 record.getGroupKey(); in testNotificationRecords() [all …]
|
D | ActivityManagerIncidentTest.java | 70 for (BroadcastRecordProto record : queue.getHistoricalBroadcastsList()) { in testDumpBroadcasts() 71 if (record.getIntentAction().equals(TEST_BROADCAST)) { in testDumpBroadcasts()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordNative.java | 144 private static native void nativeDestroyRecord(long record); in nativeDestroyRecord() argument 146 long record, int numChannels, int channelMask, in nativeOpen() argument 148 private static native void nativeClose(long record); in nativeClose() argument 149 private static native int nativeStart(long record); in nativeStart() argument 150 private static native int nativeStop(long record); in nativeStop() argument 151 private static native int nativePause(long record); in nativePause() argument 152 private static native int nativeFlush(long record); in nativeFlush() argument 153 private static native int nativeGetPositionInMsec(long record, @NonNull long[] position); in nativeGetPositionInMsec() argument 154 private static native int nativeGetBuffersPending(long record); in nativeGetBuffersPending() argument 155 private static native int nativeReadByteArray(long record, @NonNull byte[] byteArray, in nativeReadByteArray() argument [all …]
|
D | AudioRecordTest.java | 486 final AudioRecord record = new AudioRecord.Builder() in testAudioRecordBufferSize() local 489 record.release(); in testAudioRecordBufferSize() 517 AudioRecord record = null; in testTimestamp() local 526 record = new AudioRecord.Builder() in testTimestamp() 553 record.startRecording(); in testTimestamp() 563 int ret = record.read(shortData, 0, amount); in testTimestamp() 569 record.getTimestamp(startTs, AudioTimestamp.TIMEBASE_MONOTONIC) in testTimestamp() 574 record.stop(); in testTimestamp() 584 record.getTimestamp(stopTs, AudioTimestamp.TIMEBASE_MONOTONIC)); in testTimestamp() 586 record.getTimestamp(stopTsBoot, AudioTimestamp.TIMEBASE_BOOTTIME)); in testTimestamp() [all …]
|
D | AudioNativeTest.java | 195 AudioRecordNative record = new AudioRecordNative(); in testRecordStreamData() local 196 doRecordTest(record, TEST_CHANNELS, TEST_SR, TEST_FLOAT, in testRecordStreamData() 207 AudioRecordNative record = new AudioHelper.AudioRecordAuditNative(); in testRecordAudit() local 208 doRecordTest(record, 4 /* numChannels */, 44100 /* sampleRate */, false /* useFloat */, in testRecordAudit() 276 private void doRecordTest(AudioRecordNative record, in doRecordTest() argument 282 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 284 assertTrue(TEST_NAME, record.start()); in doRecordTest() 293 record.read(data, 0 /* offset */, sourceSamples, in doRecordTest() 300 record.read(data, 0 /* offset */, sourceSamples, in doRecordTest() 304 assertTrue(TEST_NAME, record.stop()); in doRecordTest() [all …]
|
D | AudioRecord_BufferSizeTest.java | 53 record(SAMPLE_RATES_IN_HZ[i]); in testGetMinBufferSize() 68 private void record(int sampleRateInHz) { in record() method in AudioRecord_BufferSizeTest
|
/cts/tests/tests/media/libaudiojni/ |
D | audio-record-native.cpp | 410 AudioRecordNative *record = (AudioRecordNative *)pContext; in BufferQueueCallback() local 411 record->bufferQueueCallback(queueItf); in BufferQueueCallback() 444 AudioRecordNative record; in Java_android_media_cts_AudioRecordNative_nativeTest() local 451 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest() 454 record.logBufferState(); in Java_android_media_cts_AudioRecordNative_nativeTest() 455 res = record.start(); in Java_android_media_cts_AudioRecordNative_nativeTest() 460 ssize_t amount = record.read((char *)buffer + offset, size -offset); in Java_android_media_cts_AudioRecordNative_nativeTest() 467 res = record.stop(); in Java_android_media_cts_AudioRecordNative_nativeTest() 470 record.close(); in Java_android_media_cts_AudioRecordNative_nativeTest() 491 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/graphics/src/android/graphics/cts/ |
D | ImageDecoderTest.java | 222 for (Record record : RECORDS) { in testUris() 223 int resId = record.resId; in testUris() 255 for (Record record : RECORDS) { in testInfo() 257 ImageDecoder.Source src = f.apply(record.resId); in testInfo() 261 assertEquals(record.width, info.getSize().getWidth()); in testInfo() 262 assertEquals(record.height, info.getSize().getHeight()); in testInfo() 263 assertEquals(record.mimeType, info.getMimeType()); in testInfo() 264 assertSame(record.colorSpace, info.getColorSpace()); in testInfo() 267 fail("Failed " + getAsResourceUri(record.resId) + " with exception " + e); in testInfo() 275 for (Record record : RECORDS) { in testDecodeDrawable() [all …]
|
/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/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 | 181 String[] record = DataUtil.queryById(mResolver, dataId, projection); in assertDataUsageEquals() local 182 assertNotNull(record); in assertDataUsageEquals() 185 if (record[0] != null) { in assertDataUsageEquals() 186 actual = Long.parseLong(record[0]); in assertDataUsageEquals()
|
/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/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
|
D | TestLogClient.java | 43 public void record(String key, String value) { in record() method in TestLogClient
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 167 ScanRecord record = result.getScanRecord(); in createScanFilter() local 168 if (record == null) { in createScanFilter() 171 Map<ParcelUuid, byte[]> serviceData = record.getServiceData(); in createScanFilter() 177 SparseArray<byte[]> manufacturerSpecificData = record.getManufacturerSpecificData(); in createScanFilter() 182 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/framework/base/windowmanager/dndtargetappsdk23/src/android/server/wm/dndtargetappsdk23/ |
D | DropTarget.java | 53 mLogClient.record(key, value); in logResult()
|
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/ |
D | DragSource.java | 129 mLogClient.record(key, value); in logResult()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioFrequencyMicActivity.java | 384 record(TEST_DURATION_NOISE); in startTest() 406 record(TEST_DURATION_USB_BACKGROUND); in startTest() 425 record(TEST_DURATION_USB_NOISE); in startTest() 455 public void record(int durationMs) { in record() method in AudioFrequencyMicActivity.TestRunnable
|