/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetFileDescriptor_AutoCloseInputStreamTest.java | 62 assertEquals(FILE_DATA[0], mInput.read()); in testSkip() 64 assertEquals(FILE_DATA[1], mInput.read()); in testSkip() 66 assertEquals(FILE_DATA[5], mInput.read()); in testSkip() 68 assertEquals(FILE_END, mInput.read()); in testSkip() 74 assertEquals(FILE_DATA[i], mInput.read()); in testRead() 76 assertEquals(FILE_END, mInput.read()); in testRead() 83 assertEquals(FILE_DATA[i], mInput.read()); in testReadPartial() 85 assertEquals(FILE_END, mInput.read()); in testReadPartial() 91 assertEquals(3, mInput.read(buf, 0, 3)); in testReadBufferLen() 92 assertEquals(3, mInput.read(buf, 3, 3)); in testReadBufferLen() [all …]
|
D | AssetManager_AssetInputStreamTest.java | 55 mAssetInputStream.read(); in testClose() 78 assertEquals(EXPECTED_BYTES[i], mAssetInputStream.read()); in testMarkReset() 83 assertEquals(EXPECTED_BYTES[10 + i], mAssetInputStream.read()); in testMarkReset() 91 assertEquals(EXPECTED_BYTES[i], mAssetInputStream.read()); in testSingleByteRead() 96 assertEquals(-1, mAssetInputStream.read()); in testSingleByteRead() 103 assertEquals(10, mAssetInputStream.read(buffer)); in testByteArrayRead() 109 assertEquals(5, mAssetInputStream.read(buffer)); in testByteArrayRead() 116 assertEquals(buffer.length, mAssetInputStream.read(buffer)); in testByteArrayRead() 117 assertEquals(-1, mAssetInputStream.read(buffer)); in testByteArrayRead() 124 assertEquals(10, mAssetInputStream.read(buffer, 0, 10)); in testByteArrayReadOffset() [all …]
|
D | RawResourceTest.java | 48 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset() 58 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset() 62 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
|
D | AssetFileDescriptor_AutoCloseOutputStreamTest.java | 73 assertEquals(FILE_DATA[i], inputStream.read()); in testAutoCloseOutputStream() 76 assertEquals(FILE_DATA[i], inputStream.read()); in testAutoCloseOutputStream() 78 assertEquals(FILE_END, inputStream.read()); in testAutoCloseOutputStream()
|
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | DeviceTestCompanion.java | 63 int numRead = is.read(sizeBuffer); in nextTest() 67 numRead = is.read(nextTestNameBytes); in nextTest() 74 numRead = is.read(sizeBuffer); in nextTest() 96 int read = 0; in echoBytes() local 98 while (read != size) { in echoBytes() 99 int ret = is.read(buffer, read, size - read); in echoBytes() 103 read += ret; in echoBytes() 125 int numRead = is.read(dataBytes); in echoUntilStopSignal()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 78 assertEquals(0, in.read()); in testConstructorAndOpen() 79 assertEquals(1, in.read()); in testConstructorAndOpen() 80 assertEquals(2, in.read()); in testConstructorAndOpen() 81 assertEquals(3, in.read()); in testConstructorAndOpen() 130 assertEquals(DATA, in.read()); in testFromSocket() 147 int count = is.read(observed); in assertInputStreamContent() 149 assertEquals(-1, is.read()); in assertInputStreamContent() 173 assertEquals(0, in.read()); in testWriteToParcel() 174 assertEquals(1, in.read()); in testWriteToParcel() 175 assertEquals(2, in.read()); in testWriteToParcel() [all …]
|
D | ParcelFileDescriptorProcessTest.java | 132 assertEquals(1, red.read()); in testPullPipeNormal() 135 assertEquals(-1, red.read()); in testPullPipeNormal() 145 assertEquals(2, blue.read()); in testPushPipeNormal() 148 assertEquals(-1, blue.read()); in testPushPipeNormal() 161 assertEquals(3, blue.read()); in testPipeWriterError() 162 assertEquals(-1, blue.read()); in testPipeWriterError() 175 assertEquals(4, blue.read()); in testPipeWriterCrash() 176 assertEquals(-1, blue.read()); in testPipeWriterCrash() 188 assertEquals(5, blue.read()); in testSocketCrash() 190 assertEquals(6, red.read()); in testSocketCrash() [all …]
|
D | RecoverySystemTest.java | 50 int read; in getAsset() local 51 while ((read = is.read(b)) != -1) { in getAsset() 52 fos.write(b, 0, read); in getAsset()
|
D | MemoryFileTest.java | 73 assertEquals(1, in.read()); in testGetOutputStream() 74 assertEquals(2, in.read()); in testGetOutputStream() 75 assertEquals(3, in.read()); in testGetOutputStream() 76 assertEquals(4, in.read()); in testGetOutputStream()
|
/cts/suite/audio_quality/lib/src/ |
D | ClientSocket.cpp | 96 int read; in readData() local 117 read = recv(mSocket, (void*)data, toRead, 0); in readData() 118 if (read > 0) { in readData() 119 toRead -= read; in readData() 120 data += read; in readData() 121 } else if (read == 0) { in readData() 128 LOGE("recv returned %d", read); in readData()
|
D | SignalProcessingImpl.cpp | 159 if (!read((char*)header, sizeof(header))) { in run() 181 if (!read((char*)&type, sizeof(type))) { in run() 187 if (!read((char*)&dataLen, sizeof(dataLen))) { in run() 213 if (!read((*buffer)->getData(), dataLen)) { in run() 223 if (!read((char*)val->getPtr(), sizeof(int64_t))) { in run() 247 bool SignalProcessingImpl::read(char* data, int len) in read() function in SignalProcessingImpl
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/ |
D | UsbAccessoryTestActivity.java | 130 int numRead = is.read(buffer32); in onAttached() 139 numRead = is.read(buffer16); in onAttached() 152 numRead = is.read(buffer32); in onAttached() 164 numRead = is.read(buffer32); in onAttached() 169 numRead = is.read(buffer32); in onAttached() 179 numRead = is.read(bufferMax); in onAttached() 194 numRead = is.read(bufferMax); in onAttached() 198 numRead = is.read(bufferMax); in onAttached() 211 numRead = is.read(result); in onAttached() 229 numRead = is.read(bufferMax); in onAttached() [all …]
|
/cts/suite/audio_quality/test/ |
D | TaskTest.cpp | 116 android::String8 read; in TEST_F() local 122 ASSERT_TRUE(task->findStringAttributePublic(AAA, read)); in TEST_F() 123 ASSERT_TRUE(read == aaaVal); in TEST_F() 124 ASSERT_TRUE(task->findStringAttributePublic(BBB, read)); in TEST_F() 125 ASSERT_TRUE(read == bbbVal); in TEST_F() 128 ASSERT_TRUE(!task->findStringAttributePublic(VERSION, read)); in TEST_F() 129 ASSERT_TRUE(!task->findStringAttributePublic(NAME, read)); in TEST_F()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioHelper.java | 457 public int read(byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() method in AudioHelper.AudioRecordAudit 461 int samples = super.read(audioData, offsetInBytes, sizeInBytes); in read() 470 public int read(byte[] audioData, int offsetInBytes, int sizeInBytes, int readMode) { in read() method in AudioHelper.AudioRecordAudit 474 int samples = super.read(audioData, offsetInBytes, sizeInBytes, readMode); in read() 484 public int read(short[] audioData, int offsetInShorts, int sizeInShorts) { in read() method in AudioHelper.AudioRecordAudit 488 int samples = super.read(audioData, offsetInShorts, sizeInShorts); in read() 497 public int read(short[] audioData, int offsetInShorts, int sizeInShorts, int readMode) { in read() method in AudioHelper.AudioRecordAudit 501 int samples = super.read(audioData, offsetInShorts, sizeInShorts, readMode); in read() 511 public int read(float[] audioData, int offsetInFloats, int sizeInFloats, int readMode) { in read() method in AudioHelper.AudioRecordAudit 515 int samples = super.read(audioData, offsetInFloats, sizeInFloats, readMode); in read() [all …]
|
D | AudioTrackOffloadTest.java | 118 final int read = audioInputStream.read(data); in testAudioTrackOffload() local 120 bufferSizeInBytes3sec, read); in testAudioTrackOffload() 124 while (written < read) { in testAudioTrackOffload() 125 int wrote = track.write(data, written, read - written, in testAudioTrackOffload()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | FileUtil.java | 33 int read = fis.read(tmp, pos, tmp.length - pos); in readFile() local 34 if (read == -1) { in readFile() 37 pos += read; in readFile()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | XmpDepthDecode.java | 66 XMPMeta meta = read(is, false); in XmpDepthDecode() 143 static XMPMeta read(InputStream is, boolean skipExtendedContent) { in read() method in XmpDepthDecode 214 if (is.read() != 0xff || is.read() != M_SOI) { in parse() 218 while ((c = is.read()) != -1) { in parse() 223 while ((c = is.read()) == 0xff) { in parse() 237 is.read(section.data, 0, section.data.length); in parse() 242 int lh = is.read(); in parse() 243 int ll = is.read(); in parse() 301 is.read(section.data, 0, length - 2); in readSection() 306 is.read(header, 0, header.length); in readSection() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteGiftTest.java | 53 for (File read : readList) { in testGifts() 54 read.getParentFile().mkdirs(); in testGifts() 55 read.createNewFile(); in testGifts() 56 assertFileReadWriteAccess(read); in testGifts() 58 writeInt(read, 101); in testGifts() 59 assertEquals(101, readInt(read)); in testGifts()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioRecordHelper.java | 105 int read = audioRecord.read(data, 0, bufferSize); in startPullingData() local 106 if (read > 0) { in startPullingData() 107 os.write(data, 0, read); in startPullingData() 109 if (read < 0) { in startPullingData()
|
/cts/libs/input/src/com/android/cts/input/ |
D | HidJsonParser.java | 132 int read = inputStream.read(buffer); in readFully() local 133 while (read >= 0) { in readFully() 134 baos.write(buffer, 0, read); in readFully() 135 read = inputStream.read(buffer); in readFully()
|
/cts/tests/backup/app/src/android/backup/app/ |
D | KeyValueBackupAgent.java | 54 int read; in onBackup() local 55 while ((read = input.read(buffer)) >= 0) { in onBackup() 56 data.writeEntityData(buffer, read); in onBackup()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 75 assertEquals(12, serverInStream.read()); in testLocalConnections() 81 assertEquals(3, clientInStream.read()); in testLocalConnections() 86 assertEquals(32, serverInStream.read()); in testLocalConnections() 95 assertEquals(-1, clientInStream.read()); in testLocalConnections() 108 assertEquals(-1, serverInStream.read()); in testLocalConnections() 122 clientInStream.read(); in testLocalConnections() 131 serverInStream.read(); in testLocalConnections() 213 clientSocket.getInputStream().read(); in testSetSoTimeout_readTimeout() 314 assertEquals(12, serverInputStream.read()); in testLocalSocketCreatedFromFileDescriptor() 384 while ((readCount = is.read(buffer)) >= 0) { in run()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | group2.rscript | 14 rsDebug("Failed to read in on iteration: ", x); 19 rsDebug("Failed to read -5 on iteration: ", x); 25 // Write out aFailed if either of our kernel instances read old data.
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
D | ReadGiftTest.java | 44 for (File read : readList) { in testGifts() 45 assertFileReadWriteAccess(read); in testGifts() 46 assertEquals(101, readInt(read)); in testGifts()
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | Ipv4Packet.java | 57 stream.read(address, 0, address.length); in Ipv4Packet() 60 stream.read(address, 0, address.length); in Ipv4Packet() 68 stream.read(options, 0, options.length); in Ipv4Packet() 75 stream.read(data, 0, data.length); in Ipv4Packet()
|