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
7e3b5f57
Commit
7e3b5f57
authored
11 months ago
by
Yan Yan
Committed by
Gerrit Code Review
11 months ago
Browse files
Options
Downloads
Plain Diff
Merge "Dump IkeSession in VcnGatewayConnection#dump" into main
parents
978ed252
535b2783
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
services/core/java/com/android/server/vcn/Vcn.java
+4
-0
4 additions, 0 deletions
services/core/java/com/android/server/vcn/Vcn.java
services/core/java/com/android/server/vcn/VcnGatewayConnection.java
+22
-0
22 additions, 0 deletions
...ore/java/com/android/server/vcn/VcnGatewayConnection.java
with
26 additions
and
0 deletions
services/core/java/com/android/server/vcn/Vcn.java
+
4
−
0
View file @
7e3b5f57
...
...
@@ -626,8 +626,12 @@ public class Vcn extends Handler {
* Dumps the state of this Vcn for logging and debugging purposes.
*
* <p>PII and credentials MUST NEVER be dumped here.
*
* <p>This method is not thread safe and MUST run on the VCN thread.
*/
public
void
dump
(
IndentingPrintWriter
pw
)
{
mVcnContext
.
ensureRunningOnLooperThread
();
pw
.
println
(
"Vcn ("
+
mSubscriptionGroup
+
"):"
);
pw
.
increaseIndent
();
...
...
This diff is collapsed.
Click to expand it.
services/core/java/com/android/server/vcn/VcnGatewayConnection.java
+
22
−
0
View file @
7e3b5f57
...
...
@@ -2580,8 +2580,12 @@ public class VcnGatewayConnection extends StateMachine {
* Dumps the state of this VcnGatewayConnection for logging and debugging purposes.
*
* <p>PII and credentials MUST NEVER be dumped here.
*
* <p>This method is not thread safe and MUST run on the VCN thread.
*/
public
void
dump
(
IndentingPrintWriter
pw
)
{
mVcnContext
.
ensureRunningOnLooperThread
();
pw
.
println
(
"VcnGatewayConnection ("
+
mConnectionConfig
.
getGatewayConnectionName
()
+
"):"
);
pw
.
increaseIndent
();
...
...
@@ -2602,6 +2606,19 @@ public class VcnGatewayConnection extends StateMachine {
mUnderlyingNetworkController
.
dump
(
pw
);
pw
.
println
();
if
(
mIkeSession
==
null
)
{
pw
.
println
(
"mIkeSession: null"
);
}
else
{
pw
.
println
(
"mIkeSession:"
);
// Add a try catch block in case IkeSession#dump is not thread-safe
try
{
mIkeSession
.
dump
(
pw
);
}
catch
(
Exception
e
)
{
Slog
.
wtf
(
TAG
,
"Failed to dump IkeSession: "
+
e
);
}
}
pw
.
decreaseIndent
();
}
...
...
@@ -2905,6 +2922,11 @@ public class VcnGatewayConnection extends StateMachine {
public
void
setNetwork
(
@NonNull
Network
network
)
{
mImpl
.
setNetwork
(
network
);
}
/** Dumps the state of the IkeSession */
public
void
dump
(
@NonNull
IndentingPrintWriter
pw
)
{
mImpl
.
dump
(
pw
);
}
}
/** Proxy Implementation of WakeLock, used for testing. */
...
...
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