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
71259210
Commit
71259210
authored
1 year ago
by
Treehugger Robot
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "Use NewOject to invoke constructor of NetworkStats.Entry" into main
parents
522197af
5dfe5553
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/jni/com_android_server_net_NetworkStatsService.cpp
+7
-1
7 additions, 1 deletion
service-t/jni/com_android_server_net_NetworkStatsService.cpp
with
7 additions
and
1 deletion
service-t/jni/com_android_server_net_NetworkStatsService.cpp
+
7
−
1
View file @
71259210
...
...
@@ -52,8 +52,14 @@ static jobject statsValueToEntry(JNIEnv* env, StatsValue* stats) {
return
nullptr
;
}
// Find the constructor.
jmethodID
constructorID
=
env
->
GetMethodID
(
gEntryClass
,
"<init>"
,
"()V"
);
if
(
constructorID
==
nullptr
)
{
return
nullptr
;
}
// Create a new instance of the Java class
jobject
result
=
env
->
Alloc
Object
(
gEntryClass
);
jobject
result
=
env
->
New
Object
(
gEntryClass
,
constructorID
);
if
(
result
==
nullptr
)
{
return
nullptr
;
}
...
...
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