Searched refs:self (Results 1 - 25 of 126) sorted by relevance

123456

/haiku/3rdparty/mmu_man/irc/Haiku/
H A Dtest.py35 def testSeconds(self):
36 self.assertResponse('!plop', 'plop')
39 def testNoErrors(self):
40 self.assertNotError('!plop')
42 def testNoNestedErrors(self):
43 self.assertNotError('!plop')
H A Dplugin.py42 def __init__(self, irc):
45 self.fortunes = []
52 self.fortunes.append(fortune)
58 self.__parent = super(Haiku, self)
59 self.__parent.__init__(irc)
61 def error(self, irc, msg, args):
92 def haiku(self, irc, msg, args):
98 if len(self.fortunes) > 0:
99 h = self
[all...]
/haiku/src/tests/kits/net/service/
H A Dproxy.py31 def __init__(self, *args, **kwargs):
37 self._connections = {}
39 super(RequestHandler, self).__init__(*args, **kwargs)
41 def _proxy_request(self):
49 target = urllib.parse.urlparse(self.path)
53 conn = self._connections.get(target.netloc, None)
60 for header_name in self.headers:
63 for header_value in self.headers.get_all(header_name):
67 client_address = '{}:{}'.format(*self.client_address)
68 x_forwarded_for_header = self
[all...]
H A Dtestserver.py60 def do_GET(self, write_response=True):
61 authorized, extra_headers = self._authorize()
65 encoding, response_body = self._build_response_body()
67 status_code = extract_desired_status_code_from_path(self.path, 200)
68 self.send_response(status_code)
70 self.send_header('Location', '/')
75 self.send_header('Content-Type', 'text/plain')
76 self.send_header('Content-Length', str(len(response_body)))
78 self.send_header('Content-Encoding', encoding)
81 self
[all...]
/haiku/src/tests/kits/net/netservices2/
H A Dproxy.py31 def __init__(self, *args, **kwargs):
37 self._connections = {}
39 super(RequestHandler, self).__init__(*args, **kwargs)
41 def _proxy_request(self):
49 target = urllib.parse.urlparse(self.path)
53 conn = self._connections.get(target.netloc, None)
60 for header_name in self.headers:
63 for header_value in self.headers.get_all(header_name):
67 client_address = '{}:{}'.format(*self.client_address)
68 x_forwarded_for_header = self
[all...]
H A Dtestserver.py60 def do_GET(self, write_response=True):
61 authorized, extra_headers = self._authorize()
65 encoding, response_body = self._build_response_body()
67 status_code = extract_desired_status_code_from_path(self.path, 200)
68 self.send_response(status_code)
70 self.send_header('Location', '/')
75 self.send_header('Content-Type', 'text/plain')
76 self.send_header('Content-Length', str(len(response_body)))
78 self.send_header('Content-Encoding', encoding)
81 self
[all...]
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/
H A Dnbd-server.py39 def __init__(self, sock): self.sock = sock
40 def recv(self, nbytes):
43 more = self.sock.recv(nbytes - len(rv))
47 def send(self, astring): self.sock.send(astring)
48 def close(self): self.sock.close()
53 def __init__(self, sock): self
[all...]
/haiku/headers/private/net/
H A Dnet_datalink_protocol.h24 status_t (*uninit_protocol)(net_datalink_protocol* self);
26 status_t (*send_data)(net_datalink_protocol* self, net_buffer* buffer);
28 status_t (*interface_up)(net_datalink_protocol* self);
29 void (*interface_down)(net_datalink_protocol* self);
31 status_t (*change_address)(net_datalink_protocol* self,
36 status_t (*control)(net_datalink_protocol* self, int32 option,
39 status_t (*join_multicast)(net_datalink_protocol* self,
41 status_t (*leave_multicast)(net_datalink_protocol* self,
H A Dnet_protocol.h62 status_t (*uninit_protocol)(net_protocol* self);
64 status_t (*open)(net_protocol* self);
65 status_t (*close)(net_protocol* self);
66 status_t (*free)(net_protocol* self);
68 status_t (*connect)(net_protocol* self, const struct sockaddr* address);
69 status_t (*accept)(net_protocol* self, net_socket** _acceptedSocket);
70 status_t (*control)(net_protocol* self, int level, int option,
72 status_t (*getsockopt)(net_protocol* self, int level, int option,
74 status_t (*setsockopt)(net_protocol* self, int level, int option,
77 status_t (*bind)(net_protocol* self, cons
[all...]
/haiku/headers/private/kernel/platform/efi/protocol/
H A Dfile.h65 efi_status (*Open) (struct efi_file_protocol* self, struct efi_file_protocol** new_handle,
68 efi_status (*Close) (struct efi_file_protocol* self) EFIAPI;
70 efi_status (*Delete) (struct efi_file_protocol* self) EFIAPI;
72 efi_status (*Read) (struct efi_file_protocol* self, size_t* len, void* buf) EFIAPI;
74 efi_status (*Write) (struct efi_file_protocol* self, size_t* len, void* buf) EFIAPI;
76 efi_status (*GetPosition) (struct efi_file_protocol* self, uint64_t* position) EFIAPI;
78 efi_status (*SetPosition) (struct efi_file_protocol* self, uint64_t position) EFIAPI;
80 efi_status (*GetInfo) (struct efi_file_protocol* self, efi_guid* info_type,
83 efi_status (*SetInfo) (struct efi_file_protocol* self, efi_guid* info_type,
86 efi_status (*Flush) (struct efi_file_protocol* self) EFIAP
[all...]
H A Dconsole-control.h23 efi_status (*GetMode) (struct efi_console_control_protocol* self,
28 efi_status (*SetMode) (struct efi_console_control_protocol* self,
31 efi_status (*LockStdIn) (struct efi_console_control_protocol* self,
H A Dmanaged-network.h69 efi_status (*GetModeData) (struct efi_managed_network_protocol* self,
73 efi_status (*Configure) (struct efi_managed_network_protocol* self,
76 efi_status (*McastIpToMac) (struct efi_managed_network_protocol* self,
79 efi_status (*Groups) (struct efi_managed_network_protocol* self, bool join_flag,
82 efi_status (*Transmit) (struct efi_managed_network_protocol* self,
85 efi_status (*Receive) (struct efi_managed_network_protocol* self,
88 efi_status (*Cancel) (struct efi_managed_network_protocol* self,
91 efi_status (*Poll) (struct efi_managed_network_protocol* self) EFIAPI;
H A Dsimple-text-input.h19 efi_status (*Reset) (struct efi_simple_text_input_protocol* self,
22 efi_status (*ReadKeyStroke) (struct efi_simple_text_input_protocol* self,
H A Dpci-root-bridge-io.h33 efi_status (*Read) (struct efi_pci_root_bridge_io_protocol* self,
36 efi_status (*Write) (struct efi_pci_root_bridge_io_protocol* self,
69 efi_status (*PollMem) (struct efi_pci_root_bridge_io_protocol *self,
74 efi_status (*PollIo) (struct efi_pci_root_bridge_io_protocol *self,
83 efi_status (*CopyMem) (struct efi_pci_root_bridge_io_protocol* self,
87 efi_status (*Map) (struct efi_pci_root_bridge_io_protocol* self,
92 efi_status (*Unmap) (struct efi_pci_root_bridge_io_protocol* self,
95 efi_status (*AllocateBuffer) (struct efi_pci_root_bridge_io_protocol* self,
99 efi_status (*FreeBuffer) (struct efi_pci_root_bridge_io_protocol* self,
102 efi_status (*Flush) (struct efi_pci_root_bridge_io_protocol* self) EFIAP
[all...]
H A Dsimple-network.h89 efi_status (*Start) (struct efi_simple_network_protocol* self) EFIAPI;
91 efi_status (*Stop) (struct efi_simple_network_protocol* self) EFIAPI;
93 efi_status (*Initialize) (struct efi_simple_network_protocol* self,
96 efi_status (*Reset) (struct efi_simple_network_protocol* self,
99 efi_status (*Shutdown) (struct efi_simple_network_protocol* self) EFIAPI;
101 efi_status (*ReceiveFilters) (struct efi_simple_network_protocol* self,
106 efi_status (*StationAddress) (struct efi_simple_network_protocol* self,
109 efi_status (*Statistics) (struct efi_simple_network_protocol* self,
113 efi_status (*MCastIpToMac) (struct efi_simple_network_protocol* self,
116 efi_status (*NvData) (struct efi_simple_network_protocol* self,
[all...]
H A Dusb-io.h91 efi_status (*UsbControlTransfer) (struct efi_usb_io_protocol* self,
97 efi_status (*UsbBulkTransfer) (struct efi_usb_io_protocol* self,
102 efi_status (*UsbAsyncInterruptTransfer) (struct efi_usb_io_protocol* self,
109 efi_status (*UsbSyncInterruptTransfer) (struct efi_usb_io_protocol* self,
114 efi_status (*UsbIsochronousTransfer) (struct efi_usb_io_protocol* self,
119 efi_status (*UsbAsyncIsochronousTransfer) (struct efi_usb_io_protocol* self,
125 efi_status (*UsbGetDeviceDescriptor) (struct efi_usb_io_protocol* self,
128 efi_status (*UsbGetConfigDescriptor) (struct efi_usb_io_protocol* self,
131 efi_status (*UsbGetInterfaceDescriptor) (struct efi_usb_io_protocol* self,
134 efi_status (*UsbGetEndpointDescriptor) (struct efi_usb_io_protocol* self,
[all...]
H A Ddriver-binding.h15 efi_status (*Supported) (struct efi_driver_binding_protocol* self,
19 efi_status (*Start) (struct efi_driver_binding_protocol* self,
23 efi_status (*Stop) (struct efi_driver_binding_protocol* self,
H A Dserial-io.h72 efi_status (*Reset)(efi_serial_io_protocol* self) EFIAPI;
73 efi_status (*SetAttributes)(efi_serial_io_protocol* self,
77 efi_status (*SetControl)(efi_serial_io_protocol* self,
79 efi_status (*GetControl)(efi_serial_io_protocol* self,
81 efi_status (*Write)(efi_serial_io_protocol* self,
83 efi_status (*Read)(efi_serial_io_protocol* self,
H A Dblock-io.h25 efi_status (*Reset)(efi_block_io_protocol* self,
27 efi_status (*ReadBlocks)(efi_block_io_protocol* self,
30 efi_status (*WriteBlocks)(efi_block_io_protocol* self,
33 efi_status (*FlushBlocks)(efi_block_io_protocol* self);
/haiku/src/kits/interface/
H A DRect.cpp282 InsetByCopy__5BRectG6BPoint(BRect* self, BPoint point) argument
284 BRect copy(*self);
291 InsetByCopy__5BRectff(BRect* self, float dx, float dy) argument
293 BRect copy(*self);
300 OffsetByCopy__5BRectG6BPoint(BRect* self, BPoint point) argument
302 BRect copy(*self);
309 OffsetByCopy__5BRectff(BRect* self, float dx, float dy) argument
311 BRect copy(*self);
318 OffsetToCopy__5BRectG6BPoint(BRect* self, BPoint point) argument
320 BRect copy(*self);
327 OffsetToCopy__5BRectff(BRect* self, float dx, float dy) argument
340 _ZN5BRect11InsetByCopyE6BPoint(BRect* self, BPoint point) argument
349 _ZN5BRect11InsetByCopyEff(BRect* self, float dx, float dy) argument
358 _ZN5BRect12OffsetByCopyE6BPoint(BRect* self, BPoint point) argument
367 _ZN5BRect12OffsetByCopyEff(BRect* self, float dx, float dy) argument
376 _ZN5BRect12OffsetToCopyE6BPoint(BRect* self, BPoint point) argument
385 _ZN5BRect12OffsetToCopyEff(BRect* self, float dx, float dy) argument
[all...]
/haiku/src/kits/tracker/
H A DFBCPadding.cpp115 (void* self,
121 return new (self) BFilePanel(mode, target, ref, nodeFlavors,
127 SetPanelDirectory__10BFilePanelP10BDirectory(BFilePanel* self, BDirectory* d) argument
129 self->SetPanelDirectory(d);
133 SetPanelDirectory__10BFilePanelP6BEntry(BFilePanel* self, BEntry* e) argument
135 self->SetPanelDirectory(e);
139 SetPanelDirectory__10BFilePanelP9entry_ref(BFilePanel* self, entry_ref* r) argument
141 self->SetPanelDirectory(r);
114 __10BFilePanel15file_panel_modeP10BMessengerP9entry_refUlbP8BMessageP10BRefFilterT5T5(void* self, file_panel_mode mode, BMessenger* target, entry_ref* ref, uint32 nodeFlavors, bool multipleSelection, BMessage* message, BRefFilter* filter, bool modal, bool hideWhenDone) argument
/haiku/src/tests/system/runtime_loader/test_suite/
H A Ddlopen_lookup_order154 void* self;
69 self = dlopen(NULL, RTLD_NOW | RTLD_GLOBAL);
70 if (self == NULL) {
71 fprintf(stderr, "Error opening self: %s\n", dlerror());
75 a = (int (*)())dlsym(self, "a");
H A Ddlopen_lookup_order254 void* self;
69 self = dlopen(NULL, RTLD_NOW | RTLD_GLOBAL);
70 if (self == NULL) {
71 fprintf(stderr, "Error opening self: %s\n", dlerror());
75 a = (int (*)())dlsym(self, "a");
H A Ddlopen_lookup_order454 void* self;
69 self = dlopen(NULL, RTLD_NOW | RTLD_GLOBAL);
70 if (self == NULL) {
71 fprintf(stderr, "Error opening self: %s\n", dlerror());
75 a = (int (*)())dlsym(self, "a");
/haiku/src/apps/debugger/user_interface/gui/team_settings_window/
H A DTeamSettingsWindow.cpp40 TeamSettingsWindow* self = new TeamSettingsWindow( local
44 self->_Init();
46 delete self;
50 return self;

Completed in 198 milliseconds

123456