Home
last modified time | relevance | path

Searched refs:BatteryMeterView (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DBatteryMeterViewTest.kt27 import com.android.systemui.battery.BatteryMeterView.BatteryEstimateFetcher
40 private lateinit var mBatteryMeterView: BatteryMeterView
45 mBatteryMeterView = BatteryMeterView(mContext, null) in setUp()
50 mBatteryMeterView.setPercentShowMode(BatteryMeterView.MODE_ESTIMATE) in updatePercentText_estimateModeAndNotCharging_estimateFetched()
60 mBatteryMeterView.setPercentShowMode(BatteryMeterView.MODE_ESTIMATE) in updatePercentText_noBatteryEstimateFetcher_noCrash()
78 mBatteryMeterView.setPercentShowMode(BatteryMeterView.MODE_ESTIMATE) in contentDescription_estimate()
94 mBatteryMeterView.setPercentShowMode(BatteryMeterView.MODE_ESTIMATE) in contentDescription_estimateAndBatteryDefender()
150 mBatteryMeterView.setPercentShowMode(BatteryMeterView.MODE_ESTIMATE) in changesFromEstimateToPercent_textAndContentDescriptionChanges_flagOff()
162 mBatteryMeterView.setPercentShowMode(BatteryMeterView.MODE_ON) in changesFromEstimateToPercent_textAndContentDescriptionChanges_flagOff()
174 mBatteryMeterView.setPercentShowMode(BatteryMeterView.MODE_ESTIMATE) in changesFromEstimateToPercent_textAndContentDescriptionChanges_flagOn()
[all …]
DBatteryMeterViewControllerTest.java53 private BatteryMeterView mBatteryMeterView;
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DQsBatteryModeController.kt6 import com.android.systemui.battery.BatteryMeterView
43 @BatteryMeterView.BatteryPercentMode
46 qsExpandedFraction > fadeInStartFraction -> BatteryMeterView.MODE_ESTIMATE in getBatteryMode()
49 BatteryMeterView.MODE_ON in getBatteryMode()
51 BatteryMeterView.MODE_ESTIMATE in getBatteryMode()
DShadeViewProviderModule.kt27 import com.android.systemui.battery.BatteryMeterView in <lambda>()
235 fun providesBatteryMeterView(@Named(SHADE_HEADER) view: MotionLayout): BatteryMeterView { in <lambda>()
243 @Named(SHADE_HEADER) batteryMeterView: BatteryMeterView, in <lambda>()
DShadeHeaderController.kt43 import com.android.systemui.battery.BatteryMeterView in <lambda>()
135 private val batteryIcon: BatteryMeterView = header.requireViewById(R.id.batteryRemainingIcon) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DQsBatteryModeControllerTest.kt11 import com.android.systemui.battery.BatteryMeterView
61 .isEqualTo(BatteryMeterView.MODE_ON) in returnsMODE_ONforQqsWithCenterCutout()
67 .isEqualTo(BatteryMeterView.MODE_ESTIMATE) in returnsMODE_ESTIMATEforQsWithCenterCutout()
77 .isEqualTo(BatteryMeterView.MODE_ESTIMATE) in returnsMODE_ONforQqsWithCornerCutout()
85 .isEqualTo(BatteryMeterView.MODE_ESTIMATE) in returnsMODE_ESTIMATEforQsWithCornerCutout()
DShadeHeaderControllerTest.kt41 import com.android.systemui.battery.BatteryMeterView in <lambda>()
107 @Mock private lateinit var batteryMeterView: BatteryMeterView in <lambda>()
152 whenever<BatteryMeterView>(view.requireViewById(R.id.batteryRemainingIcon)) in <lambda>()
394 .thenReturn(BatteryMeterView.MODE_ON) in <lambda>()
396 .thenReturn(BatteryMeterView.MODE_ESTIMATE) in <lambda>()
402 verify(batteryMeterView).setPercentShowMode(BatteryMeterView.MODE_ON) in <lambda>()
403 verify(batteryMeterView).setPercentShowMode(BatteryMeterView.MODE_ESTIMATE) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/dagger/
DKeyguardStatusBarViewModule.java20 import com.android.systemui.battery.BatteryMeterView;
41 static BatteryMeterView getBatteryMeterView(KeyguardStatusBarView view) { in getBatteryMeterView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBatteryStatusChip.kt26 import com.android.systemui.battery.BatteryMeterView
35 private val batteryMeterView: BatteryMeterView
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/fragment/dagger/
DStatusBarFragmentModule.java22 import com.android.systemui.battery.BatteryMeterView;
54 static BatteryMeterView provideBatteryMeterView(@RootView PhoneStatusBarView view) { in provideBatteryMeterView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterViewController.java51 public class BatteryMeterViewController extends ViewController<BatteryMeterView> {
136 BatteryMeterView view, in BatteryMeterViewController()
278 (BatteryMeterView) view, in create()
DBatteryMeterView.java67 public class BatteryMeterView extends LinearLayout implements DarkReceiver { class
108 public BatteryMeterView(Context context, AttributeSet attrs) { in BatteryMeterView() method in BatteryMeterView
112 public BatteryMeterView(Context context, AttributeSet attrs, int defStyle) { in BatteryMeterView() method in BatteryMeterView
118 TypedArray atts = context.obtainStyledAttributes(attrs, R.styleable.BatteryMeterView, in BatteryMeterView()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DShadeHeader.kt70 import com.android.systemui.battery.BatteryMeterView in <lambda>()
406 val batteryIcon = BatteryMeterView(context, null) in BatteryIcon()
407 batteryIcon.setPercentShowMode(BatteryMeterView.MODE_ON) in BatteryIcon()
435 BatteryMeterView.MODE_ESTIMATE in BatteryIcon()
437 BatteryMeterView.MODE_ON in BatteryIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java48 import com.android.systemui.battery.BatteryMeterView;
81 private BatteryMeterView mBatteryView;