Searched refs:realState (Results 1 – 4 of 4) sorted by relevance
51 int32_t realState; in TransformBluetoothState() local54 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() local102 if (realState == -1 || realConnectionState == -1) { in OnGetPolicy()109 reply.WriteInt32(realState); in OnGetPolicy()
96 …int32_t realState = plugin.TransformBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STAT… variable97 ASSERT_TRUE(realState == BluetoothState::TURNING_ON);98 …realState = plugin.TransformBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_O…99 ASSERT_TRUE(realState == BluetoothState::TURN_ON);100 …realState = plugin.TransformBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURNIN…101 ASSERT_TRUE(realState == BluetoothState::TURNING_OFF);102 …realState = 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);
104 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 …]
308 BTAudioStreamState realState = getRealStateFunc(); in FastSuspendPlayingFromParam() local313 …} else if (realState == BTAudioStreamState::STARTING && renderState == RenderMixerState::FAST_STAR… in FastSuspendPlayingFromParam()318 __func__, state, realState, renderState); in FastSuspendPlayingFromParam()372 BTAudioStreamState realState = getRealStateFunc(); in SuspendPlayingFromParam() local377 … } else if (realState == BTAudioStreamState::STARTING && renderState == RenderMixerState::INITED) { in SuspendPlayingFromParam()382 __func__, state, realState, renderState); in SuspendPlayingFromParam()