Home
last modified time | relevance | path

Searched defs:self (Results 1 – 25 of 50) sorted by relevance

12

/system/media/camera/docs/
Dmetadata_model.py52 def __init__(self): argument
57 def parent(self): argument
61 def name(self): argument
64 def find_all(self, pred): argument
85 def find_first(self, pred): argument
100 def find_parent_first(self, pred): argument
115 def find_parents(self, pred): argument
133 def sort_children(self): argument
139 def _sort_by_name(self, what): argument
142 def _get_name(self): argument
[all …]
/system/core/adb/
Dtest_device.py42 def wrapper(self, *args): argument
62 def wrapper(self, *args): argument
79 def setUp(self): argument
84 def tearDown(self): argument
92 def test_explicit(self, mock_get_devices): argument
98 def test_from_env(self, mock_get_devices): argument
105 def test_arg_beats_env(self, mock_get_devices): argument
112 def test_no_such_device(self, mock_get_devices): argument
120 def test_unique_device(self, mock_get_devices): argument
126 def test_no_unique_device(self, mock_get_devices): argument
[all …]
Dtest_adb.py39 def test_help(self): argument
45 def test_version(self): argument
58 def test_tcpip_error_messages(self): argument
72 def _read_pipe_and_set_event(self, pipe, event): argument
80 def test_handle_inheritance(self): argument
147 def _reset_socket_on_close(self, sock): argument
160 def test_emu_kill(self): argument
/system/extras/tests/net_test/
Dping6_test.py50 def __init__(self, tun, mymac, routermac): argument
57 def Stop(self): argument
60 def ChecksumValid(self, packet): argument
94 def SendTimeExceeded(self, version, packet): argument
108 def IPv4Packet(self, ip): argument
129 def IPv6Packet(self, ipv6): argument
156 def SwapAddresses(self, packet): argument
161 def SendPacket(self, packet): argument
168 def run(self): argument
205 def setUp(self): argument
[all …]
Dsock_diag_test.py55 def assertSocketClosed(self, sock): argument
58 def assertSocketConnected(self, sock): argument
61 def assertSocketsClosed(self, socketpair): argument
65 def setUp(self): argument
70 def tearDown(self): argument
79 def assertSockDiagMatchesSocket(self, s, diag_msg): argument
94 def testFindsMappedSockets(self): argument
109 def testFindsAllMySockets(self): argument
153 def testBytecodeCompilation(self): argument
203 def testCrossFamilyBytecode(self): argument
[all …]
Dmultinetwork_test.py94 def CheckPingPacket(self, version, netid, routing_mode, dstaddr, packet): argument
110 def CheckTCPSYNPacket(self, version, netid, routing_mode, dstaddr): argument
126 def CheckUDPPacket(self, version, netid, routing_mode, dstaddr): argument
146 def CheckRawGrePacket(self, version, netid, routing_mode, dstaddr): argument
165 def CheckOutgoingPackets(self, routing_mode): argument
195 def testMarkRouting(self): argument
200 def testUidRouting(self): argument
204 def testOifRouting(self): argument
209 def testUcastOifRouting(self): argument
213 def CheckRemarking(self, version, use_connect): argument
[all …]
Dsrcaddr_selection_test.py54 def SetIPv6Sysctl(self, ifname, sysctl, value): argument
57 def SetDAD(self, ifname, value): argument
61 def SetOptimisticDAD(self, ifname, value): argument
64 def SetUseTempaddrs(self, ifname, value): argument
67 def SetUseOptimistic(self, ifname, value): argument
70 def GetSourceIP(self, netid, mode="mark"): argument
80 def assertAddressNotPresent(self, address): argument
84 self, address, expected_ifindex, expected_flags): argument
92 def AddressIsTentative(self, address): argument
96 def BindToAddress(self, address): argument
[all …]
Dneighbour_test.py66 def setUp(self): argument
88 def GetNeighbour(self, addr): argument
94 def GetNdEntry(self, addr): argument
97 def CheckNoNdEvents(self): argument
100 def assertNeighbourState(self, state, addr): argument
103 def assertNeighbourAttr(self, addr, name, value): argument
106 def ExpectNeighbourNotification(self, addr, state, attrs=None): argument
115 def ExpectProbe(self, is_unicast, addr): argument
137 def ExpectUnicastProbe(self, addr): argument
140 def ExpectMulticastNS(self, addr): argument
[all …]
Dnetlink.py65 def _Debug(self, s): argument
69 def _NlAttr(self, nla_type, data): argument
76 def _NlAttrU32(self, nla_type, value): argument
79 def _GetConstantName(self, module, value, prefix): argument
90 def _Decode(self, command, msg, nla_type, nla_data): argument
94 def _ParseAttributes(self, command, family, msg, data): argument
135 def __init__(self): argument
142 def _Send(self, msg): argument
147 def _Recv(self): argument
152 def _ExpectDone(self): argument
[all …]
Dtcp_nuke_addr_test.py126 def __init__(self, sock): argument
132 def run(self): argument
148 def testTimewaitSockets(self): argument
161 def testClosesIPv6Sockets(self): argument
191 def assertSocketsClosed(self, socketpair): argument
195 def assertSocketsNotClosed(self, socketpair): argument
199 def testAddresses(self): argument
227 def setUp(self): argument
232 def tearDown(self): argument
235 def testClosesAllSockets(self): argument
Dcstruct.py104 def _SetValues(self, values): argument
107 def _Parse(self, data): argument
115 def __init__(self, values): argument
129 def _FieldIndex(self, attr): argument
136 def __getattr__(self, name): argument
139 def __setattr__(self, name, value): argument
146 def __ne__(self, other): argument
149 def __eq__(self, other): argument
162 def Pack(self): argument
166 def __str__(self): argument
[all …]
Dforwarding_test.py33 def ForwardBetweenInterfaces(self, enabled, iface1, iface2): argument
38 def setUp(self): argument
41 def tearDown(self): argument
44 def CheckForwardingCrash(self, netid, iface1, iface2): argument
96 def testCrash(self): argument
/system/connectivity/shill/mobile_operator_db/
Dserviceproviders_converter.py48 def __init__(self, file_path, out_file_path=None): argument
81 def Convert(self): argument
108 def _CheckStatsEqual(self, lhs, lhs_name, rhs, rhs_name): argument
127 def _RunStatsDiagnostics(self): argument
206 def _DumpXMLToTempFile(self): argument
214 def _EnrichNode(self, node, country_code, primary, roaming_required, names, argument
243 def _TransformXML(self): argument
283 def _CheckAmbiguousMCCMNC(self, mcc, mnc): argument
302 def _GroupGSMNodesByMCCMNC(self): argument
322 def _FindPrimaryNodes(self): argument
[all …]
/system/connectivity/shill/test-scripts/
Dflimflam.py125 def __init__(self, bus=None): argument
134 def _FindDevice(self, device_type, timeout): argument
156 def FindCellularDevice(self, timeout=DEFAULT_CELLULAR_TIMEOUT): argument
159 def FindWimaxDevice(self, timeout=30): argument
162 def _FindService(self, device_type, timeout): argument
184 def FindCellularService(self, timeout=DEFAULT_CELLULAR_TIMEOUT): argument
187 def FindWimaxService(self, timeout=30): argument
190 def GetService(self, params): argument
194 def ConnectService(self, assoc_timeout=15, config_timeout=15, argument
312 def GetObjectInterface(self, kind, path): argument
[all …]
Drouting.py45 def __init__(self, iface, dest, gway, flags, mask): argument
52 def __str__(self): argument
67 def isUsable(self): argument
70 def isHostRoute(self): argument
73 def isGatewayRoute(self): argument
76 def isInterfaceRoute(self): argument
79 def isDefaultRoute(self): argument
82 def matches(self, ip): argument
86 def __init__(self, routelist=None): argument
111 def hasDefaultRoute(self, interface): argument
[all …]
Dstability48 def __init__(self, argument
60 def Run(self): argument
74 def __init__(self, test_function): argument
77 def Run(self): argument
87 def __init__(self, filename, servername, individual_length): argument
92 def Run(self, remaining): argument
108 def teardown(self): argument
/system/tpm/trunks/generator/
Dgenerator_test.py32 def testTypedef(self): argument
56 def testTypedefSerialize(self): argument
68 def testConstant(self): argument
79 def testStructure(self): argument
103 def testStructSerialize(self): argument
122 def testDefine(self): argument
131 def _MakeArg(self, arg_type, arg_name): argument
137 def testCommand(self): argument
188 def testStructureParserWithBadData(self): argument
200 def testStructureParser(self): argument
[all …]
Dgenerator.py298 def __init__(self, old_type, new_type): argument
308 def OutputForward(self, out_file, defined_types, typemap): argument
322 def Output(self, out_file, defined_types, typemap): argument
342 def OutputSerialize(self, out_file, serialized_types, typemap): argument
374 def __init__(self, const_type, name, value): argument
386 def Output(self, out_file, defined_types, typemap): argument
611 def __init__(self, name, is_union): argument
627 def AddField(self, field_type, field_name): argument
636 def AddDependency(self, required_type): argument
649 def IsSimpleTPM2B(self): argument
[all …]
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dtest_channel.py66 def __init__(self, port): argument
70 def close(self): argument
73 def send(self, data): argument
84 def __init__(self, port): argument
88 def discover_new_device(self, name=None, address=None): argument
93 def close(self): argument
96 def send_command(self, name, args): argument
105 def lint_command(self, name, args, name_size, args_size): argument
127 def __init__(self): argument
130 def add_device(self, device): argument
[all …]
/system/extras/tests/bootloader/
Dbootctl.py16 def __init__(self, device): argument
20 def _exec(self, cmd): argument
23 def get_number_slots(self): argument
28 def get_current_slot(self): argument
33 def mark_boot_successful(self): argument
38 def set_active_boot_slot(self, slot): argument
43 def set_slot_as_unbootable_slot(self, slot): argument
48 def is_slot_bootable(self, slot): argument
53 def is_slot_marked_successful(self, slot): argument
58 def get_suffix(self, slot): argument
Dhaltest.py23 def __init__(self, *args, **kwargs): argument
27 def test_slots(self): argument
40 def test_mark_successful(self): argument
60 def test_switch_slots(self): argument
82 def test_unbootable(self): argument
/system/extras/simpleperf/runtest/
Druntest.py36 def __init__(self, name): argument
40 def add_child(self, child): argument
43 def __str__(self): argument
46 def _dump(self, indent): argument
56 def __init__(self, name, comm, overhead, children_overhead): argument
65 def set_call_tree(self, call_tree): argument
68 def __str__(self): argument
79 def __init__(self, symbol_name=None, comm=None, min_overhead=None, argument
86 def __str__(self): argument
99 def is_match(self, symbol): argument
[all …]
/system/sepolicy/tools/
Dinsertkeys.py19 def __init__(self, path): argument
98 def __len__(self): argument
101 def __str__(self): argument
104 def getBase16Keys(self): argument
107 def getBase64Keys(self): argument
115 def generateKeyMap(self, target_build_variant, key_directory): argument
162 def __init__(self, keyMap, out=sys.stdout): argument
171 def __del__(self): argument
174 def startElement(self, tag, attrs): argument
194 def endElement(self, tag): argument
[all …]
/system/extras/simpleperf/
Dreport.py43 def __init__(self, percentage, function_name): argument
48 def add_call(self, function_name): argument
51 def add_child(self, node): argument
54 def __str__(self): argument
58 def dump(self): argument
73 def __init__(self, raw_line): argument
77 def __str__(self): argument
144 def __init__(self, master, report_context, title_line, report_items): argument
183 def display_report_items(self, tree, report_items): argument
197 def display_call_tree(self, tree, parent_id, node, indent): argument
/system/extras/tests/sdcard/
Dplot_sdcard.py50 def __init__(self, line): argument
60 def __repr__(self): argument
63 def Add(self, time, value): argument
67 def RescaleTo(self, length): argument
87 def __init__(self): argument
97 def Parse(self, line): argument
113 def AsTitle(self): argument
117 def UpdateWith(self, dataset): argument

12