/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
StorageVolumePreference.java | 50 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { 72 if (totalBytes <= 0) { 73 totalBytes = path.getTotalSpace(); 76 final long usedBytes = totalBytes - freeBytes; 79 final String total = Formatter.formatFileSize(context, totalBytes); 81 if (totalBytes > 0) { 82 mUsedPercent = (int) ((usedBytes * 100) / totalBytes);
|
PublicVolumeSettings.java | 160 final long totalBytes = file.getTotalSpace(); 162 final long usedBytes = totalBytes - freeBytes; 168 Formatter.formatFileSize(context, totalBytes))); 169 mSummary.setPercent((int) ((usedBytes * 100) / totalBytes));
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
AbstractPublicApiTest.java | 176 int totalBytes = 0; 185 totalBytes = cursor.getInt( 191 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); 192 if (totalBytes == 0) { 196 if (numBytesReceivedSoFar * 100 / totalBytes >= progress) { 205 numBytesReceivedSoFar + ", totalBytes: " + totalBytes);
|
/hardware/bsp/intel/peripheral/libupm/src/lpd8806/ |
lpd8806.cxx | 62 uint16_t dataBytes, totalBytes; 67 totalBytes = dataBytes + latchBytes; 68 if ((m_pixels = (uint8_t *) malloc(totalBytes))) { 69 numBytes = totalBytes;
|
/external/chromium-trace/catapult/tracing/tracing/extras/chrome/cc/ |
layer_tree_impl.html | 106 var totalBytes = 0; 109 totalBytes += layer.gpuMemoryUsageInBytes; 111 return totalBytes;
|
/external/pdfium/xfa/src/fxbarcode/datamatrix/ |
BC_DataMatrixDecoder.cpp | 59 int32_t totalBytes = 0;
62 totalBytes +=
66 resultBytes.SetSize(totalBytes);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
DumpDatabaseAction.java | 65 int totalBytes = 0; 74 totalBytes += bytesRead; 97 ", copy size: " + totalBytes);
|
/external/libvncserver/libvncserver/ |
stats.c | 385 double totalBytes=0.0; 410 totalBytes += bytes; 428 totalBytes += bytes; 433 savings = 100.0 - ((totalBytes/totalBytesIfRaw)*100.0); 435 "TOTALS", totalRects, totalBytes,totalBytesIfRaw, savings); 438 totalBytes=0.0; 456 totalBytes += bytes; 473 totalBytes += bytes; 478 savings = 100.0 - ((totalBytes/totalBytesIfRaw)*100.0); 480 "TOTALS", totalRects, totalBytes,totalBytesIfRaw, savings) [all...] |
/frameworks/base/core/java/android/net/ |
NetworkPolicy.java | 114 public boolean isOverWarning(long totalBytes) { 115 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes; 122 public boolean isOverLimit(long totalBytes) { 125 totalBytes += 2 * DEFAULT_MTU; 126 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes;
|
NetworkStatsHistory.java | 81 private long totalBytes; 114 totalBytes = 0; 132 totalBytes = in.readLong(); 145 out.writeLong(totalBytes); 160 totalBytes = total(rxBytes) + total(txBytes); 175 totalBytes = total(rxBytes) + total(txBytes); 235 return totalBytes; 345 totalBytes += entry.rxBytes + entry.txBytes; 465 // TODO: subtract removed values from totalBytes
|
/external/pdfium/xfa/src/fxbarcode/qrcode/ |
BC_QRCoderDecoder.cpp | 81 int32_t totalBytes = 0;
83 totalBytes += ((CBC_QRDataBlock*)((*dataBlocks)[i]))->GetNumDataCodewords();
|
/external/skia/tests/ |
YUVTest.cpp | 57 size_t totalBytes = info.fYWidthBytes * info.fYSize.height() + 60 SkAutoMalloc storage(totalBytes);
|
SwizzlerTest.cpp | 31 const size_t totalBytes = imageInfo.getSafeSize(rowBytes) + offset; 34 SkAutoTDeleteArray<uint8_t> storage(new uint8_t[totalBytes]); 35 memset(storage.get(), 0, totalBytes);
|
Writer32Test.cpp | 163 size_t totalBytes = writer->bytesWritten(); 165 SkAutoMalloc readStorage(totalBytes); 169 reader.setMemory(readStorage.get(), totalBytes);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppShareInfo.java | 73 long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) { 84 mTotalBytes = totalBytes;
|
BluetoothOppTransferAdapter.java | 102 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); 112 mContext, totalBytes)); 115 mContext, totalBytes));
|
/libcore/ojluni/src/main/java/sun/misc/ |
CharacterDecoder.java | 153 int totalBytes = 0; 164 totalBytes += bytesPerAtom(); 168 totalBytes += bytesPerAtom(); 171 totalBytes += (length - i);
|
/external/zlib/src/contrib/minizip/ |
mztools.c | 43 uLong totalBytes = 0; 129 totalBytes += dataSize; 284 *bytesRecovered = totalBytes;
|
/external/lzma/CPP/7zip/UI/Common/ |
HashCalc.cpp | 212 UInt64 totalBytes = 0;
233 totalBytes = dirItems.TotalSize;
260 RINOK(callback->SetTotal(totalBytes));
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
ManageCachePage.java | 368 long totalBytes = mCacheStorageInfo.getTotalBytes(); 374 if (totalBytes == 0) { 382 progressBar.setProgress((int) (usedBytes * PROGRESS_BAR_MAX / totalBytes)); 384 (int) (expectedBytes * PROGRESS_BAR_MAX / totalBytes));
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadInfo.java | 303 public int getRequiredNetworkType(long totalBytes) { 310 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) { 313 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile() 371 public boolean isMeteredAllowed(long totalBytes) { 372 return getRequiredNetworkType(totalBytes) != JobInfo.NETWORK_TYPE_UNMETERED;
|
/external/skia/src/codec/ |
SkBmpCodec.cpp | 105 uint32_t totalBytes; 121 totalBytes = get_int(hBuffer.get(), 2); 140 totalBytes = 0; 458 if (totalBytes <= offset && kRLE_BmpInputFormat == inputFormat) { 462 const size_t RLEBytes = totalBytes - offset; 518 // require that RLE Bmps have a valid number of totalBytes, and 519 // Icos skip the header that contains totalBytes.
|
/frameworks/base/core/java/android/bluetooth/le/ |
BluetoothLeAdvertiser.java | 121 if (totalBytes(advertiseData, isConnectable) > MAX_ADVERTISING_DATA_BYTES || 122 totalBytes(scanResponse, false) > MAX_ADVERTISING_DATA_BYTES) { 174 private int totalBytes(AdvertiseData data, boolean isFlagsIncluded) {
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
rtp_rtcp_impl_unittest.cc | 421 EXPECT_EQ(rtp.transmitted.TotalBytes(), rtp.transmitted.payload_bytes + 447 EXPECT_EQ(sum.transmitted.TotalBytes(), 448 rtp.transmitted.TotalBytes() + rtp2.transmitted.TotalBytes());
|
/build/tools/signtos/ |
SignTos.java | 238 int totalBytes = 0; 244 totalBytes += bytesRead;
|