Implements additional battery info menu behavior.

This is a manual cherry-pick of commit
6a43a06cac.

Bug: 33352540
Test: Updated existing tests.
Change-Id: I990029d2ea9032301362d614959259965b8ecb10
This commit is contained in:
Jaewoong Jung
2016-12-19 18:39:41 -08:00
parent bd775165d4
commit 8a49de31ab
2 changed files with 15 additions and 0 deletions

View File

@@ -16,10 +16,20 @@
package com.android.settings.fuelgauge;
import android.content.Intent;
/**
* Feature Provider used in power usage
*/
public interface PowerUsageFeatureProvider {
/**
* Check whether additional battery info feature is enabled.
*/
boolean isAdditionalBatteryInfoEnabled();
/**
* Gets an {@link Intent} to show additional battery info.
*/
Intent getAdditionalBatteryInfoIntent();
}