Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
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()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
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()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
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()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp1512 void NuPlayer::GenericSource::notifyBufferingUpdate(int32_t percentage) { in notifyBufferingUpdate() argument
1517 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()
[all …]
DHTTPLiveSource.cpp416 int32_t percentage; in onSessionNotify() local
417 CHECK(msg->findInt32("percentage", &percentage)); in onSessionNotify()
419 notify->setInt32("percentage", percentage); in onSessionNotify()
DGenericSource.h227 void notifyBufferingUpdate(int32_t percentage);
DNuPlayer.cpp2624 int32_t percentage; in onSourceNotify() local
2625 CHECK(msg->findInt32("percentage", &percentage)); in onSourceNotify()
2627 notifyListener(MEDIA_BUFFERING_UPDATE, percentage, 0); in onSourceNotify()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java660 String percentage = NumberFormat.getPercentInstance() in updateIndication() local
662 mTopIndicationView.switchIndication(percentage, null); in updateIndication()
731 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() local
734 return mContext.getResources().getString(chargingId, percentage); in computePowerIndication()
766 percentage); in computePowerIndication()
768 return mContext.getResources().getString(chargingId, percentage); in computePowerIndication()
/frameworks/av/media/bufferpool/1.0/
DAccessorImpl.cpp247 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/cmds/bootanimation/
DFORMAT.md30 * **PROGRESS:** whether to show a progress percentage on the last part
31 + The percentage will be displayed with an x-coordinate of 'c', and a
85 The file used to draw the boot progress in percentage on top of the boot animation. The font format
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java257 final String percentage = NumberFormat.getPercentInstance() in showWarningNotification() local
266 contentText = getHybridContentString(percentage); in showWarningNotification()
268 contentText = mContext.getString(R.string.battery_low_percent_format, percentage); in showWarningNotification()
330 private String getHybridContentString(String percentage) { in getHybridContentString() argument
334 percentage, in getHybridContentString()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp2270 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()
DLiveSession.h305 void notifyBufferingUpdate(int32_t percentage);
/frameworks/base/core/proto/android/os/
Dbatteryusagestats.proto79 // Sum of all discharge percentage point drops during the reported session.
Dcpuinfo.proto56 message CpuUsage { // unit is percentage %
Dbatterystats.proto112 // Discharged battery percentage points since the stats were last reset
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.cpp317 int percentage(T base, S total) { in percentage() function
330 mStats.mBuffersInUse, percentage(mStats.mBuffersInUse, mStats.mBuffersCached), in ~BufferPool()
331 mStats.mTotalAllocations, percentage(mStats.mTotalRecycles, mStats.mTotalAllocations), in ~BufferPool()
333 percentage(mStats.mTotalTransfers - mStats.mTotalFetches, mStats.mTotalTransfers)); in ~BufferPool()
/frameworks/hardware/interfaces/stats/1.0/
DIStats.hal45 * @param physicalDropDetected A PhysicalDropDetected struct with percentage
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DAbUpdateInstaller.java270 public void onStatusUpdate(int statusCode, float percentage) { in onStatusUpdate() argument
/frameworks/base/core/proto/android/server/
Dpowermanagerservice.proto87 // The current battery level percentage.
89 // The battery level percentage at the time the dream started.
275 // If the battery level drops by this percentage and the user activity
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java666 String percentage = NumberFormat.getPercentInstance().format(90 / 100f); in onRefreshBatteryInfo_dozing_dischargingWithOverheat_presentBatteryPercentage() local
667 assertThat(mTextView.getText()).isEqualTo(percentage); in onRefreshBatteryInfo_dozing_dischargingWithOverheat_presentBatteryPercentage()
/frameworks/layoutlib/bridge/src/android/net/
DConnectivityManager.java623 public void reportInetCondition(int networkType, int percentage) {} in reportInetCondition() argument
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessState.java1104 final double percentage = (double) totals.totalTime / (double) totalTime * 100; in dumpProcessSummaryDetails() local
1106 if (percentage >= 0.005 || totals.numPss != 0) { in dumpProcessSummaryDetails()
/frameworks/base/core/proto/android/providers/settings/
Dglobal.proto354 // {@link #DYNAMIC_POWER_SAVINGS_ENABLED}. Value is a percentage indicating
559 // Whether automatic battery saver mode is controlled via percentage,

12