/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | wifi_config_file_test.cpp | 38 WifiConfig tmp; variable 53 vec.push_back(tmp); 98 tmp.channel = 1; 108 tmp.priority = 1; 111 vec.push_back(tmp); 150 HotspotConfig tmp; variable 155 tmp.SetChannel(1); 156 tmp.SetMaxConn(1); 158 vec.push_back(tmp); 191 StationInfo tmp; variable [all …]
|
H A D | wifi_ip_tools_test.cpp | 45 tmp.push_back(0x20); 46 tmp.push_back(0x01); 47 tmp.push_back(0x0d); 48 tmp.push_back(0xb8); 49 tmp.push_back(0x3c); 50 tmp.push_back(0x4d); 51 tmp.push_back(0x00); 52 tmp.push_back(0x15); 53 tmp.push_back(0x00); 54 tmp.push_back(0x00); [all …]
|
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/ |
H A D | log_ioctl.cpp | 89 delete []tmp; in ReceiveProcTagStats() 95 delete []tmp; in ReceiveProcTagStats() 119 delete []tmp; in ReceiveProcLogTypeStats() 149 delete []tmp; in ReceiveProcStats() 150 tmp = nullptr; in ReceiveProcStats() 155 delete []tmp; in ReceiveProcStats() 156 tmp = nullptr; in ReceiveProcStats() 243 delete []tmp; in ReceiveLogTypeDomainStats() 244 tmp = nullptr; in ReceiveLogTypeDomainStats() 249 delete []tmp; in ReceiveLogTypeDomainStats() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/plugin_adapter/ |
H A D | plugin_bridge.cpp | 25 infoList->Put("brand", tmp.c_str()); in ProcessSystemParam() 27 tmp = SystemProperties::GetManufacturer(); in ProcessSystemParam() 31 tmp = SystemProperties::GetModel(); in ProcessSystemParam() 33 infoList->Put("model", tmp.c_str()); in ProcessSystemParam() 35 tmp = SystemProperties::GetProduct(); in ProcessSystemParam() 37 infoList->Put("product", tmp.c_str()); in ProcessSystemParam() 39 tmp = SystemProperties::GetApiVersion(); in ProcessSystemParam() 45 tmp = SystemProperties::GetReleaseType(); in ProcessSystemParam() 54 tmp = SystemProperties::GetLanguage(); in ProcessSystemParam() 59 tmp = SystemProperties::GetRegion(); in ProcessSystemParam() [all …]
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | resource_manager_test_media.cpp | 77 delete tmp; 106 delete tmp; 142 delete tmp; 178 delete tmp; 214 delete tmp; 250 delete tmp; 286 delete tmp; 370 delete tmp; 406 delete tmp; 442 delete tmp; [all …]
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/ |
H A D | crypto_common_cov_test.cpp | 80 EVP_MD *tmp = nullptr; variable 233 DeleteParcel(&tmp); 239 DeleteParcel(tmp); 256 DeleteParcel(&tmp); 277 DeleteParcel(&tmp); 287 DeleteParcel(&tmp); 298 DeleteParcel(&tmp); 309 DeleteParcel(&tmp); 317 tmp.allocUnit = 0; 321 DeleteParcel(&tmp); [all …]
|
/ohos5.0/base/security/certificate_framework/frameworks/core/life/ |
H A D | cf_api.c | 41 CfLifeCtx *tmp = (CfLifeCtx *)object; in CfLifeGet() local 42 int32_t ret = tmp->func.get(tmp->base, in, out); in CfLifeGet() 53 CfLifeCtx *tmp = (CfLifeCtx *)object; in CfLifeCheck() local 54 int32_t ret = tmp->func.check(tmp->base, in, out); in CfLifeCheck() 66 tmp->func.destroy(&tmp->base); in CfLifeDestroy() 67 CfFree(tmp); in CfLifeDestroy() 86 if (tmp == NULL) { in CfCreate() 94 CfFree(tmp); in CfCreate() 99 tmp->object.get = CfLifeGet; in CfCreate() 100 tmp->object.check = CfLifeCheck; in CfCreate() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/generic/ |
H A D | platform_device_gles.cpp | 30 data.type = tmp.type; in RENDER_BEGIN_NAMESPACE() 31 data.image = tmp.image; in RENDER_BEGIN_NAMESPACE() 32 data.bytesperpixel = tmp.bytesperpixel; in RENDER_BEGIN_NAMESPACE() 33 data.dataType = tmp.dataType; in RENDER_BEGIN_NAMESPACE() 34 data.format = tmp.format; in RENDER_BEGIN_NAMESPACE() 36 data.eglImage = tmp.eglImage; in RENDER_BEGIN_NAMESPACE() 37 data.hwBuffer = tmp.platformHwBuffer; in RENDER_BEGIN_NAMESPACE() 43 data.type = tmp.type; in RENDER_BEGIN_NAMESPACE() 44 data.image = tmp.image; in RENDER_BEGIN_NAMESPACE() 46 data.dataType = tmp.dataType; in RENDER_BEGIN_NAMESPACE() [all …]
|
/ohos5.0/base/security/certificate_framework/frameworks/core/param/src/ |
H A D | cf_param_parse.c | 27 CfParamSet *tmp = NULL; in CfConstructParamSetOut() local 28 int32_t ret = CfInitParamSet(&tmp); in CfConstructParamSetOut() 37 CfFreeParamSet(&tmp); in CfConstructParamSetOut() 41 ret = CfBuildParamSet(&tmp); in CfConstructParamSetOut() 44 CfFreeParamSet(&tmp); in CfConstructParamSetOut() 48 *out = tmp; in CfConstructParamSetOut() 54 CfParamSet *tmp = NULL; in CfConstructArrayParamSetOut() local 57 ret = CfInitParamSet(&tmp); in CfConstructArrayParamSetOut() 79 ret = CfBuildParamSet(&tmp); in CfConstructArrayParamSetOut() 85 *out = tmp; in CfConstructArrayParamSetOut() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | clip_path.cpp | 89 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 91 boxPosition = tmp; in GetGeometryBoxType() 94 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 99 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 104 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 114 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 120 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 126 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 132 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 138 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() [all …]
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/ipc/common/ |
H A D | bt_uuid.cpp | 85 std::string tmp = name; in ConvertFromString() local 90 pos = tmp.find("-"); in ConvertFromString() 102 Uuid tmp; in ConvertFrom16Bits() local 105 return tmp; in ConvertFrom16Bits() 110 Uuid tmp; in ConvertFrom32Bits() local 119 return tmp; in ConvertFrom32Bits() 138 Uuid tmp; in ConvertFromMostAndLeastBit() local 149 return tmp; in ConvertFromMostAndLeastBit() 154 Uuid tmp; in ConvertFrom128Bits() local 155 tmp.uuid_ = uuid; in ConvertFrom128Bits() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestAny.cpp | 108 ASSERT_TRUE(tmp); 110 ASSERT_TRUE(tmp); 112 ASSERT_TRUE(tmp); 114 ASSERT_TRUE(tmp); 116 ASSERT_TRUE(tmp); 118 ASSERT_TRUE(tmp); 120 ASSERT_TRUE(tmp); 122 ASSERT_TRUE(tmp); 132 ASSERT_TRUE(tmp); 134 ASSERT_TRUE(tmp); [all …]
|
/ohos5.0/base/security/certificate_framework/frameworks/core/cert/src/ |
H A D | cf_object_cert.c | 50 CfCertObjStruct *tmp = CfMalloc(sizeof(CfCertObjStruct), 0); in CfCertCreate() local 51 if (tmp == NULL) { in CfCertCreate() 57 int32_t ret = func->adapterCreate(in, &tmp->adapterRes); in CfCertCreate() 60 CfFree(tmp); in CfCertCreate() 65 *obj = &(tmp->base); in CfCertCreate() 102 CfCertObjStruct *tmp = (CfCertObjStruct *)obj; in CfCertGet() local 117 return CfCertGetItem(tmp, in, out); in CfCertGet() 131 CfCertObjStruct *tmp = (CfCertObjStruct *)obj; in CfCertCheck() local 146 CfCertObjStruct *tmp = (CfCertObjStruct *)*obj; in CfCertDestroy() local 153 tmp->func.adapterDestory(&tmp->adapterRes); in CfCertDestroy() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/state_manage/ |
H A D | cj_persistent_storage_ffi.cpp | 65 std::string tmp; in FfiOHOSAceFrameworkPersistentGetString() local 66 if (GetValueFromStorage(key, tmp)) { in FfiOHOSAceFrameworkPersistentGetString() 95 std::string tmp; in FfiOHOSAceFrameworkPersistentGetInt64() local 98 result.value = std::stoll(tmp); in FfiOHOSAceFrameworkPersistentGetInt64() 111 SetValueToStorage(key, tmp); in FfiOHOSAceFrameworkPersistentSetInt64() 126 std::string tmp; in FfiOHOSAceFrameworkPersistentGetFloat64() local 129 result.value = std::stod(tmp); in FfiOHOSAceFrameworkPersistentGetFloat64() 142 SetValueToStorage(key, tmp); in FfiOHOSAceFrameworkPersistentSetFloat64() 157 std::string tmp; in FfiOHOSAceFrameworkPersistentGetBool() local 160 result.value = tmp == "true"; in FfiOHOSAceFrameworkPersistentGetBool() [all …]
|
/ohos5.0/base/security/certificate_framework/frameworks/core/extension/src/ |
H A D | cf_object_extension.c | 51 if (tmp == NULL) { in CfExtensionCreate() 57 int32_t ret = func->adapterCreate(in, &tmp->adapterRes); in CfExtensionCreate() 60 CfFree(tmp); in CfExtensionCreate() 65 *obj = &(tmp->base); in CfExtensionCreate() 170 return CfExtGetItem(tmp, in, out); in CfExtensionGet() 172 return CfExtGetOids(tmp, in, out); in CfExtensionGet() 174 return CfExtGetEntry(tmp, in, out); in CfExtensionGet() 203 ret = tmp->func.adapterCheckCA(tmp->adapterRes, &pathLen); in CfExtensionCheck() 216 ret = tmp->func.adapterHasUnsupportedCriticalExtension(tmp->adapterRes, &flag); in CfExtensionCheck() 245 tmp->func.adapterDestory(&tmp->adapterRes); in CfExtensionDestroy() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/streamdepacketizer_fuzzer/ |
H A D | streamdepacketizer_fuzzer.cpp | 34 char tmp[Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN + 1] = {0}; in DepacketizeHeaderTest() local 35 if (memcpy_s(tmp, sizeof(tmp) - 1, data, sizeof(tmp) - 1) != EOK) { in DepacketizeHeaderTest() 40 decode.DepacketizeHeader((const char *)tmp); in DepacketizeHeaderTest() 48 char tmp[Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN + 1] = {0}; in DepacketizeBufferTest() local 49 if (memcpy_s(tmp, sizeof(tmp) - 1, data, sizeof(tmp) - 1) != EOK) { in DepacketizeBufferTest() 54 decode.DepacketizeBuffer((char *)tmp, sizeof(tmp)); in DepacketizeBufferTest()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | uuid.cpp | 56 std::string tmp = name; in FromString() local 57 std::size_t pos = tmp.find("-"); in FromString() 60 tmp.replace(pos, 1, ""); in FromString() 61 pos = tmp.find("-"); in FromString() 108 std::string tmp = ""; in ToString() local 114 tmp.push_back(hex[(*it) & 0xF]); in ToString() 121 tmp.substr(CONSTANT_TWENTY); in ToString() 128 UUID tmp = val; in CompareTo() local 162 UUID tmp; in ConvertFrom128Bits() local 164 tmp.uuid_[i] = name[i]; in ConvertFrom128Bits() [all …]
|
/ohos5.0/base/security/security_guard/frameworks/common/utils/src/ |
H A D | security_guard_utils.cpp | 34 unsigned long long tmp = 0; in StrToU32() local 35 bool isOK = StrToULL(str, tmp); in StrToU32() 36 value = static_cast<uint32_t>(tmp); in StrToU32() 37 return isOK && (tmp <= UINT32_MAX); in StrToU32() 42 long long tmp = 0; in StrToI64() local 44 value = tmp; in StrToI64() 45 return isOK && (tmp >= INT64_MIN && tmp <= INT64_MAX); in StrToI64() 50 long long tmp = 0; in StrToI64Hex() local 53 isOK = StrToLL(str, tmp, HEX_RADIX); in StrToI64Hex() 57 value = tmp; in StrToI64Hex() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttranstcpdirectlistener_fuzzer/ |
H A D | clienttranstcpdirectlistener_fuzzer.cpp | 77 char tmp = *(reinterpret_cast<const char *>(data)); in TransTdcSendBytesTest() local 86 char tmp = *(reinterpret_cast<const char *>(data)); in TransTdcSendMessageTest() local 151 char tmp[SESSION_NAME_SIZE_MAX] = {0}; in ClientTransTdcOnChannelOpenedTest() local 152 if (memcpy_s(tmp, sizeof(tmp) - 1, data, sizeof(tmp) - 1) != EOK) { in ClientTransTdcOnChannelOpenedTest() 155 ClientTransTdcOnChannelOpened(tmp, NULL); in ClientTransTdcOnChannelOpenedTest() 182 char tmp[SESSION_NAME_SIZE_MAX] = {0}; in ClientTransTdcOnSessionOpenedTest() local 183 if (memcpy_s(tmp, sizeof(tmp) - 1, data, sizeof(tmp) - 1) != EOK) { in ClientTransTdcOnSessionOpenedTest() 191 ClientTransTdcOnSessionOpened(tmp, &channel); in ClientTransTdcOnSessionOpenedTest() 226 char tmp[PROXY_MAX_MESSAGE_LEN] = {0}; in ClientTransTdcOnDataReceivedTest() local 227 if (memcpy_s(tmp, sizeof(tmp) - 1, data, sizeof(tmp) - 1) != EOK) { in ClientTransTdcOnDataReceivedTest() [all …]
|
/ohos5.0/drivers/peripheral/usb/sample/host/src/ |
H A D | usbhost_ddk_test.c | 194 if (tmp && strlen(tmp) > 0) { in UsbHostDdkTestAsyncRead() 196 errno_t err = memcpy_s(readSbuf, DATA_MAX_LEN, tmp, strlen(tmp)); in UsbHostDdkTestAsyncRead() 201 printf("%s:%d %s-%zu!\n", __func__, __LINE__, tmp, strlen(tmp)); in UsbHostDdkTestAsyncRead() 258 if (tmp && strlen(tmp) > 0) { in UsbHostDdkTestSyncRead() 260 errno_t err = memcpy_s(readSbuf, DATA_MAX_LEN, tmp, strlen(tmp)); in UsbHostDdkTestSyncRead() 265 printf("%s:%d %s-%zu!\n", __func__, __LINE__, tmp, strlen(tmp)); in UsbHostDdkTestSyncRead() 316 errno_t err = memcpy_s(readSbuf, DATA_MAX_LEN, tmp, strlen(tmp)); in UsbHostDdkTestCtrlClass() 345 if (tmp && strlen(tmp) > 0) { in UsbHostDdkTestStdGetDes() 347 errno_t err = memcpy_s(readSbuf, DATA_MAX_LEN, tmp, strlen(tmp)); in UsbHostDdkTestStdGetDes() 381 if (tmp && strlen(tmp) > 0) { in UsbHostDdkTestStdGetDesAsync() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/sessionmock_fuzzer/ |
H A D | sessionmock_fuzzer.cpp | 98 SendBytesInner(sessionId, tmp, size); in SendBytesInnerTest() 108 int *tmp = const_cast<int *>(reinterpret_cast<const int *>(data)); in GetPeerUidInnerTest() local 109 GetPeerUidInner(sessionId, tmp); in GetPeerUidInnerTest() 119 int *tmp = const_cast<int *>(reinterpret_cast<const int *>(data)); in GetPeerPidInnerTest() local 120 GetPeerPidInner(sessionId, tmp); in GetPeerPidInnerTest() 130 int *tmp = const_cast<int *>(reinterpret_cast<const int *>(data)); in IsServerSideInnerTest() local 131 IsServerSideInner(sessionId, tmp); in IsServerSideInnerTest() 142 GetMySessionNameInner(sessionId, tmp, size); in GetMySessionNameInnerTest() 153 GetPeerSessionNameInner(sessionId, tmp, size); in GetPeerSessionNameInnerTest() 164 GetPeerDeviceIdInner(sessionId, tmp, size); in GetPeerDeviceIdInnerTest() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/deactivemetanode_fuzzer/ |
H A D | deactivemetanode_fuzzer.cpp | 30 char *tmp = reinterpret_cast<char *>(malloc(size)); in DeactiveMetaNodeTest() local 31 if (tmp == nullptr) { in DeactiveMetaNodeTest() 34 if (memset_s(tmp, size, '\0', size) != EOK) { in DeactiveMetaNodeTest() 35 free(tmp); in DeactiveMetaNodeTest() 38 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in DeactiveMetaNodeTest() 39 free(tmp); in DeactiveMetaNodeTest() 43 DeactiveMetaNode(reinterpret_cast<const char *>(tmp), reinterpret_cast<const char *>(tmp)); in DeactiveMetaNodeTest() 44 free(tmp); in DeactiveMetaNodeTest()
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/stoptimesync_fuzzer/ |
H A D | stoptimesync_fuzzer.cpp | 30 char *tmp = reinterpret_cast<char *>(malloc(size)); in StopTimeSyncTest() local 31 if (tmp == nullptr) { in StopTimeSyncTest() 34 if (memset_s(tmp, size, '\0', size) != EOK) { in StopTimeSyncTest() 35 free(tmp); in StopTimeSyncTest() 38 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in StopTimeSyncTest() 39 free(tmp); in StopTimeSyncTest() 44 StopTimeSync(reinterpret_cast<const char *>(tmp), reinterpret_cast<const char *>(tmp)); in StopTimeSyncTest() 45 free(tmp); in StopTimeSyncTest()
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/setnodedatachangeflag_fuzzer/ |
H A D | setnodedatachangeflag_fuzzer.cpp | 31 char *tmp = reinterpret_cast<char *>(malloc(size)); in DoSomethingInterestingWithMyAPI() local 32 if (tmp == nullptr) { in DoSomethingInterestingWithMyAPI() 35 if (memset_s(tmp, size, '\0', size) != EOK) { in DoSomethingInterestingWithMyAPI() 36 free(tmp); in DoSomethingInterestingWithMyAPI() 39 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in DoSomethingInterestingWithMyAPI() 40 free(tmp); in DoSomethingInterestingWithMyAPI() 45 SetNodeDataChangeFlag(reinterpret_cast<const char *>(tmp), in DoSomethingInterestingWithMyAPI() 46 reinterpret_cast<const char *>(tmp), DATA_CHANGE_FLAG); in DoSomethingInterestingWithMyAPI() 47 free(tmp); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/stoppublishlnn_fuzzer/ |
H A D | stoppublishlnn_fuzzer.cpp | 30 char *tmp = reinterpret_cast<char *>(malloc(size)); in StopPublishLNNTest() local 31 if (tmp == nullptr) { in StopPublishLNNTest() 34 if (memset_s(tmp, size, '\0', size) != EOK) { in StopPublishLNNTest() 35 free(tmp); in StopPublishLNNTest() 38 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in StopPublishLNNTest() 39 free(tmp); in StopPublishLNNTest() 44 StopPublishLNN(reinterpret_cast<const char *>(tmp), in StopPublishLNNTest() 45 *const_cast<int32_t *>(reinterpret_cast<const int32_t *>(tmp))); in StopPublishLNNTest() 46 free(tmp); in StopPublishLNNTest()
|