Home
last modified time | relevance | path

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

1234

/aosp12/system/update_engine/update_manager/
H A Dstaging_utils.cc47 if (staging_schedule.back().percentage != 100) { in GetStagingSchedule()
49 << staging_schedule.back().percentage; in GetStagingSchedule()
66 int percentage = staging_pair.percentage; in GetStagingSchedule() local
67 if (previous_percentage >= percentage) { in GetStagingSchedule()
70 << " Current value: " << percentage; in GetStagingSchedule()
73 previous_percentage = percentage; in GetStagingSchedule()
88 if (percentage_position <= staging_pair.percentage) { in CalculateWaitTimeInDaysFromSchedule()
/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
H A DBatterySaverScheduleSeekBarController.java72 final int percentage = ((Integer) newValue) * 5; in onPreferenceChange() local
74 percentage); in onPreferenceChange() local
75 final CharSequence stateDescription = formatStateDescription(percentage); in onPreferenceChange()
119 private CharSequence formatStateDescription(int percentage) { in formatStateDescription() argument
121 Utils.formatPercentage(percentage)); in formatStateDescription()
/aosp12/system/extras/simpleperf/scripts/
H A Dreport.py52 def __init__(self, percentage, function_name): argument
53 self.percentage = percentage
69 strs.append('CallTreeNode percentage = %.2f' % self.percentage)
172 percentage = float(m.group(1))
175 percentage = 100.0
178 node = CallTreeNode(percentage, function_name)
253 if node.percentage != 100.0:
254 percentage_str = '%.2f%% ' % node.percentage
/aosp12/system/extras/simpleperf/
H A Dcmd_trace_sched.cpp332 double percentage = 0; in ReportProcessInfo() member
343 entry.percentage = 0.0; in ReportProcessInfo()
345 entry.percentage = 100.0 * process.total_runtime_in_ns / total_runtime_in_ns; in ReportProcessInfo()
348 if (entry.percentage < 0.01) { in ReportProcessInfo()
359 entry.percentage = 0.0; in ReportProcessInfo()
361 entry.percentage = 100.0 * thread->total_runtime_in_ns / total_runtime_in_ns; in ReportProcessInfo()
364 if (entry.percentage < 0.01) { in ReportProcessInfo()
382 return StringPrintf("%.2f%%", entry->percentage); in ReportProcessInfo()
398 double percentage = 100.0 * thread->spin_info.max_rate; in ReportProcessInfo() local
409 duration_in_ns / 1e6, percentage); in ReportProcessInfo()
H A DSampleDisplayer.h36 double percentage = (total_period != 0) ? 100.0 * period / total_period : 0.0; in DisplayAccumulatedOverhead() local
37 return android::base::StringPrintf("%.2f%%", percentage); in DisplayAccumulatedOverhead()
49 double percentage = (total_period != 0) ? 100.0 * period / total_period : 0.0; in DisplaySelfOverhead() local
50 return android::base::StringPrintf("%.2f%%", percentage); in DisplaySelfOverhead()
142 double percentage = 100.0 * (node->period + node->children_period) / parent_period; in DisplayCallGraphEntry() local
143 if (percentage < percent_limit_) { in DisplayCallGraphEntry()
146 percentage_s = android::base::StringPrintf("--%.2f%%-- ", percentage); in DisplayCallGraphEntry()
H A Dcmd_kmem.cpp663 double percentage = 0.0; in PrintSlabReportContext() local
665 percentage = 100.0 * fragment / slab_sample_tree_.total_allocated_bytes; in PrintSlabReportContext()
667 fprintf(fp, "Total fragment: %" PRIu64 ", %f%%\n", fragment, percentage); in PrintSlabReportContext()
670 percentage = 0.0; in PrintSlabReportContext()
672 percentage = in PrintSlabReportContext()
676 slab_sample_tree_.nr_cross_cpu_allocations, percentage); in PrintSlabReportContext()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
H A DWirelessChargingLayout.java85 final TextView percentage = findViewById(R.id.wireless_charging_percentage); in init() local
88 percentage.setText(NumberFormat.getPercentInstance().format(batteryLevel / 100f)); in init()
89 percentage.setAlpha(0); in init()
103 ValueAnimator textSizeAnimator = ObjectAnimator.ofFloat(percentage, "textSize", in init()
110 ValueAnimator textOpacityAnimator = ObjectAnimator.ofFloat(percentage, "alpha", 0, 1); in init()
118 ValueAnimator textFadeAnimator = ObjectAnimator.ofFloat(percentage, "alpha", 1, 0); in init()
/aosp12/system/update_engine/aosp/
H A Dcleanup_previous_update_action.cc351 double percentage = 0.0; in OnMergePercentageUpdate() local
352 snapshot_->GetUpdateState(&percentage); in OnMergePercentageUpdate()
355 delegate_->OnCleanupProgressUpdate(percentage / 100); in OnMergePercentageUpdate()
359 if (last_percentage_ < static_cast<unsigned int>(percentage)) { in OnMergePercentageUpdate()
360 last_percentage_ = percentage; in OnMergePercentageUpdate()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DUtils.java161 public static String formatPercentage(double percentage, boolean round) { in formatPercentage() argument
162 final int localPercentage = round ? Math.round((float) percentage) : (int) percentage; in formatPercentage()
172 public static String formatPercentage(int percentage) { in formatPercentage() argument
173 return formatPercentage(((double) percentage) / 100.0); in formatPercentage()
177 public static String formatPercentage(double percentage) { in formatPercentage() argument
178 return NumberFormat.getPercentInstance().format(percentage); in formatPercentage()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DDebugSettingsFragment.java163 private float getValueFromPercentage(final int percentage) { in setupKeyPreviewAnimationScale()
164 return percentage / PERCENTAGE_FLOAT; in setupKeyPreviewAnimationScale()
251 private float getValueFromPercentage(final int percentage) { in setupKeyboardHeight()
252 return percentage / PERCENTAGE_FLOAT; in setupKeyboardHeight()
/aosp12/packages/services/Car/cpp/watchdog/server/src/
H A DIoPerfCollection.cpp77 double percentage(uint64_t numer, uint64_t denom) { in percentage() function
234 percentage(ioStats.bytes[i], totalIoStats[metricsType][i]), ioStats.fsync[i], in toString()
235 percentage(ioStats.fsync[i], totalIoStats[FSYNC_COUNT][i])); in toString()
246 percentage(procStats.count, totalCount)); in toString()
249 processCount.count, percentage(processCount.count, procStats.count)); in toString()
297 percentage(cpuIoWaitTime, totalCpuTime)); in toString()
299 ioBlockedProcessCount, percentage(ioBlockedProcessCount, totalProcessCount)); in toString()
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/
H A DFastScroller.java120 float percentage = ((newDragPos - thumbCenter) / (float) scrollbarLength); in calculateScrollDistance() local
123 return (int) (percentage * totalPossibleOffset); in calculateScrollDistance()
/aosp12/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()
/aosp12/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
H A DCircledImageView.java398 public void setImageCirclePercentage(float percentage) { in setImageCirclePercentage() argument
399 float clamped = Math.max(0, Math.min(1, percentage)); in setImageCirclePercentage()
406 public void setImageHorizontalOffcenterPercentage(float percentage) { in setImageHorizontalOffcenterPercentage() argument
407 if (percentage != mImageHorizontalOffcenterPercentage) { in setImageHorizontalOffcenterPercentage()
408 mImageHorizontalOffcenterPercentage = percentage; in setImageHorizontalOffcenterPercentage()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
H A DFastScroller.java124 float percentage = ((newDragPos - thumbCenter) / (float) scrollbarLength); in calculateScrollDistance() local
127 return (int) (percentage * totalPossibleOffset); in calculateScrollDistance()
/aosp12/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp1517 if (percentage < mPrevBufferPercentage) { in notifyBufferingUpdate()
1518 percentage = mPrevBufferPercentage; in notifyBufferingUpdate()
1519 } else if (percentage > 100) { in notifyBufferingUpdate()
1520 percentage = 100; in notifyBufferingUpdate()
1523 mPrevBufferPercentage = percentage; in notifyBufferingUpdate()
1525 ALOGV("notifyBufferingUpdate: buffering %d%%", percentage); in notifyBufferingUpdate()
1529 notify->setInt32("percentage", percentage); in notifyBufferingUpdate()
1586 int percentage = 100.0 * cachedPosUs / mDurationUs; in onPollBuffering() local
1587 if (percentage > 100) { in onPollBuffering()
1588 percentage = 100; in onPollBuffering()
[all …]
H A DHTTPLiveSource.cpp416 int32_t percentage; in onSessionNotify() local
417 CHECK(msg->findInt32("percentage", &percentage)); in onSessionNotify()
419 notify->setInt32("percentage", percentage); in onSessionNotify()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
H A DTopLevelStoragePreferenceControllerTest.java88 final String percentage = NumberFormat.getPercentInstance().format(1); in updateSummary_shouldDisplayUsedPercentAndFreeSpace() local
106 mContext, "storage_summary", percentage, freeSpace)); in updateSummary_shouldDisplayUsedPercentAndFreeSpace()
/aosp12/system/memory/lmkd/
H A DREADME.md67 ro.lmk.swap_free_low_percentage: level of free swap as a percentage of the
72 ro.lmk.thrashing_limit: number of workingset refaults as a percentage of
79 percentage of the original threshold used to lower
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DUtilsTest.java105 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], true); in testFormatPercentage_RoundTrue_RoundUpIfPossible() local
106 assertThat(percentage).isEqualTo(expectedPercentages[i]); in testFormatPercentage_RoundTrue_RoundUpIfPossible()
117 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], false); in testFormatPercentage_RoundFalse_NoRound() local
118 assertThat(percentage).isEqualTo(expectedPercentages[i]); in testFormatPercentage_RoundFalse_NoRound()
/aosp12/system/update_engine/stable/android/os/
H A DIUpdateEngineStableCallback.aidl30 void onStatusUpdate(int status_code, float percentage); in onStatusUpdate() argument
/aosp12/system/update_engine/binder_bindings/android/os/
H A DIUpdateEngineCallback.aidl23 void onStatusUpdate(int status_code, float percentage); in onStatusUpdate() argument
/aosp12/system/update_engine/stable/aidl_api/libupdate_engine_stable/1/android/os/
H A DIUpdateEngineStableCallback.aidl36 oneway void onStatusUpdate(int status_code, float percentage); in onStatusUpdate() argument
/aosp12/system/update_engine/stable/aidl_api/libupdate_engine_stable/current/android/os/
H A DIUpdateEngineStableCallback.aidl20 oneway void onStatusUpdate(int status_code, float percentage); in onStatusUpdate() argument
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardIndicationController.java725 String percentage = NumberFormat.getPercentInstance() in updateIndication() local
727 mTopIndicationView.switchIndication(percentage, null /* indication */, in updateIndication()
798 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() local
799 return mContext.getResources().getString(chargingId, percentage); in computePowerIndication()
833 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() local
838 percentage); in computePowerIndication()
840 return mContext.getResources().getString(chargingId, percentage); in computePowerIndication()

1234