/foundation/communication/netmanager_base/test/netmanagerutils/unittest/netmanager_base_common_test/ |
H A D | netmanager_data_share_utils_test.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 87 std::string on = "1"; in HWTEST_F() local 89 int32_t ret = netDataShareHelperUtils_->Insert(wifiUri, KEY_WIFI, on); in HWTEST_F() 95 std::string on = "1"; in HWTEST_F() local 97 int32_t ret = netDataShareHelperUtils_->Insert(wifiUri, KEY_WIFI, on); in HWTEST_F() 111 std::string on = "1"; in HWTEST_F() local 113 int32_t ret = netDataShareHelperUtils_->Insert(usbUri, KEY_WIFI, on); in HWTEST_F() 127 std::string on = "1"; in HWTEST_F() local 129 int32_t ret = netDataShareHelperUtils_->Insert(blueToothUri, KEY_WIFI, on); in HWTEST_F() 135 std::string on in HWTEST_F() local 151 std::string on = "1"; HWTEST_F() local 167 std::string on = "1"; HWTEST_F() local [all...] |
/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/ |
H A D | net_datashare_utils_test.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 68 std::string on = "1"; in HWTEST_F() local 70 int32_t ret = netDataShareHelperUtils_->Insert(wifiUri, KEY_SHARING_WIFI, on); in HWTEST_F() 78 ret = netDataShareHelperUtils_->Insert(usbUri, KEY_SHARING_USB, on); in HWTEST_F() 85 ret = netDataShareHelperUtils_->Insert(bluetoothUri, KEY_SHARING_BLUETOOTH, on); in HWTEST_F() 101 std::string on = "1"; in HWTEST_F() local 103 int32_t ret = netDataShareHelperUtils_->Insert(wifiUri, KEY_SHARING_WIFI, on); in HWTEST_F() 111 ret = netDataShareHelperUtils_->Insert(usbUri, KEY_SHARING_USB, on); in HWTEST_F() 118 ret = netDataShareHelperUtils_->Insert(bluetoothUri, KEY_SHARING_BLUETOOTH, on); in HWTEST_F() 132 std::string on in HWTEST_F() local 164 std::string on = "1"; HWTEST_F() local [all...] |
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/client/ |
H A D | fast_audio_stream_unit_test.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 87 bool on = false; in HWTEST() local 89 fastAudioStream->SetSilentModeAndMixWithOthers(on); in HWTEST() 92 fastAudioStream->SetSilentModeAndMixWithOthers(on); in HWTEST() 95 on = true; in HWTEST() 97 fastAudioStream->SetSilentModeAndMixWithOthers(on); in HWTEST() 100 fastAudioStream->SetSilentModeAndMixWithOthers(on); in HWTEST()
|
/foundation/arkui/ace_engine/test/component_test/tools/middle_ground/util/ |
H A D | index.js | 10 * distributed under the License is distributed on an "AS IS" BASIS, 27 .on('data', (row) => { 30 .on('end', () => { 33 .on('error', (error) => { 46 workerProcess.stdout.on('data', function (data) { 49 workerProcess.stderr.on('data', function (data) { 53 workerProcess.on('exit', (code) => {
|
/foundation/arkui/ace_engine/test/component_test/tools/previewer_host/main/ |
H A D | gitee_rest_api.js | 10 * distributed under the License is distributed on an "AS IS" BASIS, 67 fileStream.on('finish', () => { 70 fileStream.on('error', (error) => { 75 request.on('error', (error) => { 86 .on('entry', (entry) => { 98 .on('error', (error) => { 101 .on('close', () => { 116 .on('error', reject) 117 .on('finish', () => {
|
/foundation/CastEngine/castengine_wifi_display/services/network/socket/ |
H A D | socket_utils.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 244 int32_t on = isReuse ? 1 : 0; in SetReuseAddr() local 245 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) != 0) { in SetReuseAddr() 256 int32_t on = isReuse ? 1 : 0; in SetReusePort() local 257 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on)) != 0) { in SetReusePort() 307 int32_t on = isOn; in SetNoDelay() local 308 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)) ! in SetNoDelay() 319 int32_t on = 1; SetKeepAlive() local [all...] |
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/test/unittest/src/ |
H A D | ObjectStoreJsunit.test.js | 10 * distributed under the License is distributed on an "AS IS" BASIS, 101 * @tc.desc: object join session and on,object can receive callback when data has been changed 112 g_object.on("change", function (sessionId, changeData) { 139 * @tc.desc object join session and no on,obejct can not receive callback when data has been changed 166 * @tc.desc: object join session and on,then object change data twice,object can receive two callbacks when data has been changed 176 g_object.on("change", changeCallback); 200 * @tc.desc object join session and on,then object do not change data,object can not receive callbacks 210 g_object.on("change", changeCallback); 219 * @tc.desc object join session and on&off,object can not receive callback after off 230 g_object.on("chang [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/include/manager/ |
H A D | sharing_manager.h | 10 * distributed under the License is distributed on an "AS IS" BASIS, 98 int32_t SetIpv6PrivacyExtensions(const std::string &interfaceName, const uint32_t on); 99 int32_t SetEnableIpv6(const std::string &interfaceName, const uint32_t on);
|
/foundation/communication/netstack/frameworks/js/napi/socket/options/src/ |
H A D | tcp_extra_options.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 21 void TCPExtraOptions::SocketLinger::SetOn(bool on) in SetOn() argument 23 on_ = on; in SetOn()
|
/foundation/communication/dsoftbus/core/connection/common/src/ |
H A D | softbus_tcp_socket.c | 10 * distributed under the License is distributed on an "AS IS" BASIS, 33 static int SetReusePort(int fd, int on) in SetReusePort() argument 35 int rc = SoftBusSocketSetOpt(fd, SOFTBUS_SOL_SOCKET, SOFTBUS_SO_REUSEPORT, &on, sizeof(on)); in SetReusePort() 44 static int SetReuseAddr(int fd, int on) in SetReuseAddr() argument 46 int rc = SoftBusSocketSetOpt(fd, SOFTBUS_SOL_SOCKET, SOFTBUS_SO_REUSEADDR, &on, sizeof(on)); in SetReuseAddr() 54 static int SetNoDelay(int fd, int on) in SetNoDelay() argument 56 int rc = SoftBusSocketSetOpt(fd, SOFTBUS_IPPROTO_TCP, SOFTBUS_TCP_NODELAY, &on, sizeof(on)); in SetNoDelay() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/netlink/test/ |
H A D | netlink_listener_test.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 93 int32_t on = 1; in StartSocket() local 111 if (setsockopt(socketFd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) != 0) { in StartSocket()
|
H A D | netlink_handler_test.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 95 int32_t on = 1; in StartSocket() local 114 if (setsockopt(socketFd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) != 0) { in StartSocket()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/ |
H A D | file_adapter.c | 10 * distributed under the License is distributed on an "AS IS" BASIS, 28 static int SetReuseAddr(int fd, int on) in SetReuseAddr() argument 30 int rc = SoftBusSocketSetOpt(fd, SOFTBUS_SOL_SOCKET, SOFTBUS_SO_REUSEADDR, &on, sizeof(on)); in SetReuseAddr() 38 static int SetReusePort(int fd, int on) in SetReusePort() argument 40 int rc = SoftBusSocketSetOpt(fd, SOFTBUS_SOL_SOCKET, SOFTBUS_SO_REUSEPORT, &on, sizeof(on)); in SetReusePort()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | netlink_manager.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 57 int32_t on = 1; in CreateNetlinkDistributor() local 78 if (setsockopt(socketFd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in CreateNetlinkDistributor()
|
/foundation/distributeddatamgr/preferences/test/js/unittest/preferences/src/ |
H A D | PreferencesHelperJsunit.test.js | 11 * distributed under the License is distributed on an "AS IS" BASIS, 236 * @tc.name repeat on interface test 238 * @tc.desc repeat on interface test 246 await mPreferences.on('change', observer); 247 await mPreferences.on('change', observer); 261 await mPreferences.on('change', observer);
|
/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/ |
H A D | KvManagerDataPromiseJsTest.js | 10 * distributed under the License is distributed on an "AS IS" BASIS, 696 kvManager.on('distributedDataServiceDie', deathCallback); 715 kvManager.on('distributedDataServiceDie', deathCallback1); 716 kvManager.on('distributedDataServiceDie', deathCallback2); 733 kvManager.on('distributedDataServiceDie', deathCallback); 734 kvManager.on('distributedDataServiceDie', deathCallback); 765 kvManager.on('distributedDataServiceDie', deathCallback); 784 kvManager.on('distributedDataServiceDie', deathCallback1); 785 kvManager.on('distributedDataServiceDie', deathCallback2); 801 kvManager.on('distributedDataServiceDi [all...] |
/foundation/multimedia/audio_framework/interfaces/kits/c/audio_renderer/ |
H A D | native_audiorenderer.h | 10 * distributed under the License is distributed on an "AS IS" BASIS, 255 * @brief Set mark position on current renderer. Calling this function will overwrite the mark postion which has already 311 * @brief Gets the underflow count on this stream. 373 * @param on The silent and mix with other stream status. 377 OH_AudioRenderer* renderer, bool on); 385 * @param on Pointer to the silent and mix with other stream status. 389 OH_AudioRenderer* renderer, bool* on); 393 * This function applys on audiorenderers whose StreamUsage are
|
/foundation/graphic/graphic_surface/surface/include/ |
H A D | buffer_queue_consumer.h | 10 * distributed under the License is distributed on an "AS IS" BASIS, 67 void ConsumerRequestCpuAccess(bool on) in ConsumerRequestCpuAccess() argument 69 bufferQueue_->ConsumerRequestCpuAccess(on); in ConsumerRequestCpuAccess()
|
/foundation/distributeddatamgr/data_object/samples/distributedNotepad/entry/src/main/js/model/ |
H A D | DistributedDataModel.js | 10 * distributed under the License is distributed on an "AS IS" BASIS, 63 this.distributedObject.on('change', this.#callback); 77 this.distributedObject.on('status', this.#statusCallback);
|
/foundation/distributeddatamgr/preferences/test/js/unittest/storage/src/ |
H A D | StorageSyncJsunit.test.js | 10 * distributed under the License is distributed on an "AS IS" BASIS, 267 mPref.on('change', observer); 272 * @tc.name repeat on interface test 274 * @tc.desc repeat on interface test 281 mPref.on('change', observer); 282 mPref.on('change', observer); 296 mPref.on('change', observer);
|
/foundation/communication/netstack/frameworks/js/napi/socket/options/include/ |
H A D | tcp_extra_options.h | 10 * distributed under the License is distributed on an "AS IS" BASIS, 32 void SetOn(bool on);
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | clat_utils.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 244 NETNATIVE_LOGW("Unable to find global source address on %{public}s for %{public}s", v6IfaceStr.c_str(), in GenerateIpv6Address() 295 const int on = 1; in OpenPacketSocket() local 297 if (setsockopt(readSock6, SOL_PACKET, PACKET_AUXDATA, &on, sizeof(on))) { in OpenPacketSocket() 303 if (setsockopt(readSock6, SOL_PACKET, PACKET_VNET_HDR, &on, sizeof(on))) { in OpenPacketSocket() 320 NETNATIVE_LOGW("could not set mark on raw socket"); in OpenRawSocket6()
|
/foundation/multimedia/audio_framework/frameworks/js/napi/asrcontroller/ |
H A D | napi_asr_processing_controller.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 389 bool on = false; in SetAsrVoiceControlMode() local 392 int32_t retBool = NapiParamUtils::GetValueBoolean(env, on, argv[PARAM1]); in SetAsrVoiceControlMode() 404 static_cast<AsrVoiceControlMode>(asrVoiceControlMode), on); in SetAsrVoiceControlMode() 422 bool on = false; in SetAsrVoiceMuteMode() local 425 int32_t retBool = NapiParamUtils::GetValueBoolean(env, on, argv[PARAM1]); in SetAsrVoiceMuteMode() 437 static_cast<AsrVoiceMuteMode>(asrVoiceMuteMode), on); in SetAsrVoiceMuteMode()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | sharing_manager.cpp | 10 * distributed under the License is distributed on an "AS IS" BASIS, 236 int32_t SharingManager::SetIpv6PrivacyExtensions(const std::string &interfaceName, const uint32_t on) in SetIpv6PrivacyExtensions() argument 239 const char *value = on ? OPEN_IPV6_PRIVACY_EXTENSIONS : CLOSE_IPV6_PRIVACY_EXTENSIONS; in SetIpv6PrivacyExtensions() 244 int32_t SharingManager::SetEnableIpv6(const std::string &interfaceName, const uint32_t on) in SetEnableIpv6() argument 247 const char *value = on ? ENABLE_IPV6_VALUE : DISABLE_IPV6_VALUE; in SetEnableIpv6()
|
/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/ |
H A D | RdbStoreDistributedJsunit.test.js | 10 * distributed under the License is distributed on an "AS IS" BASIS, 316 rdbStore.on("dataChange", data_relationalStore.SubscribeType.SUBSCRIBE_TYPE_REMOTE, (device) => { 319 console.log(TAG + "on dataChange success"); 349 rdbStore.on("dataChange", data_relationalStore.SubscribeType.SUBSCRIBE_TYPE_CLOUD, (device) => { 352 console.log(TAG + "on dataChange success"); 381 rdbStore.on("dataChange", data_relationalStore.SubscribeType.SUBSCRIBE_TYPE_CLOUD_DETAILS, (device) => { 384 console.log(TAG + "on dataChange success"); 451 * @tc.desc normal testcase for autoSyncProgress of interface 'on' 456 rdbStore.on("autoSyncProgress", function (detail) { 461 console.log(TAG + "on autoSyncProgres [all...] |