/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryDiffDataTest.java | 117 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()
|
D | BatteryDiffEntryTest.java | 126 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()
|
D | BatteryUsageBreakdownControllerTest.java | 290 assertThat(pref.getPercentage()).isEqualTo("< 1%"); in setPreferencePercent_lessThanThreshold_expectedFormat() 312 assertThat(pref.getPercentage()).isEqualTo("16%"); in setPreferencePercent_greaterThanThreshold_expectedFormat()
|
D | DataProcessorTest.java | 2539 assertThat(entry.getPercentage()).isEqualTo(consumePercentage); in assertBatteryDiffEntry()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | OxygenSaturationRecord.java | 64 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()
|
D | BodyFatRecord.java | 63 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/ |
D | BodyFatRecordInternal.java | 33 public double getPercentage() { in getPercentage() method in BodyFatRecordInternal 48 buildMetaData(), getTime(), Percentage.fromValue(getPercentage())) in toExternalRecord()
|
D | OxygenSaturationRecordInternal.java | 34 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/ |
D | BatteryUsageBreakdownController.java | 160 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()
|
D | BatteryDiffEntry.java | 193 public double getPercentage() { in getPercentage() method in BatteryDiffEntry 211 return getPercentage() + getAdjustPercentageOffset(); in getSortingKey() 222 return getPercentage() + getAdjustPercentageOffset(); in getSortingKey()
|
D | BatteryDiffData.java | 322 if (entry.getPercentage() < SMALL_PERCENTAGE_THRESHOLD) { in processAndSortEntries() 325 int roundPercentage = Math.round((float) entry.getPercentage()); in processAndSortEntries()
|
D | PowerGaugePreference.java | 107 public String getPercentage() { in getPercentage() method in PowerGaugePreference
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | BrightnessLevelPreferenceController.java | 183 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/ |
D | AppBatteryPreferenceController.java | 127 mBatteryDiffEntry.getPercentage(), /*round=*/ true), in handlePreferenceTreeClick() 194 mBatteryDiffEntry.getPercentage(), /* round */ true); in updateBatteryWithDiffEntry()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | OxygenSaturationRecordHelper.java | 63 contentValues.put(PERCENTAGE_COLUMN_NAME, oxygenSaturationRecord.getPercentage()); in populateSpecificContentValues()
|
D | BodyFatRecordHelper.java | 59 contentValues.put(PERCENTAGE_COLUMN_NAME, bodyFatRecord.getPercentage()); in populateSpecificContentValues()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppBatteryPreferenceControllerTest.java | 151 when(mBatteryDiffEntry.getPercentage()).thenReturn(60.0); in updateBatteryWithDiffEntry_withConsumePower_summaryPercent()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | OxygenSaturationRecordTest.java | 203 assertThat(newRecord.getPercentage()).isEqualTo(testRecord.getPercentage()); in testReadOxygenSaturationRecordUsingFilters_dataFilter_correct()
|
D | BodyFatRecordTest.java | 179 assertThat(newRecord.getPercentage()).isEqualTo(testRecord.getPercentage()); in testReadBodyFatRecordUsingFilters_dataFilter_correct()
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/ |
D | BackupRestoreApiTest.java | 150 assertThat(bodyFats).contains(bodyFatRecordRead.getPercentage().getValue()); in testMergeStagedData_withEmptyHealthDb_mergesAllData()
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 490 method @NonNull public android.health.connect.datatypes.units.Percentage getPercentage(); 1371 method @NonNull public android.health.connect.datatypes.units.Percentage getPercentage();
|