Skip to content
Snippets Groups Projects
Commit c1d7c4d6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unused method" into sc-dev

parents 6096c421 0b80f843
No related branches found
No related tags found
No related merge requests found
......@@ -29,21 +29,11 @@ public final class UidBatteryConsumer extends BatteryConsumer implements Parcela
private final int mUid;
@Nullable
private final String mPackageWithHighestDrain;
private boolean mSystemComponent;
public int getUid() {
return mUid;
}
/**
* Returns true if this battery consumer is considered to be a part of the operating
* system itself. For example, the UidBatteryConsumer with the UID {@link Process#BLUETOOTH_UID}
* is a system component.
*/
public boolean isSystemComponent() {
return mSystemComponent;
}
@Nullable
public String getPackageWithHighestDrain() {
return mPackageWithHighestDrain;
......@@ -52,7 +42,6 @@ public final class UidBatteryConsumer extends BatteryConsumer implements Parcela
private UidBatteryConsumer(@NonNull Builder builder) {
super(builder.mPowerComponentsBuilder.build());
mUid = builder.mUid;
mSystemComponent = builder.mSystemComponent;
mPackageWithHighestDrain = builder.mPackageWithHighestDrain;
}
......@@ -95,7 +84,6 @@ public final class UidBatteryConsumer extends BatteryConsumer implements Parcela
private final BatteryStats.Uid mBatteryStatsUid;
private final int mUid;
private String mPackageWithHighestDrain;
private boolean mSystemComponent;
private boolean mExcludeFromBatteryUsageStats;
public Builder(int customPowerComponentCount, int customTimeComponentCount,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment