Home
last modified time | relevance | path

Searched refs:state (Results 1 - 25 of 1034) sorted by relevance

12345678910>>...42

/base/global/resource_management/interfaces/cj/src/
H A Dresource_manager_impl.cpp62 RState state = resMgr_->CloseRawFileDescriptor(name); in CloseRawFd() local
63 if (state != RState::SUCCESS) { in CloseRawFd()
64 LOGE("ResourceManagerImpl::CloseRawFd failed %{public}" PRIu32, state); in CloseRawFd()
68 return state; in CloseRawFd()
74 RState state = resMgr_->GetRawFileDescriptorFromHap(rawFileName, descriptor); in GetRawFd() local
75 if (state != RState::SUCCESS) { in GetRawFd()
76 LOGE("ResourceManagerImpl::GetRawFd failed %{public}" PRIu32, state); in GetRawFd()
80 return state; in GetRawFd()
86 RState state = resMgr_->GetRawFileFromHap(name, len, outValue); in GetRawFileContent() local
87 if (state ! in GetRawFileContent()
97 RState state = resMgr_->GetRawFileList(rawDirPath, rawfileList); GetRawFileList() local
109 RState state = resMgr_->GetColorByName(name, outValue); GetColorByName() local
120 RState state = resMgr_->GetColorById(id, outValue); GetColorById() local
131 RState state = resMgr_->GetPluralStringByIdFormat(outValue, resId, num, num); GetPluralStringValue() local
142 RState state = resMgr_->GetStringArrayById(resId, outValue); GetStringArrayValue() local
153 RState state = resMgr_->GetStringArrayByName(name, outValue); GetStringArrayByName() local
164 RState state = resMgr_->GetStringById(resId, outValue); GetString() local
175 RState state = resMgr_->GetStringByName(name, outValue); GetStringByName() local
186 RState state = resMgr_->GetPluralStringByNameFormat(outValue, name, num, num); GetPluralStringValue() local
197 bool state = resMgr_->AddAppOverlay(path); AddResource() local
206 bool state = resMgr_->RemoveAppOverlay(path); RemoveResource() local
215 RState state = resMgr_->GetBooleanById(id, outValue); GetBooleanById() local
226 RState state = resMgr_->GetBooleanByName(name, outValue); GetBooleanByName() local
237 RState state = resMgr_->GetIntegerById(id, outValue); GetIntegerById() local
248 RState state = resMgr_->GetIntegerByName(name, outValue); GetIntegerByName() local
259 RState state = resMgr_->GetFloatById(id, outValue); GetFloatById() local
270 RState state = resMgr_->GetFloatByName(name, outValue); GetFloatByName() local
309 RState state = resMgr_->GetMediaDataByName(name, len, outValue, density); GetMediaDataByName() local
321 RState state = resMgr_->GetMediaDataById(id, len, outValue, density); GetMediaDataById() local
332 RState state = resMgr_->GetMediaBase64DataById(id, outValue, density); GetMediaContentBase64ById() local
343 RState state = resMgr_->GetMediaBase64DataByName(name, outValue, density); GetMediaContentBase64ByName() local
354 RState state = SUCCESS; GetDrawableDescriptor() local
372 RState state = SUCCESS; GetDrawableDescriptorByName() local
440 GetDrawableDescriptorPtr(uint32_t id, std::shared_ptr<Global::Resource::ResourceManager> resMgr, uint32_t density, RState &state) GetDrawableDescriptorPtr() argument
461 RState state = resMgr_->GetSymbolById(id, outValue); GetSymbolById() local
472 RState state = resMgr_->GetSymbolByName(name, outValue); GetSymbolByName() local
[all...]
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dresource_manager_test.cpp218 RState state; in HWTEST_F() local
226 state = rm->UpdateResConfig(*rc); in HWTEST_F()
228 EXPECT_EQ(SUCCESS, state); in HWTEST_F()
239 RState state; in HWTEST_F() local
245 state = rm->UpdateResConfig(*rc); in HWTEST_F()
247 EXPECT_EQ(LOCALEINFO_IS_NULL, state); in HWTEST_F()
258 RState state; in HWTEST_F() local
265 state = rm->UpdateResConfig(*rc); in HWTEST_F()
267 EXPECT_EQ(LOCALEINFO_IS_NULL, state); in HWTEST_F()
280 RState state; in HWTEST_F() local
320 RState state; HWTEST_F() local
356 RState state; HWTEST_F() local
422 RState state = rm->GetStringById(NON_EXIST_ID, outValue); HWTEST_F() local
472 RState state = rm->GetStringByName(g_nonExistName, outValue); HWTEST_F() local
489 RState state = rm->GetStringFormatById(outValue, id, 101); HWTEST_F() local
504 RState state = rm->GetStringFormatById(outValue, NON_EXIST_ID, 101); HWTEST_F() local
519 RState state = rm->GetStringFormatByName(outValue, name, 101); HWTEST_F() local
534 RState state = rm->GetStringFormatByName(outValue, g_nonExistName, 101); HWTEST_F() local
549 RState state; HWTEST_F() local
573 RState state; HWTEST_F() local
591 RState state; HWTEST_F() local
609 RState state; HWTEST_F() local
628 RState state; HWTEST_F() local
649 RState state; HWTEST_F() local
670 RState state; HWTEST_F() local
690 RState state; HWTEST_F() local
707 RState state; HWTEST_F() local
725 RState state; HWTEST_F() local
743 RState state; HWTEST_F() local
761 RState state; HWTEST_F() local
854 RState state; HWTEST_F() local
885 RState state; HWTEST_F() local
916 RState state; HWTEST_F() local
947 RState state; HWTEST_F() local
963 RState state; HWTEST_F() local
981 RState state; HWTEST_F() local
996 RState state; HWTEST_F() local
1016 RState state; HWTEST_F() local
1031 RState state; HWTEST_F() local
1055 RState state; HWTEST_F() local
1070 RState state; HWTEST_F() local
1090 RState state; HWTEST_F() local
1105 RState state; HWTEST_F() local
1129 RState state; HWTEST_F() local
1144 RState state; HWTEST_F() local
1164 RState state; HWTEST_F() local
1179 RState state; HWTEST_F() local
1203 RState state; HWTEST_F() local
1218 RState state; HWTEST_F() local
1238 RState state; HWTEST_F() local
1253 RState state; HWTEST_F() local
1274 RState state; HWTEST_F() local
1289 RState state; HWTEST_F() local
1308 RState state; HWTEST_F() local
1323 RState state; HWTEST_F() local
1347 RState state; HWTEST_F() local
1362 RState state; HWTEST_F() local
1382 RState state; HWTEST_F() local
1402 RState state; HWTEST_F() local
1421 RState state; HWTEST_F() local
1441 RState state; HWTEST_F() local
1458 RState state; HWTEST_F() local
1478 RState state; HWTEST_F() local
1497 RState state; HWTEST_F() local
1517 RState state; HWTEST_F() local
1534 RState state; HWTEST_F() local
1694 RState state; HWTEST_F() local
[all...]
H A Dlocale_info_test.cpp174 RState state = SUCCESS; in HWTEST_F() local
175 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
200 RState state = SUCCESS; in HWTEST_F() local
201 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
216 localeInfo = BuildFromString("en-US", '-', state); in HWTEST_F()
227 localeInfo = BuildFromString("en-Qaag-US", '-', state); in HWTEST_F()
253 RState state = SUCCESS; in HWTEST_F() local
254 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
271 RState state = SUCCESS; in HWTEST_F() local
272 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
289 RState state = SUCCESS; HWTEST_F() local
307 RState state = SUCCESS; HWTEST_F() local
328 RState state = SUCCESS; HWTEST_F() local
343 RState state = SUCCESS; HWTEST_F() local
358 RState state = SUCCESS; HWTEST_F() local
373 RState state = SUCCESS; HWTEST_F() local
388 RState state = SUCCESS; HWTEST_F() local
409 RState state = SUCCESS; HWTEST_F() local
430 RState state = SUCCESS; HWTEST_F() local
445 RState state = SUCCESS; HWTEST_F() local
460 RState state = SUCCESS; HWTEST_F() local
481 RState state = SUCCESS; HWTEST_F() local
502 RState state = SUCCESS; HWTEST_F() local
517 RState state = SUCCESS; HWTEST_F() local
538 RState state = SUCCESS; HWTEST_F() local
553 RState state = SUCCESS; HWTEST_F() local
568 RState state = SUCCESS; HWTEST_F() local
[all...]
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/
H A Dresource_manager_test.cpp218 RState state; in HWTEST_F() local
226 state = rm->UpdateResConfig(*rc); in HWTEST_F()
228 EXPECT_EQ(SUCCESS, state); in HWTEST_F()
239 RState state; in HWTEST_F() local
245 state = rm->UpdateResConfig(*rc); in HWTEST_F()
247 EXPECT_EQ(LOCALEINFO_IS_NULL, state); in HWTEST_F()
258 RState state; in HWTEST_F() local
265 state = rm->UpdateResConfig(*rc); in HWTEST_F()
267 EXPECT_EQ(LOCALEINFO_IS_NULL, state); in HWTEST_F()
280 RState state; in HWTEST_F() local
320 RState state; HWTEST_F() local
356 RState state; HWTEST_F() local
422 RState state = rm->GetStringById(NON_EXIST_ID, outValue); HWTEST_F() local
472 RState state = rm->GetStringByName(g_nonExistName, outValue); HWTEST_F() local
489 RState state = rm->GetStringFormatById(outValue, id, 101); HWTEST_F() local
504 RState state = rm->GetStringFormatById(outValue, NON_EXIST_ID, 101); HWTEST_F() local
519 RState state = rm->GetStringFormatByName(outValue, name, 101); HWTEST_F() local
534 RState state = rm->GetStringFormatByName(outValue, g_nonExistName, 101); HWTEST_F() local
549 RState state; HWTEST_F() local
573 RState state; HWTEST_F() local
591 RState state; HWTEST_F() local
609 RState state; HWTEST_F() local
628 RState state; HWTEST_F() local
648 RState state; HWTEST_F() local
668 RState state; HWTEST_F() local
687 RState state; HWTEST_F() local
704 RState state; HWTEST_F() local
722 RState state; HWTEST_F() local
740 RState state; HWTEST_F() local
758 RState state; HWTEST_F() local
851 RState state; HWTEST_F() local
882 RState state; HWTEST_F() local
913 RState state; HWTEST_F() local
944 RState state; HWTEST_F() local
960 RState state; HWTEST_F() local
978 RState state; HWTEST_F() local
993 RState state; HWTEST_F() local
1013 RState state; HWTEST_F() local
1028 RState state; HWTEST_F() local
1052 RState state; HWTEST_F() local
1067 RState state; HWTEST_F() local
1087 RState state; HWTEST_F() local
1102 RState state; HWTEST_F() local
1126 RState state; HWTEST_F() local
1141 RState state; HWTEST_F() local
1161 RState state; HWTEST_F() local
1176 RState state; HWTEST_F() local
1200 RState state; HWTEST_F() local
1215 RState state; HWTEST_F() local
1235 RState state; HWTEST_F() local
1250 RState state; HWTEST_F() local
1271 RState state; HWTEST_F() local
1286 RState state; HWTEST_F() local
1305 RState state; HWTEST_F() local
1320 RState state; HWTEST_F() local
1344 RState state; HWTEST_F() local
1359 RState state; HWTEST_F() local
1379 RState state; HWTEST_F() local
1399 RState state; HWTEST_F() local
1418 RState state; HWTEST_F() local
1438 RState state; HWTEST_F() local
1455 RState state; HWTEST_F() local
1475 RState state; HWTEST_F() local
1494 RState state; HWTEST_F() local
1514 RState state; HWTEST_F() local
1531 RState state; HWTEST_F() local
1688 RState state; HWTEST_F() local
[all...]
H A Dlocale_info_test.cpp174 RState state = SUCCESS; in HWTEST_F() local
175 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
200 RState state = SUCCESS; in HWTEST_F() local
201 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
216 localeInfo = BuildFromString("en-US", '-', state); in HWTEST_F()
227 localeInfo = BuildFromString("en-Qaag-US", '-', state); in HWTEST_F()
253 RState state = SUCCESS; in HWTEST_F() local
254 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
271 RState state = SUCCESS; in HWTEST_F() local
272 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
289 RState state = SUCCESS; HWTEST_F() local
307 RState state = SUCCESS; HWTEST_F() local
328 RState state = SUCCESS; HWTEST_F() local
343 RState state = SUCCESS; HWTEST_F() local
358 RState state = SUCCESS; HWTEST_F() local
373 RState state = SUCCESS; HWTEST_F() local
388 RState state = SUCCESS; HWTEST_F() local
409 RState state = SUCCESS; HWTEST_F() local
430 RState state = SUCCESS; HWTEST_F() local
445 RState state = SUCCESS; HWTEST_F() local
460 RState state = SUCCESS; HWTEST_F() local
481 RState state = SUCCESS; HWTEST_F() local
502 RState state = SUCCESS; HWTEST_F() local
517 RState state = SUCCESS; HWTEST_F() local
538 RState state = SUCCESS; HWTEST_F() local
553 RState state = SUCCESS; HWTEST_F() local
568 RState state = SUCCESS; HWTEST_F() local
[all...]
/base/request/request/services/src/manage/scheduler/state/
H A Dsql.rs101 state = CASE
102 WHEN (state = {RUNNING} OR state = {RETRYING}) AND action = {DOWNLOAD} THEN {WAITING}
103 WHEN (state = {RUNNING} OR state = {RETRYING}) AND action = {UPLOAD} THEN {FAILED}
104 ELSE state
107 WHEN (state = {RUNNING} OR state = {RETRYING}) THEN {APP_BACKGROUND_OR_TERMINATE}
108 WHEN state = {WAITING} THEN
135 state
[all...]
/base/time/time_service/framework/cj/src/
H A Dsystem_date_time_ffi.cpp38 auto [state, time] = SystemDateTimeImpl::getCurrentTime(isNano); in FfiOHOSSysDateTimegetCurrentTime()
39 if (state != SUCCESS_CODE) { in FfiOHOSSysDateTimegetCurrentTime()
40 ret.code = state; in FfiOHOSSysDateTimegetCurrentTime()
44 ret.code = state; in FfiOHOSSysDateTimegetCurrentTime()
52 auto [state, time] = SystemDateTimeImpl::getRealActiveTime(isNano); in FfiOHOSSysDateTimegetRealActiveTime()
53 if (state != SUCCESS_CODE) { in FfiOHOSSysDateTimegetRealActiveTime()
54 ret.code = state; in FfiOHOSSysDateTimegetRealActiveTime()
58 ret.code = state; in FfiOHOSSysDateTimegetRealActiveTime()
66 auto [state, time] = SystemDateTimeImpl::getRealTime(isNano); in FfiOHOSSysDateTimegetRealTime()
67 if (state ! in FfiOHOSSysDateTimegetRealTime()
[all...]
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
H A Dnotification_service_test.cpp105 void SetUp(const ::benchmark::State &state) override
112 void TearDown(const ::benchmark::State &state) override
131 BENCHMARK_F(BenchmarkNotificationService, AddSlotTestCase)(benchmark::State &state) in BENCHMARK_F()
136 while (state.KeepRunning()) { in BENCHMARK_F()
139 state.SkipWithError("AddSlotTestCase failed."); in BENCHMARK_F()
150 BENCHMARK_F(BenchmarkNotificationService, RemoveSlotByTypeTestCase)(benchmark::State &state) in BENCHMARK_F()
155 while (state.KeepRunning()) { in BENCHMARK_F()
158 state.SkipWithError("RemoveSlotByTypeTestCase add failed."); in BENCHMARK_F()
163 state.SkipWithError("RemoveSlotByTypeTestCase remove failed."); in BENCHMARK_F()
174 BENCHMARK_F(BenchmarkNotificationService, SubscribeTestCase)(benchmark::State &state) in BENCHMARK_F()
[all...]
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dlocale_info_test.cpp174 RState state = SUCCESS; in HWTEST_F() local
175 Locale *localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
199 RState state = SUCCESS; in HWTEST_F() local
200 Locale *localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
215 localeInfo = BuildFromString("en-US", '-', state); in HWTEST_F()
226 localeInfo = BuildFromString("en-Qaag-US", '-', state); in HWTEST_F()
252 RState state = SUCCESS; in HWTEST_F() local
253 Locale *localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
270 RState state = SUCCESS; in HWTEST_F() local
271 Locale *localeInfo = BuildFromString("zh-CN", '-', state); in HWTEST_F()
288 RState state = SUCCESS; HWTEST_F() local
306 RState state = SUCCESS; HWTEST_F() local
327 RState state = SUCCESS; HWTEST_F() local
342 RState state = SUCCESS; HWTEST_F() local
357 RState state = SUCCESS; HWTEST_F() local
372 RState state = SUCCESS; HWTEST_F() local
387 RState state = SUCCESS; HWTEST_F() local
408 RState state = SUCCESS; HWTEST_F() local
429 RState state = SUCCESS; HWTEST_F() local
444 RState state = SUCCESS; HWTEST_F() local
459 RState state = SUCCESS; HWTEST_F() local
480 RState state = SUCCESS; HWTEST_F() local
501 RState state = SUCCESS; HWTEST_F() local
516 RState state = SUCCESS; HWTEST_F() local
537 RState state = SUCCESS; HWTEST_F() local
552 RState state = SUCCESS; HWTEST_F() local
567 RState state = SUCCESS; HWTEST_F() local
[all...]
H A Dresource_manager_test_common.cpp204 RState state; in TestGetProfileById() local
207 state = rm->GetProfileById(id, outValue); in TestGetProfileById()
208 EXPECT_TRUE(state == SUCCESS); in TestGetProfileById()
219 RState state = rm->GetProfileByName("test_profile", outValue); in TestGetProfileByName() local
220 EXPECT_TRUE(state == SUCCESS); in TestGetProfileByName()
233 RState state = rm->GetMediaById(id, outValue); in TestGetMediaById() local
234 EXPECT_TRUE(state == SUCCESS); in TestGetMediaById()
259 RState state = rm->GetMediaById(id, outValue, density); in TestGetMediaWithDensityById() local
260 EXPECT_TRUE(state == SUCCESS); in TestGetMediaWithDensityById()
271 RState state in TestGetMediaByName() local
295 RState state = rm->GetMediaByName("icon", outValue, density); TestGetMediaWithDensityByName() local
308 RState state = rm->GetDrawableInfoById(id, type, len, jsonBuf); TestGetDrawableInfoById() local
333 RState state = rm->GetDrawableInfoById(id, type, len, jsonBuf, density); TestGetDrawableInfoWithDensityById() local
349 RState state = rm->GetDrawableInfoByName("icon1", type, len, jsonBuf); TestGetDrawableInfoByName() local
372 RState state = rm->GetDrawableInfoByName("icon1", type, len, jsonBuf, density); TestGetDrawableInfoWithDensityByName() local
387 RState state = rm->GetStringFormatById(outValue, id, 101); // 101 means the format number TestGetStringFormatById() local
395 RState state = rm->GetStringFormatByName(outValue, name, 101); // 101 means the format number TestGetStringFormatByName() local
404 RState state = rm->GetStringArrayById(id, outValue); TestGetStringArrayById() local
418 RState state = rm->GetStringFormatById(id, outValue, jsParams); TestGetStringFormatById() local
432 RState state = rm->GetStringFormatById(outValue, id, args); TestGetStringFormatByIdWithVaArgs() local
444 RState state = rm->GetStringFormatByName(name, outValue, jsParams); TestGetStringFormatByName() local
456 RState state = rm->GetStringFormatByName(outValue, name, args); TestGetStringFormatByNameWithVaArgs() local
465 RState state = rm->GetStringArrayByName(name, outValue); TestGetStringArrayByName() local
475 RState state = rm->GetPatternById(id, outValue); TestGetPatternById() local
484 RState state = rm->GetPatternByName(name, outValue); TestGetPatternByName() local
495 RState state = rm->GetThemeById(id, outValue); TestGetThemeById() local
502 RState state = rm->GetThemeByName(appTheme, outValue); TestGetThemeByName() local
515 RState state = rm->GetBooleanById(id, outValue); TestGetBooleanById() local
529 RState state = rm->GetBooleanByName(boolean1, outValue); TestGetBooleanByName() local
543 RState state = rm->GetIntegerById(id, outValue); TestGetIntegerById() local
557 RState state = rm->GetIntegerByName(integer1, outValue); TestGetIntegerByName() local
572 RState state = rm->GetFloatById(id, outValue); TestGetFloatById() local
592 RState state = rm->GetFloatByName(touchTarget, outValue); TestGetFloatByName() local
612 RState state = rm->GetIntArrayById(id, outValue); TestGetIntArrayById() local
623 RState state = rm->GetIntArrayByName(intarray1, outValue); TestGetIntArrayByName() local
[all...]
H A Dresource_manager_test.cpp163 RState state; in HWTEST_F() local
171 state = rm->UpdateResConfig(*rc); in HWTEST_F()
173 EXPECT_EQ(SUCCESS, state); in HWTEST_F()
184 RState state; in HWTEST_F() local
190 state = rm->UpdateResConfig(*rc); in HWTEST_F()
192 EXPECT_EQ(LOCALEINFO_IS_NULL, state); in HWTEST_F()
203 RState state; in HWTEST_F() local
210 state = rm->UpdateResConfig(*rc); in HWTEST_F()
212 EXPECT_EQ(LOCALEINFO_IS_NULL, state); in HWTEST_F()
225 RState state; in HWTEST_F() local
278 RState state; HWTEST_F() local
302 RState state = rm->UpdateResConfig(*rc); HWTEST_F() local
344 RState state; HWTEST_F() local
396 RState state; HWTEST_F() local
416 RState state; HWTEST_F() local
435 RState state; HWTEST_F() local
464 RState state; HWTEST_F() local
482 RState state; HWTEST_F() local
500 RState state; HWTEST_F() local
529 RState state; HWTEST_F() local
556 RState state; HWTEST_F() local
583 RState state; HWTEST_F() local
610 RState state; HWTEST_F() local
637 RState state; HWTEST_F() local
664 RState state; HWTEST_F() local
691 RState state; HWTEST_F() local
718 RState state; HWTEST_F() local
745 RState state; HWTEST_F() local
772 RState state; HWTEST_F() local
787 RState state; HWTEST_F() local
811 RState state; HWTEST_F() local
826 RState state; HWTEST_F() local
846 RState state; HWTEST_F() local
861 RState state; HWTEST_F() local
877 RState state; HWTEST_F() local
893 RState state; HWTEST_F() local
909 RState state; HWTEST_F() local
925 RState state; HWTEST_F() local
941 RState state; HWTEST_F() local
957 RState state; HWTEST_F() local
973 RState state; HWTEST_F() local
989 RState state; HWTEST_F() local
1005 RState state; HWTEST_F() local
1035 RState state; HWTEST_F() local
1064 RState state; HWTEST_F() local
1583 RState state; HWTEST_F() local
1616 RState state; HWTEST_F() local
1649 RState state; HWTEST_F() local
1682 RState state; HWTEST_F() local
1842 RState state; HWTEST_F() local
1931 RState state; HWTEST_F() local
1958 RState state = rm->UpdateOverrideResConfig(*config); HWTEST_F() local
1972 RState state = rm->IsLoadHap(fullPath); HWTEST_F() local
1986 RState state = rm->IsLoadHap(fullPath); HWTEST_F() local
1999 RState state = rm->IsRawDirFromHap("test_rawfile.txt", ret); HWTEST_F() local
2012 RState state = rm->IsRawDirFromHap("no_test_rawfile.txt", ret); HWTEST_F() local
2026 RState state = rm->GetRawFileList("", rawfileList); HWTEST_F() local
2040 RState state = rm->GetRawFileList("no_exist_dir", rawfileList); HWTEST_F() local
[all...]
H A Dresource_manager_test_hap.cpp565 RState state = rm->GetProfileDataById(id, len, outValue); in HWTEST_F() local
566 EXPECT_TRUE(state == SUCCESS); in HWTEST_F()
581 RState state = rm->GetProfileDataByName("test_profile", len, outValue); in HWTEST_F() local
582 EXPECT_TRUE(state == SUCCESS); in HWTEST_F()
596 RState state; in HWTEST_F() local
598 state = rm->GetMediaDataByName("icon1", len, outValue); in HWTEST_F()
600 EXPECT_TRUE(state == SUCCESS); in HWTEST_F()
614 RState state; in HWTEST_F() local
618 state = rm->GetMediaDataById(id, len, outValue); in HWTEST_F()
620 EXPECT_TRUE(state in HWTEST_F()
634 RState state; HWTEST_F() local
652 RState state; HWTEST_F() local
680 RState state; HWTEST_F() local
718 RState state; HWTEST_F() local
754 RState state; HWTEST_F() local
788 RState state; HWTEST_F() local
808 RState state; HWTEST_F() local
834 RState state; HWTEST_F() local
863 RState state = rm->GetRawFileFromHap("test_rawfile.txt", len, outValue); HWTEST_F() local
880 RState state; HWTEST_F() local
1097 RState state = rm->GetResId(resTypeName, id); HWTEST_F() local
1113 RState state = rm->GetResId(resTypeName, id); HWTEST_F() local
1129 RState state = rm->GetResId(resTypeName, id); HWTEST_F() local
1145 RState state = rm->GetResId(resTypeName, id); HWTEST_F() local
1161 RState state = rm->GetResId(resTypeName, id); HWTEST_F() local
1177 RState state = rm->GetResId(resTypeName, id); HWTEST_F() local
[all...]
/base/startup/init/test/benchmark/
H A Dparameter_benchmark.cpp127 * @param state
129 static void BMCachedParameterGet(benchmark::State &state) in BMCachedParameterGet() argument
137 for (auto _ : state) { in BMCachedParameterGet()
140 state.SetItemsProcessed(state.iterations()); in BMCachedParameterGet()
146 * @param state
148 static void BMCachedParameterGetChangedStatic(benchmark::State &state) in BMCachedParameterGetChangedStatic() argument
155 for (auto _ : state) { in BMCachedParameterGetChangedStatic()
161 state.SetItemsProcessed(state in BMCachedParameterGetChangedStatic()
169 BMCachedParameterGetChangedGlobal(benchmark::State &state) BMCachedParameterGetChangedGlobal() argument
189 BMCachedParameterGetChangedGlobal2(benchmark::State &state) BMCachedParameterGetChangedGlobal2() argument
213 BMSystemReadParam(benchmark::State &state) BMSystemReadParam() argument
238 BMSystemReadParam_none(benchmark::State &state) BMSystemReadParam_none() argument
262 BMSystemFindParameter(benchmark::State &state) BMSystemFindParameter() argument
281 BMSystemGetParameterValue(benchmark::State &state) BMSystemGetParameterValue() argument
309 BMSystemGetParameterCommitId(benchmark::State &state) BMSystemGetParameterCommitId() argument
331 BMTestRandom(benchmark::State &state) BMTestRandom() argument
[all...]
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
H A Daccesstoken_location_request_test.cpp170 * @tc.desc: only vague location permission, ret: DYNAMIC_OPER, state: DYNAMIC_OPER
186 .state = SETTING_OPER, in HWTEST_F()
196 ASSERT_EQ(DYNAMIC_OPER, permsList1[0].state); in HWTEST_F()
201 * @tc.desc: only vague location permission after refuse, ret: PASS_OPER, state: SETTING_OPER
217 .state = SETTING_OPER, in HWTEST_F()
227 ASSERT_EQ(SETTING_OPER, permsList2[0].state); in HWTEST_F()
232 * @tc.desc: only vague location permission after accept, ret: PASS_OPER, state: PASS_OPER
248 .state = SETTING_OPER, in HWTEST_F()
258 ASSERT_EQ(PASS_OPER, permsList3[0].state); in HWTEST_F()
263 * @tc.desc: only accurate location permission, ret: PASS_OPER, state
[all...]
/base/global/resource_management/interfaces/js/innerkits/core/src/
H A Dresource_manager_napi_sync_impl.cpp150 RState state = dataContext->addon_->GetResMgr()->GetRawFileList(dataContext->path_.c_str(), in GetRawFileListSync() local
152 if (state != RState::SUCCESS || dataContext->arrayValue_.empty()) { in GetRawFileListSync()
175 RState state = dataContext->addon_->GetResMgr()->GetRawFileFromHap(dataContext->path_, in GetRawFileContentSync() local
177 if (state != SUCCESS) { in GetRawFileContentSync()
179 ResourceManagerNapiUtils::NapiThrow(env, state); in GetRawFileContentSync()
199 RState state = dataContext->addon_->GetResMgr()->GetRawFileDescriptorFromHap(dataContext->path_, in GetRawFdSync() local
201 if (state != RState::SUCCESS) { in GetRawFdSync()
203 ResourceManagerNapiUtils::NapiThrow(env, state); in GetRawFdSync()
222 RState state = dataContext->addon_->GetResMgr()->CloseRawFileDescriptor(dataContext->path_); in CloseRawFdSync() local
223 if (state ! in CloseRawFdSync()
324 RState state = resMgr->GetStringFormatById(resId, dataContext->value_, dataContext->jsParams_); ProcessStrResource() local
339 int32_t state = InitIdResourceAddon(env, info, dataContext); GetStringSync() local
367 RState state = resMgr->GetSymbolById(resId, dataContext->symbolValue_); ProcessSymbolResource() local
381 int32_t state = InitIdResourceAddon(env, info, dataContext); GetSymbol() local
409 RState state = resMgr->GetColorById(resId, dataContext->colorValue_); ProcessColorResource() local
424 int32_t state = InitIdResourceAddon(env, info, dataContext); GetColorSync() local
452 RState state = resMgr->GetIntegerById(resId, dataContext->iValue_); ProcessNumResource() local
466 int32_t state = InitIdResourceAddon(env, info, dataContext); GetNumber() local
493 RState state = resMgr->GetBooleanById(resId, dataContext->bValue_); ProcessBoolResource() local
507 int32_t state = ResourceManagerNapiSyncImpl::InitIdResourceAddon(env, info, dataContext); GetBoolean() local
534 RState state = resMgr->GetMediaBase64DataById(resId, dataContext->value_, dataContext->density_); ProcesstMediaContentBase64Resource() local
548 int32_t state = ResourceManagerNapiSyncImpl::InitIdResourceAddon(env, info, dataContext); GetMediaContentBase64Sync() local
579 RState state = resMgr->GetMediaDataById(resId, dataContext->len_, dataContext->mediaData, ProcessMediaContentResource() local
594 int32_t state = ResourceManagerNapiSyncImpl::InitIdResourceAddon(env, info, dataContext); GetMediaContentSync() local
629 RState state = resMgr->GetFormatPluralStringById(dataContext->value_, resId, dataContext->param_, ProcessPluralStringValueResource() local
644 int32_t state = ResourceManagerNapiSyncImpl::InitIdResourceAddon(env, info, dataContext); GetPluralStringValueSync() local
678 RState state = resMgr->GetStringArrayById(resId, dataContext->arrayValue_); ProcessStringArrayValueResource() local
692 int32_t state = ResourceManagerNapiSyncImpl::InitIdResourceAddon(env, info, dataContext); GetStringArrayValueSync() local
737 RState state = SUCCESS; GetDrawableDescriptor() local
785 RState state = dataContext->addon_->GetResMgr()->GetStringFormatByName(dataContext->resName_.c_str(), ProcessStrResourceByName() local
800 int32_t state = ResourceManagerNapiSyncImpl::InitNameAddon(env, info, dataContext); GetStringByNameSync() local
820 RState state = dataContext->addon_->GetResMgr()->GetSymbolByName(dataContext->resName_.c_str(), ProcessSymbolResourceByName() local
834 int32_t state = ResourceManagerNapiSyncImpl::InitNameAddon(env, info, dataContext); GetSymbolByName() local
855 RState state = dataContext->addon_->GetResMgr()->GetColorByName(dataContext->resName_.c_str(), ProcessColorResourceByName() local
870 int32_t state = ResourceManagerNapiSyncImpl::InitNameAddon(env, info, dataContext); GetColorByNameSync() local
891 RState state = resMgr->GetIntegerByName(dataContext->resName_.c_str(), ProcessNumResourceByName() local
906 int32_t state = ResourceManagerNapiSyncImpl::InitNameAddon(env, info, dataContext); GetNumberByName() local
936 RState state = dataContext->addon_->GetResMgr()->GetBooleanByName(dataContext->resName_.c_str(), GetBooleanByName() local
971 RState state = SUCCESS; GetDrawableDescriptorByName() local
1056 RState state = dataContext->addon_->GetResMgr()->GetFormatPluralStringByName(dataContext->value_, ProcessPluralStrResourceByName() local
1073 int32_t state = ResourceManagerNapiSyncImpl::InitNameAddon(env, info, dataContext); GetPluralStringByNameSync() local
1100 RState state = dataContext->addon_->GetResMgr()->GetMediaBase64DataByName(dataContext->resName_.c_str(), ProcessMediaBase64ResourceByName() local
1117 int32_t state = ResourceManagerNapiSyncImpl::InitNameAddon(env, info, dataContext); GetMediaBase64ByNameSync() local
1143 RState state = dataContext->addon_->GetResMgr()->GetMediaDataByName(dataContext->resName_.c_str(), ProcessMediaResourceByName() local
1160 int32_t state = ResourceManagerNapiSyncImpl::InitNameAddon(env, info, dataContext); GetMediaByNameSync() local
1186 RState state = dataContext->addon_->GetResMgr()->GetStringArrayByName(dataContext->resName_.c_str(), ProcessStringArrayResourceByName() local
1203 int32_t state = ResourceManagerNapiSyncImpl::InitNameAddon(env, info, dataContext); GetStringArrayByNameSync() local
1261 RState state = dataContext->addon_->GetResMgr()->IsRawDirFromHap(dataContext->path_, IsRawDir() local
1275 int32_t state = getAddonAndConfig(env, info, dataContext); GetOverrideResourceManager() local
1324 int32_t state = getAddonAndConfig(env, info, dataContext); UpdateOverrideConfiguration() local
[all...]
/base/notification/common_event_service/test/benchmarktest/common_event_service_test/
H A Dcommon_event_manager_service_test.cpp44 void SetUp(const ::benchmark::State &state) override
46 void TearDown(const ::benchmark::State &state) override
68 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase001)(benchmark::State &state) in BENCHMARK_F()
77 while (state.KeepRunning()) { in BENCHMARK_F()
81 state.SkipWithError("SubscribeCommonEvent failed."); in BENCHMARK_F()
92 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase002)(benchmark::State &state) in BENCHMARK_F()
101 while (state.KeepRunning()) { in BENCHMARK_F()
105 state.SkipWithError("SubscribeCommonEvent failed."); in BENCHMARK_F()
116 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase003)(benchmark::State &state) in BENCHMARK_F()
125 while (state in BENCHMARK_F()
[all...]
/base/msdp/device_status/utils/common/include/
H A Dutil_napi.h33 #define CHKRV(state, desc) \
35 if ((state) != napi_ok) { \
41 #define CHKRP(state, desc) \
43 if ((state) != napi_ok) { \
49 #define CHKRF(state, desc) \
51 if ((state) != napi_ok) { \
57 #define CHKRV_SCOPE(env, state, desc, scope) \
59 if ((state) != napi_ok) { \
66 #define CHKRF_SCOPE(env, state, desc, scope) \
68 if ((state) !
[all...]
/test/xts/hats/hdf/audio/idl/benchmarktest/render/
H A Daudio_render_benchmarktest.cpp57 virtual void SetUp(const ::benchmark::State &state);
58 virtual void TearDown(const ::benchmark::State &state);
152 void AudioRenderBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument
175 void AudioRenderBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument
194 BENCHMARK_F(AudioRenderBenchmarkTest, StartAndStop)(benchmark::State &state) in BENCHMARK_F()
198 for (auto _ : state) { in BENCHMARK_F()
209 BENCHMARK_F(AudioRenderBenchmarkTest, Pause)(benchmark::State &state) in BENCHMARK_F()
215 for (auto _ : state) { in BENCHMARK_F()
230 BENCHMARK_F(AudioRenderBenchmarkTest, Resume)(benchmark::State &state) in BENCHMARK_F()
243 for (auto _ : state) { in BENCHMARK_F()
[all...]
/base/telephony/core_service/test/unittest/esim_parcel_gtest/mock/src/
H A Dparcel.cpp42 void MockWriteUint32(bool state, std::list<bool> *mockList) in MockWriteUint32() argument
47 g_mockWriteUint32 = state; in MockWriteUint32()
50 void MockWriteInt32(bool state, std::list<bool> *mockList) in MockWriteInt32() argument
55 g_mockWriteInt32 = state; in MockWriteInt32()
58 void MockWriteString16(bool state, std::list<bool> *mockList) in MockWriteString16() argument
63 g_mockWriteString16 = state; in MockWriteString16()
66 void MockWriteBool(bool state, std::list<bool> *mockList) in MockWriteBool() argument
71 g_mockWriteBool = state; in MockWriteBool()
74 void MockReadUint32(bool state, uint32_t value, std::list<bool> *mockList) in MockReadUint32() argument
80 g_mockReadUint32 = state; in MockReadUint32()
83 MockReadInt32(bool state, std::list<bool> *mockList) MockReadInt32() argument
91 MockReadString16(bool state, std::list<bool> *mockList) MockReadString16() argument
99 MockReadBool(bool state, std::list<bool> *mockList) MockReadBool() argument
[all...]
/base/powermgr/display_manager/state_manager/service/native/src/
H A Dscreen_action.cpp58 DisplayState state = DisplayState::DISPLAY_UNKNOWN; in GetDisplayState() local
63 state = DisplayState::DISPLAY_ON; in GetDisplayState()
66 state = DisplayState::DISPLAY_DIM; in GetDisplayState()
69 state = DisplayState::DISPLAY_SUSPEND; in GetDisplayState()
72 state = DisplayState::DISPLAY_OFF; in GetDisplayState()
77 DISPLAY_HILOGI(FEAT_STATE, "state=%{public}u displayId=%{public}u", static_cast<uint32_t>(state), displayId_); in GetDisplayState()
78 return state; in GetDisplayState()
89 bool ScreenAction::SetDisplayState(DisplayState state, const std::function<void(DisplayState)>& callback) in SetDisplayState() argument
91 DISPLAY_HILOGI(FEAT_STATE, "[UL_POWER] SetDisplayState displayId=%{public}u, state in SetDisplayState()
163 SetDisplayPower(DisplayState state, uint32_t reason) SetDisplayPower() argument
[all...]
/test/xts/hats/hdf/codec/benchmarktest/
H A Dcodec_benchmark_omx_test.cpp127 void SetUp(benchmark::State &state) in SetUp() argument
138 void TearDown(benchmark::State &state) in TearDown() argument
162 BENCHMARK_F(CodecBenchmarkOmxTest, GetComponentVersion)(benchmark::State &state) in BENCHMARK_F()
167 for (auto _ : state) { in BENCHMARK_F()
176 BENCHMARK_F(CodecBenchmarkOmxTest, GetParameter)(benchmark::State &state) in BENCHMARK_F()
182 for (auto _ : state) { in BENCHMARK_F()
191 BENCHMARK_F(CodecBenchmarkOmxTest, SetParameter)(benchmark::State &state) in BENCHMARK_F()
200 for (auto _ : state) { in BENCHMARK_F()
209 BENCHMARK_F(CodecBenchmarkOmxTest, GetConfig)(benchmark::State &state) in BENCHMARK_F()
219 for (auto _ : state) { in BENCHMARK_F()
456 CodecStateType state = CODEC_STATE_INVALID; BENCHMARK_F() local
[all...]
/base/global/resource_management/frameworks/resmgr/src/
H A Dresource_manager_impl.cpp98 RState state = GetString(idItem, outValue); in GetStringById() local
99 if (state != SUCCESS && state != ERROR_CODE_RES_REF_TOO_MUCH) { in GetStringById()
102 return state; in GetStringById()
112 RState state = GetString(idItem, outValue); in GetStringByName() local
113 if (state != SUCCESS && state != ERROR_CODE_RES_REF_TOO_MUCH) { in GetStringByName()
116 return state; in GetStringByName()
151 RState state = GetStringById(id, outValue); in GetStringFormatById() local
152 if (state ! in GetStringFormatById()
169 RState state = GetStringByName(name, outValue); GetStringFormatByName() local
211 RState state = GetStringArray(idItem, outValue); GetStringArrayById() local
226 RState state = GetStringArray(idItem, outValue); GetStringArrayByName() local
271 RState state = GetPattern(idItem, outValue); GetPatternById() local
285 RState state = GetPattern(idItem, outValue); GetPatternByName() local
539 RState state = GetBoolean(idItem, outValue); GetBooleanById() local
553 RState state = GetBoolean(idItem, outValue); GetBooleanByName() local
566 RState state = ResolveReference(idItem->value_, temp); GetBoolean() local
593 RState state = ParseFloat(result.c_str(), outValue, unit); GetThemeFloat() local
608 RState state = ParseFloat(result.c_str(), outValue, unit); GetThemeFloat() local
626 RState state = GetFloat(idItem, outValue, unit); GetFloatById() local
649 RState state = GetFloat(idItem, outValue, unit); GetFloatById() local
673 RState state = GetFloat(idItem, outValue, unit); GetFloatByName() local
733 RState state = ResolveReference(idItem->value_, temp); GetFloat() local
747 RState state = GetInteger(idItem, outValue); GetIntegerById() local
761 RState state = GetInteger(idItem, outValue); GetIntegerByName() local
774 RState state = ResolveReference(idItem->value_, temp); GetInteger() local
830 RState state = ProcessReference(idItem->value_, idItems); GetThemeColor() local
852 RState state = GetColor(idItem, outValue); GetColorById() local
872 RState state = GetColor(idItem, outValue); GetColorByName() local
885 RState state = ResolveReference(idItem->value_, temp); GetColor() local
899 RState state = GetSymbol(idItem, outValue); GetSymbolById() local
913 RState state = GetSymbol(idItem, outValue); GetSymbolByName() local
926 RState state = ResolveReference(idItem->value_, temp); GetSymbol() local
972 RState state = GetTheme(idItem, outValue); GetThemeById() local
986 RState state = GetTheme(idItem, outValue); GetThemeByName() local
1011 RState state = hapManager_->GetFilePath(qd, ResType::PROF, outValue); GetProfileById() local
1023 RState state = hapManager_->GetFilePath(qd, ResType::PROF, outValue); GetProfileByName() local
1038 RState state = hapManager_->GetFilePath(qd, ResType::MEDIA, outValue); GetMediaById() local
1053 RState state = hapManager_->GetFilePath(qd, ResType::MEDIA, outValue); GetMediaByName() local
1159 RState state = UpdateFakeLocaleFlag(resConfig); UpdateResConfig() local
1237 RState state = hapManager_->GetMediaData(qd, len, outValue); GetMediaDataById() local
1261 RState state = hapManager_->GetMediaData(qd, len, outValue); GetMediaDataByName() local
1296 RState state = hapManager_->GetMediaBase64Data(qd, outValue); GetMediaBase64DataById() local
1318 RState state = hapManager_->GetMediaBase64Data(qd, outValue); GetMediaBase64DataByName() local
1486 RState state = hapManager_->GetMediaData(qd, len, outValue); GetDrawableInfoById() local
1518 RState state = hapManager_->GetMediaData(qd, len, outValue); GetDrawableInfoByName() local
1526 RState state = GetStringById(id, outValue); GetStringFormatById() local
1541 RState state = GetStringByName(name, outValue); GetStringFormatByName() local
[all...]
/test/xts/hats/hdf/display/composer/benchmark/
H A Ddisplay_benchmark_test.cpp49 void TearDown(const ::benchmark::State &state);
55 void DisplayBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument
197 BENCHMARK_F(DisplayBenchmarkTest, SUB_Driver_Display_Performace_0100)(benchmark::State &state) in BENCHMARK_F()
201 for (auto _ : state) { in BENCHMARK_F()
214 BENCHMARK_F(DisplayBenchmarkTest, SUB_Driver_Display_Performace_0200)(benchmark::State &state) in BENCHMARK_F()
218 for (auto _ : state) { in BENCHMARK_F()
231 BENCHMARK_F(DisplayBenchmarkTest, SUB_Driver_Display_Performace_0300)(benchmark::State &state) in BENCHMARK_F()
235 for (auto _ : state) { in BENCHMARK_F()
248 BENCHMARK_F(DisplayBenchmarkTest, SUB_Driver_Display_Performace_0400)(benchmark::State &state) in BENCHMARK_F()
252 for (auto _ : state) { in BENCHMARK_F()
[all...]
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/
H A Delf_benchmark.cpp27 static void InitializeBuildId(benchmark::State& state, DfxMaps* dfxMaps, DfxMap** buildIdMap) in InitializeBuildId() argument
31 state.SkipWithError("Failed to get local maps."); in InitializeBuildId()
45 state.SkipWithError("Failed to find a map with a BuildId."); in InitializeBuildId()
54 static void BenchmarkElfGetBuildIdFromObj(benchmark::State& state) in BenchmarkElfGetBuildIdFromObj() argument
58 InitializeBuildId(state, dfxMaps.get(), &buildIdMap); in BenchmarkElfGetBuildIdFromObj()
62 state.SkipWithError("Cannot get valid elf from map."); in BenchmarkElfGetBuildIdFromObj()
65 for (const auto& _ : state) { in BenchmarkElfGetBuildIdFromObj()
66 state.PauseTiming(); in BenchmarkElfGetBuildIdFromObj()
68 state.ResumeTiming(); in BenchmarkElfGetBuildIdFromObj()
/test/xts/acts/multimedia/media/media_js_standard/
H A DAVPlayerTestBase.js245 avPlayer.on('stateChange', async (state, reason) => {
246 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
252 console.info(`case state is ${state}`);
253 switch (state) {
255 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.INITIALIZED);
270 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
285 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
290 expect(avPlayer.state)
[all...]

Completed in 22 milliseconds

12345678910>>...42