Merge "Update BatterySettingsFeatureProvider interface" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fcd80ade3b
@@ -16,12 +16,14 @@
|
||||
|
||||
package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
/** Feature provider for battery settings usage. */
|
||||
public interface BatterySettingsFeatureProvider {
|
||||
|
||||
/** Returns true if manufacture date should be shown */
|
||||
boolean isManufactureDateAvailable(long manufactureDateMs);
|
||||
boolean isManufactureDateAvailable(Context context, long manufactureDateMs);
|
||||
|
||||
/** Returns true if first use date should be shown */
|
||||
boolean isFirstUseDateAvailable(long firstUseDateMs);
|
||||
boolean isFirstUseDateAvailable(Context context, long firstUseDateMs);
|
||||
}
|
||||
|
||||
@@ -16,16 +16,18 @@
|
||||
|
||||
package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
/** Feature provider implementation for battery settings usage. */
|
||||
public class BatterySettingsFeatureProviderImpl implements BatterySettingsFeatureProvider {
|
||||
|
||||
@Override
|
||||
public boolean isManufactureDateAvailable(long manufactureDateMs) {
|
||||
public boolean isManufactureDateAvailable(Context context, long manufactureDateMs) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFirstUseDateAvailable(long firstUseDateMs) {
|
||||
public boolean isFirstUseDateAvailable(Context context, long firstUseDateMs) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user