system/bt
Revision | eb9a7750869109601764a33ec0006f93145d20da (tree) |
---|---|
Time | 2019-07-04 00:53:01 |
Author | Myles Watson <mylesgw@goog...> |
Commiter | Myles Watson |
RootCanal: Set the timer period to 1 second
Reduce the CPU overhead of simulating the Bluetooth chip.
Bug: 136503363
Test: enable Bluetooth with RootCanal
Change-Id: I3a783a4d8a46d4eef43ddbace23c672ef9f6d7f9
Merged-In: I609f917061e5d83e011edfeb61de281ff45b13e4
@@ -142,6 +142,7 @@ Return<void> BluetoothHci::initialize(const sp<IBluetoothHciCallbacks>& cb) { | ||
142 | 142 | test_channel_.AddDeviceToPhy({"1", "0"}); |
143 | 143 | test_channel_.Add({"beacon", "be:ac:10:00:00:02", "1000"}); |
144 | 144 | test_channel_.AddDeviceToPhy({"2", "0"}); |
145 | + test_channel_.SetTimerPeriod({"1000"}); | |
145 | 146 | |
146 | 147 | unlink_cb_ = [cb](sp<BluetoothDeathRecipient>& death_recipient) { |
147 | 148 | if (death_recipient->getHasDied()) |