/frameworks/base/core/java/com/android/internal/os/ |
D | AtomicFile.java | 134 int avail = stream.available(); in readFully() local 135 byte[] data = new byte[avail]; in readFully() 146 avail = stream.available(); in readFully() 147 if (avail > data.length-pos) { in readFully() 148 byte[] newData = new byte[pos+avail]; in readFully()
|
D | BatteryStatsImpl.java | 4651 int avail = stream.available(); in readFully() local 4652 byte[] data = new byte[avail]; in readFully() 4663 avail = stream.available(); in readFully() 4664 if (avail > data.length-pos) { in readFully() 4665 byte[] newData = new byte[pos+avail]; in readFully()
|
/frameworks/base/services/java/com/android/server/ |
D | DiskStatsService.java | 89 long avail = statfs.getAvailableBlocks(); in reportFreeSpace() local 93 "Invalid stat: bsize=" + bsize + " avail=" + avail + " total=" + total); in reportFreeSpace() 98 pw.print(avail * bsize / 1024); in reportFreeSpace() 102 pw.print(avail * 100 / total); in reportFreeSpace()
|
D | MountService.java | 607 boolean avail = doGetShareMethodAvailable("ums"); in onDaemonConnected() 608 notifyShareAvailabilityChange("ums", avail); in onDaemonConnected() 650 boolean avail = false; in onEvent() 652 avail = true; in onEvent() 654 notifyShareAvailabilityChange(cooked[3], avail); in onEvent() 974 private void notifyShareAvailabilityChange(String method, final boolean avail) { in notifyShareAvailabilityChange() argument 984 bl.mListener.onUsbMassStorageConnectionChanged(avail); in notifyShareAvailabilityChange() 995 sendUmsIntent(avail); in notifyShareAvailabilityChange() 997 mSendUmsConnectedOnBoot = avail; in notifyShareAvailabilityChange() 1001 if (avail == false && getVolumeState(path).equals(Environment.MEDIA_SHARED)) { in notifyShareAvailabilityChange()
|
D | PackageManagerService.java | 7334 int avail = in.available(); in dump() local 7335 byte[] data = new byte[avail]; in dump()
|
/frameworks/base/media/libstagefright/ |
D | NuCachedSource2.cpp | 148 size_t avail = (*it)->mSize - delta; in copy() local 150 if (avail >= size) { in copy() 155 memcpy(data, (const uint8_t *)(*it)->mData + delta, avail); in copy() 157 data = (uint8_t *)data + avail; in copy() 158 size -= avail; in copy() 456 size_t avail = mCache->totalSize() - delta; in readInternal() local 457 mCache->copy(delta, data, avail); in readInternal() 459 return avail; in readInternal()
|
D | NuHTTPDataSource.cpp | 358 size_t avail = in readAt() local 361 if (size > avail) { in readAt() 362 size = avail; in readAt()
|
/frameworks/base/core/java/android/text/ |
D | TextUtils.java | 979 float avail, TruncateAt where) { in ellipsize() argument 980 return ellipsize(text, p, avail, where, false, null); in ellipsize() 996 float avail, TruncateAt where, in ellipsize() argument 1012 if (wid <= avail) { in ellipsize() 1022 if (ellipsiswid > avail) { in ellipsize() 1042 avail - ellipsiswid, null); in ellipsize() 1055 avail - ellipsiswid, null); in ellipsize() 1068 (avail - ellipsiswid) / 2, null); in ellipsize() 1071 avail - ellipsiswid - used, null); in ellipsize() 1112 if (sum <= avail) { in ellipsize() [all …]
|
D | StaticLayout.java | 1126 float avail, TextUtils.TruncateAt where, in calculateEllipsis() argument 1130 if (textwidth <= avail) { in calculateEllipsis() 1147 if (w + sum + ellipsiswid > avail) { in calculateEllipsis() 1163 if (w + sum + ellipsiswid > avail) { in calculateEllipsis() 1176 float ravail = (avail - ellipsiswid) / 2; in calculateEllipsis() 1187 float lavail = avail - ellipsiswid - rsum; in calculateEllipsis()
|
/frameworks/base/cmds/installd/ |
D | commands.c | 163 int64_t avail; in free_cache() local 165 avail = disk_free(); in free_cache() 166 if (avail < 0) return -1; in free_cache() 168 LOGI("free_cache(%" PRId64 ") avail %" PRId64 "\n", free_size, avail); in free_cache() 169 if (avail >= free_size) return 0; in free_cache() 194 avail = disk_free(); in free_cache() 195 if (avail >= free_size) { in free_cache() 227 avail = disk_free(); in free_cache() 228 if (avail >= free_size) { in free_cache()
|
/frameworks/base/core/jni/android/graphics/ |
D | CreateJavaOutputStreamAdaptor.cpp | 98 jint avail = env->CallIntMethod(fJavaInputStream, in doSize() local 104 avail = 0; in doSize() 106 return avail; in doSize()
|
/frameworks/base/media/libstagefright/httplive/ |
D | LiveSource.cpp | 277 size_t avail = delta - offset; in readAt() local 278 memset(data, 0, avail); in readAt() 279 return avail; in readAt()
|
/frameworks/base/services/java/com/android/server/am/ |
D | UsageStatsService.java | 653 int avail = stream.available(); in readFully() local 654 byte[] data = new byte[avail]; in readFully() 661 avail = stream.available(); in readFully() 662 if (avail > data.length-pos) { in readFully() 663 byte[] newData = new byte[pos+avail]; in readFully()
|
/frameworks/base/core/jni/ |
D | android_net_LocalSocketImpl.cpp | 387 int avail; in socket_available() local 388 int ret = ioctl(fd, FIONREAD, &avail); in socket_available() 398 return (jint)avail; in socket_available()
|
/frameworks/base/libs/surfaceflinger_client/ |
D | SharedBufferStack.cpp | 604 int32_t avail = stack.available; in resize() local 605 int tail = head - avail + 1; in resize()
|
/frameworks/base/libs/binder/ |
D | Parcel.cpp | 907 const size_t avail = mDataSize-mDataPos; in readCString() local 908 if (avail > 0) { in readCString() 911 const char* eos = reinterpret_cast<const char*>(memchr(str, 0, avail)); in readCString()
|
/frameworks/base/libs/utils/ |
D | ResourceTypes.cpp | 81 static void strcpy16_dtoh(uint16_t* dst, const uint16_t* src, size_t avail) in strcpy16_dtoh() argument 83 uint16_t* last = dst + avail - 1; in strcpy16_dtoh()
|