/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/plugins/frame_aware_plugin/test/unittest/ |
H A D | network_latency_controller_test.cpp | 34 : counter(counter) in MockSwitcher() 39 ++counter->onCount; in LowLatencyOn() 44 ++counter->offCount; in LowLatencyOff() 48 std::shared_ptr<Counter> counter; member 93 EXPECT_EQ(counter->onCount, 1); 94 EXPECT_EQ(counter->offCount, 0); 98 EXPECT_EQ(counter->onCount, 1); 99 EXPECT_EQ(counter->offCount, 1); 119 EXPECT_EQ(counter->onCount, 1); 129 EXPECT_EQ(counter->onCount, 1); [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-arkui-advanced-Counter.md | 23 Defines a counter. 53 A counter type must go with parameters of the matching counter style. Below is a mapping between th… 64 Enumerates the counter types. 204 // List counter 231 // Compact counter 258 // Inline number counter 288 // Inline date counter 321 // List counter 336 // Compact counter 351 // Inline number counter [all …]
|
/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | arkts-observed-and-objectlink.md | 1304 counter: number; 1312 counter: number; 1366 Text('Parent: incr counter[0].counter') 1391 对于Text('Parent: incr counter[0].counter')的onClick事件,this.counter[0].incrSubCounter(10)调用incrSubCoun… 1393 但是,在Text('Parent: set.counter to 10')的onClick中调用this.counter[0].setSubCounter(10),SubCounter的counte… 1422 counter: number; 1507 Text('Parent: incr counter[0].counter') 1589 Text(`this.subValue.counter: ${this.subValue.counter}`) 1618 Text('Parent: incr counter[0].counter') 1652 Text(`this.subValue.counter: ${this.subValue.counter}`) [all …]
|
H A D | arkts-rendering-control-ifelse.md | 92 @State counter: number = 0; 98 Button(`counter ${this.counter} +1`) 100 this.counter += 1; 132 …counter的状态变量。当修改CounterView.counter状态变量时,CounterView(label为 'CounterView \#positive')子组件重新渲染并保留状态变… 138 以下示例展示了条件更改时,若需要保留counter值所做的修改。 144 @Link counter: number; 151 Button(`counter ${this.counter} +1`) 153 this.counter += 1; 166 @State counter: number = 0; 171 CounterView({ counter: $counter, label: 'CounterView #positive' }) [all …]
|
H A D | arkts-declarative-ui-description.md | 122 Button('add counter') 124 this.counter += 2; 132 this.counter += 2; 135 Button('add counter') 143 console.info(`counter: ${this.counter}`) 144 this.counter++ 147 Button('add counter')
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkCounter.ts | 61 getUINativeModule().counter.resetCounterHeight(node); 63 getUINativeModule().counter.setCounterHeight(node, this.value); 78 getUINativeModule().counter.resetCounterWidth(node); 80 getUINativeModule().counter.setCounterWidth(node, this.value); 95 getUINativeModule().counter.resetCounterBackgroundColor(node); 97 getUINativeModule().counter.setCounterBackgroundColor(node, this.value); 112 getUINativeModule().counter.resetCounterSize(node); 130 getUINativeModule().counter.resetEnableInc(node); 132 getUINativeModule().counter.setEnableInc(node, this.value); 143 getUINativeModule().counter.resetEnableDec(node); [all …]
|
/ohos5.0/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()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/session/src/ |
H A D | softbus_scenario_manager.c | 282 counter->fileCount++; in ScenarioManagerAddBusinessType() 283 counter->totalCount++; in ScenarioManagerAddBusinessType() 287 counter->audioCount++; in ScenarioManagerAddBusinessType() 337 counter->totalCount--; in ScenarioManagerDelBusinessType() 481 counter = tmp; in AddOriginalScenario() 485 if (counter == NULL) { in AddOriginalScenario() 487 if (counter == NULL) { in AddOriginalScenario() 528 counter = tmp; in DelOriginalScenario() 532 if (counter == NULL) { in DelOriginalScenario() 542 SoftBusFree(counter); in DelOriginalScenario() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/input/driver/ |
H A D | hdf_infrared.c | 52 uint16_t counter = 0; in TimeCounter() local 61 counter++; in TimeCounter() 63 if (counter >= MAX_TIME_LIMIT) { in TimeCounter() 64 return counter; in TimeCounter() 72 return counter; in TimeCounter() 99 uint16_t counter = 0; in EventHandle() local 113 if ((counter >= PILOT_CODE - AVERAGE_ERROR) && (counter < MAX_TIME_LIMIT)) { in EventHandle() 115 … } else if ((counter >= LOGIC_1 - AVERAGE_ERROR) && (counter < LOGIC_1 + AVERAGE_ERROR)) { in EventHandle() 117 … } else if ((counter >= LOGIC_0 - AVERAGE_ERROR) && (counter < LOGIC_0 + AVERAGE_ERROR)) { in EventHandle() 123 counter = 0; in EventHandle() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/ecs/ |
H A D | entity_manager.cpp | 162 if (!slot.counter) { in CreateReferenceCounted() 182 if (!e.counter) { in GetReferenceCounted() 185 return { entity, e.counter }; in GetReferenceCounted() 187 if (e.counter->GetRefCount() > 0) { in GetReferenceCounted() 189 return { entity, e.counter }; in GetReferenceCounted() 206 e.counter = nullptr; in Destroy() 223 e.counter = nullptr; in DestroyAllEntities() 238 (!state.counter || (state.counter->GetRefCount() > 0)); in IsAlive() 325 if ((e.state != EntityState::State::FREE) && e.counter && (e.counter->GetRefCount() == 0)) { in UpdateDeadEntities() 343 if ((e.state != valid) || (e.counter && e.counter->GetRefCount() == 0)) { in IteratorImpl() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/counter/interfaces/ |
H A D | BUILD.gn | 21 src_js = rebase_path("counter.js") 22 dst_file = rebase_path(target_out_dir + "/counter.abc") 23 in_puts = [ "counter.js" ] 24 out_puts = [ target_out_dir + "/counter.abc" ] 29 input = get_label_info(":gen_counter_abc", "target_out_dir") + "/counter.abc" 35 input = get_label_info(":gen_counter_abc", "target_out_dir") + "/counter.abc" 40 ohos_shared_library("counter") { 41 sources = [ "counter.cpp" ]
|
/ohos5.0/docs/en/application-dev/quick-start/ |
H A D | arkts-observed-and-objectlink.md | 1305 counter: number; 1313 counter: number; 1367 Text('Parent: incr counter[0].counter') 1423 counter: number; 1433 counter: number; 1508 Text('Parent: incr counter[0].counter') 1535 counter: number; 1590 Text(`this.subValue.counter: ${this.subValue.counter}`) 1619 Text('Parent: incr counter[0].counter') 1653 Text(`this.subValue.counter: ${this.subValue.counter}`) [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/osal/include/ |
H A D | osal_atomic_def.h | 41 #define OsalAtomicReadWrapper(v) ((v)->counter) 42 #define OsalAtomicSetWrapper(v, value) (v)->counter = (value) 43 #define OsalAtomicIncWrapper(v) ((v)->counter)++ 44 #define OsalAtomicIncRetWrapper(v) (++((v)->counter)) 45 #define OsalAtomicDecWrapper(v) (((v)->counter)--) 46 #define OsalAtomicDecRetWrapper(v) (--((v)->counter))
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/osal/include/ |
H A D | osal_atomic_def.h | 41 #define OsalAtomicReadWrapper(v) ((v)->counter) 42 #define OsalAtomicSetWrapper(v, value) (v)->counter = (value) 43 #define OsalAtomicIncWrapper(v) ((v)->counter)++ 44 #define OsalAtomicIncRetWrapper(v) (++((v)->counter)) 45 #define OsalAtomicDecWrapper(v) (((v)->counter)--) 46 #define OsalAtomicDecRetWrapper(v) (--((v)->counter))
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/include/ |
H A D | osal_atomic_def.h | 41 #define OsalAtomicReadWrapper(v) LOS_AtomicRead((const Atomic *)&(v)->counter) 42 #define OsalAtomicSetWrapper(v, value) LOS_AtomicSet((Atomic *)&(v)->counter, value) 43 #define OsalAtomicIncWrapper(v) LOS_AtomicInc((Atomic *)&(v)->counter) 44 #define OsalAtomicIncRetWrapper(v) LOS_AtomicIncRet((Atomic *)&(v)->counter) 45 #define OsalAtomicDecWrapper(v) LOS_AtomicDec((Atomic *)&(v)->counter) 46 #define OsalAtomicDecRetWrapper(v) LOS_AtomicDecRet((Atomic *)&(v)->counter)
|
/ohos5.0/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()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/backtrace/ |
H A D | backtrace_local_test.cpp | 102 ElapsedTime counter; variable 106 GTEST_LOG_(INFO) << "UnwindCurrentCost:" << counter.Elapsed(); 144 ElapsedTime counter; variable 148 GTEST_LOG_(INFO) << "UnwindCurrentCost:" << counter.Elapsed(); 258 ElapsedTime counter; variable 262 GTEST_LOG_(INFO) << "UnwindCurrentCost:" << counter.Elapsed(); 269 GTEST_LOG_(INFO) << "UnwindCurrentCost:" << counter.Elapsed(); 287 ElapsedTime counter; variable 291 GTEST_LOG_(INFO) << "UnwindCurrentCost:" << counter.Elapsed(); 298 GTEST_LOG_(INFO) << "UnwindCurrentCost:" << counter.Elapsed(); [all …]
|
/ohos5.0/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); variable 237 …errCode = timer->SetAction([&counter](EventsMask revents) -> int { ++counter; return E_OK; }, null… in __anon31edf1080702() 247 EXPECT_EQ(counter > 0, true); 289 std::atomic<int> counter(0); variable 292 [&counter](EventsMask revents) -> int { in __anon31edf1080902() 293 ++counter; in __anon31edf1080902() 309 EXPECT_EQ(counter > 0, true); 349 std::atomic<int> counter(0); variable 351 … errCode = timer->SetAction([&counter](EventsMask revents) -> int { ++counter; return -E_STALE; }, in __anon31edf1080c02() 367 EXPECT_EQ(counter > 0, true); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_tool/frameworks/src/ |
H A D | bundle_test_tool.cpp | 1059 counter++; in RunAsCheckCommand() 1247 counter++; in RunAsSetRemovableCommand() 1291 counter++; in RunAsGetRemovableCommand() 1439 counter++; in RunAsInstallSandboxCommand() 1495 counter++; in RunAsUninstallSandboxCommand() 1559 counter++; in RunAsDumpSandboxCommand() 1766 counter++; in RunAsGetProxyDataCommand() 1814 counter++; in RunAsGetAllProxyDataCommand() 1859 counter++; in RunAsGetStringCommand() 1963 counter++; in RunAsSetExtNameOrMIMEToAppCommand() [all …]
|
/ohos5.0/drivers/hdf_core/interfaces/inner_api/osal/uhdf/ |
H A D | osal_atomic_def.h | 25 #define OsalAtomicReadWrapper(v) (*(volatile int *)&(v)->counter) 26 #define OsalAtomicSetWrapper(v, value) ((v)->counter = (value)) 27 #define OsalAtomicIncWrapper(v) __sync_fetch_and_add(&(v)->counter, 1) 28 #define OsalAtomicDecWrapper(v) __sync_sub_and_fetch(&(v)->counter, 1)
|
/ohos5.0/base/security/asset/services/common/src/ |
H A D | counter.rs | 62 let counter = Counter::get_instance(); in new() localVariable 63 counter.lock().unwrap().increase_count(); in new() 71 let counter = Counter::get_instance(); in drop() localVariable 72 counter.lock().unwrap().decrease_count(); in drop()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-arkui-advanced-Counter.md | 35 | options | [CounterOptions](#counteroptions) | 是 | @Prop | 定义counter组件的类型。 | 49 | numberOptions | [NumberStyleOptions](#numberstyleoptions) | 否 | 列表型和紧凑型counter的式样。 | 51 | dateOptions | [DateStyleOptions](#datestyleoptions) | 否 | 日期型内联型counter的式样。 | 53 选择不同的counter类型,需要选择对应的counter式样,其对应关系如下: 55 | counter类型 | counter式样 | 299 //日期内联型counter 380 //日期内联型counter
|
/ohos5.0/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()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/counter/ |
H A D | counter_element.cpp | 22 RefPtr<CounterComponent> counter = AceType::DynamicCast<CounterComponent>(component_); in PerformBuild() local 23 if (counter) { in PerformBuild() 25 UpdateChild(child, counter->BuildChild(GetThemeManager())); in PerformBuild()
|
/ohos5.0/drivers/hdf_core/interfaces/inner_api/osal/shared/ |
H A D | osal_atomic.h | 53 volatile int32_t counter;/**< Counter (an atomic variable). member 79 #define OsalAtomicSet(v, counter) OsalAtomicSetWrapper(v, counter) argument
|