/applications/sample/camera/communication/wpa_cli/src/ |
H A D | wpa_cli_sample.c | 46 static void DumpString(const char *buf, int len, const char *tag) in DumpString() argument 49 for (int i = 0; i < len; i++) { in DumpString() 61 static void WifiEventHandler(char *rawEvent, int len) in WifiEventHandler() argument 95 size_t len = sizeof(buf) - 1; in CliRecvPending() local 96 if (wpa_ctrl_recv(g_monitorConn, buf, &len) == 0) { in CliRecvPending() 97 buf[len] = '\0'; in CliRecvPending() 99 WifiEventHandler(buf, len); in CliRecvPending() 129 size_t len = *replyLen - 1; in SendCtrlCommand() local 130 wpa_ctrl_request(g_ctrlConn, cmd, strlen(cmd), reply, &len, 0); in SendCtrlCommand() 131 DumpString(reply, len, "SendCtrlComman in SendCtrlCommand() [all...] |
/applications/sample/camera/setting/setting/src/main/cpp/ |
H A D | wpa_work.c | 75 size_t len = *replyLen - 1; in SendCtrlCommand() local 76 wpa_ctrl_request(ctrlConn, cmd, strlen(cmd), reply, &len, 0); in SendCtrlCommand() 82 if (len != 0 && !StrMatch(reply, WPA_CTRL_REQUEST_FAIL)) { in SendCtrlCommand() 83 *replyLen = len; in SendCtrlCommand() 90 static void ProcessScanResult(const char *buf, int len) in ProcessScanResult() argument 101 for (int i = 0; i < len; i++) { in ProcessScanResult() 106 for (j = 0; i < len && buf[i] != '\n'; i++) { in ProcessScanResult() 126 int GetCurrentConnInfo(char *ssid, int len) in GetCurrentConnInfo() argument 162 if (len < ssidLen) { in GetCurrentConnInfo() 199 size_t len in ExitWpa() local 276 WifiEventHandler(char *rawEvent, int len) WifiEventHandler() argument 324 size_t len = sizeof(buf) - 1; CliRecvPending() local [all...] |
H A D | wpa_work.h | 39 int GetCurrentConnInfo(char *ssid, int len);
|
/applications/standard/app_samples/code/Project/HapBuild/test-tool/ |
H A D | InstallAndTestSpecial_ci.py | 153 if len(uninstall_bundles) != 1: 173 if (len(nums) == 0): 277 if len(cur_batch_hap) != 0: 319 if len(nums) == 4 or len(nums) == 5: 346 if len(fail_dict) > 0: 350 if len(died_dict) > 0: 354 error_log.writelines(f"安装失败项目数量:{len(install_fail_dict)}\n") 357 if len(special_hap_list) > 0: 363 if fail_num != 0 or died_num != 0 or len(install_fail_dic [all...] |
/applications/sample/wifi-iot/app/samgr/ |
H A D | feature_example.c | 112 Response response = {.data = "Yes, you did!", .len = 0}; in FEATURE_OnMessage() 145 request.len = (uint32_t)(strlen(body) + 1); in AsyncCall() 146 request.data = malloc(request.len); in AsyncCall() 150 if (strcpy_s(request.data, request.len, body) != EOK) { in AsyncCall() 171 request.len = (uint32_t)(strlen(body) + 1); in AsyncCallBack() 172 request.data = malloc(request.len); in AsyncCallBack() 176 if (strcpy_s(request.data, request.len, body) != EOK) { in AsyncCallBack()
|
/applications/standard/app_samples/code/BasicFeature/Native/NdkDrawing/entry/src/main/cpp/samples/ |
H A D | sample_bitmap.cpp | 165 int len = height_ / 4; in ConstructPath() local 168 float dX = aX - len * std::sin(18.0f); in ConstructPath() 169 float dY = aY + len * std::cos(18.0f); in ConstructPath() 170 float cX = aX + len * std::sin(18.0f); in ConstructPath() 172 float bX = aX + (len / 2.0); in ConstructPath() 173 float bY = aY + std::sqrt((cX - dX) * (cX - dX) + (len / 2.0) * (len / 2.0)); in ConstructPath() 174 float eX = aX - (len / 2.0); in ConstructPath()
|
/applications/standard/app_samples/code/BasicFeature/Native/NdkRenderNodeDrawing/entry/src/main/cpp/ |
H A D | native_bridge.cpp | 58 int len = height / 4; in NativeOnDrawPath() local 61 float dX = aX - len * std::sin(18.0f); in NativeOnDrawPath() 62 float dY = aY + len * std::cos(18.0f); in NativeOnDrawPath() 63 float cX = aX + len * std::sin(18.0f); in NativeOnDrawPath() 65 float bX = aX + (len / 2.0); in NativeOnDrawPath() 66 float bY = aY + std::sqrt((cX - dX) * (cX - dX) + (len / 2.0) * (len / 2.0)); in NativeOnDrawPath() 67 float eX = aX - (len / 2.0); in NativeOnDrawPath()
|
/applications/standard/settings/cj/settings/src/ |
H A D | cj_settings.cpp | 40 int64_t len = str.size() + 1; in TransformFromString() local 41 char* retValue = static_cast<char *>(malloc(len)); in TransformFromString() 46 *ret = memcpy_s(retValue, len, str.c_str(), len); in TransformFromString() 265 int64_t len = info.value.size(); in GetValue() local 266 if (len <= 0) { in GetValue()
|
/applications/standard/contacts_data/ability/sinicization/src/ |
H A D | character_transliterate.cpp | 2042 int len = 411; in GetCommonPronunciation() local 2043 for (int index = 0; index < len; index++) { in GetCommonPronunciation() 2092 size_t len = childVector.size(); in Join() local 2093 for (size_t i = 0; i < len; i++) { in Join() 2095 if (i < len - 1) { in Join()
|
H A D | construction_name.cpp | 87 unsigned int len = nameWstr.size(); in GetPhotoFirstName() local 88 for (unsigned int index = 0; index < len; index++) { in GetPhotoFirstName()
|
/applications/standard/app_samples/code/BasicFeature/Native/NdkRawfile/entry/src/main/cpp/ |
H A D | rawfile_demo.cpp | 107 long len = OH_ResourceManager_GetRawFileSize(rawFile);
in GetRawFileContent() local 108 std::unique_ptr<uint8_t[]> data = std::make_unique<uint8_t[]>(len);
in GetRawFileContent() 110 int res = OH_ResourceManager_ReadRawFile(rawFile, data.get(), len);
in GetRawFileContent() 114 return CreateJsArrayValue(env, data, len);
in GetRawFileContent()
|
/applications/standard/app_samples/code/BasicFeature/Native/NdkNativeWindow/entry/src/main/cpp/ |
H A D | NativeImageAdaptor.cpp | 44 size_t len = 0; in CheckEglExtension() local 49 len = strcspn(eglExtensions, CHARACTER_STRING_WHITESPACE); in CheckEglExtension() 50 if (len == extLenth && strncmp(eglExtension, eglExtensions, len) == 0) { in CheckEglExtension() 53 eglExtensions += len; in CheckEglExtension()
|
/applications/standard/app_samples/code/BasicFeature/Native/NdkOpenGL/entry/src/main/cpp/ |
H A D | tetrahedron.cpp | 96 void enableVertexAttrib(GLuint index, float *data, int32_t len)
in enableVertexAttrib() argument 101 glBufferData(GL_ARRAY_BUFFER, len, data, GL_STATIC_DRAW);
in enableVertexAttrib()
|
/applications/sample/camera/media/ |
H A D | player_sample.cpp | 247 size_t len; in streamProcess() local 274 len = (buffer.size < READ_LEN) ? buffer.size : READ_LEN; in streamProcess() 275 readLen = fread(data + buffer.offset, 1, len, pFile); in streamProcess() 276 if (readLen <= len && readLen > 0) { in streamProcess()
|
/applications/standard/calendardata/calendarmanager/napi/src/ |
H A D | napi_util.cpp | 123 size_t len = 0; in GetValue() local 124 status = napi_get_value_string_utf8(env, in, buf, STR_TAIL_LENGTH + maxLen, &len); in GetValue() 126 buf[len] = 0; in GetValue()
|