/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
H A D | fillp_stack_config_in.c | 342 if ((resource->flowControl.pktLossAllow == 0) || in FtValidateConfigParamsInner() 353 if ((resource->udp.rxBurst == 0) || (resource->udp.rxBurst > FILLP_MAX_TX_RX_BURST)) { in FtValidateUdpConfigParamsInner() 363 if ((resource->common.maxSockNum == 0) || in FtValidateCommonConfigParamsInner() 369 if ((resource->common.maxConnectionNum == 0) || in FtValidateCommonConfigParamsInner() 372 resource->common.maxConnectionNum, resource->common.maxSockNum); in FtValidateCommonConfigParamsInner() 376 if ((resource->common.fullCpu != FILLP_FALSE) && (resource->common.fullCpu != FILLP_TRUE)) { in FtValidateCommonConfigParamsInner() 429 if ((resource->flowControl.initialRate == 0) || in FtValidateFlowcontorRateConfigParamsInner() 430 (resource->flowControl.initialRate > resource->flowControl.maxRate) || in FtValidateFlowcontorRateConfigParamsInner() 431 (resource->flowControl.initialRate > resource->flowControl.maxRecvRate)) { in FtValidateFlowcontorRateConfigParamsInner() 470 ret = FtValidateUdpConfigParamsInner(resource); in FtValidateConfigParams() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/ |
H A D | fillp_stack_app_config_in.c | 205 struct GlobalAppResource *resource, in FtAppTimerConfigSet() argument 226 struct GlobalAppResource *resource, in FtAppSetKeepAliveTime() argument 268 struct GlobalAppResource *resource, in FtAppSetConnRetryTimeout() argument 286 struct GlobalAppResource *resource, in FtAppSetDisconnectRetryTimeout() argument 317 struct GlobalAppResource *resource, in FtAppConfigSetTxBurst() argument 335 struct GlobalAppResource *resource, in FtAppConfigSetSendCache() argument 362 struct GlobalAppResource *resource, in FtAppConfigSetRecvCache() argument 389 struct GlobalAppResource *resource, in FtAppSetMaxServerSendCache() argument 990 FILLP_UNUSED_PARA(resource); in FtAppGetMaxServerSendCache() 1004 FILLP_UNUSED_PARA(resource); in FtAppGetMaxServeRecvCache() [all …]
|
H A D | fillp_stack_app_config.c | 54 *resource = &sock->resConf; in FtGetRightAppResourceByIndex() 56 *resource = &g_appResource; in FtGetRightAppResourceByIndex() 70 FILLP_INT32 ret = FtAppValidateConfigParams(resource); in FtCheckCofigPar() 82 resource->udp.txBurst = globalConfig->udp.txBurst; in CopyGlobalConfig() 129 struct GlobalAppResource *resource = FILLP_NULL_PTR; in FtAppInitConfigSet() local 140 CopyGlobalConfig(globalConfig, resource); in FtAppInitConfigSet() 217 struct GlobalAppResource *resource = FILLP_NULL_PTR; in FtAppInitConfigGet() local 231 CopySockConfig(globalResource, resource); in FtAppInitConfigGet() 319 resource = &sock->resConf; in FtSetConfigApp() 323 resource = &g_appResource; in FtSetConfigApp() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/platform/spi/ |
H A D | spi_stm32f4xx.c | 158 SpiResource resource; member 237 resource = &spiDevice->resource; in HalSpiSend() 238 if (resource == NULL) { in HalSpiSend() 268 resource = &spiDevice->resource; in HalSpiRecv() 269 if (resource == NULL) { in HalSpiRecv() 305 resource = &spiDevice->resource; in HalSpiSendRecv() 335 switch (resource->clkMode) { in InitSpiInitStruct() 386 resource = &spiDevice->resource; in InitSpiDevice() 445 resource = &spiDevice->resource; in GetSpiDeviceResource() 463 resource = &spiDevice->resource; in GetSpiDeviceResource() [all …]
|
H A D | spi_bes.c | 123 resource = &spiDevice->resource; in SpiIomuxInit() 124 if (resource == NULL) { in SpiIomuxInit() 232 resource = &spiDevice->resource; in HalSpiSend() 233 if (resource == NULL) { in HalSpiSend() 295 resource = &spiDevice->resource; in HalSpiRecv() 296 if (resource == NULL) { in HalSpiRecv() 351 resource = &spiDevice->resource; in HalSpiSendRecv() 389 resource = &spiDevice->resource; in InitSpiDevice() 456 resource = &spiDevice->resource; in GetSpiDeviceResource() 478 resource = &spiDevice->resource; in GetSpiDeviceResource() [all …]
|
H A D | spi_wm.c | 54 resource = &spiDevice->resource; in SpiIomuxInit() 55 if (resource == NULL) { in SpiIomuxInit() 96 resource = &spiDevice->resource; in HalSpiSend() 97 if (resource == NULL) { in HalSpiSend() 141 resource = &spiDevice->resource; in HalSpiRecv() 142 if (resource == NULL) { in HalSpiRecv() 188 resource = &spiDevice->resource; in HalSpiSendRecv() 212 resource = &spiDevice->resource; in InitSpiDevice() 237 resource = &spiDevice->resource; in GetSpiDeviceResource() 407 resource = &spiDevice->resource; in SpiDevOpen() [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/ |
H A D | changelogs-resource-manager.md | 17 | getString(resource: Resource, </br>callback: AsyncCallback\<string>): void; | getStringValue(re… 18 | getString(resource: Resource): Promise\<string>; | getStringValue(resource: Resource): Promise\… 20 | getStringArray(resource: Resource): Promise\<Array\<string>>; | getStringArrayValue(resource: … 21 | getMedia(resource: Resource, </br>callback: AsyncCallback\<Uint8Array>): void; | getMediaConte… 22 | getMedia(resource: Resource): Promise\<Uint8Array>; | getMediaContent(resource: Resource): Prom… 23 | getMediaBase64(resource: Resource, </br>callback: AsyncCallback\<string>): void; | getMediaCont… 24 | getMediaBase64(resource: Resource): Promise\<string>; | getMediaContentBase64(resource: Resource… 26 | getPluralString(resource: Resource, num: number): Promise\<string>; | getPluralStringValue(reso… 34 let resource = { 39 this.context.resourceManager.getMedia(resource, (error, value) => { [all …]
|
/ohos5.0/drivers/hdf_core/adapter/platform/i2c/ |
H A D | i2c_bes.c | 80 pinMuxI2c[0].pin = resource->sclPin; in I2cDeviceIomuxInit() 96 resource = &device->resource; in InitI2cDevice() 97 if (resource == NULL) { in InitI2cDevice() 108 device->port = resource->port; in InitI2cDevice() 164 resource = &device->resource; in GetI2cDeviceResource() 184 resource = &device->resource; in GetI2cDeviceResource() 185 if (resource == NULL) { in GetI2cDeviceResource() 264 resource = &i2cDevice->resource; in AttachI2cDevice() 265 if (resource == NULL) { in AttachI2cDevice() 274 i2cDevice->port = resource->port; in AttachI2cDevice() [all …]
|
H A D | i2c_wm.c | 35 struct I2cResource resource; member 72 resource = &device->resource; in InitI2cDevice() 73 device->port = resource->port; in InitI2cDevice() 90 if ((resource->sclPin == WM_IO_PA_01) && (resource->sdaPin == WM_IO_PA_04)) { in InitI2cDevice() 99 tls_i2c_init(resource->speed); in InitI2cDevice() 113 resource = &device->resource; in HostRestI2cDevice() 114 if (resource == NULL) { in HostRestI2cDevice() 138 resource = &device->resource; in GetI2cDeviceResource() 139 if (resource == NULL) { in GetI2cDeviceResource() 195 resource = &i2cDevice->resource; in AttachI2cDevice() [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.1/ |
H A D | changelogs-resource-manager.md | 17 | getString(resource: Resource, <br>callback: AsyncCallback\<string>): void; | getStringValue(res… 18 | getString(resource: Resource): Promise\<string>; | getStringValue(resource: Resource): Promise\… 20 | getStringArray(resource: Resource): Promise\<Array\<string>>; | getStringArrayValue(resource: … 21 | getMedia(resource: Resource, <br>callback: AsyncCallback\<Uint8Array>): void; | getMediaConten… 22 | getMedia(resource: Resource): Promise\<Uint8Array>; | getMediaContent(resource: Resource): Prom… 23 | getMediaBase64(resource: Resource, <br>callback: AsyncCallback\<string>): void; | getMediaConte… 24 | getMediaBase64(resource: Resource): Promise\<string>; | getMediaContentBase64(resource: Resource… 26 | getPluralString(resource: Resource, num: number): Promise\<string>; | getPluralStringValue(reso… 34 let resource = { 39 this.context.resourceManager.getMedia(resource, (error, value) => { [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-global.md | 14 |新增|NA|类名:ResourceManager;<br>方法or属性:getStringArrayValueSync(resource: Resource): Array\<string>;|@… 21 |新增|NA|类名:Resource;<br>方法or属性:params?: any[];|resource.d.ts| 22 |新增|NA|类名:Resource;<br>方法or属性:type?: number;|resource.d.ts| 24 …br>方法or属性:getStringValue(resource: Resource): Promise\<string>;<br>旧版本信息:|类名:ResourceManager;<br>方… 26 …etStringArrayValue(resource: Resource): Promise\<Array\<string>>;<br>旧版本信息:|类名:ResourceManager;<br… 28 …方法or属性:getMediaContent(resource: Resource): Promise\<Uint8Array>;<br>旧版本信息:|类名:ResourceManager;<br… 30 …getMediaContentBase64(resource: Resource): Promise\<string>;<br>旧版本信息:|类名:ResourceManager;<br>方法or… 33 …nager;<br>方法or属性:getStringSync(resource: Resource): string;<br>旧版本信息:|类名:ResourceManager;<br>方法or属… 35 …ceManager;<br>方法or属性:getBoolean(resource: Resource): boolean;<br>旧版本信息:|类名:ResourceManager;<br>方法o… 36 …urceManager;<br>方法or属性:getNumber(resource: Resource): number;<br>旧版本信息:|类名:ResourceManager;<br>方法o… [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-localization-kit/ |
H A D | js-apis-resource-manager.md | 320 |[_Resource](resource.md#resource-1)|表示资源信息。| 368 | 9001002 | No matching resource is found based on the resource ID. | 416 | 9001007 | Failed to format the resource obtained based on the resource ID. | 463 | 9001002 | No matching resource is found based on the resource ID. | 517 | 9001002 | No matching resource is found based on the resource ID. | 519 | 9001007 | Failed to format the resource obtained based on the resource ID. | 570 | 9001004 | No matching resource is found based on the resource name. | 617 | 9001004 | No matching resource is found based on the resource name. | 659 | 9001002 | No matching resource is found based on the resource ID. | 711 | 9001002 | No matching resource is found based on the resource ID. | [all …]
|
H A D | errorcode-resource-manager.md | 11 Invalid resource ID. 23 …age.md#编译)、中间码HAR、字节码HAR、跨HAP/HSP包。这四种场景推荐使用[getStringByName()](js-apis-resource-manager.md#getstr… 31 No matching resource is found based on the resource ID. 51 Invalid resource name. 69 No matching resource is found based on the resource name. 107 The resource is referenced cyclically. 125 Failed to format the resource obtained based on the resource ID. 147 Failed to format the resource obtained based on the resource Name. 169 Failed to access the system resource.
|
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/ |
H A D | resourcemanager.md | 53 Enumerates resource manager error codes. 63 | ERROR_CODE_RES_NAME_NOT_FOUND | No matching resource found based on the resource ID.| 64 | ERROR_CODE_RES_NOT_FOUND_BY_NAME | No matching resource found based on the resource name.| 67 …ROR_CODE_RES_ID_FORMAT_ERROR | Failed to format the resource obtained based on the specified resou… 68 …R_CODE_RES_NAME_FORMAT_ERROR | Failed to format the resource obtained based on the specified resou… 129 ERROR_CODE_RES_NOT_FOUND_BY_ID 9001002: No matching resource is found based on the resource ID. 162 ERROR_CODE_RES_NOT_FOUND_BY_NAME 9001004: No matching resource is found based on the resource name. 173 Obtains the content of the media resource with the specified screen density based on the specified … 195 ERROR_CODE_RES_NOT_FOUND_BY_ID 9001002: No matching resource is found based on the resource ID. 230 ERROR_CODE_RES_NOT_FOUND_BY_ID 9001002: No matching resource is found based on the resource ID. [all …]
|
H A D | js-apis-resource-manager.md | 320 |[_Resource](resource.md#resource-1)|Resource information of an application.| 368 | 9001002 | No matching resource is found based on the resource ID. | 416 | 9001007 | Failed to format the resource obtained based on the resource ID. | 463 | 9001002 | No matching resource is found based on the resource ID. | 517 | 9001002 | No matching resource is found based on the resource ID. | 519 | 9001007 | Failed to format the resource obtained based on the resource ID. | 570 | 9001004 | No matching resource is found based on the resource name. | 617 | 9001004 | No matching resource is found based on the resource name. | 659 | 9001002 | No matching resource is found based on the resource ID. | 711 | 9001002 | No matching resource is found based on the resource ID. | [all …]
|
/ohos5.0/drivers/hdf_core/framework/sample/platform/uart/src/ |
H A D | uart_sample.c | 100 regMap = (struct UartRegisterMap *)device->resource.physBase; in SampleUartHostWrite() 158 struct UartResource *resource = &device->resource; in InitUartDevice() local 160 if ((resource->uartClk == 0) || (resource->baudrate == 0)) { in InitUartDevice() 164 device->uartClk = resource->uartClk; in InitUartDevice() 169 err = UartPl011SetBaudrate(regMap, resource->uartClk, resource->baudrate); in InitUartDevice() 174 UartPl011SetDataFormat(regMap, resource->wlen, resource->parity, resource->stopBit); in InitUartDevice() 185 struct UartResource *resource = &device->resource; in GetUartDeviceResource() local 201 resource->physBase = (unsigned long)OsalIoRemap(resource->base, 0x48); in GetUartDeviceResource() 202 if (resource->physBase == 0) { in GetUartDeviceResource() 251 host->num = uartDevice->resource.num; in AttachUartDevice() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/platform/gpio/ |
H A D | gpio_stm32f4xx.c | 100 GpioResource resource; member 224 resource = &device->resource; in GpioParseHcs() 225 if (resource == NULL) { in GpioParseHcs() 268 g_gpioPinsMap[resource->pin].group = resource->group; in GpioParseHcs() 269 g_gpioPinsMap[resource->pin].realPin = resource->realPin; in GpioParseHcs() 270 g_gpioPinsMap[resource->pin].pin = resource->pin; in GpioParseHcs() 291 resource = &device->resource; in GetGpioDeviceResource() 292 if (resource == NULL) { in GetGpioDeviceResource() 314 g_gpioPinsMap[resource->pin].group = resource->group; in GetGpioDeviceResource() 315 g_gpioPinsMap[resource->pin].realPin = resource->realPin; in GetGpioDeviceResource() [all …]
|
H A D | gpio_asr.c | 65 struct GpioResource resource; member 286 resource = &device->resource; in GetGpioDeviceResource() 287 if (resource == NULL) { in GetGpioDeviceResource() 296 resource->pin = pins[i]; in GetGpioDeviceResource() 298 resource->config = configs[i]; in GetGpioDeviceResource() 302 g_gpioPinMap[resource->pin].config = (asr_gpio_config_t)resource->config; in GetGpioDeviceResource() 304 resource->pin = relPin; in GetGpioDeviceResource() 328 resource = &device->resource; in GetGpioDeviceResource() 329 if (resource == NULL) { in GetGpioDeviceResource() 362 g_gpioPinMap[resource->pin].config = (asr_gpio_config_t)resource->config; in GetGpioDeviceResource() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_local_live_view_button.cpp | 109 for (const auto &resource : buttonIconsResource_) { in ToJson() local 110 if (!resource) { in ToJson() 114 resourceObj["id"] = resource->id; in ToJson() 115 resourceObj["bundleName"] = resource->bundleName; in ToJson() 116 resourceObj["moduleName"] = resource->moduleName; in ToJson() 127 const auto &jsonEnd = resource.cend(); in ResourceFromJson() 129 if (resource.find("bundleName") != jsonEnd && resource.at("bundleName").is_string()) { in ResourceFromJson() 133 if (resource.find("moduleName") != jsonEnd && resource.at("moduleName").is_string()) { in ResourceFromJson() 137 if (resource.find("id") != jsonEnd && resource.at("id").is_number_integer()) { in ResourceFromJson() 185 for (auto &resource : resourcesArr) { in FromJson() local [all …]
|
/ohos5.0/drivers/hdf_core/adapter/platform/uart/ |
H A D | uart_stm32f4xx.c | 145 UartResource resource; member 329 UartResource *resource = NULL; in InitUartDevice() local 337 resource = &uartDevice->resource; in InitUartDevice() 338 if (resource == NULL) { in InitUartDevice() 448 UartResource *resource = NULL; in GetUartDeviceResource() local 454 resource = &device->resource; in GetUartDeviceResource() 462 device->uartId = resource->num; in GetUartDeviceResource() 480 UartResource *resource = NULL; in GetUartDeviceResource() local 485 resource = &device->resource; in GetUartDeviceResource() 486 if (resource == NULL) { in GetUartDeviceResource() [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/ |
H A D | js-apidiff-global.md | 8 |Added|NA|Class name: ResourceManager;<br>Method or attribute name: getMediaContentSync(resource: R… 12 … ResourceManager;<br>Method or attribute name: getPluralStringValueSync(resource: Resource, num: n… 14 …: ResourceManager;<br>Method or attribute name: getStringArrayValueSync(resource: Resource): Array… 21 |Added|NA|Class name: Resource;<br>Method or attribute name: params?: any[];|resource.d.ts| 22 |Added|NA|Class name: Resource;<br>Method or attribute name: type?: number;|resource.d.ts| 24 …e(resource: Resource): Promise\<string>;<br>Old version information: |Class name: ResourceManager;… 28 …resource: Resource): Promise\<Uint8Array>;<br>Old version information: |Class name: ResourceManage… 30 …resource: Resource): Promise\<string>;<br>Old version information: |Class name: ResourceManager;<b… 33 …ngSync(resource: Resource): string;<br>Old version information: |Class name: ResourceManager;<br>M… 35 …Boolean(resource: Resource): boolean;<br>Old version information: |Class name: ResourceManager;<br… [all …]
|
/ohos5.0/docs/en/application-dev/internationalization/ |
H A D | l10n-multilingual-resources.md | 6 …resource directories to store these resources. When a user runs an application, the system automat… 8 …resource files and resource matching rules. You only need to focus on resource configuration. Afte… 17 2. Create resource directories. 21 3. Create resource group directories. Create the corresponding resource group directory according t… 23 4. Create resource files. Place resources such as strings, images, and audios in the corresponding … 27 … content from the core functions as much as possible and store the content in a resource directory. 29 … to create resource directories, resource group directories, and resource files, see [Resource Cat… 36 1. Use the system language to match the resource qualifier directories configured for the applicati… 42 …lt resource directory for display. To avoid build errors and resource loading errors, make sure th…
|
/ohos5.0/drivers/hdf_core/adapter/platform/pwm/ |
H A D | pwm_bes.c | 62 struct PwmResource *resource = NULL; in InitPwmDevice() local 69 resource = &pwmDevice->resource; in InitPwmDevice() 70 if (resource == NULL) { in InitPwmDevice() 79 pinMuxPwm->pin = resource->pwmPin; in InitPwmDevice() 102 struct PwmResource *resource = NULL; in GetPwmDeviceResource() local 107 resource = &device->resource; in GetPwmDeviceResource() 122 struct PwmResource *resource = NULL; in GetPwmDeviceResource() local 128 resource = &device->resource; in GetPwmDeviceResource() 129 if (resource == NULL) { in GetPwmDeviceResource() 299 pwmId = prvPwm->resource.pwmId; [all …]
|
H A D | pwm_stm32f4xx.c | 68 PwmResource resource; member 204 resource->pwmCh = ch; \ 215 PwmResource *resource = NULL; in GetPwmDeviceResource() local 220 resource = &device->resource; in GetPwmDeviceResource() 234 PwmResource *resource = NULL; in GetPwmDeviceResource() local 241 resource = &device->resource; in GetPwmDeviceResource() 242 if (resource == NULL) { in GetPwmDeviceResource() 258 if (resource->pwmTim == PWM_TIM6 || resource->pwmTim == PWM_TIM7) { in GetPwmDeviceResource() 520 PwmResource *resource = NULL; local 531 resource = &prvPwm->resource; [all …]
|
/ohos5.0/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
H A D | napi_os_account.cpp | 224 resource, in QueryOsAccountById() 285 resource, in SetOsAccountName() 318 resource, in SetOsAccountConstraints() 351 resource, in ActivateOsAccount() 379 resource, in DeactivateOsAccount() 478 resource, in GetCreatedOsAccountsCountInner() 521 resource, in GetDistributedVirtualDeviceIdInner() 564 resource, in GetOsAccountAllConstraintsInner() 607 resource, in GetOsAccountLocalIdFromProcessInner() 640 resource, in QueryAllCreatedOsAccounts() [all …]
|