Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
c1d7c4d6
Commit
c1d7c4d6
authored
4 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove unused method" into sc-dev
parents
6096c421
0b80f843
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/java/android/os/UidBatteryConsumer.java
+0
-12
0 additions, 12 deletions
core/java/android/os/UidBatteryConsumer.java
with
0 additions
and
12 deletions
core/java/android/os/UidBatteryConsumer.java
+
0
−
12
View file @
c1d7c4d6
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment