Home
last modified time | relevance | path

Searched refs:realState (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dget_bluetooth_info_plugin.cpp51 int32_t realState; in TransformBluetoothState() local
54 realState = BluetoothState::TURNING_ON; in TransformBluetoothState()
57 realState = BluetoothState::TURN_ON; in TransformBluetoothState()
60 realState = BluetoothState::TURNING_OFF; in TransformBluetoothState()
63 realState = BluetoothState::TURN_OFF; in TransformBluetoothState()
66 realState = -1; in TransformBluetoothState()
68 return realState; in TransformBluetoothState()
100 int32_t realState = TransformBluetoothState(state); in OnGetPolicy() local
102 if (realState == -1 || realConnectionState == -1) { in OnGetPolicy()
109 reply.WriteInt32(realState); in OnGetPolicy()
/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Dget_bluetooth_info_plugin_test.cpp96 …int32_t realState = plugin.TransformBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STAT… variable
97 ASSERT_TRUE(realState == BluetoothState::TURNING_ON);
98realState = plugin.TransformBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_O…
99 ASSERT_TRUE(realState == BluetoothState::TURN_ON);
100realState = plugin.TransformBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURNIN…
101 ASSERT_TRUE(realState == BluetoothState::TURNING_OFF);
102realState = plugin.TransformBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_O…
103 ASSERT_TRUE(realState == BluetoothState::TURN_OFF);
104 realState = plugin.TransformBluetoothState(INVALID_BLUETOOTH_STATE);
105 ASSERT_TRUE(realState == INVALID_BLUETOOTH_STATE);
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-state-management-best-practices.md104 realState: Color = Color.Yellow;
130 // 改变realState不会触发UI视图更新
131 this.realState = this.realState == Color.Yellow ? Color.Red : Color.Yellow;
136 }.backgroundColor(this.updateUI(this.realState))
146 - this.needsUpdate是一个自定义的UI状态变量,应该仅应用于其绑定的UI组件。变量this.realStateArr、this.realState没有被装饰,他们的变化将不会触发UI…
148 - 但是在该应用中,用户试图通过this.needsUpdate的更新来带动常规变量this.realStateArr、this.realState的更新,此方法不合理且更新性能较差。
152 要解决此问题,应将realStateArr和realState成员变量用\@State装饰。一旦完成此操作,就不再需要变量needsUpdate。
160 @State realState: Color = Color.Yellow;
174 // 改变realState触发UI视图更新
175 this.realState = this.realState == Color.Yellow ? Color.Red : Color.Yellow;
[all …]
/ohos5.0/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A Daudio_bluetooth_manager.cpp308 BTAudioStreamState realState = getRealStateFunc(); in FastSuspendPlayingFromParam() local
313 …} else if (realState == BTAudioStreamState::STARTING && renderState == RenderMixerState::FAST_STAR… in FastSuspendPlayingFromParam()
318 __func__, state, realState, renderState); in FastSuspendPlayingFromParam()
372 BTAudioStreamState realState = getRealStateFunc(); in SuspendPlayingFromParam() local
377 … } else if (realState == BTAudioStreamState::STARTING && renderState == RenderMixerState::INITED) { in SuspendPlayingFromParam()
382 __func__, state, realState, renderState); in SuspendPlayingFromParam()