Home
last modified time | relevance | path

Searched refs:getPercentage (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffDataTest.java117 assertThat(batteryDiffEntries.get(0).getPercentage()).isEqualTo(33.34); in processPercentsAndSort_sumLessThan100_adjustTo100()
119 assertThat(batteryDiffEntries.get(1).getPercentage()).isEqualTo(33.33); in processPercentsAndSort_sumLessThan100_adjustTo100()
121 assertThat(batteryDiffEntries.get(2).getPercentage()).isEqualTo(33.33); in processPercentsAndSort_sumLessThan100_adjustTo100()
137 assertThat(batteryDiffEntries.get(0).getPercentage()).isEqualTo(48.5); in processPercentsAndSort_sumGreaterThan100_adjustTo100()
139 assertThat(batteryDiffEntries.get(1).getPercentage()).isEqualTo(48.5); in processPercentsAndSort_sumGreaterThan100_adjustTo100()
141 assertThat(batteryDiffEntries.get(2).getPercentage()).isEqualTo(3); in processPercentsAndSort_sumGreaterThan100_adjustTo100()
DBatteryDiffEntryTest.java126 assertThat(entry.getPercentage()).isEqualTo(22.0); in testSetTotalConsumePower_returnExpectedResult()
153 assertThat(entry.getPercentage()).isEqualTo(0); in testSetTotalConsumePower_setZeroValue_returnsZeroValue()
189 assertThat(entryList.get(0).getPercentage()).isEqualTo(30); in testComparator_sortCollectionsInDescOrder()
190 assertThat(entryList.get(1).getPercentage()).isEqualTo(20); in testComparator_sortCollectionsInDescOrder()
191 assertThat(entryList.get(2).getPercentage()).isEqualTo(10); in testComparator_sortCollectionsInDescOrder()
192 assertThat(entryList.get(3).getPercentage()).isEqualTo(16); in testComparator_sortCollectionsInDescOrder()
DBatteryUsageBreakdownControllerTest.java290 assertThat(pref.getPercentage()).isEqualTo("< 1%"); in setPreferencePercent_lessThanThreshold_expectedFormat()
312 assertThat(pref.getPercentage()).isEqualTo("16%"); in setPreferencePercent_greaterThanThreshold_expectedFormat()
DDataProcessorTest.java2539 assertThat(entry.getPercentage()).isEqualTo(consumePercentage); in assertBatteryDiffEntry()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DOxygenSaturationRecord.java64 public Percentage getPercentage() { in getPercentage() method in OxygenSaturationRecord
80 return Objects.equals(getPercentage(), that.getPercentage()); in equals()
86 return Objects.hash(super.hashCode(), getPercentage()); in hashCode()
DBodyFatRecord.java63 public Percentage getPercentage() { in getPercentage() method in BodyFatRecord
79 return getPercentage().equals(that.getPercentage()); in equals()
85 return Objects.hash(super.hashCode(), getPercentage()); in hashCode()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DBodyFatRecordInternal.java33 public double getPercentage() { in getPercentage() method in BodyFatRecordInternal
48 buildMetaData(), getTime(), Percentage.fromValue(getPercentage())) in toExternalRecord()
DOxygenSaturationRecordInternal.java34 public double getPercentage() { in getPercentage() method in OxygenSaturationRecordInternal
49 buildMetaData(), getTime(), Percentage.fromValue(getPercentage())) in toExternalRecord()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageBreakdownController.java160 final int percentage = (int) Math.round(entry.getPercentage()); in logPreferenceClickedMetrics()
192 powerPref.getPercentage(), in handlePreferenceTreeClick()
414 if (entry.getPercentage() < BatteryDiffData.SMALL_PERCENTAGE_THRESHOLD) { in setPreferencePercentage()
420 entry.getPercentage() + entry.getAdjustPercentageOffset(), in setPreferencePercentage()
DBatteryDiffEntry.java193 public double getPercentage() { in getPercentage() method in BatteryDiffEntry
211 return getPercentage() + getAdjustPercentageOffset(); in getSortingKey()
222 return getPercentage() + getAdjustPercentageOffset(); in getSortingKey()
DBatteryDiffData.java322 if (entry.getPercentage() < SMALL_PERCENTAGE_THRESHOLD) { in processAndSortEntries()
325 int roundPercentage = Math.round((float) entry.getPercentage()); in processAndSortEntries()
DPowerGaugePreference.java107 public String getPercentage() { in getPercentage() method in PowerGaugePreference
/packages/apps/Settings/src/com/android/settings/display/
DBrightnessLevelPreferenceController.java183 return getPercentage(value, GAMMA_SPACE_MIN, GAMMA_SPACE_MAX); in getCurrentBrightness()
186 private double getPercentage(double value, int min, int max) { in getPercentage() method in BrightnessLevelPreferenceController
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java127 mBatteryDiffEntry.getPercentage(), /*round=*/ true), in handlePreferenceTreeClick()
194 mBatteryDiffEntry.getPercentage(), /* round */ true); in updateBatteryWithDiffEntry()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DOxygenSaturationRecordHelper.java63 contentValues.put(PERCENTAGE_COLUMN_NAME, oxygenSaturationRecord.getPercentage()); in populateSpecificContentValues()
DBodyFatRecordHelper.java59 contentValues.put(PERCENTAGE_COLUMN_NAME, bodyFatRecord.getPercentage()); in populateSpecificContentValues()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceControllerTest.java151 when(mBatteryDiffEntry.getPercentage()).thenReturn(60.0); in updateBatteryWithDiffEntry_withConsumePower_summaryPercent()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DOxygenSaturationRecordTest.java203 assertThat(newRecord.getPercentage()).isEqualTo(testRecord.getPercentage()); in testReadOxygenSaturationRecordUsingFilters_dataFilter_correct()
DBodyFatRecordTest.java179 assertThat(newRecord.getPercentage()).isEqualTo(testRecord.getPercentage()); in testReadBodyFatRecordUsingFilters_dataFilter_correct()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreApiTest.java150 assertThat(bodyFats).contains(bodyFatRecordRead.getPercentage().getValue()); in testMergeStagedData_withEmptyHealthDb_mergesAllData()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt490 method @NonNull public android.health.connect.datatypes.units.Percentage getPercentage();
1371 method @NonNull public android.health.connect.datatypes.units.Percentage getPercentage();