Home
last modified time | relevance | path

Searched refs:g_capacity (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/sensors/miscdevice/services/miscdevice_service/src/
H A Dmiscdevice_service.cpp68 VibratorCapacity g_capacity; variable
243 if (vibratorHdiConnection_.GetVibratorCapacity(g_capacity) != ERR_OK) { in InitInterface()
494 …if (!(g_capacity.isSupportHdHaptic || g_capacity.isSupportPresetMapping || g_capacity.isSupportTim… in PlayVibratorCustom()
522 if (g_capacity.isSupportHdHaptic) { in PlayVibratorCustom()
524 } else if (g_capacity.isSupportPresetMapping) { in PlayVibratorCustom()
526 } else if (g_capacity.isSupportTimeDelay) { in PlayVibratorCustom()
670 if (g_capacity.isSupportHdHaptic) { in PlayPattern()
679 } else if (g_capacity.isSupportPresetMapping) { in PlayPattern()
681 } else if (g_capacity.isSupportTimeDelay) { in PlayPattern()
702 return vibratorHdiConnection_.GetDelayTime(g_capacity.GetVibrateMode(), delayTime); in GetDelayTime()
[all …]
/ohos5.0/base/powermgr/battery_manager/test/systemtest/src/
H A Dbattery_event_system_test.cpp50 int32_t g_capacity = -1; variable
253 g_capacity = data.GetWant().GetIntParam(KEY_CAPACITY, defaultCapacity); in OnReceiveEvent()
602 EXPECT_EQ(g_capacity, capacity);
614 EXPECT_EQ(g_capacity, capacity);
624 EXPECT_EQ(g_capacity, capacity);
636 EXPECT_EQ(g_capacity, BatterySrvClient::GetInstance().GetCapacity());