/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ParserFactory.java | 109 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/ |
D | AtomicFile.java | 179 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/ |
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/core/java/com/android/internal/os/ |
D | AtomicFile.java | 154 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()
|
D | BatteryStatsHelper.java | 804 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/ |
D | AtomicFile.java | 235 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/ |
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() 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/ |
D | AudioTrackShared.cpp | 208 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 …]
|
D | AudioRecord.cpp | 1126 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()
|
D | AudioTrack.cpp | 2161 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/ |
D | TextUtils.java | 1181 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 …]
|
D | StaticLayout.java | 1047 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/ |
D | DiskStatsService.java | 154 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/ |
D | LocalSocketImpl.java | 65 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/ |
D | common_time_server_api.cpp | 411 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/ |
D | SoftAAC2.cpp | 1079 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/ |
D | StaticLayoutTest.java | 568 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/ |
D | rsCpuIntrinsicResize.cpp | 192 size_t avail, 206 size_t avail, 220 size_t avail,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 1176 boolean avail = Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE.equals(actionStr); in onReceive() 1177 if (avail) { in onReceive()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 724 int32_t avail; in fetchTextData() local 725 if (packets->hasBufferAvailable(&avail)) { in fetchTextData()
|
/frameworks/native/libs/binder/ |
D | Parcel.cpp | 2017 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/ |
D | InputReader.h | 1113 bool avail; // led is available member
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 95 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()
|