/ohos5.0/base/powermgr/battery_manager/charger/ |
H A D | BUILD.gn | 93 "resources:charger_font", 95 "resources:init.charger.cfg", 96 "resources:resources_config", 97 "resources:resources_config1", 98 "resources:resources_config10", 99 "resources:resources_config11", 100 "resources:resources_config12", 108 "resources:resources_config2", 119 "resources:resources_config3", 130 "resources:resources_config4", [all …]
|
/ohos5.0/base/powermgr/battery_manager/charger/resources/ |
H A D | BUILD.gn | 16 ## Install resources to /system/etc/resources 19 relative_install_dir = "charger/resources" 26 relative_install_dir = "charger/resources" 33 relative_install_dir = "charger/resources" 40 relative_install_dir = "charger/resources" 47 relative_install_dir = "charger/resources" 54 relative_install_dir = "charger/resources" 61 relative_install_dir = "charger/resources" 68 relative_install_dir = "charger/resources" 75 relative_install_dir = "charger/resources" [all …]
|
/ohos5.0/docs/en/application-dev/task-management/ |
H A D | efficiency-resource-request.md | 11 …ncy resources**: APIs used by a system application to request energy resources for its processes. … 19 - CPU resources can be requested by process or application. Other resources can be requested only b… 25 **Table 1** Main APIs for efficiency resources 32 **Table 2** Parameters for requesting efficiency resources 36 …to apply for resources.<br>- **true**: The request is used to apply for resources.<br>- **false**:… 63 2. Request efficiency resources. 72 isPersist: true, // The resources are permanently held. 79 …resources. After completing work in the background, the application should release the resources i… 82 // The application releases all the efficiency resources. 84 // The application releases some efficiency resources. [all …]
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-build-gn-hap-compilation-guide.md | 29 | resources | 资源文件,编译后放置在assets/entry/resources目录下 | 75 资源文件,FA模型编译后放置在assets/entry/resources目录下,Stage模型编译后放置在resources目录下。 95 resources = ["./src/main/resources"] 135 354 2009-01-01 00:00 assets/entry/resources.index ------> resources 136 1 2009-01-01 00:00 assets/entry/resources/base/media/attributes.key ------> resources 137 1 2009-01-01 00:00 assets/entry/resources/base/media/constants.key ------> resources 138 1 2009-01-01 00:00 assets/entry/resources/base/media/contents.key ------> resources 139 6790 2009-01-01 00:00 assets/entry/resources/base/media/icon.png ------> resources 176 "entry/src/main/resources", 208 "entry/src/main/resources", [all …]
|
/ohos5.0/build/docs/ |
H A D | how-to-build-a-hap.md | 29 | resources | 资源文件,编译后放置在assets/entry/resources目录下 | 75 资源文件,FA模型编译后放置在assets/entry/resources目录下,Stage模型编译后放置在resources目录下。 95 resources = ["./src/main/resources"] 135 354 2009-01-01 00:00 assets/entry/resources.index ------> resources 136 1 2009-01-01 00:00 assets/entry/resources/base/media/attributes.key ------> resources 137 1 2009-01-01 00:00 assets/entry/resources/base/media/constants.key ------> resources 138 1 2009-01-01 00:00 assets/entry/resources/base/media/contents.key ------> resources 139 6790 2009-01-01 00:00 assets/entry/resources/base/media/icon.png ------> resources 176 "entry/src/main/resources", 208 "entry/src/main/resources", [all …]
|
/ohos5.0/build/hb/containers/ |
H A D | arg.py | 24 from resources.global_var import CURRENT_ARGS_DIR 25 from resources.global_var import CURRENT_BUILD_ARGS 26 from resources.global_var import DEFAULT_BUILD_ARGS 27 from resources.global_var import CURRENT_SET_ARGS 28 from resources.global_var import DEFAULT_SET_ARGS 29 from resources.global_var import CURRENT_CLEAN_ARGS 31 from resources.global_var import DEFAULT_ENV_ARGS 32 from resources.global_var import CURRENT_ENV_ARGS 33 from resources.global_var import DEFAULT_TOOL_ARGS 34 from resources.global_var import CURRENT_TOOL_ARGS [all …]
|
/ohos5.0/docs/en/application-dev/internationalization/ |
H A D | l10n-multilingual-resources.md | 6 …resources. To ensure that the application properly loads the content specific to different countri… 8 …. After resource files are configured, your application can then access resources based on service… 15 …Prepare resources for the target locale and translate the resources (including strings, media reso… 19 … store resources such as strings, images, and audios specific to the target locale. An example of … 21 …e type. For example, to store media resources, create the **media** directory. The directory struc… 23 4. Create resource files. Place resources such as strings, images, and audios in the corresponding … 34 …tch application resources with the application preferred language list to find a preferred languag… 38 …irectories in sequence for the target string resources, and use the qualifier directory where the … 40 3. If no string resources matching the preferred language are found, use the second preferred langu… 42 …resources are found based on the application preferred language list or system language list, use …
|
/ohos5.0/docs/zh-cn/application-dev/key-features/multi-device-app-dev/ |
H A D | resource-usage.md | 17 应用开发中使用的各类自定义资源文件,需要统一存放于应用的resources目录下,便于使用和维护。resources目录包括两大类目录,一类为base目录与限定词目录,另一类为rawfile目录,其… 21 resources 35 …名称可以由一个或多个表征应用场景或设备特征的限定词组合而成。应用使用某资源时,系统会根据当前设备状态优先从相匹配的限定词目录中寻找该资源。只有当resources目录中没有与设备状态匹配的限定词目… 73 在工程中,通过 "$r('app.type.name')" 的形式引用应用资源。app代表是应用内resources目录中定义的资源;type 代表资源类型(或资源的存放位置),可以取 color、… 81 在应用的resources目录下,创建名为tablet的限定词子目录,并按照下表所示,在base目录和tablet限定词目录中添加相应的资源。 122 可以查看[应用UX设计中关于资源的介绍](../../../design/ux-design/design-resources.md),获取系统支持的资源ID及其在不同配置下的取值。<!--DelE… 129 > - 可以查看[resources代码仓](https://gitee.com/openharmony/resources/tree/master/systemres/main/resources…
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | js-framework-resource-restriction.md | 6 资源限定词可以由一个或多个表征应用场景或设备特征的限定词组合而成,包括屏幕密度等维度,限定词之间通过中划线(-)连接。开发者在**resources**目录下创建限定词文件时,需要掌握限定词文件的命… 17 - 限定词前缀:**resources**资源文件的资源限定词有前缀res,例如res-ldpi.json。 19 - 默认资源限定文件:**resources**资源文件的默认资源限定文件为res-defaults.json。 38 ## 引用JS模块内resources资源 40 在应用开发的hml和js文件中使用$r的语法,可以对JS模块内的resources目录下的json资源进行格式化,获取相应的资源内容,该目录与pages目录同级,具体目录结构请参考[文件组织](js… 58 resources/res-dark.json: 71 resources/res-defaults.json:
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | render_node_util.cpp | 184 const RenderNodeGraphInputs::InputResources& resources) const in CreateInputResources() 189 SetupRenderNodeResourceHandles(gpuResourceMgr, rngShareMgr, resources, res); in CreateInputResources() 215 for (const auto& ref : resources.buffers) { in BindResourcesToBinder() 222 for (const auto& ref : resources.images) { in BindResourcesToBinder() 232 for (const auto& ref : resources.samplers) { in BindResourcesToBinder() 423 changeable = changeable || HasChangingResources(resources.buffers); in HasChangeableResources() 424 changeable = changeable || HasChangingResources(resources.images); in HasChangeableResources() 425 changeable = changeable || HasChangingResources(resources.samplers); in HasChangeableResources() 426 changeable = changeable || HasChangingResources(resources.customInputBuffers); in HasChangeableResources() 428 changeable = changeable || HasChangingResources(resources.customInputImages); in HasChangeableResources() [all …]
|
H A D | render_node_parser_util.cpp | 415 … ParseArray<decltype(resources.buffers)::value_type>(*res, "buffers", resources.buffers, result); in ParseResources() 416 … ParseArray<decltype(resources.images)::value_type>(*res, "images", resources.images, result); in ParseResources() 417 …ParseArray<decltype(resources.samplers)::value_type>(*res, "samplers", resources.samplers, result); in ParseResources() 424 ParseArray<decltype(resources.customInputImages)::value_type>( in ParseResources() 491 RenderNodeGraphInputs::InputResources resources; in GetInputResources() local 493 ParseResources(name, jsonValue, resources, result); in GetInputResources() 497 return resources; in GetInputResources() 523 ParseArray<decltype(resources)::value_type>(jsonValue, name.data(), resources, result); in GetGpuImageDescs() 531 return resources; in GetGpuImageDescs() 541 ParseArray<decltype(resources)::value_type>(jsonValue, name.data(), resources, result); in GetGpuBufferDescs() [all …]
|
H A D | pipeline_descriptor_set_binder.cpp | 202 auto ClearResourcesBindings = [](auto& resources) { in ClearBindings() argument 203 for (auto& ref : resources) { in ClearBindings() 297 if ((!resources.empty()) && (binding < maxBindingCount_)) { in BindBuffers() 309 const RenderHandle currHandle = resources[idx].handle; in BindBuffers() 324 bRes = resources[idx]; in BindBuffers() 405 if ((!resources.empty()) && (binding < maxBindingCount_)) { in BindImages() 415 const BindableImage& currResource = resources[idx]; in BindImages() 441 if ((bind.binding.descriptorCount != resources.size())) { in BindImages() 490 if ((!resources.empty()) && (binding < maxBindingCount_)) { in BindSamplers() 502 const RenderHandle currHandle = resources[idx].handle; in BindSamplers() [all …]
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-build-gn-hap-compilation-guide.md | 29 | resources | Resource files, which are stored in the **assets/entry/resources** directory after bu… 95 resources = ["./src/main/resources"] 136 354 2009-01-01 00:00 assets/entry/resources.index ------> resources 137 1 2009-01-01 00:00 assets/entry/resources/base/media/attributes.key ------> resources 138 1 2009-01-01 00:00 assets/entry/resources/base/media/constants.key ------> resources 139 1 2009-01-01 00:00 assets/entry/resources/base/media/contents.key ------> resources 140 6790 2009-01-01 00:00 assets/entry/resources/base/media/icon.png ------> resources 141 1 2009-01-01 00:00 assets/entry/resources/base/media/nodes.key ------> resources 177 "entry/src/main/resources", 209 "entry/src/main/resources", [all …]
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | js-framework-resource-restriction.md | 6 … are separated using hyphens (-). When creating a qualifiers file under resources, you need to und… 15 … specified in the following table. Otherwise, the resource files in the resources directory cannot… 17 - Qualifier prefix: The name of a qualifier file in the resources file has the prefix res, for exam… 19 - Default resource qualifier file: By default, the resource qualifier file in resources is res-defa… 21 - In the resource qualifier file, color enumeration cannot be used to set resources. 33 - Qualifiers are matched with the device resources in the following priorities: screen orientation … 40 …ml and .js to format the JSON resources in the resources directory of the JS module and obtain the… 58 resources/res-dark.json: 71 resources/res-defaults.json:
|
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/sdk/ |
H A D | BUILD.gn | 25 "target_out_dir") + "/resources" 28 "target_gen_dir") + "/main_res/gen/resources.index" 31 "target_out_dir") + "/resources/entry/resources.txt" 38 "target_gen_dir") + "/resources" 41 "target_gen_dir") + "/main_res/gen/resources.index" 44 "target_gen_dir") + "/resources/entry/resources.txt" 174 outputs = [ target_out_dir + "/previewer/resources/cacert.pem" ] 175 module_source_dir = target_out_dir + "/previewer/resources" 195 sources = [ "//prebuilts/ace-toolkit/preview/rich/resources" ] 214 sources = [ "//prebuilts/ace-toolkit/preview/rich/resources" ]
|
/ohos5.0/docs/en/application-dev/quick-start/ |
H A D | resource-categories-and-access.md | 5 - Application resources: configure device- or configuration-specific resources in the resource file… 7 …resources: Obtain the ID and configuration-specific values of colors, fonts, or other resources in… 18 Example of the **resources** directory: 20 resources 256 resources 338 - Access resources through **$r()** or **$rawfile()**. Specifically, perform either of the followin… 389 > - The use of system resources is only supported in the declarative development paradigm. 391 …dvised to use system resources. For third-party applications, you can choose to use system resourc… 449 - entry/src/main/resources/zh_CN/element/string.json 462 - entry/src/main/resources/en_US/element/string.json [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | shader_pipeline_binder.cpp | 298 auto ClearResourcesBindings = [](auto& resources) { in ClearBindings() argument 299 for (auto& ref : resources) { in ClearBindings() 412 setResources.buffers[resIdx] = resources[0]; in BindBuffers() 418 bindables.resize(resources.size()); in BindBuffers() 419 for (size_t idx = 0; idx < resources.size(); ++idx) { in BindBuffers() 420 const auto& rRef = resources[idx]; in BindBuffers() 477 setResources.images[resIdx] = resources[0U]; in BindImages() 483 bindables.resize(resources.size()); in BindImages() 485 const auto& rRef = resources[idx]; in BindImages() 545 bindables.resize(resources.size()); in BindSamplers() [all …]
|
/ohos5.0/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
H A D | PluralFetcher.java | 126 String[] resources = splits[1].split(", "); in getPluralItems() local 128 for (int i = 0; i < resources.length; ++i) { in getPluralItems() 129 if (resources[i].length() > 2) { // 2 means skip "" in getPluralItems() 130 int length = resources[i].length(); in getPluralItems() 131 sb.append(resources[i].substring(1, length - 1)); in getPluralItems() 133 if (i != resources.length) { in getPluralItems()
|
/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | application-package-structure-fa.md | 12 - assets是HAP所有的资源文件、库文件和代码文件的集合,内部可以分为entry和js文件夹。entry文件夹中存放的是resources目录和resources.index文件。 14 - resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](resource-categories-and-access.md)。 16 - resources.index是资源索引表,由DevEco Studio调用SDK工具生成。
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/ |
H A D | driver.rs | 54 resources: Option<Slab<ScheduleIO>>, field 140 resources: Mutex<Option<Slab<ScheduleIO>>>, field 173 .resources in dispatch() 206 resources: Mutex::new(None), in initialize() 217 resources: Some(slab), in initialize() 245 self.resources.as_mut().unwrap().compact(); in drive() 302 resources: Mutex::new(None), in initialize() 307 resources: Some(slab), in initialize() 340 driver.resources.as_mut().unwrap().compact(); in ffrt_dispatch_event() 450 let resources = self.resources.lock().unwrap().take(); in drop() localVariable [all …]
|
/ohos5.0/docs/en/application-dev/web/ |
H A D | web-cookie-and-data-storage-mgmt.md | 44 …ests are relatively time-consuming during website access. You can store resources locally by means… 49 …basic-components-web.md#cachemode) to configure the cache mode for page resources. Four cache mode… 51 - **Default**: Page resources in a cache that has not expired are preferentially used. If the cache… 53 - **None**: Page resources are loaded from the cache. If the cache does not exist, page resources a… 55 - **Online**: Page resources are not loaded from the cache. All resources are obtained from the net… 57 - **Only**: Page resources are only loaded from the cache. 84 …tain up-to-date resources, you can use [removeCache()](../reference/apis-arkweb/js-apis-webview.md…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/nodecontext/ |
H A D | intf_pipeline_descriptor_set_binder.h | 75 …BindBuffers(const uint32_t binding, const BASE_NS::array_view<const BindableBuffer> resources) = 0; in RENDER_BEGIN_NAMESPACE() 100 …d BindImages(const uint32_t binding, const BASE_NS::array_view<const BindableImage> resources) = 0; in RENDER_BEGIN_NAMESPACE() 118 …ndSamplers(const uint32_t binding, const BASE_NS::array_view<const BindableSampler> resources) = 0; in RENDER_BEGIN_NAMESPACE() 235 …nt32_t set, const uint32_t binding, const BASE_NS::array_view<const BindableBuffer> resources) = 0; 251 …int32_t set, const uint32_t binding, const BASE_NS::array_view<const BindableImage> resources) = 0; 266 …t32_t set, const uint32_t binding, const BASE_NS::array_view<const BindableSampler> resources) = 0;
|
/ohos5.0/docs/en/design/ux-design/ |
H A D | design-resources.md | 15 **OpenHarmony System Resource Layer Design** lists the IDs of available system resources in OpenHar… 20 | Application Color Parameters| Color-related system resources that can be used during application … 21 | Application Rounded Corner Parameters| System resources related to rounded corners that can be us… 22 | Application Font Parameters| Font-related system resources that can be used during application de… 23 | Application Spacing Parameters| Spacing-related system resources that can be used during applicat… 24 | Service Widget Parameters| System resources that can be used during service widget development.|
|
/ohos5.0/docs/zh-cn/application-dev/tools/ |
H A D | packing-tool.md | 21 …java -jar app_packing_tool.jar --mode hap --json-path <path> [--resources-path <path>] [--ets-path… 28 …th>] [--maple-so-dir <path>] [--dex-path <path>] [--lib-path <path>] [--resources-path <path>] [--… 42 | --resources-path | 否 | NA | resources资源包路径。 … 43 | --index-path | 否 | NA | .index文件路径,文件名必须为resources.index。 |… 63 java -jar app_packing_tool.jar --mode hsp --json-path <path> [--resources-path <path>] [--ets-path … 75 | --resources-path | 否 | NA | resources资源包路径。 … 76 | --index-path | 否 | NA | .index文件路径,文件名必须为resources.index。 | 157 …-mode hqf --json-path <path> [--lib-path <path>] [--ets-path <path>] [--resources-path <path>] --o… 168 | --resources-path | 否 | NA | resources资源包路径。 |
|
/ohos5.0/docs/zh-cn/application-dev/internationalization/ |
H A D | l10n-multilingual-resources.md | 19 …放字符串、颜色、动画、布局等内容;限定词目录由开发者创建,可根据语言、文字等自行定义,同样可存放目标区域的字符串、图片、音频等资源,自定义目录如resources/en_GB-vertical-c… 21 3. 创建资源组目录。根据需要放置的资源类型,创建相应的资源组目录,如若存放媒体资源需创建media目录,目录结构为resources/en_GB-vertical-car-mdpi/media。 25 >  **说明:**
|