Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/cts/tests/tests/content/src/android/content/res/cts/
DAssetManager_AssetInputStreamTest.java57 mAssetInputStream.read(); in testClose()
80 assertEquals(EXPECTED_BYTES[i], mAssetInputStream.read()); in testMarkReset()
85 assertEquals(EXPECTED_BYTES[10 + i], mAssetInputStream.read()); in testMarkReset()
93 assertEquals(EXPECTED_BYTES[i], mAssetInputStream.read()); in testSingleByteRead()
98 assertEquals(-1, mAssetInputStream.read()); in testSingleByteRead()
105 assertEquals(10, mAssetInputStream.read(buffer)); in testByteArrayRead()
111 assertEquals(5, mAssetInputStream.read(buffer)); in testByteArrayRead()
118 assertEquals(buffer.length, mAssetInputStream.read(buffer)); in testByteArrayRead()
119 assertEquals(-1, mAssetInputStream.read(buffer)); in testByteArrayRead()
126 assertEquals(10, mAssetInputStream.read(buffer, 0, 10)); in testByteArrayReadOffset()
[all …]
DAssetFileDescriptor_AutoCloseInputStreamTest.java93 assertEquals(FILE_DATA[0], mInput.read()); in testSkip()
95 assertEquals(FILE_DATA[1], mInput.read()); in testSkip()
97 assertEquals(FILE_DATA[5], mInput.read()); in testSkip()
99 assertEquals(FILE_END, mInput.read()); in testSkip()
106 assertEquals(FILE_DATA[i], mInput.read()); in testRead()
108 assertEquals(FILE_END, mInput.read()); in testRead()
116 assertEquals(FILE_DATA[i], mInput.read()); in testReadPartial()
118 assertEquals(FILE_END, mInput.read()); in testReadPartial()
125 assertEquals(3, mInput.read(buf, 0, 3)); in testReadBufferLen()
126 assertEquals(3, mInput.read(buf, 3, 3)); in testReadBufferLen()
[all …]
DRawResourceTest.java64 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
74 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
78 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadGiftTest.java35 for (File read : readList) { in testStageNonGifts()
36 read.getParentFile().mkdirs(); in testStageNonGifts()
37 assertTrue(read.createNewFile()); in testStageNonGifts()
38 writeInt(read, 101); in testStageNonGifts()
52 for (File read : readList) { in testNoGifts()
53 assertFileReadWriteAccess(read); in testNoGifts()
54 assertEquals(101, readInt(read)); in testNoGifts()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DDeviceTestCompanion.java63 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/tools/vm-tests-tf/build/src/util/build/
DFileUtil.java33 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/os/src/android/os/cts/
DParcelFileDescriptorTest.java85 assertEquals(0, in.read()); in testConstructorAndOpen()
86 assertEquals(1, in.read()); in testConstructorAndOpen()
87 assertEquals(2, in.read()); in testConstructorAndOpen()
88 assertEquals(3, in.read()); in testConstructorAndOpen()
103 assertEquals(0, in.read()); in testDetachAdopt()
104 assertEquals(1, in.read()); in testDetachAdopt()
105 assertEquals(2, in.read()); in testDetachAdopt()
106 assertEquals(3, in.read()); in testDetachAdopt()
213 assertEquals(DATA, in.read()); in testFromSocket()
230 int count = is.read(observed); in assertInputStreamContent()
[all …]
DParcelFileDescriptorProcessTest.java134 assertEquals(1, red.read()); in testPullPipeNormal()
137 assertEquals(-1, red.read()); in testPullPipeNormal()
147 assertEquals(2, blue.read()); in testPushPipeNormal()
150 assertEquals(-1, blue.read()); in testPushPipeNormal()
163 assertEquals(3, blue.read()); in testPipeWriterError()
164 assertEquals(-1, blue.read()); in testPipeWriterError()
177 assertEquals(4, blue.read()); in testPipeWriterCrash()
178 assertEquals(-1, blue.read()); in testPipeWriterCrash()
190 assertEquals(5, blue.read()); in testSocketCrash()
192 assertEquals(6, red.read()); in testSocketCrash()
[all …]
DRecoverySystemTest.java50 int read; in getAsset() local
51 while ((read = is.read(b)) != -1) { in getAsset()
52 fos.write(b, 0, read); in getAsset()
DMemoryFileTest.java75 assertEquals(1, in.read()); in testGetOutputStream()
76 assertEquals(2, in.read()); in testGetOutputStream()
77 assertEquals(3, in.read()); in testGetOutputStream()
78 assertEquals(4, in.read()); in testGetOutputStream()
DParcelFileDescriptor_AutoCloseInputStreamTest.java41 assertEquals(0, in.read()); in testAutoCloseInputStream()
46 in.read(); in testAutoCloseInputStream()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioRecordHelper.java105 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/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerDvrTest.java165 assertEquals(3, d.read(3)); in testDvrPlayback()
166 assertEquals(3, d.read(new byte[3], 0, 3)); in testDvrPlayback()
168 assertEquals(3, d.read(3)); in testDvrPlayback()
169 assertEquals(3, d.read(new byte[3], 0, 3)); in testDvrPlayback()
171 assertEquals(2, d.read(3)); in testDvrPlayback()
173 assertEquals(0, d.read(3)); in testDvrPlayback()
243 assertEquals(3, d.read(3)); in testSetPlaybackBufferStatusCheckIntervalHint()
244 assertEquals(3, d.read(new byte[3], 0, 3)); in testSetPlaybackBufferStatusCheckIntervalHint()
246 assertEquals(3, d.read(3)); in testSetPlaybackBufferStatusCheckIntervalHint()
247 assertEquals(3, d.read(new byte[3], 0, 3)); in testSetPlaybackBufferStatusCheckIntervalHint()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java178 int numRead = is.read(buffer32); in onAttached()
187 numRead = is.read(buffer16); in onAttached()
200 numRead = is.read(buffer32); in onAttached()
212 numRead = is.read(buffer32); in onAttached()
217 numRead = is.read(buffer32); in onAttached()
227 numRead = is.read(bufferMax); in onAttached()
242 numRead = is.read(bufferMax); in onAttached()
246 numRead = is.read(bufferMax); in onAttached()
259 numRead = is.read(result); in onAttached()
277 numRead = is.read(bufferMax); in onAttached()
[all …]
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/
DTunerDvrTest.java165 assertEquals(3, d.read(3)); in testDvrPlayback()
166 assertEquals(3, d.read(new byte[3], 0, 3)); in testDvrPlayback()
168 assertEquals(3, d.read(3)); in testDvrPlayback()
169 assertEquals(3, d.read(new byte[3], 0, 3)); in testDvrPlayback()
171 assertEquals(2, d.read(3)); in testDvrPlayback()
173 assertEquals(0, d.read(3)); in testDvrPlayback()
243 assertEquals(3, d.read(3)); in testSetPlaybackBufferStatusCheckIntervalHint()
244 assertEquals(3, d.read(new byte[3], 0, 3)); in testSetPlaybackBufferStatusCheckIntervalHint()
246 assertEquals(3, d.read(3)); in testSetPlaybackBufferStatusCheckIntervalHint()
247 assertEquals(3, d.read(new byte[3], 0, 3)); in testSetPlaybackBufferStatusCheckIntervalHint()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/
DBaseNetworkService.java188 int read = 0;
193 while (read < byteCount * packetCount) {
194 int n = in.read(buf);
196 writeResult(reply, "Unexpected EOF @ " + read,null);
199 read += n;
204 if (read != (byteCount * packetCount)) {
206 + (byteCount * packetCount) + ", received" + read, null);
/cts/tests/backup/app/src/android/backup/app/
DKeyValueBackupAgent.java54 int read; in onBackup() local
55 while ((read = input.read(buffer)) >= 0) { in onBackup()
56 data.writeEntityData(buffer, read); in onBackup()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DXmpDepthDecode.java66 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/tests/tests/renderscript/src/android/renderscript/cts/
Dgroup2.rscript14 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/tests/tests/media/common/src/android/media/cts/
DStreamUtils.java40 public abstract ByteBuffer read() throws IOException; in read() method in StreamUtils.ByteBufferStream
111 public ByteBuffer read() throws IOException { in read() method in StreamUtils.MediaCodecStream
144 in = mBufferInputStream.read(); in read()
158 int n = mInputStream.read(mBuf, numRead, inBufLen - numRead); in read()
250 public int read() throws IOException { in read() method in StreamUtils.ByteBufferInputStream
253 mBuffer = mInput.read(); in read()
303 public ByteBuffer read() throws IOException { in read() method in StreamUtils.PcmAudioBufferStream
319 int b1 = buffered_test.read(); in compareStreams()
320 int b2 = buffered_reference.read(); in compareStreams()
/cts/tests/mediapc/src/android/mediapc/cts/
DPost.java156 int read; /* declare this here so that the for loop can be aligned */ in connectStreams() local
158 while ((read = in.read(scratch)) != -1) { in connectStreams()
159 out.write(scratch, 0, read); in connectStreams()
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/
DSignalObserver.java132 int ret = mAudioSource.read(buffer, 0, buffer.length, AudioRecord.READ_BLOCKING); in run()
183 int read(short[] buffer, int offsetInShorts, int length, int readMode); in read() method
211 public int read(short[] buffer, int offsetInShorts, int length, int readMode) { in read() method in SignalObserver.AudioRecordSource
212 return mAudioRecord.read(buffer, offsetInShorts, length, readMode); in read()
240 public int read(short[] buffer, int offsetInShorts, int length, int readMode) { in read() method in SignalObserver.AudioCaptureSource
241 return mAudioCapture.read(buffer, offsetInShorts, length, readMode); in read()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2023-21118/
Dpoc.cpp41 inputFile.read(reinterpret_cast<char *>(fileData.data()), fileSize); in fillParcel()
52 reply.read(s); in main()
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMockMediaParserInputReader.java44 public int read(byte[] buffer, int offset, int readLength) throws IOException { in read() method in MockMediaParserInputReader
45 return mFakeExtractorInput.read(buffer, offset, readLength); in read()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/
DPassthroughTestHelper.java102 int c = in.read(); in readAsciiLine()
118 private void passthrough(PrintStream print, InputStream read) throws Exception { in passthrough() argument
123 String line = readAsciiLine(read); in passthrough()

12345678910>>...14