Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_modules_Connectivity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
LMODroid
platform_packages_modules_Connectivity
Commits
79e3b593
Commit
79e3b593
authored
1 year ago
by
Kangping Dong
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "[Thread] start / initialize Thread service early" into main
parents
96aa4824
56354a96
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
thread/service/java/com/android/server/thread/ThreadNetworkService.java
+6
-3
6 additions, 3 deletions
.../java/com/android/server/thread/ThreadNetworkService.java
with
6 additions
and
3 deletions
thread/service/java/com/android/server/thread/ThreadNetworkService.java
+
6
−
3
View file @
79e3b593
...
...
@@ -48,17 +48,20 @@ public class ThreadNetworkService extends IThreadNetworkManager.Stub {
}
/**
* Called by
the service i
nitializer.
* Called by
{@link com.android.server.ConnectivityServiceI
nitializer
}
.
*
* @see com.android.server.SystemService#onBootPhase
*/
public
void
onBootPhase
(
int
phase
)
{
if
(
phase
==
SystemService
.
PHASE_
BOOT_COMPLETED
)
{
if
(
phase
==
SystemService
.
PHASE_
SYSTEM_SERVICES_READY
)
{
mControllerService
=
ThreadNetworkControllerService
.
newInstance
(
mContext
);
mControllerService
.
initialize
();
}
else
if
(
phase
==
SystemService
.
PHASE_BOOT_COMPLETED
)
{
// Country code initialization is delayed to the BOOT_COMPLETED phase because it will
// call into Wi-Fi and Telephony service whose country code module is ready after
// PHASE_ACTIVITY_MANAGER_READY and PHASE_THIRD_PARTY_APPS_CAN_START
mCountryCode
=
ThreadNetworkCountryCode
.
newInstance
(
mContext
,
mControllerService
);
mCountryCode
.
initialize
();
mShellCommand
=
new
ThreadNetworkShellCommand
(
mCountryCode
);
}
}
...
...
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