/ohos5.0/foundation/ability/ability_runtime/test/unittest/capi_ability_runtime_application_context_test/ |
H A D | capi_ability_runtime_application_context_test.cpp | 150 int32_t writeLength = 0; variable 154 ASSERT_EQ(writeLength, 0); 158 ASSERT_EQ(writeLength, 0); 168 ASSERT_EQ(writeLength, 0); 172 ASSERT_EQ(writeLength, 0); 176 ASSERT_EQ(writeLength, 0); 189 int32_t writeLength = 0; variable 227 int32_t writeLength = 0; variable 275 int32_t writeLength = 0; variable 414 int32_t writeLength = 0; variable [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/c/ability_runtime/src/ |
H A D | application_context.cpp | 26 const std::string &src, char* buffer, const int32_t bufferSize, int32_t* writeLength) in WriteStringToBuffer() argument 35 *writeLength = srcLength; in WriteStringToBuffer() 41 char* buffer, const int32_t bufferSize, int32_t* writeLength) in OH_AbilityRuntime_ApplicationContextGetCacheDir() argument 48 if (writeLength == nullptr) { in OH_AbilityRuntime_ApplicationContextGetCacheDir() 63 return WriteStringToBuffer(cacheDir, buffer, bufferSize, writeLength); in OH_AbilityRuntime_ApplicationContextGetCacheDir() 85 char* buffer, const int32_t bufferSize, int32_t* writeLength) in OH_AbilityRuntime_ApplicationContextGetBundleName() argument 92 if (writeLength == nullptr) { in OH_AbilityRuntime_ApplicationContextGetBundleName() 107 return WriteStringToBuffer(bundleName, buffer, bufferSize, writeLength); in OH_AbilityRuntime_ApplicationContextGetBundleName()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/ |
H A D | _ability_runtime.md | 35 …licationcontextgetcachedir)(char* buffer, int32_t bufferSize, int32_t* writeLength) | 获取应用级别的缓存目录。… 37 …pplicationcontextgetbundlename)(char* buffer, int32_t bufferSize, int32_t* writeLength) | 获取应用包名。 | 85 …bilityRuntime_ApplicationContextGetCacheDir(char* buffer, int32_t bufferSize, int32_t* writeLength) 99 | writeLength | 在返回ABILITY_RUNTIME_ERROR_CODE_NO_ERROR时,表示实际写入到缓冲区的字符串长度。 | 105 ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID - 入参buffer或者writeLength为空,或者缓冲区大小小于需要写入的大小。 138 …lityRuntime_ApplicationContextGetBundleName(char* buffer, int32_t bufferSize, int32_t* writeLength) 153 | writeLength | 在返回ABILITY_RUNTIME_ERROR_CODE_NO_ERROR时,表示实际写入到缓冲区的字符串长度。 | 159 ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID - 入参buffer或者writeLength为空,或者缓冲区大小小于需要写入的大小。
|
H A D | application__context_8h.md | 29 …licationcontextgetcachedir)(char* buffer, int32_t bufferSize, int32_t* writeLength) | 获取应用级别的缓存目录。… 31 …cationcontextgetbundlename)(char* buffer, int32_t bufferSize, int32_t* writeLength) | 获取应用包名。 …
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/native/ |
H A D | native_node_napi.h | 92 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength); 114 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength); 154 ArkUI_NodeHandle node, int32_t index, char* buffer, int32_t bufferSize, int32_t* writeLength); 176 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength); 250 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength); 272 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength); 306 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength);
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | native_node_napi.cpp | 222 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength) in OH_ArkUI_GetNavigationId() argument 226 CHECK_NULL_RETURN(writeLength, ARKUI_ERROR_CODE_PARAM_INVALID); in OH_ArkUI_GetNavigationId() 237 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength) in OH_ArkUI_GetNavDestinationName() argument 241 CHECK_NULL_RETURN(writeLength, ARKUI_ERROR_CODE_PARAM_INVALID); in OH_ArkUI_GetNavDestinationName() 269 CHECK_NULL_RETURN(writeLength, ARKUI_ERROR_CODE_PARAM_INVALID); in OH_ArkUI_GetNavDestinationNameByIndex() 280 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength) in OH_ArkUI_GetNavDestinationId() argument 284 CHECK_NULL_RETURN(writeLength, ARKUI_ERROR_CODE_PARAM_INVALID); in OH_ArkUI_GetNavDestinationId() 356 ArkUI_NodeHandle node, char* buffer, int32_t bufferSize, int32_t* writeLength) in OH_ArkUI_GetRouterPageName() argument 360 CHECK_NULL_RETURN(writeLength, ARKUI_ERROR_CODE_PARAM_INVALID); in OH_ArkUI_GetRouterPageName() 375 CHECK_NULL_RETURN(writeLength, ARKUI_ERROR_CODE_PARAM_INVALID); in OH_ArkUI_GetRouterPagePath() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/ |
H A D | native__node__napi_8h.md | 31 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | 获取当前节点所在的Nav… 32 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | 获取当前节点所在的Nav… 34 …dle) node, int32_t index, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | 根据给定索引值,获取当前… 35 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | 获取当前节点所在的Nav… 40 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | 获取当前节点所在页面的名… 41 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | 获取当前节点所在页面的P… 43 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | 获取当前节点所在页面的P…
|
H A D | _ark_u_i___native_module.md | 9189 | writeLength | 在返回ARKUI_ERROR_CODE_NO_ERROR时表示实际写入到缓冲区的字符串长度, 在返回ARKUI_ERROR_CODE_BUFFER_SIZE_ERRO… 9237 | writeLength | 在返回ARKUI_ERROR_CODE_NO_ERROR时表示实际写入到缓冲区的字符串长度, 在返回ARKUI_ERROR_CODE_BUFFER_SIZE_ERRO… 9263 | writeLength | 在返回ARKUI_ERROR_CODE_NO_ERROR时表示实际写入到缓冲区的字符串长度, 在返回ARKUI_ERROR_CODE_BUFFER_SIZE_ERRO… 9318 …_GetNavigationId (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) 9333 | writeLength | 在返回ARKUI_ERROR_CODE_NO_ERROR时表示实际写入到缓冲区的字符串长度, 在返回ARKUI_ERROR_CODE_BUFFER_SIZE_ERRO… 9461 …_GetRouterPageId (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) 9476 | writeLength | 在返回ARKUI_ERROR_CODE_NO_ERROR时表示实际写入到缓冲区的字符串长度, 在返回ARKUI_ERROR_CODE_BUFFER_SIZE_ERRO… 9509 …etRouterPageName (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) 9524 | writeLength | 在返回ARKUI_ERROR_CODE_NO_ERROR时表示实际写入到缓冲区的字符串长度, 在返回ARKUI_ERROR_CODE_BUFFER_SIZE_ERRO… 9534 …etRouterPagePath (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/ |
H A D | native__node__napi_8h.md | 29 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | Obtains the … 30 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | Obtains the … 32 …dle) node, int32_t index, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | Obtains the … 33 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | Obtains the … 38 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | Obtains the … 39 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | Obtains the … 41 …d#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | Obtains the …
|
H A D | _ark_u_i___native_module.md | 529 …(#arkui_nodehandle) node, char \*buffer, int32_t bufferSize, int32_t \*writeLength) | Obtains the … 8786 …NavDestinationId (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) 8801 | writeLength | When ARKUI_ERROR_CODE_NO_ERROR is returned, this parameter indicates the length of … 8834 …vDestinationName (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) 8849 | writeLength | When ARKUI_ERROR_CODE_NO_ERROR is returned, this parameter indicates the length of … 8859 …x (ArkUI_NodeHandle node, int32_t index, char * buffer, int32_t bufferSize, int32_t * writeLength ) 8875 | writeLength | When ARKUI_ERROR_CODE_NO_ERROR is returned, this parameter indicates the length of … 8930 …_GetNavigationId (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) 9072 …_GetRouterPageId (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) 9120 …etRouterPageName (ArkUI_NodeHandle node, char * buffer, int32_t bufferSize, int32_t * writeLength ) [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | _ability_runtime.md | 35 …licationcontextgetcachedir)(char* buffer, int32_t bufferSize, int32_t* writeLength) | Obtains the … 37 …cationcontextgetbundlename)(char* buffer, int32_t bufferSize, int32_t* writeLength) | Obtains the … 85 …bilityRuntime_ApplicationContextGetCacheDir(char* buffer, int32_t bufferSize, int32_t* writeLength) 99 | writeLength | Pointer to the length of the string written to the buffer when **ABILITY_RUNTIME_ER… 105 …E_ERROR_CODE_PARAM_INVALID** if the passed-in value of **buffer** or **writeLength** is null or th… 138 …lityRuntime_ApplicationContextGetBundleName(char* buffer, int32_t bufferSize, int32_t* writeLength) 153 | writeLength | Pointer to the length of the string written to the buffer when **ABILITY_RUNTIME_ER… 159 …E_ERROR_CODE_PARAM_INVALID** if the passed-in value of **buffer** or **writeLength** is null or th…
|
H A D | application__context_8h.md | 29 …licationcontextgetcachedir)(char* buffer, int32_t bufferSize, int32_t* writeLength) | Obtains the … 31 …cationcontextgetbundlename)(char* buffer, int32_t bufferSize, int32_t* writeLength) | Obtains the …
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/c/ability_runtime/ |
H A D | application_context.h | 64 char* buffer, int32_t bufferSize, int32_t* writeLength); 93 char* buffer, int32_t bufferSize, int32_t* writeLength);
|
/ohos5.0/base/print/print_fwk/services/print_service/src/ |
H A D | print_user_data.cpp | 330 auto writeLength = write(fd, fileData.c_str(), jsonLength); in GetFileData() local 332 if (writeLength < 0 && (size_t)writeLength != jsonLength) { in GetFileData() 377 auto writeLength = write(fd, jsonString.c_str(), jsonLength); in SetUserDataToFile() local 380 if (writeLength < 0) { in SetUserDataToFile() 383 return (size_t)writeLength == jsonLength; in SetUserDataToFile()
|
H A D | print_system_data.cpp | 215 auto writeLength = write(fd, jsonString.c_str(), jsonLength); in SaveCupsPrinterMap() local 218 if (writeLength < 0) { in SaveCupsPrinterMap() 221 return (size_t)writeLength == jsonLength; in SaveCupsPrinterMap()
|
H A D | print_service_ability.cpp | 1037 auto writeLength = write(fd, jsonString.c_str(), jsonLength); in WritePreferenceToFile() local 1039 return (size_t)writeLength == jsonLength; in WritePreferenceToFile()
|
/ohos5.0/commonlibrary/ets_utils/platform/ohos/ |
H A D | util_helper.cpp | 387 size_t writeLength = outInfo.bufferResult.length(); in OtherEncodeUtf8() local 388 for (size_t j = 0; j < writeLength; j++) { in OtherEncodeUtf8() 393 *written = static_cast<int32_t>(writeLength); in OtherEncodeUtf8() 429 size_t writeLength = bufferResult.length() * 2; // 2:multiple in EncodeTo16BE() local 430 …if (memcpy_s(writeResult, writeLength, reinterpret_cast<char*>(bufferResult.data()), writeLength) … in EncodeTo16BE() 435 *written = static_cast<int32_t>(writeLength); in EncodeTo16BE()
|
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | process_dumper.cpp | 90 size_t writeLength = (index + blockSize) <= dataSize ? blockSize : (dataSize - index); in WriteData() local 91 … nwrite = OHOS_TEMP_FAILURE_RETRY(write(fd, data.substr(index, writeLength).c_str(), writeLength)); in WriteData() 92 if (nwrite != static_cast<ssize_t>(writeLength)) { in WriteData() 93 DFXLOG_INFO("%s :: nwrite: %zd, writeLength: %zu", __func__, nwrite, writeLength); in WriteData() 95 index += writeLength; in WriteData()
|
/ohos5.0/base/print/print_fwk/services/scan_service/src/ |
H A D | scan_system_data.cpp | 366 auto writeLength = write(fd, jsonString.c_str(), jsonLength); in SaveScannerMap() local 370 if (writeLength < 0) { in SaveScannerMap() 373 return (size_t)writeLength == jsonLength; in SaveScannerMap()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/ |
H A D | client_trans_proxy_file_manager.c | 1495 int64_t writeLength = SoftBusPwriteFile( in ProcessOneFrameCRC() local 1497 if (writeLength < 0 || (uint64_t)writeLength != dataLen - FRAME_DATA_SEQ_OFFSET) { in ProcessOneFrameCRC() 1502 fileInfo->fileOffset += (uint64_t)writeLength; in ProcessOneFrameCRC() 1535 int64_t writeLength = SoftBusPwriteFile( in ProcessOneFrame() local 1537 if (writeLength != frameDataLength) { in ProcessOneFrame() 1541 fileInfo->fileOffset += (uint64_t)writeLength; in ProcessOneFrame()
|