Home
last modified time | relevance | path

Searched refs:version (Results 1 – 25 of 116) sorted by relevance

12345

/system/extras/tests/net_test/
Dmultinetwork_test.py77 def _GetIpLayer(version): argument
78 return {4: scapy.IP, 6: scapy.IPv6}[version]
90 def UDP(cls, version, srcaddr, dstaddr, sport=0): argument
91 ip = cls._GetIpLayer(version)
95 return ("UDPv%d packet" % version,
100 def UDPWithOptions(cls, version, srcaddr, dstaddr, sport=0): argument
101 if version == 4:
110 return ("UDPv%d packet with options" % version, packet)
113 def SYN(cls, dport, version, srcaddr, dstaddr, sport=0, seq=TCP_SEQ): argument
114 ip = cls._GetIpLayer(version)
[all …]
Dmultinetwork_base.py90 def MakePktInfo(version, addr, ifindex): argument
91 family = {4: AF_INET, 6: AF_INET6}[version]
93 addr = {4: "0.0.0.0", 6: "::"}[version]
96 if version == 6:
172 def _RouterAddress(netid, version): argument
173 if version == 6:
175 elif version == 4:
178 raise ValueError("Don't support IPv%s" % version)
189 def MyAddress(cls, version, netid): argument
191 6: cls._MyIPv6Address(netid)}[version]
[all …]
Diproute.py398 def _AddressFamily(self, version): argument
399 return {4: socket.AF_INET, 6: socket.AF_INET6}[version]
420 def _Rule(self, version, is_add, rule_type, table, match_nlattr, priority): argument
437 family = self._AddressFamily(version)
450 def DeleteRulesAtPriority(self, version, priority): argument
451 family = self._AddressFamily(version)
464 def FwmarkRule(self, version, is_add, fwmark, table, priority): argument
466 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
468 def OifRule(self, version, is_add, oif, table, priority): argument
470 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
[all …]
Dnet_test.py73 version = os.uname()[2].split("-")[0]
76 version = tuple(int(i) for i in version.split("."))
77 return version
215 def GetDefaultRoute(version=6): argument
216 if version == 6:
225 elif version == 4:
235 raise ValueError("Don't know about IPv%s" % version)
275 GetDefaultRoute(version=4)
281 GetDefaultRoute(version=6)
/system/extras/tests/crypto/
Dget_dm_versions.c16 io->version[0] = 4; in ioctl_init()
17 io->version[1] = 0; in ioctl_init()
18 io->version[2] = 0; in ioctl_init()
51 printf("%s: %d.%d.%d\n", v->name, v->version[0], v->version[1], v->version[2]); in main()
/system/core/libnativebridge/tests/
DDummyNativeBridge2.cpp48 extern "C" bool native_bridge2_is_compatible_compatible_with(uint32_t version) { in native_bridge2_is_compatible_compatible_with() argument
50 return version <= 2; in native_bridge2_is_compatible_compatible_with()
67 .version = 2,
DDummyNativeBridge.cpp47 .version = 1,
/system/core/libmincrypt/tools/
DDumpPublicKey.java51 int version; in checkRSA() local
54 version = useSHA256 ? 3 : 1; in checkRSA()
56 version = useSHA256 ? 4 : 2; in checkRSA()
67 return version; in checkRSA()
107 int version = check(key, useSHA256); in printRSA() local
115 if (version > 1) { in printRSA()
117 result.append(Integer.toString(version)); in printRSA()
172 int version = checkEC(key); in printEC() local
177 result.append(Integer.toString(version)); in printEC()
/system/core/libcutils/
Dnative_handle.c40 h->version = sizeof(native_handle_t); in native_handle_create()
50 if (h->version != sizeof(native_handle_t)) in native_handle_delete()
59 if (h->version != sizeof(native_handle_t)) in native_handle_close()
/system/extras/sane_schedstat/
Dsane_schedstat.c112 unsigned int version; in parse() local
115 if (sscanf(b, "version %u\n", &version) != 1) { in parse()
119 switch (version) { in parse()
135 printf("Can not handle version %u\n", version); in parse()
/system/gatekeeper/
Dgatekeeper.cpp41 if (pw_handle->version > HANDLE_VERSION) { in Enroll()
51 bool throttle = (pw_handle->version >= HANDLE_VERSION_THROTTLE); in Enroll()
113 if (password_handle->version > HANDLE_VERSION) { in Verify()
125 bool throttle = (password_handle->version >= HANDLE_VERSION_THROTTLE); in Verify()
175 password_handle->version = handle_version; in CreatePasswordHandle()
204 expected_handle->flags, expected_handle->version, in DoVerify()
223 token->version = HW_AUTH_TOKEN_VERSION; in MintAuthToken()
/system/core/toolbox/
Dsendevent.c15 int version; in sendevent_main() local
28 if (ioctl(fd, EVIOCGVERSION, &version)) { in sendevent_main()
/system/core/logd/tests/
Dlogd_test.cpp190 log_msg *msg, unsigned int version, int lid) { in dump_log_msg() argument
193 version = 1; in dump_log_msg()
197 if (version == 0) { in dump_log_msg()
198 version = 2; in dump_log_msg()
203 fprintf(stderr, "%s: v%u[%u] ", prefix, version, msg->len()); in dump_log_msg()
204 if (version != 1) { in dump_log_msg()
209 switch(version) { in dump_log_msg()
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
Dheader.h83 char * version; member
108 enum perf_header_version version; member
/system/core/fastboot/
Dfastboot_protocol.txt70 Host: "getvar:version" request version variable
72 Client: "OKAY0.4" return version "0.4"
109 "getvar:%s" Read a config/version variable from the bootloader.
154 version Version of FastBoot protocol supported.
157 version-bootloader Version string for the Bootloader.
159 version-baseband Version string of the Baseband Software
/system/extras/ext4_utils/
Dext4_crypt.cpp31 char version; member
107 eep.version = 0; in do_policy_set()
/system/bt/conf/
Dbt_did.conf22 version = 0x1436
/system/core/include/system/
Dradio.h137 char version[RADIO_STRING_LEN_MAX]; /* product version */ member
153 char version[RADIO_STRING_LEN_MAX]; member
/system/bt/main/
Dbte_conf.c79 record.version = config_get_int(config, section_name, "version", 0); in bte_load_did_conf()
95 LOG_DEBUG(" version = %04x", record.version); in bte_load_did_conf()
/system/core/include/cutils/
Dnative_handle.h26 int version; /* sizeof(native_handle_t) */ member
/system/bt/btif/include/
Dbtif_debug_btsnoop.h28 uint8_t version; member
/system/core/libnativebridge/
Dnative_bridge.cc147 if (cb == nullptr || cb->version == 0) { in VersionCheck()
152 if (cb->version >= 2) { in VersionCheck()
506 return callbacks->version; in NativeBridgeGetVersion()
512 if (NativeBridgeInitialized() && callbacks->version >= 2) { in NativeBridgeGetSignalHandler()
/system/core/adb/
Dadb_client.cpp236 int version = ADB_SERVER_VERSION - 1; in adb_connect() local
247 if (sscanf(&version_string[0], "%04x", &version) != 1) { in adb_connect()
258 if (version != ADB_SERVER_VERSION) { in adb_connect()
/system/gatekeeper/include/gatekeeper/
Dpassword_handle.h35 uint8_t version; member
/system/bt/bta/ag/
Dbta_ag_sdp.c136 UINT16 version; in bta_ag_add_record() local
164 version = HFP_VERSION_1_6; in bta_ag_add_record()
169 version = HSP_VERSION_1_2; in bta_ag_add_record()
171 result &= SDP_AddProfileDescriptorList(sdp_handle, profile_uuid, version); in bta_ag_add_record()

12345