/frameworks/support/media/src/androidTest/java/androidx/media/ |
H A D | TestMedia2DataSource.java | 48 numRead = in.read(data, writeIndex, size - writeIndex);
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | FwdLockFile.c | 263 if (read(fileDesc, pSession->topHeader, TOP_HEADER_SIZE) == TOP_HEADER_SIZE && 269 read(fileDesc, pSession->pContentType, pSession->contentTypeLength) == 275 read(fileDesc, pSession->pEncryptedSessionKey, 278 read(fileDesc, pSession->dataSignature, SHA1_HASH_SIZE) == 280 read(fileDesc, pSession->headerSignature, SHA1_HASH_SIZE) == 307 numBytesRead = read(pSession->fileDesc, pBuffer, numBytes); 390 read(pSession->fileDesc, pData->buffer, SIG_CALC_BUFFER_SIZE)) > 0) {
|
/frameworks/av/media/mtp/ |
H A D | MtpDataPacket.cpp | 34 // Returns |count| if it succeed to read the bytes. Otherwise returns -1. If it reaches EOF, the 42 int result = read(fd, static_cast<int8_t*>(buf) + read_count, count - read_count); 444 int MtpDataPacket::read(IMtpHandle *h) { 445 int ret = h->read(mBuffer, MTP_BUFFER_SIZE); 473 int MtpDataPacket::read(struct usb_request *request) { 474 // first read the header 500 int read = 0; 501 while (read < length) { 502 request->buffer = (char *)buffer + read; 503 request->buffer_length = length - read; [all...] |
H A D | MtpDataPacket.h | 99 int read(IMtpHandle *h); 107 int read(struct usb_request *request);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | Base64Test.java | 320 // read buffer of Base64InputStream. 334 // read as much as it will give us in one chunk 338 while ((b = b64is.read(actual, ap, actual.length-ap)) != -1) { 343 // read individual bytes 347 while ((b = b64is.read()) != -1) { 359 b = b64is.read(actual, ap, l); 364 if ((b = b64is.read()) == -1) break readloop; 373 // read as much as it will give us in one chunk 377 while ((b = b64is.read(actual, ap, actual.length-ap)) != -1) { 382 // read individua [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | PersistentDataBlockService.java | 66 * Clients can read any number of bytes from the currently written block up to its total size by 67 * invoking {@link IPersistentDataBlockService#read} 287 inputStream.read(storedDigest); 292 int read; 295 while ((read = inputStream.read(data)) != -1) { 296 md.update(data, 0, read); 299 Slog.e(TAG, "failed to read partition", e); 445 public byte[] read() { 468 int read [all...] |
H A D | DropBoxManagerService.java | 248 int read = 0; 249 while (read < buffer.length) { 250 int n = input.read(buffer, read, buffer.length - read); 252 read += n; 264 if (read == buffer.length && ((flags & DropBoxManager.IS_GZIPPED) == 0)) { 270 output.write(buffer, 0, read); 278 read = input.read(buffe [all...] |
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
H A D | FileUpdater.java | 122 // If it runtime restarted, read the original values from the disk and apply. 186 * When it about to write to each file for the first time, it'll read the file and store 261 * @return true if the default value is loaded. false if the file cannot be read. 275 injectWtf("Unable to read from file", e); 345 Map<String, String> read = null; 366 read = (ArrayMap<String, String>) XmlUtils.readThisArrayMapXml(parser, 370 read = null; 372 Slog.e(TAG, "Failed to read file " + file.getBaseFile(), e); 374 if (read != null) { 376 mDefaultValues.putAll(read); [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_object.cpp | 284 config(config), read(0), draw(0), cnx(cnx), version(version) { 288 read = NULL; 292 void egl_context_t::onMakeCurrent(EGLSurface draw, EGLSurface read) { argument 293 this->read = read;
|
/frameworks/av/media/libaudiohal/4.0/ |
H A D | StreamHalLocal.cpp | 288 status_t StreamInHalLocal::read(void *buffer, size_t bytes, size_t *read) { argument 289 ssize_t readResult = mStream->read(mStream, buffer, bytes); 291 *read = readResult; 292 mStreamPowerLog.log( buffer, *read); 295 *read = 0;
|
H A D | StreamHalLocal.h | 72 // Get current read/write position in the mmap buffer 76 // (must match the priority of the audioflinger's thread that calls 'read' / 'write') 150 // Get current read/write position in the mmap buffer 179 virtual status_t read(void *buffer, size_t bytes, size_t *read); 198 // Get current read/write position in the mmap buffer
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/ |
H A D | FwdLockGlue.c | 81 if (read(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) { 132 numBytesRead = read(fileDesc, pBuffer, numBytes);
|
/frameworks/av/include/media/audiohal/ |
H A D | StreamHalInterface.h | 78 // Get current read/write position in the mmap buffer 82 // (must match the priority of the audioflinger's thread that calls 'read' / 'write') 167 virtual status_t read(void *buffer, size_t bytes, size_t *read) = 0;
|
/frameworks/av/media/libaaudio/src/client/ |
H A D | AudioStreamInternalCapture.cpp | 59 aaudio_result_t AudioStreamInternalCapture::read(void *buffer, int32_t numFrames, function in class:AudioStreamInternalCapture 104 // If the write index passed the read index then consider it an overrun. 116 //ALOGD("AudioStreamInternalCapture::processDataNow() - tried to read %d frames, read %d", 244 result = read(mCallbackBuffer, mCallbackFrames, timeoutNanos); 246 ALOGE("callbackLoop: read() returned %d", result); 248 // Only read some of the frames requested. Must have timed out.
|
/frameworks/av/media/libaudiohal/2.0/ |
H A D | StreamHalLocal.h | 71 // Get current read/write position in the mmap buffer 75 // (must match the priority of the audioflinger's thread that calls 'read' / 'write') 149 // Get current read/write position in the mmap buffer 178 virtual status_t read(void *buffer, size_t bytes, size_t *read); 197 // Get current read/write position in the mmap buffer
|
/frameworks/av/media/libaudiohal/include/media/audiohal/ |
H A D | StreamHalInterface.h | 78 // Get current read/write position in the mmap buffer 82 // (must match the priority of the audioflinger's thread that calls 'read' / 'write') 167 virtual status_t read(void *buffer, size_t bytes, size_t *read) = 0;
|
/frameworks/av/soundtrigger/ |
H A D | ISoundTriggerHwService.cpp | 74 reply.read(modules, numModulesReq * sizeof(struct sound_trigger_module_descriptor)); 155 data.read(&handle, sizeof(sound_trigger_module_handle_t));
|
/frameworks/base/core/java/android/provider/ |
H A D | SettingsStringUtil.java | 167 public String read() { method in class:SettingsStringUtil.SettingStringHelper 178 return write(change.apply(read()));
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | hid.c | 109 ret = read(fd, buffer, sizeof(buffer)); 111 fprintf(stderr, "read failed, errno: %d, fd: %d\n", errno, fd); 167 int count = read(inotify_fd, event_buf, sizeof(event_buf));
|
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/ |
H A D | UsbAoapDeviceTestActivity.java | 146 int read = mInputStream.read(mBuffer);
|
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.h | 241 status_t read(FILE* fp); 299 status_t read(FILE* fp);
|
/frameworks/native/libs/gui/ |
H A D | BitTube.cpp | 99 ssize_t BitTube::read(void* vaddr, size_t size) { 106 // EAGAIN means that we have non-blocking I/O but there was no data to be read. Nothing the 148 ssize_t size = tube->read(vaddr, count * objSize);
|
/frameworks/native/libs/sensor/ |
H A D | BitTube.cpp | 116 ssize_t BitTube::read(void* vaddr, size_t size) 125 // no data to be read. Nothing the client should care about. 162 ssize_t size = tube->read(vaddr, count*objSize);
|
/frameworks/av/cmds/stagefright/ |
H A D | record.cpp | 80 virtual status_t read( 87 // printf("DummySource::read\n"); 101 // printf("DummySource::read - returning buffer\n"); 102 // ALOGI("DummySource::read - returning buffer"); 240 while (encoder->read(&buffer) == OK) { 270 status_t err = source->read(&buffer); 332 while ((err = encoder->read(&buffer)) == OK) {
|
/frameworks/av/include/media/stagefright/ |
H A D | SimpleDecodingSource.h | 68 virtual status_t read(MediaBufferBase **buffer, const ReadOptions *options);
|