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
b6b80413
Commit
b6b80413
authored
1 year ago
by
Maciej Żenczykowski
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "ethernet: rename IpClient callback handler functions" into main
parents
a92d8cab
d865e6d8
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
service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java
+9
-9
9 additions, 9 deletions
...c/com/android/server/ethernet/EthernetNetworkFactory.java
with
9 additions
and
9 deletions
service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java
+
9
−
9
View file @
b6b80413
...
...
@@ -328,24 +328,24 @@ public class EthernetNetworkFactory {
@Override
public
void
onProvisioningSuccess
(
LinkProperties
newLp
)
{
safelyPostOnHandler
(()
->
onIpLayerStarted
(
newLp
));
safelyPostOnHandler
(()
->
handleOnProvisioningSuccess
(
newLp
));
}
@Override
public
void
onProvisioningFailure
(
LinkProperties
newLp
)
{
// This cannot happen due to provisioning timeout, because our timeout is 0. It can
// happen due to errors while provisioning or on provisioning loss.
safelyPostOnHandler
(()
->
onIpLayerStopped
());
safelyPostOnHandler
(()
->
handleOnProvisioningFailure
());
}
@Override
public
void
onLinkPropertiesChange
(
LinkProperties
newLp
)
{
safelyPostOnHandler
(()
->
update
LinkProperties
(
newLp
));
safelyPostOnHandler
(()
->
handleOn
LinkProperties
Change
(
newLp
));
}
@Override
public
void
onReachabilityLost
(
String
logMsg
)
{
safelyPostOnHandler
(()
->
updateNeighborLostEven
t
(
logMsg
));
safelyPostOnHandler
(()
->
handleOnReachabilityLos
t
(
logMsg
));
}
@Override
...
...
@@ -499,7 +499,7 @@ public class EthernetNetworkFactory {
mIpClient
.
startProvisioning
(
createProvisioningConfiguration
(
mIpConfig
));
}
void
onIpLayerStarted
(
@NonNull
final
LinkProperties
linkProperties
)
{
private
void
handleOnProvisioningSuccess
(
@NonNull
final
LinkProperties
linkProperties
)
{
if
(
mNetworkAgent
!=
null
)
{
Log
.
e
(
TAG
,
"Already have a NetworkAgent - aborting new request"
);
stop
();
...
...
@@ -533,7 +533,7 @@ public class EthernetNetworkFactory {
mNetworkAgent
.
markConnected
();
}
void
onIpLayerStopped
()
{
private
void
handleOnProvisioningFailure
()
{
// There is no point in continuing if the interface is gone as stop() will be triggered
// by removeInterface() when processed on the handler thread and start() won't
// work for a non-existent interface.
...
...
@@ -553,15 +553,15 @@ public class EthernetNetworkFactory {
}
}
void
update
LinkProperties
(
LinkProperties
linkProperties
)
{
private
void
handleOn
LinkProperties
Change
(
LinkProperties
linkProperties
)
{
mLinkProperties
=
linkProperties
;
if
(
mNetworkAgent
!=
null
)
{
mNetworkAgent
.
sendLinkPropertiesImpl
(
linkProperties
);
}
}
void
updateNeighborLostEven
t
(
String
logMsg
)
{
Log
.
i
(
TAG
,
"
updateNeighborLostEven
t "
+
logMsg
);
private
void
handleOnReachabilityLos
t
(
String
logMsg
)
{
Log
.
i
(
TAG
,
"
handleOnReachabilityLos
t "
+
logMsg
);
if
(
mIpConfig
.
getIpAssignment
()
==
IpAssignment
.
STATIC
)
{
// Ignore NUD failures for static IP configurations, where restarting the IpClient
// will not fix connectivity.
...
...
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