Home
last modified time | relevance | path

Searched refs:tos (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/io/
DTypedStreamsTest.java42 TypedOutputStream tos = new TypedOutputStream(baos); in writeReadOk() local
44 tos.writeChar(Character.MIN_VALUE); in writeReadOk()
45 tos.writeChar(1234); in writeReadOk()
46 tos.writeChar(Character.MAX_VALUE); in writeReadOk()
48 tos.writeUnsignedByte(0); in writeReadOk()
49 tos.writeUnsignedByte(123); in writeReadOk()
50 tos.writeUnsignedByte(255); in writeReadOk()
52 tos.writeInt(0x77777777); in writeReadOk()
54 tos.writeByte(Byte.MIN_VALUE); in writeReadOk()
55 tos.writeByte(123); in writeReadOk()
[all …]
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/tzs2range/write/
DHeaderBlockWriter.java71 try (TypedOutputStream tos = new TypedOutputStream(new FileOutputStream(mFile))) { in close() argument
72 tos.writeUnsignedByte(mFileFormat.getS2Level()); in close()
73 tos.writeUnsignedByte(mFileFormat.getPrefixBitCount()); in close()
74 tos.writeUnsignedByte(mFileFormat.getSuffixBitCount()); in close()
75 tos.writeUnsignedByte(mFileFormat.getTableEntryBitCount()); in close()
76 tos.writeUnsignedByte(mFileFormat.getTableEntryRangeLengthBitCount()); in close()
77 tos.writeUnsignedByte(mFileFormat.getSuffixTableBlockIdOffset()); in close()
82 tos.writeChar(strings.size()); in close()
85 tos.writeTinyByteArray(bytes); in close()
90 tos.writeUnsignedByte(bankCount); in close()
[all …]
DSuffixTableSharedDataWriter.java37 TypedOutputStream tos = new TypedOutputStream(baos)) { in toBytes()
38 tos.writeInt(suffixTableSharedData.getTablePrefix()); in toBytes()
39 tos.writeInt(suffixTableSharedData.getTzIdSetBank()); in toBytes()
40 tos.flush(); in toBytes()
DSuffixTableWriter.java202 try (TypedOutputStream tos = new TypedOutputStream(baos)) {
203 tos.writeInt(suffixTableBlockInfo.getEntryCount());
/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java70 final int tos = 4; in testFromTcpKeepaliveStableParcelable() local
82 testInfo.tos = tos; in testFromTcpKeepaliveStableParcelable()
98 assertEquals(testInfo.tos, resultData.ipTos); in testFromTcpKeepaliveStableParcelable()
107 assertEquals(packet[1], tos); in testFromTcpKeepaliveStableParcelable()
144 final int tos = 4; in testToTcpKeepaliveStableParcelable() local
155 testInfo.tos = tos; in testToTcpKeepaliveStableParcelable()
169 assertEquals(resultData.tos, tos); in testToTcpKeepaliveStableParcelable()
187 final int tos = 4; in testParseTcpKeepalivePacketData() local
198 testParcel.tos = tos; in testParseTcpKeepalivePacketData()
/packages/modules/Connectivity/bpf_progs/
DdscpPolicy.c38 #define UPDATE_TOS(dscp, tos) ((dscp) << 2) | ((tos) & ECN_MASK) argument
65 uint8_t tos = 0; // Only used for IPv4 in DEFINE_BPF_MAP_GRW() local
87 tos = iph->tos; in DEFINE_BPF_MAP_GRW()
133 uint8_t newTos = UPDATE_TOS(existing_rule->dscp_val, tos); in DEFINE_BPF_MAP_GRW()
134 bpf_l3_csum_replace(skb, IP4_OFFSET(check, l2_header_size), htons(tos), htons(newTos), in DEFINE_BPF_MAP_GRW()
136 bpf_skb_store_bytes(skb, IP4_OFFSET(tos, l2_header_size), &newTos, sizeof(newTos), 0); in DEFINE_BPF_MAP_GRW()
213 uint8_t new_tos = UPDATE_TOS(new_dscp, tos); in DEFINE_BPF_MAP_GRW()
214 bpf_l3_csum_replace(skb, IP4_OFFSET(check, l2_header_size), htons(tos), htons(new_tos), 2); in DEFINE_BPF_MAP_GRW()
215 bpf_skb_store_bytes(skb, IP4_OFFSET(tos, l2_header_size), &new_tos, sizeof(new_tos), 0); in DEFINE_BPF_MAP_GRW()
Dclatd.c164 .tos = (ip6->priority << 4) + (ip6->flow_lbl[0] >> 4), // u8 in nat64()
367 .priority = ip4->tos >> 4, // __u8:4
368 .flow_lbl = {(ip4->tos & 0xF) << 4, 0, 0}, // __u8[3]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/
DImsMediaSocket.cpp409 int32_t tos = 0; in SetSocketOpt() local
414 tos = convertDscpToTos(nOptionValue); in SetSocketOpt()
417 if (-1 == setsockopt(mSocketFd, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))) in SetSocketOpt()
425 if (-1 == setsockopt(mSocketFd, IPPROTO_IPV6, IPV6_TCLASS, &tos, sizeof(tos))) in SetSocketOpt()
432 IMLOGD1("[SetSocketOpt] IP_QOS[%d]", tos); in SetSocketOpt()
/packages/apps/Settings/src/com/android/settings/development/
DDSUTermsOfServiceActivity.java48 String tos = intent.getStringExtra(KEY_TOS); in onCreate() local
49 if (TextUtils.isEmpty(tos)) { in onCreate()
52 tv.setText(tos); in onCreate()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVoicemailTosMessageCreator.java488 CharSequence tos =
491 spannableTos = new SpannableString(tos);
504 CharSequence tos =
506 spannableTos = new SpannableString(tos);
510 tos.length(),
522 CharSequence tos =
524 spannableTos = new SpannableString(tos);
528 tos.length(),
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/
DKeepalivePacketDataUtil.java79 parcel.tos = pkt.getIpTos(); in toStableParcelable()
144 p.tos = ipTos; in parseTcpKeepalivePacketData()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSocket.java126 final int tos = sockConfig.getDscp() << 2; in applySocketConfig() local
127 Os.setsockoptInt(sock, IPPROTO_IP, IP_TOS, tos); in applySocketConfig()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java165 tcpDetails.tos, tcpDetails.ttl); in fromStableParcelable()
182 buf.put((byte) tcpDetails.tos); // TOS in buildV4Packet()
289 tcpDetails.tos = Os.getsockoptInt(fd, IPPROTO_IP, IP_TOS); in switchToRepairMode()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/
DTcpKeepalivePacketDataParcelable.aidl28 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/
DTcpKeepalivePacketDataParcelable.aidl28 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/
DTcpKeepalivePacketDataParcelable.aidl28 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/
DTcpKeepalivePacketDataParcelable.aidl11 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/
DTcpKeepalivePacketDataParcelable.aidl11 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/
DTcpKeepalivePacketDataParcelable.aidl11 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/
DTcpKeepalivePacketDataParcelable.aidl28 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/
DTcpKeepalivePacketDataParcelable.aidl28 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/12/android/net/
DTcpKeepalivePacketDataParcelable.aidl45 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/13/android/net/
DTcpKeepalivePacketDataParcelable.aidl45 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/
DTcpKeepalivePacketDataParcelable.aidl45 int tos;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/11/android/net/
DTcpKeepalivePacketDataParcelable.aidl45 int tos;

12