/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
D | EllipseOverlapDetector.kt | 87 val percentage: Float = coveredPixels.toFloat() / sensorPixels in isGoodOverlap() constant 92 "percentage: $percentage, isCenterTouched: $isTargetTouched" in isGoodOverlap() 96 return percentage >= params.minOverlap && isTargetTouched in isGoodOverlap()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/ |
D | WirelessChargingLayout.java | 89 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/ui/viewmodel/ |
D | BrightnessSliderViewModel.kt | 79 val percentage = (coercedValue - min) * 100 / (max - min) in formatValue() constant 81 return "$percentage%" in formatValue()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiObject.java | 930 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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | Utils.java | 195 public static String formatPercentage(double percentage, boolean round) { in formatPercentage() argument 196 final int localPercentage = round ? Math.round((float) percentage) : (int) percentage; in formatPercentage() 206 public static String formatPercentage(int percentage) { in formatPercentage() argument 207 return formatPercentage(((double) percentage) / 100.0); in formatPercentage() 211 public static String formatPercentage(double percentage) { in formatPercentage() argument 212 return NumberFormat.getPercentInstance().format(percentage); in formatPercentage()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 1517 void NuPlayer::GenericSource::notifyBufferingUpdate(int32_t percentage) { in notifyBufferingUpdate() argument 1522 if (percentage < mPrevBufferPercentage) { in notifyBufferingUpdate() 1523 percentage = mPrevBufferPercentage; in notifyBufferingUpdate() 1524 } else if (percentage > 100) { in notifyBufferingUpdate() 1525 percentage = 100; in notifyBufferingUpdate() 1528 mPrevBufferPercentage = percentage; in notifyBufferingUpdate() 1530 ALOGV("notifyBufferingUpdate: buffering %d%%", percentage); in notifyBufferingUpdate() 1534 notify->setInt32("percentage", percentage); in notifyBufferingUpdate() 1591 int percentage = 100.0 * cachedPosUs / mDurationUs; in onPollBuffering() local 1592 if (percentage > 100) { in onPollBuffering() [all …]
|
D | HTTPLiveSource.cpp | 415 int32_t percentage; in onSessionNotify() local 416 CHECK(msg->findInt32("percentage", &percentage)); in onSessionNotify() 418 notify->setInt32("percentage", percentage); in onSessionNotify()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppBatteryTracker.java | 1052 BatteryUsage setPercentage(@NonNull double[] percentage) { in setPercentage() argument 1053 mPercentage = percentage; in setPercentage() 1134 static String formatBatteryUsagePercentage(double[] percentage) { in formatBatteryUsagePercentage() argument 1136 percentage[BATTERY_USAGE_INDEX_UNSPECIFIED], in formatBatteryUsagePercentage() 1137 percentage[BATTERY_USAGE_INDEX_FOREGROUND], in formatBatteryUsagePercentage() 1138 percentage[BATTERY_USAGE_INDEX_BACKGROUND], in formatBatteryUsagePercentage() 1139 percentage[BATTERY_USAGE_INDEX_FOREGROUND_SERVICE], in formatBatteryUsagePercentage() 1140 percentage[BATTERY_USAGE_INDEX_CACHED]); in formatBatteryUsagePercentage() 1201 BatteryUsage setPercentage(@NonNull double[] percentage) { in setPercentage() argument 1824 double[] calcPercentage(final int uid, final double[] usage, double[] percentage) { in calcPercentage() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
D | MediaOutputBaseAdapter.java | 329 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()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 132 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], true); in testFormatPercentage_RoundTrue_RoundUpIfPossible() local 133 assertThat(percentage).isEqualTo(expectedPercentages[i]); in testFormatPercentage_RoundTrue_RoundUpIfPossible() 152 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], false); in testFormatPercentage_RoundFalse_NoRound() local 153 assertThat(percentage).isEqualTo(expectedPercentages[i]); in testFormatPercentage_RoundFalse_NoRound()
|
/frameworks/av/media/module/bufferpool/1.0/ |
D | AccessorImpl.cpp | 247 int percentage(T base, S total) { in percentage() function 258 mStats.mBuffersInUse, percentage(mStats.mBuffersInUse, mStats.mBuffersCached), in ~BufferPool() 259 mStats.mTotalAllocations, percentage(mStats.mTotalRecycles, mStats.mTotalAllocations), in ~BufferPool() 261 percentage(mStats.mTotalTransfers - mStats.mTotalFetches, mStats.mTotalTransfers)); in ~BufferPool()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationController.java | 1090 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() local 1092 R.string.keyguard_plugged_in_charging_limited, percentage); in computePowerIndication() 1094 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() local 1096 R.string.keyguard_plugged_in_incompatible_charger, percentage); in computePowerIndication() 1139 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerChargingStringIndication() local 1144 percentage); in computePowerChargingStringIndication() 1146 return mContext.getResources().getString(chargingId, percentage); in computePowerChargingStringIndication()
|
/frameworks/base/cmds/bootanimation/ |
D | FORMAT.md | 29 * **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
|
/frameworks/av/media/libstagefright/httplive/ |
D | LiveSession.cpp | 2270 void LiveSession::notifyBufferingUpdate(int32_t percentage) { in notifyBufferingUpdate() argument 2271 if (percentage < mPrevBufferPercentage) { in notifyBufferingUpdate() 2272 percentage = mPrevBufferPercentage; in notifyBufferingUpdate() 2273 } else if (percentage > 100) { in notifyBufferingUpdate() 2274 percentage = 100; in notifyBufferingUpdate() 2277 mPrevBufferPercentage = percentage; in notifyBufferingUpdate() 2279 ALOGV("notifyBufferingUpdate: percentage=%d%%", percentage); in notifyBufferingUpdate() 2283 notify->setInt32("percentage", percentage); in notifyBufferingUpdate()
|
D | LiveSession.h | 305 void notifyBufferingUpdate(int32_t percentage);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/ |
D | GenericSource.h | 226 void notifyBufferingUpdate(int32_t percentage);
|
/frameworks/av/media/module/bufferpool/2.0/ |
D | AccessorImpl.cpp | 333 int percentage(T base, S total) { in percentage() function 346 mStats.mBuffersInUse, percentage(mStats.mBuffersInUse, mStats.mBuffersCached), in ~BufferPool() 347 mStats.mTotalAllocations, percentage(mStats.mTotalRecycles, mStats.mTotalAllocations), in ~BufferPool() 349 percentage(mStats.mTotalTransfers - mStats.mTotalFetches, mStats.mTotalTransfers)); in ~BufferPool()
|
/frameworks/hardware/interfaces/stats/1.0/ |
D | IStats.hal | 45 * @param physicalDropDetected A PhysicalDropDetected struct with percentage
|
/frameworks/base/core/proto/android/os/ |
D | cpuinfo.proto | 56 message CpuUsage { // unit is percentage %
|
D | batteryusagestats.proto | 116 // Sum of all discharge percentage point drops during the reported session.
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | AbUpdateInstaller.java | 270 public void onStatusUpdate(int statusCode, float percentage) { in onStatusUpdate() argument
|
/frameworks/base/core/proto/android/server/ |
D | powermanagerservice.proto | 87 // 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
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerNotificationWarnings.java | 302 final String percentage = NumberFormat.getPercentInstance() in showWarningNotification() local 306 R.string.battery_low_description, percentage); in showWarningNotification()
|
/frameworks/layoutlib/bridge/src/android/net/ |
D | ConnectivityManager.java | 623 public void reportInetCondition(int networkType, int percentage) {} in reportInetCondition() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 895 String percentage = NumberFormat.getPercentInstance().format(90 / 100f); in onRefreshBatteryInfo_dozing_dischargingWithLongLife_presentBatteryPercentage() local 896 assertThat(mTextView.getText()).isEqualTo(percentage); in onRefreshBatteryInfo_dozing_dischargingWithLongLife_presentBatteryPercentage()
|