Search in sources :

Example 1 with PhoneStatusBarView

use of com.android.systemui.statusbar.phone.PhoneStatusBarView in project platform_frameworks_base by android.

the class CarStatusBar method makeStatusBarView.

@Override
protected PhoneStatusBarView makeStatusBarView() {
    PhoneStatusBarView statusBarView = super.makeStatusBarView();
    mBatteryMeterView = ((BatteryMeterView) statusBarView.findViewById(R.id.battery));
    // By default, the BatteryMeterView should not be visible. It will be toggled visible
    // when a device has connected by bluetooth.
    mBatteryMeterView.setVisibility(View.GONE);
    if (Log.isLoggable(TAG, Log.DEBUG)) {
        Log.d(TAG, "makeStatusBarView(). mBatteryMeterView: " + mBatteryMeterView);
    }
    return statusBarView;
}
Also used : BatteryMeterView(com.android.systemui.BatteryMeterView) PhoneStatusBarView(com.android.systemui.statusbar.phone.PhoneStatusBarView)

Example 2 with PhoneStatusBarView

use of com.android.systemui.statusbar.phone.PhoneStatusBarView in project android_frameworks_base by AOSPA.

the class CarStatusBar method makeStatusBarView.

@Override
protected PhoneStatusBarView makeStatusBarView() {
    PhoneStatusBarView statusBarView = super.makeStatusBarView();
    mBatteryMeterView = ((BatteryMeterView) statusBarView.findViewById(R.id.battery));
    // By default, the BatteryMeterView should not be visible. It will be toggled visible
    // when a device has connected by bluetooth.
    mBatteryMeterView.setVisibility(View.GONE);
    if (Log.isLoggable(TAG, Log.DEBUG)) {
        Log.d(TAG, "makeStatusBarView(). mBatteryMeterView: " + mBatteryMeterView);
    }
    return statusBarView;
}
Also used : BatteryMeterView(com.android.systemui.BatteryMeterView) PhoneStatusBarView(com.android.systemui.statusbar.phone.PhoneStatusBarView)

Aggregations

BatteryMeterView (com.android.systemui.BatteryMeterView)2 PhoneStatusBarView (com.android.systemui.statusbar.phone.PhoneStatusBarView)2