/frameworks/av/media/bufferpool/2.0/ |
D | BufferStatus.cpp | 90 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/ |
D | BufferStatus.cpp | 77 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/ |
D | ParserFactory.java | 92 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/ |
D | PipeReader.cpp | 53 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()
|
D | MonoPipe.cpp | 93 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()
|
D | SourceAudioBufferProvider.cpp | 111 ssize_t avail = mSource->availableToRead(); in framesReady() local 112 return avail < 0 ? 0 : (size_t) avail; in framesReady()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | SoftApConfToXmlMigrationUtilTest.java | 145 int avail = stream.available(); in readFully() local 146 byte[] data = new byte[avail]; in readFully() 153 avail = stream.available(); in readFully() 154 if (avail > data.length - pos) { in readFully() 155 byte[] newData = new byte[pos + avail]; in readFully()
|
/frameworks/base/core/java/android/util/ |
D | AtomicFile.java | 294 int avail = stream.available(); in readFully() local 295 byte[] data = new byte[avail]; in readFully() 306 avail = stream.available(); in readFully() 307 if (avail > data.length-pos) { in readFully() 308 byte[] newData = new byte[pos+avail]; in readFully()
|
/frameworks/av/media/libdatasource/ |
D | NuCachedSource2.cpp | 156 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/ |
D | AudioTrackShared.cpp | 247 ssize_t avail = (mIsOut) ? adjustableSize - filled : filled; in obtainBuffer() local 248 if (avail < 0) { in obtainBuffer() 249 avail = 0; in obtainBuffer() 250 } else if (avail > 0) { in obtainBuffer() 260 if (part1 > (size_t)avail) { in obtainBuffer() 261 part1 = avail; in obtainBuffer() 269 buffer->mNonContig = avail - part1; in obtainBuffer() 1188 size_t avail; in obtainBuffer() local 1190 avail = end - position; in obtainBuffer() 1192 if (avail < wanted) { in obtainBuffer() [all …]
|
D | AudioRecord.cpp | 1491 size_t avail = audioBuffer.frameCount + nonContig; in processAudioBuffer() local 1493 __func__, mPortId, mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err); in processAudioBuffer() 1505 if (avail < mRemainingFrames) { in processAudioBuffer() 1506 int64_t myns = ((mRemainingFrames - avail) * in processAudioBuffer()
|
D | AudioTrack.cpp | 2736 size_t avail = audioBuffer.frameCount + nonContig; in processAudioBuffer() local 2738 __func__, mPortId, mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err); in processAudioBuffer() 2752 if (avail < mRemainingFrames) { in processAudioBuffer() 2760 mRemainingFrames - avail, sampleRate, speed); in processAudioBuffer() 2829 const nsecs_t datans = mRemainingFrames <= avail ? 0 : in processAudioBuffer() 2830 framesToNanoseconds(mRemainingFrames - avail, sampleRate, speed); in processAudioBuffer()
|
/frameworks/base/core/java/android/text/ |
D | TextUtils.java | 1328 float avail, TruncateAt where) { in ellipsize() argument 1329 return ellipsize(text, p, avail, where, false, null); in ellipsize() 1346 float avail, TruncateAt where, in ellipsize() argument 1349 return ellipsize(text, paint, avail, where, preserveLength, callback, in ellipsize() 1369 float avail, TruncateAt where, in ellipsize() argument 1381 if (width <= avail) { in ellipsize() 1392 avail -= ellipsiswid; in ellipsize() 1396 if (avail < 0) { in ellipsize() 1399 right = len - mt.breakText(len, false, avail); in ellipsize() 1401 left = mt.breakText(len, true, avail); in ellipsize() [all …]
|
D | StaticLayout.java | 1111 float avail, TextUtils.TruncateAt where, 1114 avail -= getTotalInsets(line); 1115 if (textWidth <= avail && !forceEllipsis) { 1135 if (w + sum + ellipsisWidth > avail) { 1161 if (w + sum + ellipsisWidth > avail) { 1180 float ravail = (avail - ellipsisWidth) / 2; 1195 float lavail = avail - ellipsisWidth - rsum;
|
/frameworks/base/services/core/java/com/android/server/ |
D | DiskStatsService.java | 162 long avail = statfs.getAvailableBlocks(); in reportFreeSpace() local 166 "Invalid stat: bsize=" + bsize + " avail=" + avail + " total=" + total); in reportFreeSpace() 172 proto.write(DiskStatsFreeSpaceProto.AVAILABLE_SPACE_KB, avail * bsize / 1024); in reportFreeSpace() 178 pw.print(avail * bsize / 1024); in reportFreeSpace() 182 pw.print(avail * 100 / total); in reportFreeSpace()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | AppChildProcessTest.java | 294 byte[] avail = sb.toString().getBytes(); in readCgroupProcs() 295 System.arraycopy(avail, 0, buf, offset, Math.min(len, avail.length)); in readCgroupProcs() 296 return Math.min(len, avail.length); in readCgroupProcs()
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
D | SoftAAC2.cpp | 1152 int avail; in onPortFlushCompleted() local 1153 while ((avail = outputDelayRingBufferSamplesAvailable()) > 0) { in onPortFlushCompleted() 1154 if (avail > mStreamInfo->frameSize * mStreamInfo->numChannels) { in onPortFlushCompleted() 1155 avail = mStreamInfo->frameSize * mStreamInfo->numChannels; in onPortFlushCompleted() 1157 int32_t ns = outputDelayRingBufferGetSamples(0, avail); in onPortFlushCompleted() 1158 if (ns != avail) { in onPortFlushCompleted()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | KeyboardInputMapper.h | 67 bool avail; // led is available member
|
D | KeyboardInputMapper.cpp | 426 ledState.avail = getDeviceContext().hasLed(led); in initializeLedState() 460 if (ledState.avail) { in updateLedStateForModifier()
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacDec.cpp | 1024 int avail; in onFlush_sm() local 1025 while ((avail = outputDelayRingBufferSamplesAvailable()) > 0) { in onFlush_sm() 1026 if (avail > mStreamInfo->frameSize * mStreamInfo->numChannels) { in onFlush_sm() 1027 avail = mStreamInfo->frameSize * mStreamInfo->numChannels; in onFlush_sm() 1029 int32_t ns = outputDelayRingBufferGetSamples(nullptr, avail); in onFlush_sm() 1030 if (ns != avail) { in onFlush_sm()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 614 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/toolkit/ |
D | Resize.cpp | 234 size_t avail, 248 size_t avail, 262 size_t avail,
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicResize.cpp | 207 size_t avail, 221 size_t avail, 235 size_t avail,
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 733 int32_t avail; in fetchTextData() local 734 if (packets->hasBufferAvailable(&avail)) { in fetchTextData()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 1525 boolean avail = Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE.equals(actionStr); in onReceive() 1526 if (avail) { in onReceive()
|