Home
last modified time | relevance | path

Searched refs:percentage (Results 1 – 24 of 24) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
H A DEllipseOverlapDetector.kt87 val percentage: Float = coveredPixels.toFloat() / sensorPixels
92 "percentage: $percentage, isCenterTouched: $isTargetTouched"
96 return percentage >= params.minOverlap && isTargetTouched
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
H A DWirelessChargingLayout.java89 final TextView percentage = findViewById(R.id.wireless_charging_percentage); in init() local
92 percentage.setText(NumberFormat.getPercentInstance().format(batteryLevel / 100f)); in init()
93 percentage.setAlpha(0); in init()
107 ValueAnimator textSizeAnimator = ObjectAnimator.ofFloat(percentage, "textSize", in init()
114 ValueAnimator textOpacityAnimator = ObjectAnimator.ofFloat(percentage, "alpha", 0, 1); in init()
122 ValueAnimator textFadeAnimator = ObjectAnimator.ofFloat(percentage, "alpha", 1, 0); in init()
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
H A Dsnapuserd_server.cpp272 double percentage = GetMergePercentage(&lock); in Receivemsg() local
274 return Sendmsg(fd, std::to_string(percentage)); in Receivemsg()
595 double percentage = 0.0; in GetMergePercentage() local
603 percentage += (*iter)->snapuserd()->GetMergePercentage(); in GetMergePercentage()
614 percentage = ((num_partitions_merge_complete_ * 100.0) + percentage) / total_partitions; in GetMergePercentage()
617 LOG(DEBUG) << "Merge %: " << percentage in GetMergePercentage()
620 return percentage; in GetMergePercentage()
H A Dsnapuserd_test.cpp655 double percentage = client_->GetMergePercent(); in CheckMergeCompletion() local
656 if ((int)percentage == 100) { in CheckMergeCompletion()
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java930 float percentage = percent / 100f; in pinchOut() local
946 Point endPoint1 = new Point(rect.centerX() - (int)((rect.width()/2) * percentage), in pinchOut()
948 Point endPoint2 = new Point(rect.centerX() + (int)((rect.width()/2) * percentage), in pinchOut()
968 float percentage = percent / 100f; in pinchIn() local
979 Point startPoint1 = new Point(rect.centerX() - (int)((rect.width()/2) * percentage), in pinchIn()
981 Point startPoint2 = new Point(rect.centerX() + (int)((rect.width()/2) * percentage), in pinchIn()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DUtils.java185 public static String formatPercentage(double percentage, boolean round) { in formatPercentage() argument
186 final int localPercentage = round ? Math.round((float) percentage) : (int) percentage; in formatPercentage()
196 public static String formatPercentage(int percentage) { in formatPercentage() argument
197 return formatPercentage(((double) percentage) / 100.0); in formatPercentage()
201 public static String formatPercentage(double percentage) { in formatPercentage() argument
202 return NumberFormat.getPercentInstance().format(percentage); in formatPercentage()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DAppBatteryTracker.java1013 BatteryUsage setPercentage(@NonNull double[] percentage) { in setPercentage() argument
1014 mPercentage = percentage; in setPercentage()
1095 static String formatBatteryUsagePercentage(double[] percentage) { in formatBatteryUsagePercentage() argument
1097 percentage[BATTERY_USAGE_INDEX_UNSPECIFIED], in formatBatteryUsagePercentage()
1098 percentage[BATTERY_USAGE_INDEX_FOREGROUND], in formatBatteryUsagePercentage()
1099 percentage[BATTERY_USAGE_INDEX_BACKGROUND], in formatBatteryUsagePercentage()
1100 percentage[BATTERY_USAGE_INDEX_FOREGROUND_SERVICE], in formatBatteryUsagePercentage()
1101 percentage[BATTERY_USAGE_INDEX_CACHED]); in formatBatteryUsagePercentage()
1162 BatteryUsage setPercentage(@NonNull double[] percentage) { in setPercentage() argument
1791 return percentage; in calcPercentage()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DUtilsTest.java125 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], true); in testFormatPercentage_RoundTrue_RoundUpIfPossible() local
126 assertThat(percentage).isEqualTo(expectedPercentages[i]); in testFormatPercentage_RoundTrue_RoundUpIfPossible()
137 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], false); in testFormatPercentage_RoundFalse_NoRound() local
138 assertThat(percentage).isEqualTo(expectedPercentages[i]); in testFormatPercentage_RoundFalse_NoRound()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
H A DMediaOutputBaseAdapter.java329 int percentage = in initSeekbar() local
332 if (percentage == 0) { in initSeekbar()
361 int percentage = in initSeekbar()
365 R.string.media_output_dialog_volume_percentage, percentage)); in initSeekbar()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardIndicationController.java964 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() local
965 return mContext.getResources().getString(chargingId, percentage); in computePowerIndication()
968 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() local
969 return mContext.getResources().getString(chargingId, percentage); in computePowerIndication()
1007 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() local
1012 percentage); in computePowerIndication()
1014 return mContext.getResources().getString(chargingId, percentage); in computePowerIndication()
/aosp14/frameworks/base/cmds/bootanimation/
H A DFORMAT.md29 * **PROGRESS:** whether to show a progress percentage on the last part
30 + The percentage will be displayed with an x-coordinate of 'c', and a
87 The file used to draw the boot progress in percentage on top of the boot animation. The font format
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerNotificationWarnings.java296 final String percentage = NumberFormat.getPercentInstance() in showWarningNotification() local
300 R.string.battery_low_description, percentage); in showWarningNotification()
379 private String getHybridContentString(String percentage) { in getHybridContentString() argument
383 percentage, in getHybridContentString()
/aosp14/frameworks/base/core/proto/android/os/
H A Dcpuinfo.proto56 message CpuUsage { // unit is percentage %
H A Dbatteryusagestats.proto100 // Sum of all discharge percentage point drops during the reported session.
H A Dbatterystats.proto112 // Discharged battery percentage points since the stats were last reset
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DAbUpdateInstaller.java270 public void onStatusUpdate(int statusCode, float percentage) { in onStatusUpdate() argument
/aosp14/system/core/fs_mgr/
H A Dfs_mgr_fstab.cpp79 off64_t CalculateZramSize(int percentage) { in CalculateZramSize() argument
83 total *= percentage; in CalculateZramSize()
/aosp14/frameworks/base/core/proto/android/server/
H A Dpowermanagerservice.proto87 // The current battery level percentage.
89 // The battery level percentage at the time the dream started.
282 // If the battery level drops by this percentage and the user activity
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DKeyguardIndicationControllerTest.java883 String percentage = NumberFormat.getPercentInstance().format(90 / 100f); in onRefreshBatteryInfo_dozing_dischargingWithLongLife_presentBatteryPercentage() local
884 assertThat(mTextView.getText()).isEqualTo(percentage); in onRefreshBatteryInfo_dozing_dischargingWithLongLife_presentBatteryPercentage()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/
H A DAgent.java598 void reclaimUnusedAssetsLocked(double percentage, long minUnusedTimeMs, in reclaimUnusedAssetsLocked() argument
624 long toReclaim = (long) (curBalance * percentage); in reclaimUnusedAssetsLocked()
/aosp14/frameworks/base/core/java/com/android/internal/app/procstats/
H A DProcessState.java1141 final double percentage = (double) totals.totalTime / (double) totalTime * 100; in dumpProcessSummaryDetails() local
1143 if (percentage >= 0.005 || totals.numPss != 0) { in dumpProcessSummaryDetails()
/aosp14/frameworks/base/core/proto/android/providers/settings/
H A Dglobal.proto357 // {@link #DYNAMIC_POWER_SAVINGS_ENABLED}. Value is a percentage indicating
562 // Whether automatic battery saver mode is controlled via percentage,
/aosp14/frameworks/base/proto/src/metrics_constants/
H A Dmetrics_constants.proto1500 // ACTION: Settings > System UI Tuner > Show embedded battery percentage
4517 // FIELD - The battery percentage when the user decided to plug in
4524 // FIELD - The battery percentage when the user decided to plug in
6068 // FIELD: Confidence in detection of drop, in integer percentage.
/aosp14/system/core/init/
H A DREADME.md298 bytes and `limit_percent` which is interpreted as a percentage of the size