Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base
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
Dhina17
platform_frameworks_base
Commits
4d5ada28
Commit
4d5ada28
authored
5 years ago
by
Neil Fuller
Committed by
android-build-merger
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Tidy up changes for TimeZoneDetectorStrategy"
am:
c5725ad0
Change-Id: I96d8e84c8f0c6d378b8f25027eb2429e9a377652
parents
c3711cf7
c5725ad0
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/core/java/com/android/server/timezonedetector/TimeZoneDetectorStrategy.java
+8
-8
8 additions, 8 deletions
...oid/server/timezonedetector/TimeZoneDetectorStrategy.java
with
8 additions
and
8 deletions
services/core/java/com/android/server/timezonedetector/TimeZoneDetectorStrategy.java
+
8
−
8
View file @
4d5ada28
...
...
@@ -385,7 +385,7 @@ public class TimeZoneDetectorStrategy {
}
private
static
boolean
isOriginAutomatic
(
@Origin
int
origin
)
{
return
origin
=
=
ORIGIN_
PHONE
;
return
origin
!
=
ORIGIN_
MANUAL
;
}
@GuardedBy
(
"this"
)
...
...
@@ -456,15 +456,17 @@ public class TimeZoneDetectorStrategy {
* Dumps internal state such as field values.
*/
public
synchronized
void
dumpState
(
PrintWriter
pw
,
String
[]
args
)
{
pw
.
println
(
"TimeZoneDetectorStrategy:"
);
pw
.
println
(
"mCallback.isTimeZoneDetectionEnabled()="
IndentingPrintWriter
ipw
=
new
IndentingPrintWriter
(
pw
,
" "
);
ipw
.
println
(
"TimeZoneDetectorStrategy:"
);
ipw
.
increaseIndent
();
// level 1
ipw
.
println
(
"mCallback.isTimeZoneDetectionEnabled()="
+
mCallback
.
isAutoTimeZoneDetectionEnabled
());
pw
.
println
(
"mCallback.isDeviceTimeZoneInitialized()="
i
pw
.
println
(
"mCallback.isDeviceTimeZoneInitialized()="
+
mCallback
.
isDeviceTimeZoneInitialized
());
pw
.
println
(
"mCallback.getDeviceTimeZone()="
i
pw
.
println
(
"mCallback.getDeviceTimeZone()="
+
mCallback
.
getDeviceTimeZone
());
IndentingPrintWriter
ipw
=
new
IndentingPrintWriter
(
pw
,
" "
);
ipw
.
println
(
"Time zone change log:"
);
ipw
.
increaseIndent
();
// level 2
mTimeZoneChangesLog
.
dump
(
ipw
);
...
...
@@ -485,8 +487,6 @@ public class TimeZoneDetectorStrategy {
ipw
.
decreaseIndent
();
// level 2
ipw
.
decreaseIndent
();
// level 1
ipw
.
flush
();
pw
.
flush
();
}
/**
...
...
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