/base/global/resource_management/interfaces/cj/src/ |
H A D | resource_manager_impl.cpp | 62 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 D | resource_manager_test.cpp | 218 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 D | locale_info_test.cpp | 174 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/time/time_service/framework/cj/src/ |
H A D | system_date_time_ffi.cpp | 38 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/request/request/services/src/manage/scheduler/state/ |
H A D | sql.rs | 101 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/notification/distributed_notification_service/test/bechmarktest/notification_services_test/ |
H A D | notification_service_test.cpp | 105 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/msdp/device_status/utils/common/include/ |
H A D | util_napi.h | 33 #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...] |
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | locale_info_test.cpp | 174 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 D | resource_manager_test_common.cpp | 204 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 D | resource_manager_test.cpp | 163 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 D | resource_manager_test_hap.cpp | 565 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 D | parameter_benchmark.cpp | 127 * @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/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/ |
H A D | elf_benchmark.cpp | 27 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()
|
H A D | unwind_remote_benchmark.cpp | 121 static void Run(benchmark::State& state, void* data)
in Run() argument 141 state.SkipWithError("Failed to get unwinder.");
in Run() 145 for (const auto& _ : state) {
in Run() 154 state.SkipWithError("Failed to unwind.");
in Run() 166 static void BenchmarkUnwinderRemoteFull(benchmark::State& state)
in BenchmarkUnwinderRemoteFull() argument 176 Run(state, &data);
in BenchmarkUnwinderRemoteFull() 185 static void BenchmarkUnwinderRemoteQut(benchmark::State& state)
in BenchmarkUnwinderRemoteQut() argument 191 Run(state, &data);
in BenchmarkUnwinderRemoteQut() 200 static void BenchmarkUnwinderRemoteQutCache(benchmark::State& state)
in BenchmarkUnwinderRemoteQutCache() argument 206 Run(state, in BenchmarkUnwinderRemoteQutCache() 215 BenchmarkUnwinderRemoteQutFrames(benchmark::State& state) BenchmarkUnwinderRemoteQutFrames() argument 230 BenchmarkUnwinderRemoteQutFramesCache(benchmark::State& state) BenchmarkUnwinderRemoteQutFramesCache() argument 245 BenchmarkUnwinderRemoteQutMiniDebugInfos(benchmark::State& state) BenchmarkUnwinderRemoteQutMiniDebugInfos() argument 262 BenchmarkUnwinderRemoteQutMiniDebugInfosLazily(benchmark::State& state) BenchmarkUnwinderRemoteQutMiniDebugInfosLazily() argument 282 BenchmarkUnwinderRemoteFp(benchmark::State& state) BenchmarkUnwinderRemoteFp() argument [all...] |
/base/notification/common_event_service/test/benchmarktest/common_event_service_test/ |
H A D | common_event_manager_service_test.cpp | 44 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/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
H A D | accesstoken_location_request_test.cpp | 170 * @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 D | resource_manager_napi_sync_impl.cpp | 150 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/telephony/core_service/test/unittest/esim_parcel_gtest/mock/src/ |
H A D | parcel.cpp | 42 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/security/access_token/frameworks/accesstoken/src/ |
H A D | permission_list_state_parcel.cpp | 26 RETURN_IF_FALSE(out.WriteInt32(static_cast<int32_t>(this->permsState.state))); in Marshalling() 38 int32_t state; in Unmarshalling() local 39 RELEASE_IF_FALSE(in.ReadInt32(state), permissionStateParcel); in Unmarshalling() 40 if (state >= static_cast<int32_t>(BUTT_OPER) || state < static_cast<int32_t>(SETTING_OPER)) { in Unmarshalling() 44 permissionStateParcel->permsState.state = static_cast<PermissionOper>(state); in Unmarshalling()
|
/base/useriam/face_auth/services_ex/src/ |
H A D | finite_state_machine_builder.cpp | 40 std::shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeTransition(uint32_t state, uint32_t event, in MakeTransition() argument 43 auto ret = transitionMap_.try_emplace(FiniteStateMachineImpl::GetTransitionIndex(state, event), nextState, action); in MakeTransition() 45 IAM_LOGE("%{public}s state %{public}u and event %{public}u insert failed", name_.c_str(), state, event); in MakeTransition() 51 std::shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeTransition(uint32_t state, uint32_t event, in MakeTransition() argument 54 MakeTransition(state, event, nextState, nullptr); in MakeTransition() 58 std::shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeOnStateEnter(uint32_t state, in MakeOnStateEnter() argument 61 auto ret = enterMap_.try_emplace(state, action); in MakeOnStateEnter() 63 IAM_LOGE("%{public}s enter state action %{public}u insert failed", name_.c_str(), state); in MakeOnStateEnter() 69 MakeOnStateLeave(uint32_t state, const FiniteStateMachine::Action &action) MakeOnStateLeave() argument [all...] |
/base/useriam/user_auth_framework/services/base/src/ |
H A D | finite_state_machine_builder.cpp | 40 std::shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeTransition(uint32_t state, uint32_t event, in MakeTransition() argument 43 auto ret = transitionMap_.try_emplace(FiniteStateMachineImpl::GetTransitionIndex(state, event), nextState, action); in MakeTransition() 45 IAM_LOGE("%{public}s state %{public}u and event %{public}u insert failed", name_.c_str(), state, event); in MakeTransition() 51 std::shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeTransition(uint32_t state, uint32_t event, in MakeTransition() argument 54 MakeTransition(state, event, nextState, nullptr); in MakeTransition() 58 std::shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeOnStateEnter(uint32_t state, in MakeOnStateEnter() argument 61 auto ret = enterMap_.try_emplace(state, action); in MakeOnStateEnter() 63 IAM_LOGE("%{public}s enter state action %{public}u insert failed", name_.c_str(), state); in MakeOnStateEnter() 69 MakeOnStateLeave(uint32_t state, const FiniteStateMachine::Action &action) MakeOnStateLeave() argument [all...] |
/base/powermgr/display_manager/state_manager/service/native/src/ |
H A D | screen_action.cpp | 58 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...] |
/base/telephony/core_service/test/unittest/esim_parcel_gtest/mock/include/ |
H A D | parcel.h | 23 void MockWriteUint32(bool state, std::list<bool> *mockList = nullptr); 25 void MockWriteInt32(bool state, std::list<bool> *mockList = nullptr); 27 void MockWriteString16(bool state, std::list<bool> *mockList = nullptr); 29 void MockWriteBool(bool state, std::list<bool> *mockList = nullptr); 31 void MockReadUint32(bool state, uint32_t value = 10, std::list<bool> *mockList = nullptr); 33 void MockReadInt32(bool state, std::list<bool> *mockList = nullptr); 35 void MockReadString16(bool state, std::list<bool> *mockList = nullptr); 37 void MockReadBool(bool state, std::list<bool> *mockList = nullptr);
|
/base/powermgr/thermal_manager/application/protector/src/ |
H A D | thermal_protector_utils.cpp | 37 int32_t state = fseek(stream, 0, SEEK_SET); in WriteFile() local 38 if (state != ERR_OK) { in WriteFile() 40 return state; in WriteFile() 42 state = fclose(stream); in WriteFile() 43 if (state != ERR_OK) { in WriteFile() 44 return state; in WriteFile()
|
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/ |
H A D | unwind_local_benchmark.cpp | 91 static void Run(benchmark::State& state, size_t (*func)(void*), void* data)
in Run() argument 94 for (const auto& _ : state) {
in Run() 96 state.SkipWithError("Failed to unwind.");
in Run() 107 static void BenchmarkUnwindStackLocal(benchmark::State& state)
in BenchmarkUnwindStackLocal() argument 112 state.SkipWithError("Failed to parse local maps.");
in BenchmarkUnwindStackLocal() 116 Run(state, UnwindLocal, &data);
in BenchmarkUnwindStackLocal() 125 static void BenchmarkUnwindStackLocalCache(benchmark::State& state)
in BenchmarkUnwindStackLocalCache() argument 130 state.SkipWithError("Failed to parse local maps.");
in BenchmarkUnwindStackLocalCache() 134 Run(state, UnwindLocal, &data);
in BenchmarkUnwindStackLocalCache() 143 static void BenchmarkUnwindStackLocalFrames(benchmark::State& state)
in BenchmarkUnwindStackLocalFrames() argument 161 BenchmarkUnwindStackLocalFramesCache(benchmark::State& state) BenchmarkUnwindStackLocalFramesCache() argument [all...] |