Home
last modified time | relevance | path

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

123456

/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseInputStreamTest.java62 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 …]
DAssetManager_AssetInputStreamTest.java37 mAssetInputStream.read(); in testClose()
58 assertEquals(bytes[i], mAssetInputStream.read()); in testMarkReset()
63 assertEquals(bytes[i + readlimit], mAssetInputStream.read()); in testMarkReset()
74 assertEquals(bytes[i], mAssetInputStream.read()); in testReadMethods()
76 assertEquals(end, mAssetInputStream.read()); in testReadMethods()
82 int ret = mAssetInputStream.read(data); in testReadMethods()
88 assertEquals(len - dataLength, mAssetInputStream.read(data)); in testReadMethods()
92 assertEquals(end, mAssetInputStream.read(data)); in testReadMethods()
97 ret = mAssetInputStream.read(data, offset, dataLength); in testReadMethods()
104 ret = mAssetInputStream.read(data, offset, dataLength); in testReadMethods()
[all …]
DRawResourceTest.java48 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()
DAssetFileDescriptor_AutoCloseOutputStreamTest.java73 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/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java56 assertEquals(0, in.read()); in testConstructorAndOpen()
57 assertEquals(1, in.read()); in testConstructorAndOpen()
58 assertEquals(2, in.read()); in testConstructorAndOpen()
59 assertEquals(3, in.read()); in testConstructorAndOpen()
106 assertEquals(DATA, in.read()); in testFromSocket()
139 int count = is.read(observed); in assertInputStreamContent()
141 assertEquals(-1, is.read()); in assertInputStreamContent()
158 assertEquals(41, is.read()); in testFromDataSkip()
159 assertEquals(42, is.read()); in testFromDataSkip()
161 assertEquals(45, is.read()); in testFromDataSkip()
[all …]
DParcelFileDescriptorProcessTest.java129 assertEquals(1, red.read()); in testPullPipeNormal()
132 assertEquals(-1, red.read()); in testPullPipeNormal()
142 assertEquals(2, blue.read()); in testPushPipeNormal()
145 assertEquals(-1, blue.read()); in testPushPipeNormal()
158 assertEquals(3, blue.read()); in testPipeWriterError()
159 assertEquals(-1, blue.read()); in testPipeWriterError()
172 assertEquals(4, blue.read()); in testPipeWriterCrash()
173 assertEquals(-1, blue.read()); in testPipeWriterCrash()
185 assertEquals(5, blue.read()); in testSocketCrash()
187 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()
DParcelFileDescriptor_AutoCloseInputStreamTest.java30 assertEquals(0, in.read()); in testAutoCloseInputStream()
35 in.read(); in testAutoCloseInputStream()
DMemoryFileTest.java73 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/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteGiftTest.java44 final File read = buildGiftForPackage(getContext(), PACKAGE_READ); in testGifts() local
45 read.getParentFile().mkdirs(); in testGifts()
46 read.createNewFile(); in testGifts()
47 assertFileReadWriteAccess(read); in testGifts()
49 writeInt(read, 101); in testGifts()
50 assertEquals(101, readInt(read)); in testGifts()
/cts/suite/audio_quality/lib/src/
DClientSocket.cpp96 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()
DSignalProcessingImpl.cpp159 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/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java51 assertEquals(12, serverInStream.read()); in testLocalConnections()
57 assertEquals(3, clientInStream.read()); in testLocalConnections()
62 assertEquals(32, serverInStream.read()); in testLocalConnections()
71 assertEquals(-1, clientInStream.read()); in testLocalConnections()
84 assertEquals(-1, serverInStream.read()); in testLocalConnections()
98 clientInStream.read(); in testLocalConnections()
107 serverInStream.read(); in testLocalConnections()
DLocalServerSocketTest.java46 assertEquals(12, serverInStream.read()); in commonFunctions()
52 assertEquals(3, clientInStream.read()); in commonFunctions()
/cts/tests/tests/media/src/android/media/cts/
DAudioHelper.java266 public int read(byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() method in AudioHelper.AudioRecordAudit
270 int samples = super.read(audioData, offsetInBytes, sizeInBytes); in read()
279 public int read(byte[] audioData, int offsetInBytes, int sizeInBytes, int readMode) { in read() method in AudioHelper.AudioRecordAudit
283 int samples = super.read(audioData, offsetInBytes, sizeInBytes, readMode); in read()
293 public int read(short[] audioData, int offsetInShorts, int sizeInShorts) { in read() method in AudioHelper.AudioRecordAudit
297 int samples = super.read(audioData, offsetInShorts, sizeInShorts); in read()
306 public int read(short[] audioData, int offsetInShorts, int sizeInShorts, int readMode) { in read() method in AudioHelper.AudioRecordAudit
310 int samples = super.read(audioData, offsetInShorts, sizeInShorts, readMode); in read()
320 public int read(float[] audioData, int offsetInFloats, int sizeInFloats, int readMode) { in read() method in AudioHelper.AudioRecordAudit
324 int samples = super.read(audioData, offsetInFloats, sizeInFloats, readMode); in read()
[all …]
DAudioRecordNative.java83 public int read(@NonNull byte[] byteArray, in read() method in AudioRecordNative
89 public int read(@NonNull short[] shortArray, in read() method in AudioRecordNative
95 public int read(@NonNull float[] floatArray, in read() method in AudioRecordNative
/cts/suite/audio_quality/test/
DTaskTest.cpp116 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/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/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadGiftTest.java40 final File read = buildGiftForPackage(getContext(), PACKAGE_READ); in testGifts() local
41 assertFileReadWriteAccess(read); in testGifts()
42 assertEquals(101, readInt(read)); in testGifts()
/cts/suite/cts/hostTests/jank/app/src/com/android/cts/jank/
DCtsJankTestBase.java60 boolean read = true; in runShellCommand()
61 while (read) { in runShellCommand()
69 read = false; in runShellCommand()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DGiftTest.java40 final File read = buildGiftForPackage(getContext(), PACKAGE_READ); in testGifts() local
41 assertFileNoAccess(read); in testGifts()
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
DSequentialRWTest.java110 long read = 0; in testSingleSequentialRead()
111 while (read < fileSize) { in testSingleSequentialRead()
112 in.read(data); in testSingleSequentialRead()
113 read += BUFFER_SIZE; in testSingleSequentialRead()
/cts/libs/deviceutil/src/android/cts/util/
DFileCopyHelper.java79 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) { in copyFile()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFileCopyHelper.java79 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) { in copyFile()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java299 int read = Os.read(s, reply, 0, LENGTH); in checkPing() local
300 assertEquals(LENGTH, read); in checkPing()
325 byte[] read = new byte[data.length]; in writeAndCheckData()
328 bytesRead = in.read(read, totalRead, read.length - totalRead); in writeAndCheckData()
332 MoreAsserts.assertEquals(data, read); in writeAndCheckData()

123456