/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/io/ |
D | TypedStreamsTest.java | 41 TypedOutputStream tos = new TypedOutputStream(baos); in writeReadOk() local 43 tos.writeChar(Character.MIN_VALUE); in writeReadOk() 44 tos.writeChar(1234); in writeReadOk() 45 tos.writeChar(Character.MAX_VALUE); in writeReadOk() 47 tos.writeUnsignedByte(0); in writeReadOk() 48 tos.writeUnsignedByte(123); in writeReadOk() 49 tos.writeUnsignedByte(255); in writeReadOk() 51 tos.writeInt(0x77777777); in writeReadOk() 53 tos.writeByte(Byte.MIN_VALUE); in writeReadOk() 54 tos.writeByte(123); in writeReadOk() [all …]
|
/packages/modules/GeoTZ/tzs2storage/src/write/java/com/android/timezone/location/storage/tzs2range/write/ |
D | HeaderBlockWriter.java | 71 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 …]
|
D | SuffixTableSharedDataWriter.java | 37 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()
|
D | SuffixTableWriter.java | 202 try (TypedOutputStream tos = new TypedOutputStream(baos)) { 203 tos.writeInt(suffixTableBlockInfo.getEntryCount());
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | KeepalivePacketDataUtilTest.java | 70 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() 181 final int tos = 4; in testParseTcpKeepalivePacketData() local 192 testParcel.tos = tos; in testParseTcpKeepalivePacketData()
|
/packages/modules/Connectivity/bpf_progs/ |
D | dscpPolicy.c | 38 #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()
|
D | clatd.c | 167 .tos = (ip6->priority << 4) + (ip6->flow_lbl[0] >> 4), // u8 in nat64() 377 .priority = ip4->tos >> 4, // __u8:4 378 .flow_lbl = {(ip4->tos & 0xF) << 4, 0, 0}, // __u8[3]
|
/packages/services/Telephony/utils/satellite/s2storage/src/write/java/com/android/telephony/sats2range/write/ |
D | HeaderBlockWriter.java | 58 try (TypedOutputStream tos = new TypedOutputStream(new FileOutputStream(mFile))) { in close() argument 59 tos.writeUnsignedByte(mFileFormat.getS2Level()); in close() 60 tos.writeUnsignedByte(mFileFormat.getPrefixBitCount()); in close() 61 tos.writeUnsignedByte(mFileFormat.getSuffixBitCount()); in close() 62 tos.writeUnsignedByte(mFileFormat.getTableEntryBitCount()); in close() 63 tos.writeUnsignedByte(mFileFormat.getSuffixTableBlockIdOffset()); in close() 64 tos.writeUnsignedByte(mFileFormat.isAllowedList() in close()
|
D | SuffixTableSharedDataWriter.java | 37 TypedOutputStream tos = new TypedOutputStream(baos)) { in toBytes() 38 tos.writeInt(suffixTableSharedData.getTablePrefix()); in toBytes() 39 tos.flush(); in toBytes()
|
D | SuffixTableWriter.java | 195 try (TypedOutputStream tos = new TypedOutputStream(baos)) { 196 tos.writeInt(suffixTableBlockInfo.getEntryCount());
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/ |
D | Ipv4Header.java | 54 public final byte tos; field in Ipv4Header 73 public Ipv4Header(final byte tos, final int totalLength, final short id, in Ipv4Header() argument 76 this(IPHDR_VERSION_IHL, tos, totalLength, id, flagsAndFragmentOffset, ttl, in Ipv4Header() 80 private Ipv4Header(final byte vi, final byte tos, final int totalLength, final short id, in Ipv4Header() argument 84 this.tos = tos; in Ipv4Header()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | StructRtMsg.java | 49 public final short tos; // TOS filter. field in StructRtMsg 62 public StructRtMsg(short family, short dstLen, short srcLen, short tos, short table, in StructRtMsg() argument 67 this.tos = tos; in StructRtMsg()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DSUTermsOfServiceActivity.java | 48 String tos = intent.getStringExtra(KEY_TOS); in onCreate() local 49 if (TextUtils.isEmpty(tos)) { in onCreate() 52 tv.setText(tos); in onCreate()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/ |
D | ImsMediaSocket.cpp | 410 int32_t tos = 0; in SetSocketOpt() local 415 tos = convertDscpToTos(nOptionValue); in SetSocketOpt() 418 if (-1 == setsockopt(mSocketFd, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))) in SetSocketOpt() 426 if (-1 == setsockopt(mSocketFd, IPPROTO_IPV6, IPV6_TCLASS, &tos, sizeof(tos))) in SetSocketOpt() 433 IMLOGD1("[SetSocketOpt] IP_QOS[%d]", tos); in SetSocketOpt()
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/ |
D | VoicemailTosMessageCreator.java | 488 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/ |
D | KeepalivePacketDataUtil.java | 79 parcel.tos = pkt.getIpTos(); in toStableParcelable() 144 p.tos = ipTos; in parseTcpKeepalivePacketData()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocket.java | 126 final int tos = sockConfig.getDscp() << 2; in applySocketConfig() local 127 Os.setsockoptInt(sock, IPPROTO_IP, IP_TOS, tos); in applySocketConfig()
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/ |
D | TcpKeepalivePacketDataParcelable.aidl | 28 int tos;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/ |
D | TcpKeepalivePacketDataParcelable.aidl | 28 int tos;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/ |
D | TcpKeepalivePacketDataParcelable.aidl | 11 int tos;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/ |
D | TcpKeepalivePacketDataParcelable.aidl | 28 int tos;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/ |
D | TcpKeepalivePacketDataParcelable.aidl | 28 int tos;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/ |
D | TcpKeepalivePacketDataParcelable.aidl | 28 int tos;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/ |
D | TcpKeepalivePacketDataParcelable.aidl | 11 int tos;
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/ |
D | TcpKeepalivePacketDataParcelable.aidl | 11 int tos;
|