Searched refs:read (Results 276 - 300 of 642) sorted by relevance

<<11121314151617181920>>

/frameworks/base/media/java/android/media/midi/
H A DMidiOutputPort.java59 // read next event
60 int count = mInputStream.read(buffer);
87 Log.e(TAG, "read failed", e);
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DPipeManagerTest.java88 assertEquals(expectedBytes.length, stream.read(results));
/frameworks/base/sax/tests/saxtests/src/android/sax/
H A DExpatPerformanceTest.java49 while ((length = in.read(buffer)) != -1) {
/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DFullBackupUtils.java46 * @param inPipe - pipe to read the data from.
61 int nRead = in.read(buffer, 0, toRead);
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsRecorder.java366 * with anything read from disk, and write combined set to disk. Clears the
382 public void read(InputStream in) throws IOException { method in class:NetworkStatsRecorder.CombiningRewriter
383 mCollection.read(in);
417 public void read(InputStream in) throws IOException { method in class:NetworkStatsRecorder.RemoveUidRewriter
418 mTemp.read(in);
/frameworks/base/services/core/java/com/android/server/pm/
H A DProcessLoggingHandler.java106 while ((size = input.read(buffer)) > 0) {
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DMockWeaverService.java45 public void read(int slotId, ArrayList<Byte> key, readCallback cb) throws RemoteException { method in class:MockWeaverService
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DToastTest.java66 while ((len = f.read(cbuf, 0, cbuf.length)) >= 0) {
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
H A DMain.java84 zos.write(bis.read());
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/
H A DAsmGeneratorTest.java306 int read;
307 while ((read = stream.read(buffer, 0, buffer.length)) > -1) {
308 bos.write(buffer, 0, read);
/frameworks/opt/chips/src/com/android/ex/chips/
H A DDefaultPhotoManager.java115 while ((size = is.read(buffer)) != -1) {
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DScriptC.java104 int bytesRead = is.read(pgm, pgmLength, bytesLeft);
/frameworks/support/compat/src/main/java/androidx/core/util/
H A DAtomicFile.java92 // Rename the current file so it may be used as a backup during the next read
123 * commit the new data. The next attempt to read the atomic file
159 * opening for read. You should call close() on the FileInputStream when
189 int amt = stream.read(data, pos, data.length-pos);
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
H A DMigrationTest.java173 final TableInfo info = TableInfo.read(db, MigrationDb.Entity3.TABLE_NAME);
182 final TableInfo info = TableInfo.read(db, MigrationDb.Entity3.TABLE_NAME);
196 final TableInfo info = TableInfo.read(db, MigrationDb.Entity3.TABLE_NAME);
227 final TableInfo info = TableInfo.read(db, MigrationDb.Entity4.TABLE_NAME);
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/
H A DRenderTest.java97 while ((len = in.read(buf)) > 0) {
/frameworks/av/media/extractors/midi/
H A DMidiExtractor.cpp47 virtual status_t read(
117 status_t MidiSource::read( function in class:android::MidiSource
120 ALOGV("MidiSource::read");
133 ALOGV("MidiSource::read %p done", this);
/frameworks/av/media/libaaudio/src/fifo/
H A DFifoBuffer.cpp124 fifo_frames_t FifoBuffer::read(void *buffer, fifo_frames_t numFrames) { function in class:FifoBuffer
189 fifo_frames_t framesRead = read(buffer, numFrames);
/frameworks/av/media/libaudioclient/
H A DIEffect.cpp102 reply.read(pReplyData, size);
171 data.read(cmd, cmdSize);
/frameworks/av/media/libaudiohal/2.0/
H A DStreamHalHidl.h91 // Get current read/write position in the mmap buffer
95 // (must match the priority of the audioflinger's thread that calls 'read' / 'write')
207 virtual status_t read(void *buffer, size_t bytes, size_t *read);
/frameworks/av/media/libaudiohal/4.0/
H A DStreamHalHidl.h92 // Get current read/write position in the mmap buffer
96 // (must match the priority of the audioflinger's thread that calls 'read' / 'write')
208 virtual status_t read(void *buffer, size_t bytes, size_t *read);
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp119 // not skip the next frame as we want read() to get a get a frame
206 status_t CameraSourceTimeLapse::read( function in class:android::CameraSourceTimeLapse
208 ALOGV("read");
210 mLastReadStatus = CameraSource::read(buffer, options);
212 // mQuickStop may have turned to true while read was blocked.
266 ALOGV("dataCallbackTimestamp timelapse: forced read");
/frameworks/base/core/java/com/android/internal/os/
H A DTransferPipe.java116 int numRead = is.read(buffer);
187 if (DEBUG) Slog.i(TAG, "read=" + getReadFd() + " write=" + getWriteFd()
262 if (DEBUG) Slog.i(TAG, "Ready to read pipe...");
271 while ((size=fis.read(buffer)) > 0) {
/frameworks/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp56 size_t read(void* buffer, size_t size) override {
67 If we see that value, we need to call read(), which will
77 // if read returned 0, we're at EOF
95 // read the bytes
109 SkDebugf("---- read threw an exception\n");
113 if (n < 0) { // n == 0 should not be possible, see InputStream read() specifications.
121 SkDebugf("---- read:GetByteArrayRegion threw an exception\n");
186 while ((len = stream->read(data + streamLen,
304 gInputStream_readMethodID = getMethodIDCheck(env, inputStream_Clazz, "read", "([BII)I");
/frameworks/base/core/jni/
H A Dandroid_hardware_SerialPort.cpp153 /* no timeout but request at least one character per read */
178 int ret = read(fd, buf, length);
201 int ret = read(fd, buf, length);
/frameworks/base/libs/androidfw/
H A DObbFile.cpp44 #define kMaxBufSize 32768 /* Maximum file read buffer */
100 ALOGW("failed to read from %s (fd=%d)\n", filename, fd);
110 ALOGW("attempt to read from invalid fd\n");
137 actual = TEMP_FAILURE_RETRY(read(fd, footer, kFooterTagSize));
139 ALOGW("couldn't read footer signature: %s\n", strerror(errno));
179 actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize));
182 ALOGI("couldn't read ObbFile footer: %s\n", strerror(errno));

Completed in 469 milliseconds

<<11121314151617181920>>