/foundation/communication/wifi/tests/wifi_standard/wifi_framework/common/unittest/ |
D | wifi_config_file_test.cpp | 38 WifiConfig tmp; variable 39 tmp.defaultWifiInterface = "abcd"; 40 tmp.scanAlwaysSwitch = true; 41 tmp.staAirplaneMode = true; 42 tmp.staLastState = true; 43 tmp.savedDeviceAppraisalPriority = PRIORITY_1; 44 tmp.scoretacticsScoreSlope = SCORE_SLOPE; 45 tmp.scoretacticsInitScore = INIT_SCORE; 46 tmp.scoretacticsSameBssidScore = SAME_BSSID_SCORE; 47 tmp.scoretacticsSameNetworkScore = SAME_NETWORK_SCORE; [all …]
|
D | wifi_ip_tools_test.cpp | 40 std::vector<unsigned char> tmp; variable 41 EXPECT_TRUE(IpTools::ConvertIpv6Address(tmp) == ""); 43 tmp.push_back(0x20); 44 tmp.push_back(0x01); 45 tmp.push_back(0x0d); 46 tmp.push_back(0xb8); 47 tmp.push_back(0x3c); 48 tmp.push_back(0x4d); 49 tmp.push_back(0x00); 50 tmp.push_back(0x15); [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/common/plugin_adapter/ |
D | plugin_bridge.cpp | 25 std::string tmp = SystemProperties::GetBrand(); in ProcessSystemParam() local 26 if (tmp != SystemProperties::INVALID_PARAM) { in ProcessSystemParam() 27 infoList->Put("brand", tmp.c_str()); in ProcessSystemParam() 29 tmp = SystemProperties::GetManufacturer(); in ProcessSystemParam() 30 if (tmp != SystemProperties::INVALID_PARAM) { in ProcessSystemParam() 31 infoList->Put("manufacturer", tmp.c_str()); in ProcessSystemParam() 33 tmp = SystemProperties::GetModel(); in ProcessSystemParam() 34 if (tmp != SystemProperties::INVALID_PARAM) { in ProcessSystemParam() 35 infoList->Put("model", tmp.c_str()); in ProcessSystemParam() 37 tmp = SystemProperties::GetProduct(); in ProcessSystemParam() [all …]
|
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/ |
D | softbus_adapter_mem.c | 31 void *tmp = OhosMalloc(MEM_TYPE_SOFTBUS_LSRAM, size); in SoftBusMalloc() local 33 void *tmp = malloc(size); in SoftBusMalloc() local 35 return tmp; in SoftBusMalloc() 40 void *tmp = SoftBusMalloc(size); in SoftBusCalloc() local 41 if (tmp == NULL) { in SoftBusCalloc() 45 errno_t err = memset_s(tmp, size, 0, size); in SoftBusCalloc() 47 SoftBusFree(tmp); in SoftBusCalloc() 50 return tmp; in SoftBusCalloc()
|
/foundation/multimedia/histreamer/tests/ut/ |
D | TestAny.cpp | 96 auto tmp = UseStorage<uint8_t, Any::TrivialStackFunctionTable>(); in TEST() local 97 ASSERT_TRUE(tmp); in TEST() 98 tmp = UseStorage<int8_t, Any::TrivialStackFunctionTable>(); in TEST() 99 ASSERT_TRUE(tmp); in TEST() 100 tmp = UseStorage<uint16_t, Any::TrivialStackFunctionTable>(); in TEST() 101 ASSERT_TRUE(tmp); in TEST() 102 tmp = UseStorage<int16_t, Any::TrivialStackFunctionTable>(); in TEST() 103 ASSERT_TRUE(tmp); in TEST() 104 tmp = UseStorage<uint32_t, Any::TrivialStackFunctionTable>(); in TEST() 105 ASSERT_TRUE(tmp); in TEST() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/common/ |
D | bt_uuid.cpp | 80 std::string tmp = name; in ConvertFromString() local 81 std::size_t pos = tmp.find("-"); in ConvertFromString() 84 tmp.replace(pos, 1, ""); in ConvertFromString() 85 pos = tmp.find("-"); in ConvertFromString() 88 for (std::size_t i = 0; (i + 1) < tmp.length(); i += SIZE_STRING_TO_INT) { in ConvertFromString() 89 …ret.uuid_[i / SIZE_STRING_TO_INT] = std::stoi(tmp.substr(i, SIZE_STRING_TO_INT), nullptr, UUID128_… in ConvertFromString() 97 Uuid tmp; in ConvertFrom16Bits() local 98 … tmp.uuid_[UUID_TIME_LOW_THIRD_BYTE] = static_cast<uint8_t>((uuid & 0xFF00) >> BASE_BIT_OPT_SIZE); in ConvertFrom16Bits() 99 tmp.uuid_[UUID_TIME_LOW_FOURTH_BYTE] = static_cast<uint8_t>(uuid & 0x00FF); in ConvertFrom16Bits() 100 return tmp; in ConvertFrom16Bits() [all …]
|
/foundation/ace/ace_engine/frameworks/core/components/common/properties/ |
D | clip_path.cpp | 90 std::string::size_type tmp = value.find("margin-box"); in GetGeometryBoxType() local 91 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 93 boxPosition = tmp; in GetGeometryBoxType() 95 tmp = value.find("border-box"); in GetGeometryBoxType() 96 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 98 boxPosition = tmp; in GetGeometryBoxType() 100 tmp = value.find("padding-box"); in GetGeometryBoxType() 101 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 103 boxPosition = tmp; in GetGeometryBoxType() 105 tmp = value.find("content-box"); in GetGeometryBoxType() [all …]
|
/foundation/communication/bluetooth/interfaces/innerkits/native_cpp/include/ |
D | uuid.h | 107 std::string tmp = name; in FromString() local 108 std::size_t pos = tmp.find("-"); in FromString() 111 tmp.replace(pos, 1, ""); in FromString() 112 pos = tmp.find("-"); in FromString() 115 for (std::size_t i = 0; (i + 1) < tmp.length();) { in FromString() 116 ret.uuid_[i / 2] = std::stoi(tmp.substr(i, 2), nullptr, 16); in FromString() 169 std::string tmp = ""; in ToString() local 174 tmp.push_back(hex[((*it) >> 4 & 0xF)]); in ToString() 175 tmp.push_back(hex[(*it) & 0xF]); in ToString() 178 …ret = tmp.substr(0, 8) + "-" + tmp.substr(8, 4) + "-" + tmp.substr(12, 4) + "-" + tmp.substr(16, 4… in ToString() [all …]
|
/foundation/communication/wifi/services/wifi_standard/wifi_hal/wifi_hal_module/wpa_supplicant_hal/ |
D | wifi_wpa_common.c | 50 const char *tmp = str + strlen("0x"); in Hex2Dec() local 51 while (*tmp != '\0') { in Hex2Dec() 53 if (*tmp >= '0' && *tmp <= '9') { in Hex2Dec() 54 result += *tmp - '0'; in Hex2Dec() 55 } else if (*tmp >= 'A' && *tmp <= 'F') { in Hex2Dec() 56 result += *tmp - 'A' + DEC_MAX_SCOPE; in Hex2Dec() 57 } else if (*tmp >= 'a' && *tmp <= 'f') { in Hex2Dec() 58 result += *tmp - 'a' + DEC_MAX_SCOPE; in Hex2Dec() 63 ++tmp; in Hex2Dec()
|
/foundation/communication/bluetooth/services/bluetooth_standard/ipc/parcel/ |
D | bluetooth_pbap_pce_parameter.cpp | 97 int tmp = 0; in readFromParcel() local 108 status = parcel.ReadInt32(tmp); in readFromParcel() 112 SetFormat(tmp); in readFromParcel() 113 status = parcel.ReadInt32(tmp); in readFromParcel() 117 SetMaxListCount(tmp); in readFromParcel() 118 status = parcel.ReadInt32(tmp); in readFromParcel() 122 SetListStartOffset(tmp); in readFromParcel() 123 status = parcel.ReadInt32(tmp); in readFromParcel() 127 SetResetNewMissedCalls(tmp); in readFromParcel() 133 status = parcel.ReadInt32(tmp); in readFromParcel() [all …]
|
/foundation/communication/wifi/services/wifi_standard/ipc_framework/cRPC/src/ |
D | context.c | 158 int tmp = context->rCapacity - context->rEnd; in ContextAppendRead() local 159 if (tmp > 0 && memmove_s(context->szRead + context->rEnd, tmp, buf, tmp) != EOK) { in ContextAppendRead() 162 if (tmp < len && memmove_s(context->szRead, len - tmp, buf + tmp, len - tmp) != EOK) { in ContextAppendRead() 165 context->rEnd = len - tmp; in ContextAppendRead() 185 int tmp = context->wCapacity - context->wEnd; in ContextAppendWrite() local 186 if (tmp > 0 && memmove_s(context->szWrite + context->wEnd, tmp, buf, tmp) != EOK) { in ContextAppendWrite() 189 if (tmp < len && memmove_s(context->szWrite, len - tmp, buf + tmp, len - tmp) != EOK) { in ContextAppendWrite() 192 context->wEnd = len - tmp; in ContextAppendWrite() 218 int tmp = context->rCapacity - context->rBegin; in ContextGetReadRecord() local 219 if (tmp > 0 && memmove_s(buf, len + 1, context->szRead + context->rBegin, tmp) != EOK) { in ContextGetReadRecord() [all …]
|
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/ |
D | bundle_active_proxy.cpp | 75 std::shared_ptr<BundleActivePackageStats> tmp; in QueryPackageStats() local 77 tmp = tmp->Unmarshalling(reply); in QueryPackageStats() 78 if (tmp == nullptr) { in QueryPackageStats() 81 result.push_back(*tmp); in QueryPackageStats() 109 std::shared_ptr<BundleActiveEvent> tmp; in QueryEvents() local 111 tmp = tmp->Unmarshalling(reply); in QueryEvents() 112 if (tmp == nullptr) { in QueryEvents() 115 result.push_back(*tmp); in QueryEvents() 153 std::shared_ptr<BundleActivePackageStats> tmp; in QueryCurrentPackageStats() local 155 tmp = tmp->Unmarshalling(reply); in QueryCurrentPackageStats() [all …]
|
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_a/ |
D | softbus_adapter_mem.c | 30 void *tmp = SoftBusMalloc(size); in SoftBusCalloc() local 31 if (tmp == NULL) { in SoftBusCalloc() 35 errno_t err = memset_s(tmp, size, 0, size); in SoftBusCalloc() 37 SoftBusFree(tmp); in SoftBusCalloc() 40 return tmp; in SoftBusCalloc()
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/ |
D | environment.ts | 72 let tmp; 75 tmp = Environment.EnvBackend_ .getAccessibilityEnabled(); 78 tmp = Environment.EnvBackend_ .getColorMode(); 81 tmp = Environment.EnvBackend_ .getFontScale(); 84 tmp = Environment.EnvBackend_ .getFontWeightScale().toFixed(2); 87 tmp = Environment.EnvBackend_ .getLayoutDirection(); 90 tmp = Environment.EnvBackend_ .getLanguageCode(); 93 tmp = value; 95 prop = AppStorage.SetAndProp(key, tmp);
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/util/ |
D | state_machine.cpp | 67 State *tmp = it->second.get(); in Transition() local 69 dstStack[dstDepth - i - 1] = tmp; in Transition() 70 tmp = tmp->parent_; in Transition() 96 State *tmp = &state; in GetStateDepth() local 97 while (tmp != nullptr) { in GetStateDepth() 99 tmp = tmp->parent_; in GetStateDepth()
|
/foundation/communication/dsoftbus/core/transmission/session/src/ |
D | trans_session_manager.c | 61 SessionServer *tmp = NULL; in TransSessionServerIsExist() local 66 LIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &g_sessionServerList->list, SessionServer, node) { in TransSessionServerIsExist() 97 SessionServer *tmp = NULL; in TransSessionServerAddItem() local 98 LIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &g_sessionServerList->list, SessionServer, node) { in TransSessionServerAddItem() 124 SessionServer *tmp = NULL; in TransSessionServerDelItem() local 128 LIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &g_sessionServerList->list, SessionServer, node) { in TransSessionServerDelItem() 151 SessionServer *tmp = NULL; in TransDelItemByPackageName() local 156 LIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &g_sessionServerList->list, SessionServer, node) { in TransDelItemByPackageName() 179 SessionServer *tmp = NULL; in TransGetPkgNameBySessionName() local 184 LIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &g_sessionServerList->list, SessionServer, node) { in TransGetPkgNameBySessionName() [all …]
|
/foundation/ace/napi/sample/native_module_netserver/ |
D | event_target.cpp | 59 auto tmp = new EventListener(); in On() local 61 if (strncpy_s(tmp->type, LISTENER_TYPTE_MAX_LENGTH, type, strlen(type)) != EOK) { in On() 62 delete tmp; in On() 63 tmp = nullptr; in On() 68 first_ = last_ = tmp; in On() 70 last_->next = tmp; in On() 80 auto tmp = new EventListener(); in Once() local 82 if (strncpy_s(tmp->type, LISTENER_TYPTE_MAX_LENGTH, type, strlen(type)) != EOK) { in Once() 83 delete tmp; in Once() 84 tmp = nullptr; in Once() [all …]
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/ |
D | nstackx_util.c | 144 char *tmp = NULL; in TestAndCreateDirectory() local 153 tmp = (char *)calloc(len + 1, sizeof(char)); in TestAndCreateDirectory() 154 if (tmp == NULL) { in TestAndCreateDirectory() 160 tmp[i] = path[i]; in TestAndCreateDirectory() 161 if (tmp[i] != PATH_SEPARATOR) { in TestAndCreateDirectory() 164 if (access(tmp, 0) == -1) { in TestAndCreateDirectory() 165 ret = mkdir(tmp, DEFAULT_NEW_PATH_AUTHORITY); in TestAndCreateDirectory() 168 free(tmp); in TestAndCreateDirectory() 173 free(tmp); in TestAndCreateDirectory()
|
/foundation/multimedia/histreamer/engine/plugin/core/ |
D | plugin_meta.cpp | 146 auto tmp = new (std::nothrow) uint8_t[size]; in SetPointer() local 147 if (tmp == nullptr) { in SetPointer() 150 std::shared_ptr<uint8_t> savePtr(tmp, std::default_delete<uint8_t[]>()); in SetPointer() 152 delete[] tmp; in SetPointer() 166 auto tmp = new (std::nothrow) uint8_t[size]; in GetPointer() local 167 if (tmp == nullptr) { in GetPointer() 170 if (memcpy_s(tmp, size, item.first.get(), size) != EOK) { in GetPointer() 171 delete[] tmp; in GetPointer() 174 *ptr = tmp; in GetPointer() 185 for (const auto& tmp : items_) { in GetMetaIDs() local [all …]
|
/foundation/communication/wifi/services/wifi_standard/wifi_hal/common/ |
D | wifi_hal_common_func.c | 81 unsigned char tmp = 0; in ConvertMacToArray() local 88 tmp <<= shiftNum; in ConvertMacToArray() 89 tmp |= v; in ConvertMacToArray() 95 mac[i / macSpaceNum] = tmp; in ConvertMacToArray() 97 tmp = 0; in ConvertMacToArray() 100 mac[MAC_STRING_SIZE / macSpaceNum] = tmp; in ConvertMacToArray()
|
/foundation/appexecfwk/standard/services/test/moduletest/utils/src/ |
D | common_tool.cpp | 38 char tmp[size]; in ExcuteCmd() local 39 tmp[0] = '\0'; in ExcuteCmd() 40 while (fgets(tmp, sizeof(tmp), file) != nullptr) { in ExcuteCmd() 41 if (tmp[strlen(tmp) - 1] == '\n') { in ExcuteCmd() 42 tmp[strlen(tmp) - 1] = '\0'; in ExcuteCmd() 44 std::string iem(tmp); in ExcuteCmd()
|
/foundation/ace/napi/reference_manager/ |
D | native_reference_manager.cpp | 44 NativeReferenceHandler* tmp = nullptr; in ReleaseHandler() local 47 if (tmp) { in ReleaseHandler() 48 tmp->next = handler->next; in ReleaseHandler() 55 tmp = handler; in ReleaseHandler()
|
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/mod_fileio/properties/ |
D | mkdtemp.cpp | 34 unique_ptr<char[]> tmp; in Sync() local 36 tie(succ, tmp, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Sync() 41 path = tmp.get(); in Sync() 56 unique_ptr<char[]> tmp; in Async() local 58 tie(succ, tmp, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Async() 63 string path = tmp.get(); in Async()
|
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
D | bundle_active_stub.cpp | 59 bool tmp = result[i].Marshalling(reply); in OnRemoteRequest() local 60 if (tmp == false) { in OnRemoteRequest() 77 bool tmp = result[i].Marshalling(reply); in OnRemoteRequest() local 78 if (tmp == false) { in OnRemoteRequest() 105 bool tmp = result[i].Marshalling(reply); in OnRemoteRequest() local 106 if (tmp == false) { in OnRemoteRequest() 121 bool tmp = result[i].Marshalling(reply); in OnRemoteRequest() local 122 if (tmp == false) { in OnRemoteRequest()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
D | stream_msg_manager.cpp | 23 auto tmp = std::make_shared<StreamMsgManager>(); in GetInstance() local 24 tmp->SetChannel(channel); in GetInstance() 25 return tmp; in GetInstance()
|