Home
last modified time | relevance | path

Searched refs:U8 (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructRtMsg.java42 @Field(order = 0, type = Type.U8)
44 @Field(order = 1, type = Type.U8)
46 @Field(order = 2, type = Type.U8)
48 @Field(order = 3, type = Type.U8)
50 @Field(order = 4, type = Type.U8)
52 @Field(order = 5, type = Type.U8)
54 @Field(order = 6, type = Type.U8)
56 @Field(order = 7, type = Type.U8)
DStructPrefixMsg.java50 @Field(order = 0, type = Type.U8, padding = 3)
54 @Field(order = 2, type = Type.U8)
56 @Field(order = 3, type = Type.U8)
58 @Field(order = 4, type = Type.U8, padding = 1)
DStructIfaddrMsg.java41 @Field(order = 0, type = Type.U8)
43 @Field(order = 1, type = Type.U8)
45 @Field(order = 2, type = Type.U8)
47 @Field(order = 3, type = Type.U8)
DStructIfinfoMsg.java41 @Field(order = 0, type = Type.U8, padding = 1)
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DStructTest.java96 @Field(order = 0, type = Type.U8, padding = 1)
102 @Field(order = 3, type = Type.U8)
104 @Field(order = 4, type = Type.U8, padding = 6)
140 @Field(order = 0, type = Type.U8, padding = 1)
146 @Field(order = 3, type = Type.U8)
148 @Field(order = 4, type = Type.U8, padding = 6)
168 @Field(order = 0, type = Type.U8, padding = 1)
174 @Field(order = 3, type = Type.U8)
176 @Field(order = 4, type = Type.U8, padding = 6)
187 @Field(order = 0, type = Type.U8, padding = 1)
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DNetworkStackBpfNetMaps.java35 import com.android.net.module.util.Struct.U8;
57 private final IBpfMap<S32, U8> mDataSaverEnabledMap;
115 public IBpfMap<S32, U8> getDataSaverEnabledMap() { in getDataSaverEnabledMap()
118 U8.class); in getDataSaverEnabledMap()
DBpfNetMapsUtils.java83 import com.android.net.module.util.Struct.U8;
262 IBpfMap<S32, U8> dataSaverEnabledMap in getUidNetworkingBlockedReasons()
330 IBpfMap<S32, U8> dataSaverEnabledMap in isUidNetworkingBlocked()
365 public static boolean getDataSaverEnabled(IBpfMap<S32, U8> dataSaverEnabledMap) { in getDataSaverEnabled()
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java79 import com.android.net.module.util.Struct.U8;
128 private static IBpfMap<S32, U8> sUidPermissionMap = null;
131 private static IBpfMap<S32, U8> sDataSaverEnabledMap = null;
159 public static void setUidPermissionMapForTest(IBpfMap<S32, U8> uidPermissionMap) { in setUidPermissionMapForTest()
176 public static void setDataSaverEnabledMapForTest(IBpfMap<S32, U8> dataSaverEnabledMap) { in setDataSaverEnabledMapForTest()
210 private static IBpfMap<S32, U8> getUidPermissionMap() { in getUidPermissionMap()
213 UID_PERMISSION_MAP_PATH, S32.class, U8.class); in getUidPermissionMap()
231 private static IBpfMap<S32, U8> getDataSaverEnabledMap() { in getDataSaverEnabledMap()
234 DATA_SAVER_ENABLED_MAP_PATH, S32.class, U8.class); in getDataSaverEnabledMap()
289 sDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(DATA_SAVER_DISABLED)); in initBpfMaps()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStackBpfNetMapsTest.kt34 import com.android.net.module.util.Struct.U8
62 private val testDataSaverEnabledMap: IBpfMap<S32, U8> = TestBpfMap()
70 private val dataSaverEnabledMap: IBpfMap<S32, U8>
134 testDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, U8(dataSaverValue)) in mockDataSaverEnabled()
275 testDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, U8(DATA_SAVER_DISABLED)) in testGetDataSaverEnabled()
277 testDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, U8(DATA_SAVER_ENABLED)) in testGetDataSaverEnabled()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DStructXfrmSelector.java73 @Field(order = 7, type = Type.U8, padding = 1)
76 @Field(order = 8, type = Type.U8, padding = 1)
79 @Field(order = 9, type = Type.U8, padding = 1)
DStructXfrmUsersaInfo.java88 @Field(order = 4, type = Type.U8)
91 @Field(order = 5, type = Type.U8)
94 @Field(order = 6, type = Type.U8, padding = 7)
DStructXfrmId.java49 @Field(order = 2, type = Type.U8, padding = 3)
DStructXfrmUsersaId.java55 @Field(order = 3, type = Type.U8, padding = 1)
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DStruct.java108 U8, // unsigned byte, size = 1 byte enumConstant
172 case U8: in checkAnnotationType()
221 case U8: in getFieldLength()
360 case U8: in getFieldValue()
460 case U8: in putFieldValue()
752 public static class U8 extends Struct { class in Struct
753 @Struct.Field(order = 0, type = Struct.Type.U8)
756 public U8(final short val) { in U8() method in Struct.U8
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/
DIcmpv6Header.java33 @Field(order = 0, type = Type.U8)
35 @Field(order = 1, type = Type.U8)
DIcmpv4Header.java32 @Field(order = 0, type = Type.U8)
34 @Field(order = 1, type = Type.U8)
DStructMif6ctl.java28 @Field(order = 1, type = Type.U8)
30 @Field(order = 2, type = Type.U8)
DFragmentHeader.java35 @Field(order = 0, type = Type.U8)
DIpv6Header.java59 @Field(order = 3, type = Type.U8)
DRouteInformationOption.java64 @Field(order = 2, type = Type.U8)
DIpv4Header.java62 @Field(order = 5, type = Type.U8)
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java103 import com.android.net.module.util.Struct.U8;
166 private final IBpfMap<S32, U8> mUidPermissionMap = new TestBpfMap<>(S32.class, U8.class);
169 private final IBpfMap<S32, U8> mDataSaverEnabledMap = new TestBpfMap<>(S32.class, U8.class);
187 mDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(DATA_SAVER_DISABLED)); in setUp()
858 mUidPermissionMap.updateEntry(new S32(TEST_UID), new U8((short) PERMISSION_NONE)); in testGetNetPermFoUid()
862 new U8((short) (PERMISSION_INTERNET | PERMISSION_UPDATE_DEVICE_STATS))); in testGetNetPermFoUid()
903 mUidPermissionMap.updateEntry(new S32(0), new U8((short) 0)); in testPullBpfMapInfo()
904 mUidPermissionMap.updateEntry(new S32(1), new U8((short) 0)); in testPullBpfMapInfo()
905 mUidPermissionMap.updateEntry(new S32(2), new U8((short) 0)); in testPullBpfMapInfo()
941 mUidPermissionMap.updateEntry(new S32(TEST_UID), new U8((short) permission)); in doTestDumpUidPermissionMap()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDscpPolicyValue.java52 @Field(order = 6, type = Type.U8)
58 @Field(order = 8, type = Type.U8, padding = 3)
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DClatEgress4Value.java36 @Field(order = 3, type = Type.U8, padding = 3)
DTether4Key.java39 @Field(order = 2, type = Type.U8, padding = 1)

12