Home
last modified time | relevance | path

Searched refs:isOpen (Results 1 – 25 of 85) sorted by relevance

1234

/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_policy_manager.cpp60 preferencesHelper_->SaveBool(NET_FIREWALL_IS_OPEN, policy->isOpen); in SetNetFirewallPolicy()
76 policy->isOpen = currentFirewallPolicy_->isOpen; in GetNetFirewallPolicy()
91 return (policy->isOpen != currentFirewallPolicy_->isOpen); in IsFirewallStatusChange()
99 return policy->isOpen && (policy->inAction != currentFirewallPolicy_->inAction || in IsFirewallActionChange()
110 currentFirewallPolicy_->isOpen = policy->isOpen; in SetCurrentUserFirewallPolicy()
127 return currentFirewallPolicy_->isOpen; in IsNetFirewallOpen()
192 policy->isOpen = preferencesHelper_->ObtainBool(NET_FIREWALL_IS_OPEN, false); in LoadPolicyFormPreference()
/ohos5.0/drivers/peripheral/power/interfaces/hdi_service/src/
H A Dpower_config.cpp88 bool isOpen = false; in OpenFile() local
91 isOpen = ifsConf.is_open(); in OpenFile()
93 HDF_LOGI("open file is %{public}d", isOpen); in OpenFile()
95 if (isOpen) { in OpenFile()
100 isOpen = ifsConf.is_open(); in OpenFile()
101 HDF_LOGI("open then vendor battery_config.json is %{public}d", isOpen); in OpenFile()
103 if (isOpen) { in OpenFile()
108 isOpen = ifsConf.is_open(); in OpenFile()
109 HDF_LOGI("open then system battery_config.json is %{public}d", isOpen); in OpenFile()
110 return isOpen; in OpenFile()
/ohos5.0/base/powermgr/battery_manager/charger/src/
H A Dbattery_config.cpp111 bool isOpen = false; in OpenFile() local
114 isOpen = ifsConf.is_open(); in OpenFile()
115 BATTERY_HILOGD(FEATURE_CHARGING, "open configPath file is %{public}d", isOpen); in OpenFile()
117 if (isOpen) { in OpenFile()
122 isOpen = ifsConf.is_open(); in OpenFile()
123 BATTERY_HILOGI(FEATURE_CHARGING, "open then vendor battery_config.json is %{public}d", isOpen); in OpenFile()
125 if (isOpen) { in OpenFile()
130 isOpen = ifsConf.is_open(); in OpenFile()
131 BATTERY_HILOGI(FEATURE_CHARGING, "open then system battery_config.json is %{public}d", isOpen); in OpenFile()
132 return isOpen; in OpenFile()
/ohos5.0/base/powermgr/battery_manager/services/native/src/
H A Dbattery_config.cpp100 bool isOpen = false; in OpenFile() local
103 isOpen = ifsConf.is_open(); in OpenFile()
104 BATTERY_HILOGD(COMP_SVC, "open configPath file is %{public}d", isOpen); in OpenFile()
106 RETURN_IF_WITH_RET(isOpen, true); in OpenFile()
109 isOpen = ifsConf.is_open(); in OpenFile()
110 BATTERY_HILOGI(COMP_SVC, "open then vendor battery_config.json is %{public}d", isOpen); in OpenFile()
111 RETURN_IF_WITH_RET(isOpen, true); in OpenFile()
114 isOpen = ifsConf.is_open(); in OpenFile()
115 BATTERY_HILOGI(COMP_SVC, "open then system battery_config.json is %{public}d", isOpen); in OpenFile()
116 return isOpen; in OpenFile()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sub_manage/
H A Dwifi_toggler_manager.cpp74 ErrCode WifiTogglerManager::WifiToggled(int isOpen, int id) in WifiToggled() argument
77 WIFI_LOGI("WifiTogglerManager::WifiToggled, isOpen %{public}d instId: %{public}d", isOpen, id); in WifiToggled()
78 pWifiControllerMachine->SendMessage(CMD_WIFI_TOGGLED, isOpen, id); in WifiToggled()
127 ErrCode WifiTogglerManager::SoftapToggled(int isOpen, int id) in SoftapToggled() argument
129 if (isOpen) { in SoftapToggled()
136 pWifiControllerMachine->SendMessage(CMD_SOFTAP_TOGGLED, isOpen, id); in SoftapToggled()
140 ErrCode WifiTogglerManager::ScanOnlyToggled(int isOpen) in ScanOnlyToggled() argument
152 pWifiControllerMachine->SendMessage(CMD_SCAN_ALWAYS_MODE_CHANGED, isOpen, 0); in ScanOnlyToggled()
156 ErrCode WifiTogglerManager::AirplaneToggled(int isOpen) in AirplaneToggled() argument
158 pWifiControllerMachine->SendMessage(CMD_AIRPLANE_TOGGLED, isOpen); in AirplaneToggled()
H A Dwifi_toggler_manager.h36 ErrCode WifiToggled(int isOpen, int id = 0);
37 ErrCode SoftapToggled(int isOpen, int id = 0);
38 ErrCode ScanOnlyToggled(int isOpen);
39 ErrCode AirplaneToggled(int isOpen);
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpost_proc_test.cpp50 bool isOpen = fs->is_open(); variable
51 ASSERT_EQ(isOpen, true);
88 ASSERT_EQ(isOpen, true);
126 ASSERT_EQ(isOpen, true);
164 ASSERT_EQ(isOpen, true);
201 ASSERT_EQ(isOpen, true);
240 ASSERT_EQ(isOpen, true);
279 ASSERT_EQ(isOpen, true);
318 ASSERT_EQ(isOpen, true);
440 ASSERT_EQ(isOpen, true);
[all …]
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_controller/Mock/
H A Dmock_wifi_toggler_manager.h35 ErrCode WifiToggled(int isOpen, int id = 0);
36 ErrCode SoftapToggled(int isOpen, int id = 0);
37 ErrCode ScanOnlyToggled(int isOpen);
38 ErrCode AirplaneToggled(int isOpen);
H A Dmock_wifi_toggler_manager.cpp48 ErrCode WifiTogglerManager::WifiToggled(int isOpen, int id) in WifiToggled() argument
87 ErrCode WifiTogglerManager::SoftapToggled(int isOpen, int id) in SoftapToggled() argument
92 ErrCode WifiTogglerManager::ScanOnlyToggled(int isOpen) in ScanOnlyToggled() argument
97 ErrCode WifiTogglerManager::AirplaneToggled(int isOpen) in AirplaneToggled() argument
/ohos5.0/foundation/communication/nfc/test/unittest/services/controller_test/
H A Dnfc_controller_test.cpp142 bool isOpen = false; variable
143 int statusCode = ctrl.IsNfcOpen(isOpen);
145 ASSERT_TRUE(isOpen == true);
150 isOpen = true;
151 statusCode = ctrl.IsNfcOpen(isOpen);
153 ASSERT_TRUE(isOpen == false);
209 bool isOpen = false; variable
210 ASSERT_TRUE(impl->IsNfcOpen(isOpen) == ErrorCode::ERR_NFC_PARAMETERS);
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_config.cpp77 bool isOpen = ifsConf.is_open(); in ParseConfig() local
78 if (isOpen) { in ParseConfig()
132 bool isOpen = false; in OpenFile() local
135 isOpen = ifsConf.is_open(); in OpenFile()
136 BATTERY_HILOGD(COMP_HDI, "open file is %{public}d", isOpen); in OpenFile()
138 if (isOpen) { in OpenFile()
143 isOpen = ifsConf.is_open(); in OpenFile()
144 BATTERY_HILOGI(COMP_HDI, "open then vendor battery_config.json is %{public}d", isOpen); in OpenFile()
146 if (isOpen) { in OpenFile()
151 isOpen = ifsConf.is_open(); in OpenFile()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_source_png_test.cpp195 bool isOpen = fs->is_open(); variable
196 ASSERT_EQ(isOpen, true);
477 bool isOpen = fs->is_open(); variable
478 ASSERT_EQ(isOpen, true);
513 bool isOpen = fs->is_open(); variable
514 ASSERT_EQ(isOpen, true);
548 bool isOpen = fs->is_open(); variable
549 ASSERT_EQ(isOpen, true);
583 bool isOpen = fs->is_open(); variable
584 ASSERT_EQ(isOpen, true);
[all …]
H A Dimage_source_bmp_test.cpp302 bool isOpen = fs->is_open(); variable
303 ASSERT_EQ(isOpen, true);
414 bool isOpen = fs->is_open(); variable
415 ASSERT_EQ(isOpen, true);
H A Dimage_source_heif_test.cpp231 bool isOpen = fs->is_open(); variable
232 ASSERT_EQ(isOpen, true);
425 bool isOpen = fs->is_open(); variable
426 ASSERT_EQ(isOpen, true);
681 bool isOpen = fs->is_open(); variable
682 ASSERT_EQ(isOpen, true);
808 bool isOpen = fs->is_open(); variable
809 ASSERT_EQ(isOpen, true);
H A Dimage_source_gif_test.cpp159 bool isOpen = fs->is_open(); variable
160 ASSERT_EQ(isOpen, true);
/ohos5.0/foundation/communication/nfc/frameworks/js/napi/controller/
H A Dnfc_napi_controller_adapter.cpp79 bool isOpen = false; in IsNfcOpen() local
80 int statusCode = nfcCtrl.IsNfcOpen(isOpen); in IsNfcOpen()
85 napi_get_boolean(env, isOpen, &result); in IsNfcOpen()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/exif_metadata_accessor_test/
H A Dexif_getfilterarea_test.cpp120 bool isOpen = fs->is_open(); variable
121 ASSERT_EQ(isOpen, true);
166 bool isOpen = fs->is_open(); variable
167 ASSERT_EQ(isOpen, true);
212 bool isOpen = fs->is_open(); variable
213 ASSERT_EQ(isOpen, true);
258 bool isOpen = fs->is_open(); variable
259 ASSERT_EQ(isOpen, true);
410 bool isOpen = fs->is_open(); variable
412 ASSERT_EQ(isOpen && isOutOpen, true);
/ohos5.0/foundation/communication/nfc/test/fuzztest/controller_test/nfccontroller/nfccontroller_fuzzer/
H A Dnfccontroller_fuzzer.cpp49 bool isOpen = data[0] % INT_TO_BOOL_DIVISOR; in FuzzIsNfcOpen() local
50 ctrl.IsNfcOpen(isOpen); in FuzzIsNfcOpen()
/ohos5.0/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/
H A Dnetfirewall_common_test.cpp68 bool isOpen = true; variable
69 parcel.WriteBool(isOpen);
77 bool isOpen = true; variable
78 parcel.WriteBool(isOpen);
/ohos5.0/drivers/peripheral/usb/ddk/device/src/
H A Dusbfn_io_mgr.c286 if (interfaceMgr->isOpen) { in UsbFnIoMgrInterfaceOpen()
303 interfaceMgr->isOpen = true; in UsbFnIoMgrInterfaceOpen()
317 if (interfaceMgr == NULL || interfaceMgr->isOpen == false) { in UsbFnIoMgrInterfaceClose()
340 interfaceMgr->isOpen = false; in UsbFnIoMgrInterfaceClose()
355 if (interfaceMgr->isOpen) { in UsbFnIoMgrInterfaceGetPipeInfo()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/netfirewallclient/src/
H A Dnetfirewall_common.cpp27 if (!parcel.WriteBool(isOpen)) { in Marshalling()
46 if (!parcel.ReadBool(ptr->isOpen)) { in Unmarshalling()
/ohos5.0/foundation/communication/nfc/services/src/ipc/controller/
H A Dnfc_controller_impl.cpp59 int NfcControllerImpl::IsNfcOpen(bool &isOpen) in IsNfcOpen() argument
64 isOpen = nfcService_.lock()->IsNfcEnabled(); in IsNfcOpen()
H A Dnfc_controller_stub.cpp111 bool isOpen = false; in HandleIsNfcOpen() local
112 int statusCode = IsNfcOpen(isOpen); in HandleIsNfcOpen()
113 reply.WriteBool(isOpen); in HandleIsNfcOpen()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/utils/
H A Djs_heap_stats_writer.cpp31 if (!file_.isOpen()) { in Write()
/ohos5.0/foundation/communication/nfc/interfaces/inner_api/controller/
H A Dnfc_controller.cpp158 int NfcController::IsNfcOpen(bool &isOpen) in IsNfcOpen() argument
160 isOpen = (GetNfcState() == NfcState::STATE_ON); in IsNfcOpen()

1234