Home
last modified time | relevance | path

Searched refs:modeStr (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/panel/
H A Dsliding_events.cpp27 std::string modeStr; in ToJSONString() local
29 modeStr = "full"; in ToJSONString()
31 modeStr = "half"; in ToJSONString()
33 modeStr = "mini"; in ToJSONString()
35 result->Put("mode", modeStr.c_str()); in ToJSONString()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/ts/streamrw/src/
H A Dstreamrw.ts161 let modeStr = 'w';
163 return modeStr;
166 modeStr = 'w';
169 modeStr = 'w+';
172 modeStr = 'a';
175 modeStr = 'a+';
177 return modeStr;
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dfile_metadata_stream.cpp259 bool FileMetadataStream::OpenFromFD(const char *modeStr) in OpenFromFD() argument
267 fp_ = fdopen(dupFD_, modeStr); in OpenFromFD()
277 bool FileMetadataStream::OpenFromPath(const char *modeStr) in OpenFromPath() argument
279 IMAGE_LOGD("Open file: %{public}s, modeStr: %{public}s", filePath_.c_str(), modeStr); in OpenFromPath()
280 fp_ = fopen(filePath_.c_str(), modeStr); in OpenFromPath()
297 const char *modeStr; in Open() local
300 modeStr = "r"; in Open()
303 modeStr = "r+"; in Open()
312 openResult = OpenFromFD(modeStr); in Open()
316 openResult = OpenFromPath(modeStr); in Open()
/ohos5.0/drivers/peripheral/usb/hdi_service/src/
H A Dusbd_port.cpp73 std::string modeStr; in WritePortFile() local
78 modeStr = PORT_MODE_HOST_STR; in WritePortFile()
82 modeStr = PORT_MODE_DEVICE_STR; in WritePortFile()
88 if (modeStr.empty()) { in WritePortFile()
93 uint32_t len = modeStr.size(); in WritePortFile()
100 int32_t ret = write(fd, modeStr.c_str(), len); in WritePortFile()
/ohos5.0/foundation/resourceschedule/soc_perf/test/unittest/
H A Dsocperf_server_test.cpp239 std::string modeStr = "displayMain"; variable
241 socPerfServer_->RequestDeviceMode(modeStr, true);
246 EXPECT_EQ(modeStr, "displayMain");
256 auto iter_match = actions->modeMap.find(modeStr);
269 auto iter_mode = actions->modeMap.find(modeStr);
281 socPerfServer_->RequestDeviceMode(modeStr, false);
295 std::string modeStr = "displayMainTest"; variable
301 EXPECT_EQ(modeStr, "displayMainTest");
310 EXPECT_EQ(modeStr, "displayMainTest");
329 std::string modeStr = "displayMainTest"; variable
[all …]
/ohos5.0/base/customization/config_policy/frameworks/config_policy/src/
H A Dconfig_policy_utils.c216 char *modeStr = strchr(item, SEP_FOR_X_PARAM); in GetFollowXRule() local
217 if (modeStr) { in GetFollowXRule()
218 modeStr++; in GetFollowXRule()
219 *mode = atoi(modeStr); in GetFollowXRule()
221 if (*mode == FOLLOWX_MODE_USER_DEFINED && modeStr) { in GetFollowXRule()
222 addPath = strchr(modeStr, SEP_FOR_X_PARAM); in GetFollowXRule()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/hgm_screen_manager/
H A Dhgm_core.cpp131 auto modeStr = std::to_string(customFrameRateMode_); in CheckCustomFrameRateModeValid() local
132 if (screenConfig.find(modeStr) != screenConfig.end() || screenConfig.empty()) { in CheckCustomFrameRateModeValid()
137 for (auto &[modeStr, _] : screenConfig) { in CheckCustomFrameRateModeValid()
138 if (!XMLParser::IsNumber(modeStr)) { in CheckCustomFrameRateModeValid()
141 auto mode = std::stoi(modeStr); in CheckCustomFrameRateModeValid()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/
H A Dfile_metadata_stream.h216 bool OpenFromFD(const char *modeStr);
223 bool OpenFromPath(const char *modeStr);
/ohos5.0/foundation/deviceprofile/device_info_manager/old/tools/dp/src/
H A Ddp_command.cpp259 std::string modeStr; in SyncCommand() local
270 result = HandleSyncOption(option, modeStr, deviceIds); in SyncCommand()
275 int64_t mode = strtol(modeStr.c_str(), nullptr, BASE); in SyncCommand()
/ohos5.0/foundation/resourceschedule/soc_perf/services/core/src/
H A Dsocperf_config.cpp438 std::string modeStr = mode; in ParseModeCmd() local
439 std::vector<std::string> modeListResult = Split(modeStr, SPLIT_OR); in ParseModeCmd()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-container-panel.md70 …&nbsp;heightLength,&nbsp;width:&nbsp;widthLength&nbsp;},&nbsp;mode:&nbsp;modeStr&nbsp;} | 当可滑动面板发生…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-container-panel.md71 | sizechange | { size: { height: heightLength, width: widthLength }, mode: modeStr } | Triggered wh…
/ohos5.0/drivers/peripheral/wlan/client/src/netlink/
H A Dnetlink_cmd_adapter.c1822 const char *modeStr = strTable[mode]; in FillHwprivIoctlData() local
1831 …if (strncpy_s(ioctlData->data.point.buf, ioctlData->data.point.length, modeStr, strlen(modeStr)) !… in FillHwprivIoctlData()