Home
last modified time | relevance | path

Searched refs:ssize_t (Results 1 – 25 of 605) sorted by relevance

12345678910>>...25

/frameworks/native/libs/sensor/
DBitTube.cpp105 ssize_t BitTube::write(void const* vaddr, size_t size) in write()
107 ssize_t err, len; in write()
116 ssize_t BitTube::read(void* vaddr, size_t size) in read()
118 ssize_t err, len; in read()
143 ssize_t BitTube::sendObjects(const sp<BitTube>& tube, in sendObjects()
147 ssize_t size = tube->write(vaddr, count*objSize); in sendObjects()
150 LOG_ALWAYS_FATAL_IF((size >= 0) && (size % static_cast<ssize_t>(objSize)), in sendObjects()
155 return size < 0 ? size : size / static_cast<ssize_t>(objSize); in sendObjects()
158 ssize_t BitTube::recvObjects(const sp<BitTube>& tube, in recvObjects()
162 ssize_t size = tube->read(vaddr, count*objSize); in recvObjects()
[all …]
DSensorEventQueue.cpp61 ssize_t SensorEventQueue::write(const sp<BitTube>& tube, in write()
66 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) { in read()
68 ssize_t err = BitTube::recvObjects(mSensorChannel, in read()
80 return static_cast<ssize_t>(count); in read()
159 ssize_t size = ::send(mSensorChannel->getFd(), &event, sizeof(event), MSG_NOSIGNAL); in injectSensorEvent()
181 ssize_t size = ::send(mSensorChannel->getFd(), &mNumAcksToSend, sizeof(mNumAcksToSend), in sendAck()
192 ssize_t SensorEventQueue::filterEvents(ASensorEvent* events, size_t count) const { in filterEvents()
200 ssize_t eventsCopied = 0; in filterEvents()
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DNBAIO.h84 typedef ssize_t (*writeVia_t)(void *user, void *buffer, size_t count);
85 typedef ssize_t (*readVia_t)(void *user, const void *buffer, size_t count);
123 virtual ssize_t negotiate(const NBAIO_Format offers[], size_t numOffers,
167 virtual ssize_t availableToWrite() { in availableToWrite()
187 virtual ssize_t write(const void *buffer, size_t count) = 0;
218 virtual ssize_t writeVia(writeVia_t via, size_t total, void *user, size_t block = 0);
260 virtual ssize_t availableToRead() { return SSIZE_MAX; } in availableToRead()
275 virtual ssize_t read(void *buffer, size_t count) = 0;
286 virtual ssize_t flush() { return INVALID_OPERATION; } in flush()
317 virtual ssize_t readVia(readVia_t via, size_t total, void *user, size_t block = 0);
/frameworks/base/tools/split-select/
DRuleGenerator_test.cpp32 const ssize_t armeabiIndex = abis.add(abi::Variant_armeabi); in TEST()
33 const ssize_t armeabi_v7aIndex = abis.add(abi::Variant_armeabi_v7a); in TEST()
34 const ssize_t x86Index = abis.add(abi::Variant_x86); in TEST()
58 const ssize_t highIndex = densities.add(ConfigDescription::DENSITY_HIGH); in TEST()
59 const ssize_t xhighIndex = densities.add(ConfigDescription::DENSITY_XHIGH); in TEST()
60 const ssize_t xxhighIndex = densities.add(ConfigDescription::DENSITY_XXHIGH); in TEST()
81 const ssize_t highIndex = densities.add(ConfigDescription::DENSITY_HIGH); in TEST()
82 const ssize_t xhighIndex = densities.add(ConfigDescription::DENSITY_XHIGH); in TEST()
83 const ssize_t xxhighIndex = densities.add(ConfigDescription::DENSITY_XXHIGH); in TEST()
84 const ssize_t anyIndex = densities.add(ConfigDescription::DENSITY_ANY); in TEST()
/frameworks/native/libs/gui/
DBitTube.cpp93 ssize_t BitTube::write(void const* vaddr, size_t size) { in write()
94 ssize_t err, len; in write()
103 ssize_t BitTube::read(void* vaddr, size_t size) { in read()
104 ssize_t err, len; in read()
148 ssize_t BitTube::sendObjects(BitTube* tube, void const* events, size_t count, size_t objSize) { in sendObjects()
150 ssize_t size = tube->write(vaddr, count * objSize); in sendObjects()
153 LOG_ALWAYS_FATAL_IF((size >= 0) && (size % static_cast<ssize_t>(objSize)), in sendObjects()
159 return size < 0 ? size : size / static_cast<ssize_t>(objSize); in sendObjects()
162 ssize_t BitTube::recvObjects(BitTube* tube, void* events, size_t count, size_t objSize) { in recvObjects()
164 ssize_t size = tube->read(vaddr, count * objSize); in recvObjects()
[all …]
/frameworks/minikin/libs/minikin/
DWordBreaker.h98 ssize_t next();
102 ssize_t followingWithLocale(const Locale& locale, size_t from);
105 ssize_t current() const;
109 ssize_t wordStart() const;
111 ssize_t wordEnd() const;
133 ssize_t findNextBreakInEmailOrUrl();
143 ssize_t mLast;
144 ssize_t mCurrent;
147 ssize_t mScanOffset;
DWordBreaker.cpp78 ssize_t WordBreaker::followingWithLocale(const Locale& locale, size_t from) { in followingWithLocale()
109 ssize_t WordBreaker::current() const { in current()
229 ssize_t WordBreaker::findNextBreakInEmailOrUrl() { in findNextBreakInEmailOrUrl()
232 ssize_t i; in findNextBreakInEmailOrUrl()
258 ssize_t WordBreaker::next() { in next()
265 mCurrent = (ssize_t)iteratorNext(); in next()
270 ssize_t WordBreaker::wordStart() const { in wordStart()
274 ssize_t result = mLast; in wordStart()
277 ssize_t ix = result; in wordStart()
290 ssize_t WordBreaker::wordEnd() const { in wordEnd()
[all …]
/frameworks/base/tools/aapt/
DAaptXml.cpp26 static String8 getStringAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, in getStringAttributeAtIndex()
48 static int32_t getIntegerAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, in getIntegerAttributeAtIndex()
69 ssize_t indexOfAttribute(const ResXMLTree& tree, uint32_t attrRes) { in indexOfAttribute()
73 return (ssize_t)i; in indexOfAttribute()
81 ssize_t idx = tree.indexOfAttribute(ns, attr); in getAttribute()
89 ssize_t idx = indexOfAttribute(tree, attrRes); in getAttribute()
98 ssize_t idx = indexOfAttribute(tree, attrRes); in getResolvedAttribute()
119 ssize_t block = resTable.resolveReference(&value, 0); in getResolvedAttribute()
141 ssize_t idx = tree.indexOfAttribute(ns, attr); in getIntegerAttribute()
150 ssize_t idx = indexOfAttribute(tree, attrRes); in getIntegerAttribute()
[all …]
/frameworks/native/libs/sensor/include/sensor/
DBitTube.h53 static ssize_t sendObjects(const sp<BitTube>& tube, in sendObjects()
61 static ssize_t recvObjects(const sp<BitTube>& tube, in recvObjects()
73 ssize_t write(void const* vaddr, size_t size);
77 ssize_t read(void* vaddr, size_t size);
82 static ssize_t sendObjects(const sp<BitTube>& tube,
85 static ssize_t recvObjects(const sp<BitTube>& tube,
/frameworks/av/media/libnbaio/
DPipeReader.cpp47 ssize_t PipeReader::availableToRead() in availableToRead()
53 ssize_t avail = mFifoReader.available(&lost); in availableToRead()
62 ssize_t PipeReader::read(void *buffer, size_t count) in read()
65 ssize_t actual = mFifoReader.read(buffer, count, NULL /*timeout*/, &lost); in read()
79 ssize_t PipeReader::flush() in flush()
85 ssize_t flushed = mFifoReader.flush(&lost); in flush()
DNBAIO.cpp64 ssize_t NBAIO_Sink::writeVia(writeVia_t via, size_t total, void *user, size_t block) in writeVia()
67 return (ssize_t) NEGOTIATE; in writeVia()
83 ssize_t ret = via(user, buffer, count); in writeVia()
100 ssize_t NBAIO_Source::readVia(readVia_t via, size_t total, void *user, size_t block) in readVia()
103 return (ssize_t) NEGOTIATE; in readVia()
119 ssize_t ret = read(buffer, count); in readVia()
136 ssize_t NBAIO_Port::negotiate(const NBAIO_Format offers[], size_t numOffers, in negotiate()
155 return (ssize_t) NEGOTIATE; in negotiate()
DAudioBufferProviderSource.cpp41 ssize_t AudioBufferProviderSource::availableToRead() in availableToRead()
49 ssize_t AudioBufferProviderSource::read(void *buffer, size_t count) in read()
58 return status == NOT_ENOUGH_DATA ? (ssize_t) WOULD_BLOCK : (ssize_t) status; in read()
82 ssize_t AudioBufferProviderSource::readVia(readVia_t via, size_t total, void *user, size_t block) in readVia()
113 return accumulator > 0 ? accumulator : (ssize_t) status; in readVia()
120 ssize_t ret = via(user, (char *) mBuffer.raw + (mConsumed * mFrameSize), count); in readVia()
DMonoPipeReader.cpp36 ssize_t MonoPipeReader::availableToRead() in availableToRead()
41 ssize_t ret = mFifoReader.available(); in availableToRead()
46 ssize_t MonoPipeReader::read(void *buffer, size_t count) in read()
49 ssize_t actual = mFifoReader.read(buffer, count); in read()
DLibsndfileSource.cpp40 ssize_t LibsndfileSource::availableToRead() in availableToRead()
46 ssize_t LibsndfileSource::read(void *buffer, size_t count) in read()
49 return (ssize_t) NEGOTIATE; in read()
52 return (ssize_t) NO_INIT; in read()
/frameworks/native/libs/gui/include/private/gui/
DBitTube.h66 static ssize_t sendObjects(BitTube* tube, T const* events, size_t count) { in sendObjects()
73 static ssize_t recvObjects(BitTube* tube, T* events, size_t count) { in recvObjects()
85 ssize_t write(void const* vaddr, size_t size);
89 ssize_t read(void* vaddr, size_t size);
94 static ssize_t sendObjects(BitTube* tube, void const* events, size_t count, size_t objSize);
96 static ssize_t recvObjects(BitTube* tube, void* events, size_t count, size_t objSize);
/frameworks/av/camera/include/camera/
DCameraParameters2.h119 ssize_t add(const KeyT& key, const ValueT& value) { in add()
136 ssize_t i = indexOfKey(key); in valueFor()
142 ssize_t indexOfKey(const KeyT& key) const { in indexOfKey()
146 return (ssize_t) vectorIdx; in indexOfKey()
153 ssize_t removeItem(const KeyT& key) { in removeItem()
154 ssize_t vectorIdx = indexOfKey(key); in removeItem()
168 ssize_t replaceValueFor(const KeyT& key, const ValueT& value) { in replaceValueFor()
/frameworks/native/libs/binder/include/binder/
DMemoryBase.h32 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
34 virtual sp<IMemoryHeap> getMemory(ssize_t* offset, size_t* size) const;
38 ssize_t getOffset() const { return mOffset; } in getOffset()
43 ssize_t mOffset;
/frameworks/base/libs/androidfw/
DObbFile.cpp130 ssize_t actual; in parseObbFile()
181 if (actual != (ssize_t)footerSize) { in parseObbFile()
262 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) { in writeTo()
268 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) { in writeTo()
274 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) { in writeTo()
279 if (write(fd, mSalt, sizeof(mSalt)) != (ssize_t)sizeof(mSalt)) { in writeTo()
286 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) { in writeTo()
291 if (write(fd, mPackageName.string(), packageNameLen) != (ssize_t)packageNameLen) { in writeTo()
297 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) { in writeTo()
303 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) { in writeTo()
DBackupData.cpp57 m_pos = (ssize_t) lseek(fd, 0, SEEK_CUR); in BackupDataWriter()
69 ssize_t amt; in write_padding_for()
70 ssize_t paddingSize; in write_padding_for()
93 ssize_t amt; in WriteEntityHeader()
114 ssize_t keyLen; in WriteEntityHeader()
160 ssize_t amt = write(m_fd, data, size); in WriteEntityData()
161 if (amt != (ssize_t)size) { in WriteEntityData()
184 m_pos = (ssize_t) lseek(fd, 0, SEEK_CUR); in BackupDataReader()
331 ssize_t
367 ssize_t amt; in skip_padding()
[all …]
/frameworks/av/media/codecs/mp3dec/test/
Dmp3reader.cpp194 static ssize_t sourceReadAt(FILE *fp, off64_t offset, void *data, size_t size) { in sourceReadAt()
216 if (retVal < (ssize_t)sizeof(id3header)) { in resync()
247 ssize_t bytesToRead = kMaxReadBytes; in resync()
248 ssize_t totalBytesRead = 0; in resync()
249 ssize_t remainingBytes = 0; in resync()
313 ssize_t retval = sourceReadAt(fp, test_pos, tmp, sizeof(tmp)); in resync()
314 if (retval < (ssize_t)sizeof(tmp)) { in resync()
383 ssize_t n = sourceReadAt(mFp, mCurrentPos, buffer, 4); in getFrame()
408 ssize_t n = sourceReadAt(mFp, mCurrentPos, buffer, frame_size); in getFrame()
409 if (n < (ssize_t)frame_size) { in getFrame()
/frameworks/base/media/native/midi/include/amidi/
DAMidi.h123 ssize_t AMIDI_API AMidiDevice_getNumInputPorts(const AMidiDevice *device) __INTRODUCED_IN(29);
135 ssize_t AMIDI_API AMidiDevice_getNumOutputPorts(const AMidiDevice *device) __INTRODUCED_IN(29);
181 ssize_t AMIDI_API AMidiOutputPort_receive(const AMidiOutputPort *outputPort, int32_t *opcodePtr,
213 ssize_t AMIDI_API AMidiInputPort_send(const AMidiInputPort *inputPort, const uint8_t *buffer,
227 ssize_t AMIDI_API AMidiInputPort_sendWithTimestamp(const AMidiInputPort *inputPort,
/frameworks/av/media/libstagefright/timedtext/
DTextDescriptions.h37 const uint8_t *data, ssize_t size,
71 const uint8_t *data, ssize_t size,
74 const uint8_t *data, ssize_t size,
77 const uint8_t *data, ssize_t size,
/frameworks/base/libs/protoutil/src/
DProtoFileReader.cpp34 ssize_t get_file_size(int fd) { in get_file_size()
48 return (ssize_t)(end-current); in get_file_size()
65 ssize_t
68 return (ssize_t)mSize; in size()
150 ssize_t amt = TEMP_FAILURE_RETRY(read(mFd, mBuffer, mChunkSize)); in ensure_data()
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp102 ssize_t index = findSession(sessionId); in closeSession()
125 ssize_t index = findSession(sessionId); in getKeyRequest()
192 ssize_t index = findSession(sessionId); in provideKeyResponse()
222 ssize_t index = findKeySet(keySetId); in removeKeys()
239 ssize_t index = findSession(sessionId); in restoreKeys()
260 ssize_t index = findSession(sessionId); in queryKeyStatus()
283 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getProvisionRequest()
325 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop")); in getSecureStop()
345 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop1")); in getSecureStops()
389 ssize_t index = mStringProperties.indexOfKey(name); in getPropertyString()
[all …]
/frameworks/base/media/native/midi/
Damidi.cpp227 ssize_t AMIDI_API AMidiDevice_getNumInputPorts(const AMidiDevice *device) { in AMidiDevice_getNumInputPorts()
234 ssize_t AMIDI_API AMidiDevice_getNumOutputPorts(const AMidiDevice *device) { in AMidiDevice_getNumOutputPorts()
312 ssize_t receive(int32_t *opcodePtr, uint8_t *buffer, size_t maxBytes, in receive()
328 ssize_t readCount = read(mPort->ufd, readBuffer, sizeof(readBuffer)); in receive()
353 ssize_t AMIDI_API AMidiOutputPort_receive(const AMidiOutputPort *outputPort, int32_t *opcodePtr, in AMidiOutputPort_receive()
380 static ssize_t AMIDI_makeSendBuffer( in AMIDI_makeSendBuffer()
389 ssize_t AMIDI_API AMidiInputPort_send(const AMidiInputPort *inputPort, const uint8_t *buffer, in AMidiInputPort_send()
394 ssize_t AMIDI_API AMidiInputPort_sendWithTimestamp(const AMidiInputPort *inputPort, in AMidiInputPort_sendWithTimestamp()
408 ssize_t numTransferBytes = in AMidiInputPort_sendWithTimestamp()
410 ssize_t numWritten = write(((AMIDI_Port*)inputPort)->ufd, writeBuffer, numTransferBytes); in AMidiInputPort_sendWithTimestamp()
[all …]

12345678910>>...25