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
50ad9135
Commit
50ad9135
authored
1 year ago
by
Maciej Żenczykowski
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "BpfMap.java - add requires S+ annotation" into main
parents
77f9fb30
6f776f5a
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
staticlibs/device/com/android/net/module/util/BpfBitmap.java
+3
-0
3 additions, 0 deletions
staticlibs/device/com/android/net/module/util/BpfBitmap.java
staticlibs/device/com/android/net/module/util/BpfMap.java
+3
-0
3 additions, 0 deletions
staticlibs/device/com/android/net/module/util/BpfMap.java
with
6 additions
and
0 deletions
staticlibs/device/com/android/net/module/util/BpfBitmap.java
+
3
−
0
View file @
50ad9135
...
...
@@ -16,9 +16,11 @@
package
com.android.net.module.util
;
import
android.os.Build
;
import
android.system.ErrnoException
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.RequiresApi
;
/**
*
...
...
@@ -26,6 +28,7 @@ import androidx.annotation.NonNull;
* array type with key->int and value->uint64_t defined in the bpf program.
*
*/
@RequiresApi
(
Build
.
VERSION_CODES
.
S
)
public
class
BpfBitmap
{
private
BpfMap
<
Struct
.
S32
,
Struct
.
S64
>
mBpfMap
;
...
...
This diff is collapsed.
Click to expand it.
staticlibs/device/com/android/net/module/util/BpfMap.java
+
3
−
0
View file @
50ad9135
...
...
@@ -18,12 +18,14 @@ package com.android.net.module.util;
import
static
android
.
system
.
OsConstants
.
EEXIST
;
import
static
android
.
system
.
OsConstants
.
ENOENT
;
import
android.os.Build
;
import
android.os.ParcelFileDescriptor
;
import
android.system.ErrnoException
;
import
android.util.Pair
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.RequiresApi
;
import
java.io.IOException
;
import
java.nio.ByteBuffer
;
...
...
@@ -40,6 +42,7 @@ import java.util.concurrent.ConcurrentHashMap;
* @param <K> the key of the map.
* @param <V> the value of the map.
*/
@RequiresApi
(
Build
.
VERSION_CODES
.
S
)
public
class
BpfMap
<
K
extends
Struct
,
V
extends
Struct
>
implements
IBpfMap
<
K
,
V
>
{
static
{
System
.
loadLibrary
(
JniUtil
.
getJniLibraryName
(
BpfMap
.
class
.
getPackage
()));
...
...
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