Home
last modified time | relevance | path

Searched refs:newStats (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerStatsTest.java101 PowerStats newStats = PowerStats.readFromParcel(newParcel, mRegistry); in parceling_compatibleParcel() local
102 assertThat(newStats.durationMs).isEqualTo(1234); in parceling_compatibleParcel()
103 assertThat(newStats.stats).isEqualTo(new long[]{10, 20, 30}); in parceling_compatibleParcel()
104 assertThat(newStats.stateStats.size()).isEqualTo(2); in parceling_compatibleParcel()
105 assertThat(newStats.stateStats.get(0x0F)).isEqualTo(new long[]{16}); in parceling_compatibleParcel()
106 assertThat(newStats.descriptor.getStateLabel(0x0F)).isEqualTo("idle"); in parceling_compatibleParcel()
107 assertThat(newStats.stateStats.get(0xF0)).isEqualTo(new long[]{17}); in parceling_compatibleParcel()
108 assertThat(newStats.descriptor.getStateLabel(0xF0)).isEqualTo("cpu-f0"); in parceling_compatibleParcel()
109 assertThat(newStats.uidStats.size()).isEqualTo(2); in parceling_compatibleParcel()
110 assertThat(newStats.uidStats.get(42)).isEqualTo(new long[]{40, 50}); in parceling_compatibleParcel()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/power/
DEnergyConsumerStatsTest.java116 EnergyConsumerStats newStats = new EnergyConsumerStats(config, parcel); in testReadWriteParcel() local
120 newStats.getAccumulatedStandardBucketCharge(bucket)); in testReadWriteParcel()
123 newStats.getAccumulatedStandardBucketCharge(bucket, state)); in testReadWriteParcel()
128 newStats.getAccumulatedCustomBucketCharge(i)); in testReadWriteParcel()
131 newStats.getAccumulatedCustomBucketCharge(customBucketNames.length + 1)); in testReadWriteParcel()
210 EnergyConsumerStats newStats = in testCreateAndReadSummaryFromParcel() local
215 newStats.isStandardBucketSupported(i)); in testCreateAndReadSummaryFromParcel()
217 newStats.getAccumulatedStandardBucketCharge(i)); in testCreateAndReadSummaryFromParcel()
221 newStats.getAccumulatedCustomBucketCharge(i)); in testCreateAndReadSummaryFromParcel()
224 newStats.getAccumulatedCustomBucketCharge(customBucketNames.length + 1)); in testCreateAndReadSummaryFromParcel()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DCompilerStats.java142 PackageStats newStats = new PackageStats(packageName); in createPackageStats() local
143 packageStats.put(packageName, newStats); in createPackageStats()
144 return newStats; in createPackageStats()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DRcsStats.java915 RcsAcsProvisioningStats newStats = new RcsAcsProvisioningStats(); in onRcsAcsProvisioningStats() local
916 newStats.carrierId = carrierId; in onRcsAcsProvisioningStats()
917 newStats.slotId = getSlotId(subId); in onRcsAcsProvisioningStats()
918 newStats.responseCode = responseCode; in onRcsAcsProvisioningStats()
919 newStats.responseType = responseType; in onRcsAcsProvisioningStats()
920 newStats.isSingleRegistrationEnabled = enableSingleRegistration; in onRcsAcsProvisioningStats()
921 newStats.count = 1; in onRcsAcsProvisioningStats()
922 newStats.stateTimerMillis = getWallTimeMillis(); in onRcsAcsProvisioningStats()
925 mRcsAcsProvisioningStatsList.add(newStats); in onRcsAcsProvisioningStats()
/frameworks/base/services/core/java/com/android/server/cpu/
DCpuInfoReader.java640 CpuUsageStats newStats = cumulativeCpuUsageStats.valueAt(i); in readLatestCpuUsageStats() local
642 deltaCpuUsageStats.append(cpu, oldStats == null ? newStats : newStats.delta(oldStats)); in readLatestCpuUsageStats()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DPersistAtomsStorageTest.java3304 ImsDedicatedBearerEvent newStats = copyOf(mImsDedicatedBearerEvent1); in addImsDedicatedBearerEvent_updateExistingEntries() local
3314 newStats.count *= 2; in addImsDedicatedBearerEvent_updateExistingEntries()
3316 mImsDedicatedBearerEvent2, newStats}, stats); in addImsDedicatedBearerEvent_updateExistingEntries()
3810 GbaEvent newStats = copyOf(mGbaEvent1); in addGbaEvent_updateExistingEntries() local
3820 newStats.count *= 2; in addGbaEvent_updateExistingEntries()
3821 assertProtoArrayEqualsIgnoringOrder(new GbaEvent[] {mGbaEvent2, newStats}, stats); in addGbaEvent_updateExistingEntries()