/frameworks/base/core/java/android/app/usage/ |
ExternalStorageStats.java | 31 /** {@hide} */ public long totalBytes; 47 return totalBytes; 111 this.totalBytes = in.readLong(); 126 dest.writeLong(totalBytes);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
PrivateStorageInfo.java | 34 public final long totalBytes; 36 public PrivateStorageInfo(long freeBytes, long totalBytes) { 38 this.totalBytes = totalBytes;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
StorageStatsSource.java | 66 public long totalBytes; 75 long totalBytes, long audioBytes, long videoBytes, long imageBytes, long appBytes) { 76 this.totalBytes = totalBytes; 89 totalBytes = stats.getTotalBytes();
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
StorageVolumePreference.java | 56 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { 85 totalBytes = stats.getTotalBytes(volume.getFsUuid()); 87 usedBytes = totalBytes - freeBytes; 94 if (totalBytes <= 0) { 95 totalBytes = path.getTotalSpace(); 98 usedBytes = totalBytes - freeBytes; 102 final String total = Formatter.formatFileSize(context, totalBytes); 104 if (totalBytes > 0) { 105 mUsedPercent = (int) ((usedBytes * 100) / totalBytes);
|
StorageSummaryPreference.java | 40 public void setPercent(long usedBytes, long totalBytes) { 41 mPercent = MathUtils.constrain((int) ((usedBytes * 100) / totalBytes),
|
PublicVolumeSettings.java | 167 final long totalBytes = file.getTotalSpace(); 169 final long usedBytes = totalBytes - freeBytes; 175 Formatter.formatFileSize(context, totalBytes))); 176 mSummary.setPercent(usedBytes, totalBytes);
|
/libcore/ojluni/src/main/java/sun/misc/ |
CharacterDecoder.java | 153 int totalBytes = 0; 164 totalBytes += bytesPerAtom(); 168 totalBytes += bytesPerAtom(); 171 totalBytes += (length - i);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppShareInfo.java | 73 long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) { 84 mTotalBytes = totalBytes;
|
BluetoothOppTransferAdapter.java | 101 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); 111 Formatter.formatFileSize(mContext, totalBytes)); 114 Formatter.formatFileSize(mContext, totalBytes));
|
/prebuilts/go/darwin-x86/test/ |
finprofiled.go | 56 var totalBytes int64 62 totalBytes += bytes 66 if want := N*int64(unsafe.Sizeof(int32(0))) - 2*tinyBlockSize; totalBytes < want { 67 println("got", totalBytes, "want >=", want)
|
/prebuilts/go/linux-x86/test/ |
finprofiled.go | 56 var totalBytes int64 62 totalBytes += bytes 66 if want := N*int64(unsafe.Sizeof(int32(0))) - 2*tinyBlockSize; totalBytes < want { 67 println("got", totalBytes, "want >=", want)
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
CachedStorageValuesHelper.java | 72 final long totalBytes = mSharedPreferences.getLong(TOTAL_BYTES_KEY, -1); 73 if (freeBytes < 0 || totalBytes < 0) { 77 return new PrivateStorageInfo(freeBytes, totalBytes); 138 .putLong(TOTAL_BYTES_KEY, storageInfo.totalBytes) 145 .putLong(EXTERNAL_TOTAL_BYTES, result.externalStats.totalBytes)
|
StorageSummaryDonutPreference.java | 63 public void setPercent(long usedBytes, long totalBytes) { 64 if (totalBytes == 0) { 68 mPercent = usedBytes / (double) totalBytes;
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
DumpDatabaseAction.java | 65 int totalBytes = 0; 74 totalBytes += bytesRead; 97 ", copy size: " + 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);
|
/external/skia/tests/ |
SwizzlerTest.cpp | 32 const size_t totalBytes = imageInfo.computeByteSize(rowBytes) + offset; 35 std::unique_ptr<uint8_t[]> storage(new uint8_t[totalBytes]); 36 memset(storage.get(), 0, totalBytes);
|
YUVTest.cpp | 59 size_t totalBytes = 63 SkAutoMalloc storage(totalBytes);
|
/external/skqp/tests/ |
SwizzlerTest.cpp | 31 const size_t totalBytes = imageInfo.computeByteSize(rowBytes) + offset; 34 std::unique_ptr<uint8_t[]> storage(new uint8_t[totalBytes]); 35 memset(storage.get(), 0, totalBytes);
|
YUVTest.cpp | 59 size_t totalBytes = 63 SkAutoMalloc storage(totalBytes);
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
AppDataUsagePreferenceController.java | 121 final long totalBytes = mChartData.detail.getTotalBytes(); 122 if (totalBytes == 0) { 126 Formatter.formatFileSize(mContext, totalBytes),
|
/frameworks/base/core/java/android/bluetooth/le/ |
BluetoothLeAdvertiser.java | 118 if (totalBytes(advertiseData, isConnectable) > MAX_LEGACY_ADVERTISING_DATA_BYTES 119 || totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) { 353 if (totalBytes(advertiseData, isConnectable) > MAX_LEGACY_ADVERTISING_DATA_BYTES) { 357 if (totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) { 375 if (totalBytes(advertiseData, isConnectable) > maxData) { 379 if (totalBytes(scanResponse, false) > maxData) { 383 if (totalBytes(periodicData, false) > maxData) { 472 private int totalBytes(AdvertiseData data, boolean isFlagsIncluded) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
VolumeSizesLoaderTest.java | 31 assertThat(storageInfo.totalBytes).isEqualTo(10000L);
|
/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 | 146 public boolean isOverWarning(long totalBytes) { 147 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes; 154 public boolean isOverLimit(long totalBytes) { 157 totalBytes += 2 * DEFAULT_MTU; 158 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes;
|
NetworkStatsHistory.java | 87 private long totalBytes; 120 totalBytes = 0; 138 totalBytes = in.readLong(); 151 out.writeLong(totalBytes); 166 totalBytes = total(rxBytes) + total(txBytes); 181 totalBytes = total(rxBytes) + total(txBytes); 241 return totalBytes; 290 if (rxBytes != null) totalBytes -= rxBytes[i]; 291 if (txBytes != null) totalBytes -= txBytes[i]; 302 if (rxBytes != null) totalBytes += rxBytes[i] [all...] |