Home
last modified time | relevance | path

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

/frameworks/av/media/libnbaio/
DPipeReader.cpp50 size_t avail = rear - mFront; in availableToRead() local
51 if (CC_UNLIKELY(avail > mPipe.mMaxFrames)) { in availableToRead()
59 return avail; in availableToRead()
64 ssize_t avail = availableToRead(); in read() local
65 if (CC_UNLIKELY(avail <= 0)) { in read()
66 return avail; in read()
70 if (CC_LIKELY(count > (size_t) avail)) { in read()
71 count = avail; in read()
DSourceAudioBufferProvider.cpp100 ssize_t avail = mSource->availableToRead(); in framesReady() local
101 return avail < 0 ? 0 : (size_t) avail; in framesReady()
DMonoPipe.cpp104 size_t avail = availableToWrite(); in write() local
105 size_t written = avail; in write()
134 size_t filled = (mMaxFrames - avail) + written; in write()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DParserFactory.java85 int avail; in readAndClose() local
87 avail = intSize; in readAndClose()
90 avail = bufferedStream.available(); in readAndClose()
94 byte[] buffer = new byte[avail]; in readAndClose()
104 while ((avail = bufferedStream.available()) > 0) { in readAndClose()
105 if (read + avail > buffer.length) { in readAndClose()
108 byte[] moreBuffer = new byte[read + avail]; in readAndClose()
113 read += stream.read(buffer, read, avail); in readAndClose()
/frameworks/support/v4/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/base/core/java/android/util/
DAtomicFile.java210 int avail = stream.available(); in readFully() local
211 byte[] data = new byte[avail]; in readFully()
222 avail = stream.available(); in readFully()
223 if (avail > data.length-pos) { in readFully()
224 byte[] newData = new byte[pos+avail]; in readFully()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java145 int avail = stream.available(); in readFully() local
146 byte[] data = new byte[avail]; in readFully()
157 avail = stream.available(); in readFully()
158 if (avail > data.length-pos) { in readFully()
159 byte[] newData = new byte[pos+avail]; in readFully()
DBatteryStatsImpl.java4923 int avail = stream.available(); in readFully() local
4924 byte[] data = new byte[avail]; in readFully()
4935 avail = stream.available(); in readFully()
4936 if (avail > data.length-pos) { in readFully()
4937 byte[] newData = new byte[pos+avail]; in readFully()
/frameworks/base/services/java/com/android/server/
DDiskStatsService.java91 long avail = statfs.getAvailableBlocks(); in reportFreeSpace() local
95 "Invalid stat: bsize=" + bsize + " avail=" + avail + " total=" + total); in reportFreeSpace()
100 pw.print(avail * bsize / 1024); in reportFreeSpace()
104 pw.print(avail * 100 / total); in reportFreeSpace()
DMountService.java1059 private void notifyShareAvailabilityChange(final boolean avail) { in notifyShareAvailabilityChange() argument
1061 mUmsAvailable = avail; in notifyShareAvailabilityChange()
1065 bl.mListener.onUsbMassStorageConnectionChanged(avail); in notifyShareAvailabilityChange()
1076 sendUmsIntent(avail); in notifyShareAvailabilityChange()
1078 mSendUmsConnectedOnBoot = avail; in notifyShareAvailabilityChange()
1082 if (avail == false && primary != null in notifyShareAvailabilityChange()
/frameworks/av/media/libstagefright/
DNuCachedSource2.cpp154 size_t avail = (*it)->mSize - delta; in copy() local
156 if (avail >= size) { in copy()
161 memcpy(data, (const uint8_t *)(*it)->mData + delta, avail); in copy()
163 data = (uint8_t *)data + avail; in copy()
164 size -= avail; in copy()
566 size_t avail = mCache->totalSize() - delta; in readInternal() local
568 if (avail > size) { in readInternal()
569 avail = size; in readInternal()
572 mCache->copy(delta, data, avail); in readInternal()
574 return avail; in readInternal()
/frameworks/av/media/libstagefright/timedtext/test/
DTimedTextSRTSource_test.cpp68 ssize_t avail = mSize - offset; in readAt() local
69 if (avail > size) { in readAt()
70 avail = size; in readAt()
72 memcpy(data, mData + offset, avail); in readAt()
73 return avail; in readAt()
/frameworks/base/core/java/android/text/
DTextUtils.java1034 float avail, TruncateAt where) { in ellipsize() argument
1035 return ellipsize(text, p, avail, where, false, null); in ellipsize()
1052 float avail, TruncateAt where, in ellipsize() argument
1060 return ellipsize(text, paint, avail, where, preserveLength, callback, in ellipsize()
1080 float avail, TruncateAt where, in ellipsize() argument
1091 if (width <= avail) { in ellipsize()
1102 avail -= ellipsiswid; in ellipsize()
1106 if (avail < 0) { in ellipsize()
1109 right = len - mt.breakText(len, false, avail); in ellipsize()
1111 left = mt.breakText(len, true, avail); in ellipsize()
[all …]
DStaticLayout.java714 float avail, TextUtils.TruncateAt where, in calculateEllipsis() argument
717 if (textWidth <= avail && !forceEllipsis) { in calculateEllipsis()
740 if (w + sum + ellipsisWidth > avail) { in calculateEllipsis()
762 if (w + sum + ellipsisWidth > avail) { in calculateEllipsis()
781 float ravail = (avail - ellipsisWidth) / 2; in calculateEllipsis()
792 float lavail = avail - ellipsisWidth - rsum; in calculateEllipsis()
/frameworks/base/core/jni/android/graphics/
DCreateJavaOutputStreamAdaptor.cpp97 jint avail = env->CallIntMethod(fJavaInputStream, in doSize() local
103 avail = 0; in doSize()
105 return avail; in doSize()
/frameworks/base/services/common_time/
Dcommon_time_server_api.cpp409 uint32_t avail = !logFull ? wrPtr : RTT_LOG_SIZE; in dumpLog() local
411 if (!avail) in dumpLog()
414 dump_printf("\nPacket Log (%d entries)\n", avail); in dumpLog()
/frameworks/base/cmds/installd/
Dcommands.c361 int64_t avail; in free_cache() local
367 avail = data_disk_free(); in free_cache()
368 if (avail < 0) return -1; in free_cache()
370 ALOGI("free_cache(%" PRId64 ") avail %" PRId64 "\n", free_size, avail); in free_cache()
371 if (avail >= free_size) return 0; in free_cache()
/frameworks/base/services/java/com/android/server/am/
DUsageStatsService.java837 int avail = stream.available(); in readFully() local
838 byte[] data = new byte[avail]; in readFully()
845 avail = stream.available(); in readFully()
846 if (avail > data.length-pos) { in readFully()
847 byte[] newData = new byte[pos+avail]; in readFully()
/frameworks/base/core/jni/
Dandroid_net_LocalSocketImpl.cpp387 int avail; in socket_available() local
388 int ret = ioctl(fd, FIONREAD, &avail); in socket_available()
398 return (jint)avail; in socket_available()
/frameworks/native/libs/binder/
DParcel.cpp990 const size_t avail = mDataSize-mDataPos; in readCString() local
991 if (avail > 0) { in readCString()
994 const char* eos = reinterpret_cast<const char*>(memchr(str, 0, avail)); in readCString()
/frameworks/base/services/input/
DInputReader.h1039 bool avail; // led is available member
DInputReader.cpp2206 ledState.avail = getEventHub()->hasLed(getDeviceId(), led); in initializeLedState()
2221 if (ledState.avail) { in updateLedStateForModifier()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp85 static void strcpy16_dtoh(uint16_t* dst, const uint16_t* src, size_t avail) in strcpy16_dtoh() argument
87 uint16_t* last = dst + avail - 1; in strcpy16_dtoh()
/frameworks/base/services/java/com/android/server/pm/
DPackageManagerService.java9443 final int avail = in.available(); in dump() local
9444 final byte[] data = new byte[avail]; in dump()