/foundation/ability/idl_tool/test/hdi_unittest/base/ |
H A D | test_base.py | 28 def __init__(self): 29 self.name = self.__class__.__name__ 30 self._file_name = self.get_file_name() 31 self.working_dir = self.get_working_dir() 32 self._package_path = self.working_dir 33 self [all...] |
/foundation/arkui/ui_lite/tools/server/ |
H A D | tcp_server.py | 55 def __init__(self):
56 threading.Thread.__init__(self)
58 self.tcp_server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
59 self.tcp_server_socket.bind((self.IP, self.PORT))
60 self.tcp_server_socket.listen(128)
62 self.config = self.read_data_from_json(self [all...] |
/foundation/ability/idl_tool/test/sa_test/ |
H A D | test_base.py | 29 def __init__(self): 30 self.name = self.__class__.__name__ 31 self._file_name = self.get_file_name() 32 self.working_dir = self.get_working_dir() 33 self.idl_file = os.path.join(self.working_dir, "foo", "IFoo.idl") 34 self [all...] |
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/beans/ |
H A D | event_node.py | 54 def __init__(self, input_str): 60 self.original_str = input_str 64 self.frameNodeId = get_value_as_int(frame_node_str, get_sample_key(event_procedure_keyword, 'frameNodeId'), 66 self.type = get_value_as_str(frame_node_str, get_sample_key(event_procedure_keyword, 'type'), 68 self.depth = get_value_as_int(frame_node_str, get_sample_key(event_procedure_keyword, 'depth'), 70 self.address = get_value_as_str(frame_node_str, get_sample_key(event_procedure_keyword, 'id'), 72 self.parentId = get_value_as_str(frame_node_str, get_sample_key(event_procedure_keyword, 'parentId'), 74 self.duration = get_value_as_int(frame_node_str, get_sample_key(event_procedure_keyword, 'duration'), 76 self.custom_info = get_value_as_str(frame_node_str, get_sample_key(event_procedure_keyword, 'customInfo'), 78 self [all...] |
H A D | touch_point.py | 36 def __init__(self, input_str): 38 self.original_str = input_str 39 self.id = get_value_as_int(input_str, get_sample_key(touch_point_keyword, 'id'), 41 self.point = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'point'), 43 self.screenPoint = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'screenPoint'), 45 self.type = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'type'), 47 self.timestamp = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'timestamp'), 49 self.isInjected = get_value_as_int(input_str, get_sample_key(touch_point_keyword, 'isInjected'), 51 self.check_parse_result() 53 def check_parse_result(self) [all...] |
H A D | event_tree.py | 34 def __init__(self, input_str): 36 self.tree_id = -1 37 self.touch_points = [] 38 self.frame_nodes = [] 39 self.event_procedures = None 40 self.parse_event_tree(input_str) 41 self.check_parse_result() 43 def parse_event_tree(self, input_str): 45 self.parse_tree_index(spliced_lines) 46 current_index = self [all...] |
H A D | frame_node.py | 39 def __init__(self, node_dump_str): 41 self.original_str = node_dump_str 42 self.nodeId = get_value_as_int(node_dump_str, get_sample_key(hittest_node_keyword, 'nodeId'), 44 self.parentId = get_value_as_int(node_dump_str, get_sample_key(hittest_node_keyword, 'parentId'), 46 self.tag = get_value_as_str(node_dump_str, get_sample_key(hittest_node_keyword, 'tag'), 48 self.com_id = get_value_as_str(node_dump_str, get_sample_key(hittest_node_keyword, 'comId'), 50 self.monopolizeEvents = get_value_as_int(node_dump_str, 53 self.isHit = get_value_as_int(node_dump_str, get_sample_key(hittest_node_keyword, 'isHit'), 55 self.hitTestMode = get_value_as_int(node_dump_str, get_sample_key(hittest_node_keyword, 'hitTestMode'), 57 self [all...] |
H A D | procedure_step.py | 34 def __init__(self, input_str): 36 self.original_str = input_str 37 self.procedure = get_value_as_str(input_str, get_sample_key(event_procedure_keyword, 'procedure'), 39 self.state = get_value_as_str(input_str, get_sample_key(event_procedure_keyword, 'state'), 41 self.disposal = get_value_as_str(input_str, get_sample_key(event_procedure_keyword, 'disposal'), 43 self.timestamp = get_value_as_str(input_str, get_sample_key(event_procedure_keyword, 'timestamp'), 45 self.check_parse_result() 47 def check_parse_result(self): 48 if self.procedure is None or self [all...] |
/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | relational_predicates.cpp | 31 auto self = GetSelf(predicates); in EqualTo() local 33 if (self == nullptr || selfObjects == nullptr || field == nullptr) { in EqualTo() 34 return self; in EqualTo() 38 self->predicates_.EqualTo(field, values[0]); in EqualTo() 40 return self; in EqualTo() 46 auto self = GetSelf(predicates); in NotEqualTo() local 48 if (self == nullptr || selfObjects == nullptr || field == nullptr) { in NotEqualTo() 49 return self; in NotEqualTo() 53 self->predicates_.NotEqualTo(field, values[0]); in NotEqualTo() 55 return self; in NotEqualTo() 60 auto self = GetSelf(predicates); BeginWrap() local 70 auto self = GetSelf(predicates); EndWrap() local 80 auto self = GetSelf(predicates); Or() local 90 auto self = GetSelf(predicates); And() local 100 auto self = GetSelf(predicates); IsNull() local 110 auto self = GetSelf(predicates); IsNotNull() local 120 auto self = GetSelf(predicates); Like() local 136 auto self = GetSelf(predicates); Between() local 155 auto self = GetSelf(predicates); NotBetween() local 173 auto self = GetSelf(predicates); GreaterThan() local 188 auto self = GetSelf(predicates); LessThan() local 203 auto self = GetSelf(predicates); GreaterThanOrEqualTo() local 217 auto self = GetSelf(predicates); LessThanOrEqualTo() local 231 auto self = GetSelf(predicates); OrderBy() local 245 auto self = GetSelf(predicates); Distinct() local 255 auto self = GetSelf(predicates); Limit() local 265 auto self = GetSelf(predicates); Offset() local 275 auto self = GetSelf(predicates); GroupBy() local 290 auto self = GetSelf(predicates); In() local 306 auto self = GetSelf(predicates); NotIn() local 322 auto self = GetSelf(predicates); Clear() local 332 auto self = GetSelf(predicates); Destroy() local [all...] |
/foundation/ability/idl_tool/test/hdi_unittest/hdi_gen_test/ |
H A D | hdi_all_type_test_005.py | 23 def get_file_name(self): 26 def set_idl_attr(self): 27 self.set_mode_attr("passthrough") 28 self.set_system_attr("lite") 29 self.set_command_ext_attr("-m passthrough --system lite") 30 self.set_gen_c_env() 31 self.update_command() 33 def run_c(self): 34 self.set_gen_c_env() 35 self [all...] |
H A D | hdi_all_type_test_006.py | 23 def get_file_name(self): 26 def set_idl_attr(self): 27 self.set_mode_attr("passthrough") 28 self.set_system_attr("full") 29 self.set_command_ext_attr("-m passthrough --system full") 30 self.set_gen_c_env() 31 self.update_command() 33 def run_c(self): 34 self.set_gen_c_env() 35 self [all...] |
H A D | hdi_all_type_test_007.py | 23 def get_file_name(self): 26 def set_idl_attr(self): 27 self.set_mode_attr("ipc") 28 self.set_system_attr("full") 29 self.set_command_ext_attr("-m ipc --system full") 30 self.set_gen_c_env() 31 self.update_command() 33 def run_c(self): 34 self.set_gen_c_env() 35 self [all...] |
H A D | hdi_all_interface_test_004.py | 23 def get_file_name(self): 26 def set_idl_attr(self): 27 self.set_mode_attr("passthrough") 28 self.set_system_attr("lite") 29 self.set_command_ext_attr("-m passthrough --system lite") 30 self.set_gen_c_env() 31 self.update_command() 33 def run_c(self): 34 self.set_gen_c_env() 35 self [all...] |
H A D | hdi_all_interface_test_005.py | 23 def get_file_name(self): 26 def set_idl_attr(self): 27 self.set_mode_attr("passthrough") 28 self.set_system_attr("full") 29 self.set_command_ext_attr("-m passthrough --system full") 30 self.set_gen_c_env() 31 self.update_command() 33 def run_c(self): 34 self.set_gen_c_env() 35 self [all...] |
H A D | hdi_all_interface_test_007.py | 23 def get_file_name(self): 26 def set_idl_attr(self): 27 self.set_mode_attr("ipc") 28 self.set_system_attr("full") 29 self.set_command_ext_attr("-m ipc --system full") 30 self.set_gen_c_env() 31 self.update_command() 33 def run_c(self): 34 self.set_gen_c_env() 35 self [all...] |
H A D | hdi_all_interface_test_001.py | 23 def get_file_name(self): 26 def set_idl_attr(self): 27 self.set_check_fail_ignore_line(True) 28 self.set_system_attr("full") 29 self.set_mode_attr("passthrough") 31 def set_run_cpp(self): 32 self.set_gen_cpp_env() 33 self.update_command() 34 ret = self.run_choose(True) 35 self [all...] |
H A D | hdi_all_type_test_001.py | 23 def get_file_name(self): 26 def set_idl_attr(self): 27 self.set_system_attr("full") 28 self.set_mode_attr("passthrough") 30 def set_run_cpp(self): 31 self.set_check_fail_ignore_line(True) 32 self.set_gen_cpp_env() 33 self.update_command() 34 ret = self.run_choose(True) 35 self [all...] |
/foundation/communication/dsoftbus/core/connection/manager/ |
H A D | softbus_conn_flow_control.c | 30 static int32_t Apply(struct ConnSlideWindowController *self, int32_t expect)
in Apply() argument 32 CONN_CHECK_AND_RETURN_RET_LOGE(self, SOFTBUS_INVALID_PARAM, CONN_COMMON, "invalid parameter, controller is null");
in Apply() 34 int32_t status = SoftBusMutexLock(&self->lock);
in Apply() 36 if (!self->active) {
in Apply() 37 (void)SoftBusMutexUnlock(&self->lock);
in Apply() 44 timestamp_t expiredTimestamp = now - (timestamp_t)self->windowInMillis;
in Apply() 46 LIST_FOR_EACH_ENTRY_SAFE(it, next, &self->histories, struct HistoryNode, node) {
in Apply() 56 if (self->quotaInBytes <= appliedTotal) {
in Apply() 57 unsigned int sleepMs = (timestamp_t)self->windowInMillis - (now - currentWindowStartTimestamp);
in Apply() 58 (void)SoftBusMutexUnlock(&self in Apply() 78 CleanupHistoriesUnsafe(struct ConnSlideWindowController *self) CleanupHistoriesUnsafe() argument 88 ChangeConfiguration( struct ConnSlideWindowController *self, bool active, int32_t windowInMillis, int32_t quotaInBytes) ChangeConfiguration() argument 111 Enable(struct ConnSlideWindowController *self, int32_t windowInMillis, int32_t quotaInBytes) Enable() argument 116 Disable(struct ConnSlideWindowController *self) Disable() argument 121 ConnSlideWindowControllerConstructor(struct ConnSlideWindowController *self) ConnSlideWindowControllerConstructor() argument 138 ConnSlideWindowControllerDestructor(struct ConnSlideWindowController *self) ConnSlideWindowControllerDestructor() argument 160 ConnSlideWindowControllerDelete(struct ConnSlideWindowController *self) ConnSlideWindowControllerDelete() argument [all...] |
/foundation/systemabilitymgr/samgr/test/autotest/testcases/level0/ |
H A D | case02_load001.py | 25 def __init__(self, configs):
26 self.TAG = self.__class__.__name__
27 TestCase.__init__(self, self.TAG, configs)
28 self.tests = [
31 self.driver = UiDriver(self.device1)
32 self.sn = self [all...] |
H A D | case06_commonevent001.py | 25 def __init__(self, configs):
26 self.TAG = self.__class__.__name__
27 TestCase.__init__(self, self.TAG, configs)
28 self.tests = [
31 self.driver = UiDriver(self.device1)
32 self.sn = self [all...] |
H A D | case17_dysaprofile002.py | 25 def __init__(self, configs):
26 self.TAG = self.__class__.__name__
27 TestCase.__init__(self, self.TAG, configs)
28 self.tests = [
31 self.driver = UiDriver(self.device1)
32 self.sn = self [all...] |
H A D | case16_dysaprofile001.py | 26 def __init__(self, configs):
27 self.TAG = self.__class__.__name__
28 TestCase.__init__(self, self.TAG, configs)
29 self.tests = [
32 self.driver = UiDriver(self.device1)
33 self.sn = self [all...] |
H A D | case19_switch002.py | 26 def __init__(self, configs):
27 self.TAG = self.__class__.__name__
28 TestCase.__init__(self, self.TAG, configs)
29 self.tests = [
32 self.driver = UiDriver(self.device1)
33 self.sn = self [all...] |
H A D | case24_sub001.py | 28 def __init__(self, configs):
29 self.TAG = self.__class__.__name__
30 TestCase.__init__(self, self.TAG, configs)
31 self.tests = [
34 self.driver = UiDriver(self.device1)
35 self.sn = self [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/ |
H A D | window_scene.cpp | 42 auto self = weakThis.Upgrade(); in WindowScene() 43 CHECK_NULL_VOID(self); in WindowScene() 44 self->OnBoundsChanged(bounds); in WindowScene() 59 // In a locked screen scenario, the lifetime of the session is larger than the lifetime of the object self in WindowScene() 60 auto self = weakThis.Upgrade(); in WindowScene() 61 CHECK_NULL_VOID(self); in WindowScene() 62 if (self->startingWindow_) { in WindowScene() 63 self->BufferAvailableCallback(); in WindowScene() 66 CHECK_EQUAL_VOID(self->session_->IsAnco(), true); in WindowScene() 67 if (self in WindowScene() [all...] |