/aosp14/frameworks/base/cmds/incidentd/src/ |
H A D | report_directory.cpp | 56 off_t totalSize = 0; in clean_directory() local 74 totalSize += st.st_size; in clean_directory() 81 if (totalSize < maxSize && totalCount < maxCount) { in clean_directory() 90 it != files.end() && totalSize >= maxSize && totalCount >= maxCount; it++) { in clean_directory() 92 totalSize -= it->second.st_size; in clean_directory()
|
H A D | WorkDirectory.cpp | 737 off_t totalSize = 0; in get_directory_contents_locked() local 778 totalSize += st.st_size; in get_directory_contents_locked() 801 return totalSize; in get_directory_contents_locked() 812 off_t totalSize = get_directory_contents_locked(&files, 0); in clean_directory_locked() local 813 if (totalSize < 0) { in clean_directory_locked() 819 if (totalSize < mMaxDiskUsageBytes && totalCount < mMaxFileCount) { in clean_directory_locked() 826 it != files.end() && (totalSize >= mMaxDiskUsageBytes in clean_directory_locked() 831 totalSize -= it->second.size; in clean_directory_locked()
|
/aosp14/frameworks/base/core/java/android/content/pm/verify/domain/ |
H A D | DomainVerificationUtils.java | 45 int totalSize = dest.dataSize(); in writeHostMap() local 47 totalSize += estimatedByteSizeOf(host); in writeHostMap() 48 if (totalSize > STRINGS_TARGET_BYTE_SIZE) { in writeHostMap() 102 int totalSize = dest.dataSize(); in writeHostSet() local 104 totalSize += estimatedByteSizeOf(host); in writeHostSet() 105 if (totalSize > STRINGS_TARGET_BYTE_SIZE) { in writeHostSet()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
H A D | DomainVerificationCollector.java | 199 int totalSize = 0; 214 totalSize += byteSizeOf(host); 215 underMaxSize = totalSize < MAX_DOMAINS_BYTE_SIZE; 240 int totalSize = 0; 280 totalSize += byteSizeOf(host); 281 underMaxSize = totalSize < MAX_DOMAINS_BYTE_SIZE;
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
H A D | StorageMeasurement.java | 49 public long totalSize; field in StorageMeasurement.MeasurementDetails 86 return "MeasurementDetails: [totalSize: " + totalSize + " availSize: " + availSize in toString() 157 details.totalSize = mVolume.getPath().getTotalSpace(); in measureExactStorage() 163 details.totalSize = mStats.getTotalBytes(mVolume.fsUuid); in measureExactStorage()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | BinderProxy.java | 226 final int totalSize = size(); in set() local 228 + " total = " + totalSize); in set() 230 if (Build.IS_DEBUGGABLE && totalSize >= CRASH_AT_SIZE) { in set() 242 + totalSize + " (total), " + totalUnclearedSize + " (uncleared), " in set() 244 } else if (totalSize > 3 * totalUnclearedSize / 2) { in set() 246 + (totalSize - totalUnclearedSize) + " of " + totalSize in set()
|
/aosp14/frameworks/base/core/jni/ |
H A D | com_android_internal_os_KernelAllocationStats.cpp | 136 long totalSize = 0; in KernelAllocationStats_getDmabufAllocations() local 139 totalSize += inodeToSize[inode]; in KernelAllocationStats_getDmabufAllocations() 150 /* retainedSize */ totalSize / 1024, in KernelAllocationStats_getDmabufAllocations()
|
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 443 size_t totalSize = 0; in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries() local 445 iterateOverNativeFiles(env, apkHandle, javaCpuAbi, debuggable, sumFiles, &totalSize); in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries() 447 return totalSize; in com_android_internal_content_NativeLibraryHelper_sumNativeBinaries()
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/ |
H A D | BatteryUsageStatsStore.java | 299 long totalSize = 0; in removeOldSnapshotsLocked() local 303 totalSize += fileSize; in removeOldSnapshotsLocked() 309 while (totalSize > mMaxStorageBytes) { in removeOldSnapshotsLocked() 319 totalSize -= entry.getValue(); in removeOldSnapshotsLocked()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
H A D | DomainVerificationCoreApiTest.kt | 48 var totalSize = 0 regex 50 while (totalSize < (1024 * 512)) { 52 totalSize += nextValue.length
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | StringPool.cpp | 459 const size_t totalSize = lenSize + encLenSize + in writeStringBlock() local 462 void* dat = (void*)pool->editData(preSize + strPos + totalSize); in writeStringBlock() 484 strPos += totalSize; in writeStringBlock() 506 const size_t totalSize = (N*sizeof(ResStringPool_span)) in writeStringBlock() local 510 uint8_t* dat = (uint8_t*)pool->editData(preSize + styPos + totalSize); in writeStringBlock() 524 styPos += totalSize; in writeStringBlock()
|
/aosp14/frameworks/base/media/jni/ |
H A D | android_media_MediaDescrambler.cpp | 304 ssize_t totalSize = 0; in getSubSampleInfo() local 331 totalSize += subSamples[i].numBytesOfClearData + in getSubSampleInfo() 347 if (totalSize < 0) { in getSubSampleInfo() 351 return totalSize; in getSubSampleInfo()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
H A D | PerformFullTransportBackupTask.java | 765 long totalSize = mResult.get(); in preflightFullBackup() local 767 if (totalSize < 0) { in preflightFullBackup() 768 return (int) totalSize; in preflightFullBackup() 771 Slog.v(TAG, "Got preflight response; size=" + totalSize); in preflightFullBackup() 776 result = transport.checkFullBackupSize(totalSize); in preflightFullBackup() 780 pkg.packageName + ": " + totalSize + " of " + mQuota); in preflightFullBackup() 783 callback -> agent.doQuotaExceeded(totalSize, mQuota, callback), in preflightFullBackup()
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | SurfaceViewAlphaActivity.java | 63 int totalSize = (int) (surfaceViewSize * 5 / 3f); in overlapViews() local 89 totalSize, surfaceViewSize)); in overlapViews()
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | MediaMetrics.java | 666 final int totalSize = buffer.getInt(); in toBundle() local 671 if (totalSize < 0 || headerSize < 0) { in toBundle() 711 bundle.putInt(BUNDLE_TOTAL_SIZE, totalSize); in toBundle() 765 if (finalPosition != totalSize) { in toBundle() 766 throw new IllegalArgumentException("totalSize:" + totalSize in toBundle()
|
H A D | ExifInterface.java | 4706 int totalSize = position; in writeExifSegment() local 4709 totalSize += 8; in writeExifSegment() 4715 ifdDataSizes[i], totalSize)); in writeExifSegment() 4736 dataOutputStream.writeUnsignedShort(totalSize); in writeExifSegment() 4741 dataOutputStream.writeInt(totalSize); in writeExifSegment() 4747 dataOutputStream.writeInt(totalSize); in writeExifSegment() 4818 if (mMimeType == IMAGE_TYPE_WEBP && totalSize % 2 == 1) { in writeExifSegment() 4825 return totalSize; in writeExifSegment()
|
/aosp14/frameworks/base/packages/LocalTransport/src/com/android/localtransport/ |
H A D | LocalTransport.java | 289 int totalSize = parseKeySizes(packageDir, datastore); in performBackupInternal() local 300 int updatedSize = totalSize; in performBackupInternal() 378 int totalSize = 0; in parseKeySizes() local 388 totalSize += size; in parseKeySizes() 395 Log.v(TAG, " TOTAL: " + totalSize); in parseKeySizes() 402 return totalSize; in parseKeySizes()
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 500 long totalSize = ((long) rowStride) * height + offset; in writeByteBuffer() local 501 if (capacity < totalSize) { in writeByteBuffer() 503 " is too small (must be larger than " + totalSize + ")"); in writeByteBuffer()
|
/aosp14/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | BackupHelpers.h | 42 int totalSize; member
|
/aosp14/frameworks/base/core/java/android/util/apk/ |
H A D | ApkSigningBlockUtils.java | 732 int totalSize = (int) (apkSigBlockSizeInFooter + 8); in findApkSigningBlock() local 733 long apkSigBlockOffset = centralDirOffset - totalSize; in findApkSigningBlock() 738 ByteBuffer apkSigBlock = ByteBuffer.allocate(totalSize); in findApkSigningBlock()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | PinnerService.java | 1141 long totalSize = 0; in dump() local 1144 totalSize += pinnedFile.bytesPinned; in dump() 1155 totalSize += pf.bytesPinned; in dump() 1161 pw.format("Total size: %s\n", totalSize); in dump()
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | ResolverListAdapter.java | 585 int totalSize = mDisplayList == null || mDisplayList.isEmpty() ? mPlaceholderCount : 588 totalSize--; 590 return totalSize;
|
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 1030 int totalSize = 0; in extractRelevantValues() local 1067 totalSize += INTEGER_BYTE_COUNT + keyBytes.length; in extractRelevantValues() 1071 totalSize += INTEGER_BYTE_COUNT + valueBytes.length; in extractRelevantValues() 1082 byte[] result = new byte[totalSize]; in extractRelevantValues()
|
/aosp14/frameworks/base/services/core/jni/ |
H A D | com_android_server_pm_PackageManagerShellCommandDataLoader.cpp | 471 IncFsSize totalSize = 0; in copyToIncFs() local 505 totalSize += read; in copyToIncFs()
|
/aosp14/frameworks/base/services/autofill/java/com/android/server/autofill/ |
H A D | AutofillManagerServiceImpl.java | 974 int totalSize = 0; in logContextCommittedLocked() local 980 totalSize += size; in logContextCommittedLocked() 986 final int averageScore = (int) ((totalScore * 100) / totalSize); in logContextCommittedLocked()
|