/foundation/resourceschedule/resource_schedule_service/ressched/plugins/frame_aware_plugin/test/unittest/ |
H A D | network_latency_controller_test.cpp | 33 explicit MockSwitcher(std::shared_ptr<Counter> &counter) in MockSwitcher() 34 : counter(counter) in MockSwitcher() 39 ++counter->onCount; 44 ++counter->offCount; 48 std::shared_ptr<Counter> counter; member 55 counter = std::make_shared<MockSwitcher::Counter>(); in SetUp() 56 switcher = std::make_unique<MockSwitcher>(counter); in SetUp() 64 std::shared_ptr<MockSwitcher::Counter> counter; member in OHOS::ResourceSchedule::NetworkLatencyControllerTest 93 EXPECT_EQ(counter in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
H A D | fillp_cookie.c | 40 FILLP_UINT32 counter; in FillpMacTimerExpire() local 42 for (counter = 0; counter < FILLP_KEYSIZE; counter += (FILLP_UINT32)sizeof(FILLP_UINT32)) { in FillpMacTimerExpire() 43 macInfo->oldMacKey[counter] = macInfo->currentMacKey[counter]; in FillpMacTimerExpire() 44 macInfo->currentMacKey[counter] = (FILLP_UINT8)FILLP_CRYPTO_RAND(); in FillpMacTimerExpire()
|
/foundation/communication/dsoftbus/core/transmission/session/src/ |
H A D | softbus_scenario_manager.c | 279 ScenarioItem *scenarioItem, BusinessCounter *counter, int businessType) in ScenarioManagerAddBusinessType() 283 counter->fileCount++; in ScenarioManagerAddBusinessType() 284 counter->totalCount++; in ScenarioManagerAddBusinessType() 288 counter->audioCount++; in ScenarioManagerAddBusinessType() 289 counter->totalCount++; in ScenarioManagerAddBusinessType() 293 counter->videoCount++; in ScenarioManagerAddBusinessType() 294 counter->totalCount++; in ScenarioManagerAddBusinessType() 309 ScenarioItem *scenarioItem, BusinessCounter *counter, int businessType) in ScenarioManagerDelBusinessType() 315 singleCount = &counter->fileCount; in ScenarioManagerDelBusinessType() 319 singleCount = &counter in ScenarioManagerDelBusinessType() 278 ScenarioManagerAddBusinessType(ScenarioManager *manager, ScenarioItem *scenarioItem, BusinessCounter *counter, int businessType) ScenarioManagerAddBusinessType() argument 308 ScenarioManagerDelBusinessType(ScenarioManager *manager, ScenarioItem *scenarioItem, BusinessCounter *counter, int businessType) ScenarioManagerDelBusinessType() argument 478 BusinessCounter *counter = NULL; AddOriginalScenario() local 525 BusinessCounter *counter = NULL; DelOriginalScenario() local 610 BusinessCounter *counter = NULL; ScenarioManagerClearBusinessCounterList() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/counter/ |
H A D | counter_element.cpp | 16 #include "core/components/counter/counter_element.h" 22 RefPtr<CounterComponent> counter = AceType::DynamicCast<CounterComponent>(component_); in PerformBuild() local 23 if (counter) { in PerformBuild() 25 UpdateChild(child, counter->BuildChild(GetThemeManager())); in PerformBuild()
|
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/ |
H A D | init_utils.c | 68 int counter = 0;
in SplitString() local 69 while ((counter < maxNum) && (dstPtr[counter] != NULL)) {
in SplitString() 70 counter++;
in SplitString() 71 if (counter >= maxNum) {
in SplitString() 74 dstPtr[counter] = strtok_r(NULL, del, &buf);
in SplitString() 76 return counter;
in SplitString()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/ecs/ |
H A D | entity_manager.cpp | 131 slot.counter = nullptr; // NOTE: could push to a pool and recycle used often in Create() 162 if (!slot.counter) { in CreateReferenceCounted() 163 slot.counter.reset(new EntityReferenceCounter); in CreateReferenceCounted() 171 return EntityReference(result, entities_[GetId(result)].counter); in CreateReferenceCounted() 182 if (!e.counter) { in GetReferenceCounted() 183 // entity wasn't yet reference counted so add a counter in GetReferenceCounted() 184 e.counter.reset(new EntityReferenceCounter); in GetReferenceCounted() 185 return { entity, e.counter }; in GetReferenceCounted() 187 if (e.counter->GetRefCount() > 0) { in GetReferenceCounted() 189 return { entity, e.counter }; in GetReferenceCounted() [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/network_black_list/ |
H A D | network_black_list_manager.cpp | 134 int32_t counter = 1; in IsFailedMultiTimes() local 137 counter++; in IsFailedMultiTimes() 138 iter->second = counter; in IsFailedMultiTimes() 140 tempWifiBlockMap_[bssid] = counter; in IsFailedMultiTimes() 143 return counter >= MAX_CONNECT_FAILED_TIMES; in IsFailedMultiTimes()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | evloop_timer_unit_test.cpp | 236 std::atomic<int> counter(0); in HWTEST_F() 237 errCode = timer->SetAction([&counter](EventsMask revents) -> int { ++counter; return E_OK; }, nullptr); in HWTEST_F() 244 * @tc.expected: step3. 'counter' increased by the timer. in HWTEST_F() 247 EXPECT_EQ(counter > 0, true); in HWTEST_F() 289 std::atomic<int> counter(0); in HWTEST_F() 292 [&counter](EventsMask revents) -> int { in HWTEST_F() 293 ++counter; in HWTEST_F() 302 * @tc.expected: step3. 'counter' increased by the timer and the timer object finalized. in HWTEST_F() 309 EXPECT_EQ(counter > in HWTEST_F() 406 int counter = 1; // Interval: 1 * TIME_PIECE_100 HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_tool/frameworks/src/ |
H A D | bundle_test_tool.cpp | 1102 int counter = 0; in RunAsCheckCommand() local 1109 counter++; in RunAsCheckCommand() 1117 if ((counter == 1) && (strcmp(argv_[optind], cmd_.c_str()) == 0)) { in RunAsCheckCommand() 1187 bool BundleTestTool::CheckRemovableErrorOption(int option, int counter, const std::string &commandName) in CheckRemovableErrorOption() argument 1190 if (counter == 1) { in CheckRemovableErrorOption() 1289 int counter = 0; in RunAsSetRemovableCommand() local 1297 counter++; in RunAsSetRemovableCommand() 1305 result = !CheckRemovableErrorOption(option, counter, commandName)? OHOS::ERR_INVALID_VALUE : result; in RunAsSetRemovableCommand() 1334 int counter = 0; in RunAsGetRemovableCommand() local 1341 counter in RunAsGetRemovableCommand() 1380 CheckSandboxErrorOption(int option, int counter, const std::string &commandName) CheckSandboxErrorOption() argument 1483 int counter = 0; RunAsInstallSandboxCommand() local 1539 int counter = 0; RunAsUninstallSandboxCommand() local 1603 int counter = 0; RunAsDumpSandboxCommand() local 1808 int counter = 0; RunAsGetProxyDataCommand() local 1858 int counter = 0; RunAsGetAllProxyDataCommand() local 1900 int counter = 0; RunAsGetStringCommand() local 2003 int counter = 0; RunAsSetExtNameOrMIMEToAppCommand() local 2054 int counter = 0; RunAsDelExtNameOrMIMEToAppCommand() local 2150 int counter = 0; RunAsGetIconCommand() local 2247 int counter = 0; RunAsAddInstallRuleCommand() local 2332 int counter = 0; RunAsGetInstallRuleCommand() local 2426 int counter = 0; RunAsDeleteInstallRuleCommand() local 2511 int counter = 0; RunAsCleanInstallRuleCommand() local 2609 int counter = 0; RunAsAddAppRunningRuleCommand() local 2660 int counter = 0; RunAsDeleteAppRunningRuleCommand() local 2739 int counter = 0; RunAsCleanAppRunningRuleCommand() local 2813 int counter = 0; RunAsGetAppRunningControlRuleCommand() local 2897 int counter = 0; RunAsGetAppRunningControlRuleResultCommand() local 2975 int counter = 0; RunAsCleanBundleCacheFilesAutomaticCommand() local 3071 int32_t counter = 0; RunAsDeployQuickFix() local 3149 int32_t counter = 0; RunAsSwitchQuickFix() local 3203 int32_t counter = 0; RunAsDeleteQuickFix() local 3393 int32_t counter = 0; RunAsSetDebugMode() local 3456 int32_t counter = 0; BundleNameAndUserIdCommonFunc() local 3639 int32_t counter = 0; RunAsGetDistributedBundleName() local 3988 int32_t counter = 0; RunAsGetGroupDir() local 4090 int counter = 0; RunAsGetJsonProfile() local 4146 int counter = 0; RunGetUidByBundleName() local 4197 int counter = 0; RunAsGetUninstalledBundleInfo() local 4396 int counter = 0; RunAsImplicitQuerySkillUriInfo() local 4446 int counter = 0; RunAsQueryAbilityInfoByContinueType() local 4498 int32_t counter = 0; RunAsGetDirByBundleNameAndAppIndex() local 4549 int32_t counter = 0; RunAsIsBundleInstalled() local [all...] |
H A D | bundle_command.cpp | 297 int counter = 0; in RunAsCopyApCommand() local 303 counter++; in RunAsCopyApCommand() 313 if ((option == -1) && (counter == 0)) { in RunAsCopyApCommand() 401 int counter = 0; in RunAsCompileCommand() local 408 counter++; in RunAsCompileCommand() 415 if (counter == 1) { in RunAsCompileCommand() 509 int counter = 0; in RunAsInstallCommand() local 517 counter++; in RunAsInstallCommand() 524 if (counter == 1) { in RunAsInstallCommand() 730 int counter in RunAsUninstallCommand() local 925 int counter = 0; RunAsDumpCommand() local 1090 int32_t counter = 0; RunAsCleanCommand() local 1255 int counter = 0; RunAsEnableCommand() local 1390 int counter = 0; RunAsDisableCommand() local 1514 int counter = 0; RunAsGetCommand() local 1673 int counter = 0; RunAsDumpOverlay() local 1809 int counter = 0; RunAsDumpTargetOverlay() local 2329 int32_t counter = 0; RunAsDumpSharedDependenciesCommand() local 2456 int32_t counter = 0; RunAsDumpSharedCommand() local [all...] |
/foundation/distributeddatamgr/preferences/test/native/unittest/ |
H A D | preferences_test.cpp | 570 std::shared_ptr<PreferencesObserver> counter = std::make_shared<PreferencesObserverCounter>(); in HWTEST_F() local 571 pref->RegisterObserver(counter); in HWTEST_F() 575 EXPECT_EQ(static_cast<PreferencesObserverCounter *>(counter.get())->notifyTimes, 1); in HWTEST_F() 581 EXPECT_EQ(static_cast<PreferencesObserverCounter *>(counter.get())->notifyTimes, 2); in HWTEST_F() 583 pref->UnRegisterObserver(counter); in HWTEST_F() 595 std::shared_ptr<PreferencesObserver> counter = std::make_shared<PreferencesObserverCounter>(); in HWTEST_F() local 596 pref->RegisterObserver(counter); in HWTEST_F() 601 EXPECT_EQ(static_cast<PreferencesObserverCounter *>(counter.get())->notifyTimes, 2); in HWTEST_F() 603 pref->UnRegisterObserver(counter); in HWTEST_F() 608 EXPECT_EQ(static_cast<PreferencesObserverCounter *>(counter in HWTEST_F() 902 std::shared_ptr<PreferencesObserverCrossProcess> counter = std::make_shared<PreferencesObserverCrossProcess>(); HWTEST_F() local 995 std::shared_ptr<PreferencesObserver> counter = std::make_shared<PreferencesObserverCounter>(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/perf/ |
H A D | performance_data_manager.cpp | 60 const int64_t arrayIndex = ref.counter % IPerformanceDataManager::TIMING_DATA_POOL_SIZE; in UpdateTimingData() 61 ref.counter++; in UpdateTimingData() 88 1, // counter in UpdateTimingData() 101 1, // counter in UpdateTimingData() 194 const int64_t counter = BASE_NS::Math::max(perfRef.second.counter, int64_t(1)); in DumpToLog() local 195 CORE_LOG_I(formatData.data(), perfRef.second.totalTime / counter, perfRef.second.minTime, in DumpToLog() 196 perfRef.second.maxTime, perfRef.second.totalTime, perfRef.second.counter, typeRef.first.c_str(), in DumpToLog()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_le_sec.c | 36 uint32_t counter; member 295 keys->remoteSignKey->counter = 0; in GapLePairKeyConvert() 314 keys->localSignKey->counter = 0; in GapLePairKeyConvert() 350 deviceInfo->localSigningInfo.counter = 0; in GapSetLeSigningInfo() 357 deviceInfo->remoteSigningInfo.counter = 0; in GapSetLeSigningInfo() 1120 uint16_t handle, SignatureType type, uint32_t counter, void *callback, void *context) in GapAllocSignatureRequestInfo() 1129 info->counter = counter; in GapAllocSignatureRequestInfo() 1158 uint32_t counter = deviceInfo->localSigningInfo.counter; in GAP_LeDataSignatureGeneration() local 1119 GapAllocSignatureRequestInfo( uint16_t handle, SignatureType type, uint32_t counter, void *callback, void *context) GapAllocSignatureRequestInfo() argument 1196 uint32_t counter = *(uint32_t *)signature; GAP_LeDataSignatureConfirmation() local [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/src/distributedWant/ |
H A D | distributed_want_params_wrapper.cpp | 100 int counter = 0; in ValidateStr() local 103 counter++; in ValidateStr() 106 counter--; in ValidateStr() 108 if (counter < 0) { in ValidateStr()
|
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/ |
H A D | resource_handle.h | 109 /** Ref counted generic render resource counter. */ 147 * @param counter owner of the referenced handle. 149 inline RenderHandleReference(const RenderHandle handle, const IRenderReferenceCounter::Ptr& counter) noexcept; 184 const RenderHandle handle, const IRenderReferenceCounter::Ptr& counter) noexcept 185 : handle_(handle), counter_(counter) in counter_()
|
/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/ |
H A D | camera_capture.cpp | 76 for (int counter = 1; counter < argc; counter++) { in main() 77 if (!TestUtils::IsNumber(argv[counter])) { in main() 78 cout << "Invalid argument: " << argv[counter] << endl; in main()
|
H A D | camera_video.cpp | 202 for (int counter = 1; counter < argc; counter++) { in main() 203 if (!TestUtils::IsNumber(argv[counter])) { in main() 204 cout << "Invalid argument: " << argv[counter] << endl; in main()
|
H A D | camera_capture_mode.cpp | 288 for (int counter = 1; counter < argc; counter++) { in main() 289 if (!TestUtils::IsNumber(argv[counter])) { in main() 290 cout << "Invalid argument: " << argv[counter] << endl; in main()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | callbacks.c | 160 return __sync_add_and_fetch(&v->counter, val); in FillpSysAdptArchAtomicInc() 165 return __sync_add_and_fetch(&v->counter, 1) == 0; in FillpSysAdptArchAtomicIncAndTest() 170 return __sync_sub_and_fetch(&v->counter, val); in FillpSysAdptArchAtomicDec() 175 return __sync_sub_and_fetch(&v->counter, 1) == 0; in FillpSysAdptArchAtomicDecAndTest() 180 return v->counter; in FillpSysAdptArchAtomicRead() 185 return target->counter = newValue; in FillpSysAdptArchAtomicSet() 653 (sem)->counter = (FILLP_INT)(value); \ 901 if (sem->counter > 0) { in FillpSemTryWait() 902 sem->counter--; in FillpSemTryWait() 944 while (sem->counter < in FillpSemWait() [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/ecs/ |
H A D | entity_reference.h | 30 /** Entity reference counter counter. */ 65 * @param counter Reference counter instance. 67 EntityReference(Entity entity, const IEntityReferenceCounter::Ptr& counter) noexcept 68 : entity_(entity), counter_(counter) in counter_()
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/task_manager/task_group/ |
H A D | base_task_group.cpp | 103 static std::atomic<uint64_t> counter = 0; in GenerateHandle() local 106 uint64_t handle = ++counter; in GenerateHandle()
|
/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_thread.cpp | 69 static int counter = 0; variable 72 counter++; in simple_thd_func()
|
H A D | ut_condition.cpp | 291 int *counter = (int *)arg; in thd_func() local 292 (*counter)++; in thd_func()
|
/foundation/communication/netmanager_base/bpf/bpf_reader/ |
H A D | bpf_reader.h | 60 * @param counter lambda expression to be executed 62 void Iterate(const std::function<void(const Key &key, const NetsysBpfMap<Key, Value> &map)> &counter) const;
|
/foundation/ability/ability_runtime/tools/aa/src/ |
H A D | ability_command.cpp | 698 int32_t counter = 0; in ParseAppDebugParameter() local 700 counter++; in ParseAppDebugParameter() 708 if (counter == 1 && strcmp(argv_[optind], cmd_.c_str()) == 0) { in ParseAppDebugParameter() 964 int counter = 0; in MakeWantForProcess() local 975 counter++; in MakeWantForProcess() 988 if (counter == 1 && strcmp(argv_[optind], cmd_.c_str()) == 0) { in MakeWantForProcess() 1179 int counter = 0; in ParseBundleName() local 1182 counter++; in ParseBundleName() 1193 if (counter == 1 && strcmp(argv_[optind], cmd_.c_str()) == 0) { in ParseBundleName() 1264 int counter in MakeWantFromCmd() local 2103 int counter = 0; RunAsForceExitAppCommand() local 2207 int counter = 0; RunAsNotifyAppFaultCommand() local [all...] |