Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/av/media/bufferpool/2.0/
DBufferStatus.cpp90 size_t avail = it->second->availableToRead(); in getBufferStatusChanges() local
91 while (avail > 0) { in getBufferStatusChanges()
101 --avail; in getBufferStatusChanges()
124 size_t avail = mBufferStatusQueue->availableToWrite(); in needsSync() local
125 return avail + kMinElementsToSyncInQueue < kNumElementsInQueue; in needsSync()
134 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferRelease() local
135 avail = std::min(avail, pending.size()); in postBufferRelease()
137 for (size_t i = 0 ; i < avail; ++i) { in postBufferRelease()
160 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferInvalidateAck() local
161 if (avail > 0) { in postBufferInvalidateAck()
[all …]
/frameworks/av/media/bufferpool/1.0/
DBufferStatus.cpp77 size_t avail = it->second->availableToRead(); in getBufferStatusChanges() local
78 while (avail > 0) { in getBufferStatusChanges()
88 --avail; in getBufferStatusChanges()
111 size_t avail = mBufferStatusQueue->availableToWrite(); in needsSync() local
112 return avail + kMinElementsToSyncInQueue < kNumElementsInQueue; in needsSync()
121 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferRelease() local
122 avail = std::min(avail, pending.size()); in postBufferRelease()
124 for (size_t i = 0 ; i < avail; ++i) { in postBufferRelease()
147 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferStatusMessage() local
149 if (avail >= numPending + 1) { in postBufferStatusMessage()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DParserFactory.java92 int avail = bufferedStream.available(); in readAndClose() local
95 byte[] buffer = new byte[avail]; in readAndClose()
100 while ((avail = bufferedStream.available()) > 0) { in readAndClose()
101 if (read + avail > buffer.length) { in readAndClose()
104 byte[] moreBuffer = new byte[read + avail]; in readAndClose()
109 read += stream.read(buffer, read, avail); in readAndClose()
/frameworks/av/media/libnbaio/
DPipeReader.cpp53 ssize_t avail = mFifoReader.available(&lost); in availableToRead() local
54 if (avail == -EOVERFLOW || lost > 0) { in availableToRead()
57 avail = OVERRUN; in availableToRead()
59 return avail; in availableToRead()
DMonoPipe.cpp93 ssize_t avail = mFifoWriter.available(); in write() local
94 ALOG_ASSERT(avail <= mMaxFrames); in write()
95 if (avail < 0) { in write()
99 size_t filled = mMaxFrames - (size_t) avail; in write()
DSourceAudioBufferProvider.cpp111 ssize_t avail = mSource->availableToRead(); in framesReady() local
112 return avail < 0 ? 0 : (size_t) avail; in framesReady()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java165 int avail = stream.available(); in readFully() local
166 byte[] data = new byte[avail]; in readFully()
177 avail = stream.available(); in readFully()
178 if (avail > data.length-pos) { in readFully()
179 byte[] newData = new byte[pos+avail]; in readFully()
DBatteryStatsHelper.java854 public static byte[] readFully(FileInputStream stream, int avail) throws java.io.IOException { in readFully() argument
856 byte[] data = new byte[avail]; in readFully()
867 avail = stream.available(); in readFully()
868 if (avail > data.length - pos) { in readFully()
869 byte[] newData = new byte[pos + avail]; in readFully()
/frameworks/base/core/java/android/util/
DAtomicFile.java263 int avail = stream.available(); in readFully() local
264 byte[] data = new byte[avail]; in readFully()
275 avail = stream.available(); in readFully()
276 if (avail > data.length-pos) { in readFully()
277 byte[] newData = new byte[pos+avail]; in readFully()
/frameworks/av/media/libstagefright/
DNuCachedSource2.cpp156 size_t avail = (*it)->mSize - delta; in copy() local
158 if (avail >= size) { in copy()
163 memcpy(data, (const uint8_t *)(*it)->mData + delta, avail); in copy()
165 data = (uint8_t *)data + avail; in copy()
166 size -= avail; in copy()
643 size_t avail = mCache->totalSize() - delta; in readInternal() local
645 if (avail > size) { in readInternal()
646 avail = size; in readInternal()
649 mCache->copy(delta, data, avail); in readInternal()
651 return avail; in readInternal()
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp210 ssize_t avail = (mIsOut) ? adjustableSize - filled : filled; in obtainBuffer() local
211 if (avail < 0) { in obtainBuffer()
212 avail = 0; in obtainBuffer()
213 } else if (avail > 0) { in obtainBuffer()
223 if (part1 > (size_t)avail) { in obtainBuffer()
224 part1 = avail; in obtainBuffer()
232 buffer->mNonContig = avail - part1; in obtainBuffer()
1129 size_t avail; in obtainBuffer() local
1131 avail = end - position; in obtainBuffer()
1133 if (avail < wanted) { in obtainBuffer()
[all …]
DAudioRecord.cpp1182 size_t avail = audioBuffer.frameCount + nonContig; in processAudioBuffer() local
1184 __func__, mPortId, mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err); in processAudioBuffer()
1196 if (avail < mRemainingFrames) { in processAudioBuffer()
1197 int64_t myns = ((mRemainingFrames - avail) * in processAudioBuffer()
DAudioTrack.cpp2126 size_t avail = audioBuffer.frameCount + nonContig; in processAudioBuffer() local
2128 __func__, mPortId, mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err); in processAudioBuffer()
2142 if (avail < mRemainingFrames) { in processAudioBuffer()
2150 mRemainingFrames - avail, sampleRate, speed); in processAudioBuffer()
2220 const nsecs_t datans = mRemainingFrames <= avail ? 0 : in processAudioBuffer()
2221 framesToNanoseconds(mRemainingFrames - avail, sampleRate, speed); in processAudioBuffer()
/frameworks/base/core/java/android/text/
DTextUtils.java1274 float avail, TruncateAt where) { in ellipsize() argument
1275 return ellipsize(text, p, avail, where, false, null); in ellipsize()
1292 float avail, TruncateAt where, in ellipsize() argument
1295 return ellipsize(text, paint, avail, where, preserveLength, callback, in ellipsize()
1315 float avail, TruncateAt where, in ellipsize() argument
1327 if (width <= avail) { in ellipsize()
1338 avail -= ellipsiswid; in ellipsize()
1342 if (avail < 0) { in ellipsize()
1345 right = len - mt.breakText(len, false, avail); in ellipsize()
1347 left = mt.breakText(len, true, avail); in ellipsize()
[all …]
DStaticLayout.java1062 float avail, TextUtils.TruncateAt where,
1065 avail -= getTotalInsets(line);
1066 if (textWidth <= avail && !forceEllipsis) {
1086 if (w + sum + ellipsisWidth > avail) {
1112 if (w + sum + ellipsisWidth > avail) {
1131 float ravail = (avail - ellipsisWidth) / 2;
1146 float lavail = avail - ellipsisWidth - rsum;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Darena.cc154 if (b->avail() != 0) { in AddBlockInternal()
184 if (thread_cache().last_block_used_->avail() < n) { in AllocateAligned()
195 if (!b || b->owner != me || b->avail() < n) { in AllocateAligned()
214 if (b != NULL && b->avail() >= n) { in SlowAlloc()
/frameworks/base/services/core/java/com/android/server/
DDiskStatsService.java164 long avail = statfs.getAvailableBlocks(); in reportFreeSpace() local
168 "Invalid stat: bsize=" + bsize + " avail=" + avail + " total=" + total); in reportFreeSpace()
174 proto.write(DiskStatsFreeSpaceProto.AVAILABLE_SPACE_KB, avail * bsize / 1024); in reportFreeSpace()
180 pw.print(avail * bsize / 1024); in reportFreeSpace()
184 pw.print(avail * 100 / total); in reportFreeSpace()
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java68 Int32Ref avail = new Int32Ref(0); in available() local
70 Os.ioctlInt(myFd, OsConstants.FIONREAD, avail); in available()
74 return avail.value; in available()
/frameworks/av/media/codec2/components/aac/
DC2SoftAacDec.cpp839 int avail; in onFlush_sm() local
840 while ((avail = outputDelayRingBufferSamplesAvailable()) > 0) { in onFlush_sm()
841 if (avail > mStreamInfo->frameSize * mStreamInfo->numChannels) { in onFlush_sm()
842 avail = mStreamInfo->frameSize * mStreamInfo->numChannels; in onFlush_sm()
844 int32_t ns = outputDelayRingBufferGetSamples(nullptr, avail); in onFlush_sm()
845 if (ns != avail) { in onFlush_sm()
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp1095 int avail; in onPortFlushCompleted() local
1096 while ((avail = outputDelayRingBufferSamplesAvailable()) > 0) { in onPortFlushCompleted()
1097 if (avail > mStreamInfo->frameSize * mStreamInfo->numChannels) { in onPortFlushCompleted()
1098 avail = mStreamInfo->frameSize * mStreamInfo->numChannels; in onPortFlushCompleted()
1100 int32_t ns = outputDelayRingBufferGetSamples(0, avail); in onPortFlushCompleted()
1101 if (ns != avail) { in onPortFlushCompleted()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java614 int avail = (int) (textWidth * i / 7.0f); in testEllipsis_singleLine() local
616 avail, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
617 SPACE_MULTI, SPACE_ADD, false, kind, avail, 1); in testEllipsis_singleLine()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicResize.cpp192 size_t avail,
206 size_t avail,
220 size_t avail,
/frameworks/av/media/libmediaplayer2/nuplayer2/
DGenericSource2.cpp609 int32_t avail; in fetchTextData() local
610 if (packets->hasBufferAvailable(&avail)) { in fetchTextData()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp743 int32_t avail; in fetchTextData() local
744 if (packets->hasBufferAvailable(&avail)) { in fetchTextData()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java1464 boolean avail = Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE.equals(actionStr); in onReceive()
1465 if (avail) { in onReceive()

12