Home
last modified time | relevance | path

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

12

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DParserFactory.java109 int avail; in readAndClose() local
111 avail = intSize; in readAndClose()
114 avail = bufferedStream.available(); in readAndClose()
118 byte[] buffer = new byte[avail]; in readAndClose()
128 while ((avail = bufferedStream.available()) > 0) { in readAndClose()
129 if (read + avail > buffer.length) { in readAndClose()
132 byte[] moreBuffer = new byte[read + avail]; in readAndClose()
137 read += stream.read(buffer, read, avail); in readAndClose()
/frameworks/support/compat/java/android/support/v4/util/
DAtomicFile.java179 int avail = stream.available(); in readFully() local
180 byte[] data = new byte[avail]; in readFully()
191 avail = stream.available(); in readFully()
192 if (avail > data.length-pos) { in readFully()
193 byte[] newData = new byte[pos+avail]; in readFully()
/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.java154 int avail = stream.available(); in readFully() local
155 byte[] data = new byte[avail]; in readFully()
166 avail = stream.available(); in readFully()
167 if (avail > data.length-pos) { in readFully()
168 byte[] newData = new byte[pos+avail]; in readFully()
DBatteryStatsHelper.java804 public static byte[] readFully(FileInputStream stream, int avail) throws java.io.IOException { in readFully() argument
806 byte[] data = new byte[avail]; in readFully()
817 avail = stream.available(); in readFully()
818 if (avail > data.length - pos) { in readFully()
819 byte[] newData = new byte[pos + avail]; in readFully()
/frameworks/base/core/java/android/util/
DAtomicFile.java235 int avail = stream.available(); in readFully() local
236 byte[] data = new byte[avail]; in readFully()
247 avail = stream.available(); in readFully()
248 if (avail > data.length-pos) { in readFully()
249 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()
631 size_t avail = mCache->totalSize() - delta; in readInternal() local
633 if (avail > size) { in readInternal()
634 avail = size; in readInternal()
637 mCache->copy(delta, data, avail); in readInternal()
639 return avail; in readInternal()
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp208 ssize_t avail = (mIsOut) ? adjustableSize - filled : filled; in obtainBuffer() local
209 if (avail < 0) { in obtainBuffer()
210 avail = 0; in obtainBuffer()
211 } else if (avail > 0) { in obtainBuffer()
221 if (part1 > (size_t)avail) { in obtainBuffer()
222 part1 = avail; in obtainBuffer()
230 buffer->mNonContig = avail - part1; in obtainBuffer()
1050 size_t avail; in obtainBuffer() local
1052 avail = end - position; in obtainBuffer()
1054 if (avail < wanted) { in obtainBuffer()
[all …]
DAudioRecord.cpp1126 size_t avail = audioBuffer.frameCount + nonContig; in processAudioBuffer() local
1128 mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err); in processAudioBuffer()
1139 if (avail < mRemainingFrames) { in processAudioBuffer()
1140 int64_t myns = ((mRemainingFrames - avail) * in processAudioBuffer()
DAudioTrack.cpp2161 size_t avail = audioBuffer.frameCount + nonContig; in processAudioBuffer() local
2163 mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err); in processAudioBuffer()
2176 if (avail < mRemainingFrames) { in processAudioBuffer()
2181 nsecs_t myns = framesToNanoseconds(mRemainingFrames - avail, sampleRate, speed); in processAudioBuffer()
2222 const nsecs_t datans = mRemainingFrames <= avail ? 0 : in processAudioBuffer()
2223 framesToNanoseconds(mRemainingFrames - avail, sampleRate, speed); in processAudioBuffer()
/frameworks/base/core/java/android/text/
DTextUtils.java1181 float avail, TruncateAt where) { in ellipsize() argument
1182 return ellipsize(text, p, avail, where, false, null); in ellipsize()
1199 float avail, TruncateAt where, in ellipsize() argument
1202 return ellipsize(text, paint, avail, where, preserveLength, callback, in ellipsize()
1222 float avail, TruncateAt where, in ellipsize() argument
1233 if (width <= avail) { in ellipsize()
1244 avail -= ellipsiswid; in ellipsize()
1248 if (avail < 0) { in ellipsize()
1251 right = len - mt.breakText(len, false, avail); in ellipsize()
1253 left = mt.breakText(len, true, avail); in ellipsize()
[all …]
DStaticLayout.java1047 float avail, TextUtils.TruncateAt where,
1050 avail -= getTotalInsets(line);
1051 if (textWidth <= avail && !forceEllipsis) {
1073 if (w + sum + ellipsisWidth > avail) {
1098 if (w + sum + ellipsisWidth > avail) {
1117 float ravail = (avail - ellipsisWidth) / 2;
1130 float lavail = avail - ellipsisWidth - rsum;
/frameworks/base/services/core/java/com/android/server/
DDiskStatsService.java154 long avail = statfs.getAvailableBlocks(); in reportFreeSpace() local
158 "Invalid stat: bsize=" + bsize + " avail=" + avail + " total=" + total); in reportFreeSpace()
164 proto.write(DiskStatsFreeSpaceProto.AVAILABLE_SPACE, avail * bsize / 1024); in reportFreeSpace()
170 pw.print(avail * bsize / 1024); in reportFreeSpace()
174 pw.print(avail * 100 / total); in reportFreeSpace()
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java65 MutableInt avail = new MutableInt(0); in available() local
67 Os.ioctlInt(myFd, OsConstants.FIONREAD, avail); in available()
71 return avail.value; in available()
/frameworks/base/libs/common_time/
Dcommon_time_server_api.cpp411 uint32_t avail = !logFull ? wrPtr : RTT_LOG_SIZE; in dumpLog() local
413 if (!avail) in dumpLog()
416 dump_printf("\nPacket Log (%d entries)\n", avail); in dumpLog()
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp1079 int avail; in onPortFlushCompleted() local
1080 while ((avail = outputDelayRingBufferSamplesAvailable()) > 0) { in onPortFlushCompleted()
1081 if (avail > mStreamInfo->frameSize * mStreamInfo->numChannels) { in onPortFlushCompleted()
1082 avail = mStreamInfo->frameSize * mStreamInfo->numChannels; in onPortFlushCompleted()
1084 int32_t ns = outputDelayRingBufferGetSamples(0, avail); in onPortFlushCompleted()
1085 if (ns != avail) { in onPortFlushCompleted()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java568 int avail = (int) (textWidth * i / 7.0f); in testEllipsis_singleLine() local
570 avail, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
571 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/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java1176 boolean avail = Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE.equals(actionStr); in onReceive()
1177 if (avail) { in onReceive()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp724 int32_t avail; in fetchTextData() local
725 if (packets->hasBufferAvailable(&avail)) { in fetchTextData()
/frameworks/native/libs/binder/
DParcel.cpp2017 const size_t avail = mDataSize-mDataPos; in readCString() local
2020 const char* eos = reinterpret_cast<const char*>(memchr(str, 0, avail)); in readCString()
/frameworks/native/services/inputflinger/
DInputReader.h1113 bool avail; // led is available member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp95 static void strcpy16_dtoh(char16_t* dst, const uint16_t* src, size_t avail) in strcpy16_dtoh() argument
97 char16_t* last = dst + avail - 1; in strcpy16_dtoh()

12