Home | History | Annotate | Download | only in car_bt

Lines Matching refs:hf

46         car_bt_utils.set_car_profile_priorities_off(self.hf, self.ag)
50 self.hf, self.ag, [BtEnum.BluetoothProfile.HEADSET_CLIENT],
58 self.hf.droid.bluetoothDisconnectConnected(
69 1. AG & HF are disconnected but paired.
74 3. Connect AG & HF
75 4. HF should transition into Active call state.
101 self.hf, self.ag,
103 self.log.error("Could not connect HF and AG {} {}".format(
104 self.hf.serial, self.ag.serial))
107 # Check that HF is in active state
108 if not car_telecom_utils.wait_for_active(self.log, self.hf):
109 self.hf.log.error("HF not in Active state.")
113 self.hf.droid.telecomEndCall()
115 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.hf)
129 1. AG & HF are disconnected but paired.
130 2. HF's adapter is OFF
135 3. Turn HF's adapter ON
136 4. HF should transition into Active call state.
144 # Connect HF & AG
146 self.hf, self.ag,
148 self.log.error("Could not connect HF and AG {} {}".format(
149 self.hf.serial, self.ag.serial))
157 # Wait for all HF
158 if not car_telecom_utils.wait_for_dialing(self.log, self.hf):
159 self.hf.log.error("HF not in ringing state.")
166 # Wait for all HF, AG, RE to go into an Active state.
167 if not car_telecom_utils.wait_for_active(self.log, self.hf):
168 self.hf.log.error("HF not in Active state.")
177 # Turn the adapter OFF on HF
178 if not bt_test_utils.disable_bluetooth(self.hf.droid):
179 self.hf.log.error("Failed to turn BT off on HF.")
182 # Turn adapter ON on HF
183 if not bt_test_utils.enable_bluetooth(self.hf.droid, self.hf.ed):
184 self.hf.log.error("Failed to turn BT ON after call on HF.")
187 # Check that HF is in active state
188 if not car_telecom_utils.wait_for_active(self.log, self.hf):
189 self.hf.log.error("HF not in Active state.")
193 self.hf.droid.telecomEndCall()
195 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.hf)
206 call then the call is restored on HF.
209 1. AG & HF are paired
212 0. Connect AG & HF
213 1. Make a call from HF role
215 3. Disconnect AG & HF
216 4. Verify that we don't have any calls on HF
217 5. Connect AG & HF
218 6. Verify that HF gets the call back.
228 self.hf, self.ag,
230 self.log.error("Could not connect HF and AG {} {}".format(
231 self.hf.serial, self.ag.serial))
234 # make a call on HF
235 if not car_telecom_utils.dial_number(self.log, self.hf,
237 self.hf.log.error("HF not in dialing state.")
240 # Wait for HF, AG to be dialing and RE to be ringing
242 ret &= car_telecom_utils.wait_for_dialing(self.log, self.hf)
256 ret &= car_telecom_utils.wait_for_active(self.log, self.hf)
264 # Disconnect HF & AG
265 self.hf.droid.bluetoothDisconnectConnected(
268 # We use the proxy of the Call going away as HF disconnected
269 if not car_telecom_utils.wait_for_not_in_call(self.log, self.hf):
270 self.hf.log.error("HF still in call after disconnection.")
275 self.hf, self.ag,
277 self.log.error("Could not connect HF and AG {} {}".format(
278 self.hf.serial, self.ag.serial))
281 self.hf, self.ag.droid.bluetoothGetLocalAddress()):
282 self.hf.log.info(
287 # Check that HF is in active state
288 if not car_telecom_utils.wait_for_active(self.log, self.hf):
289 self.hf.log.error("HF not in Active state.")
293 self.hf.droid.telecomEndCall()
294 ret &= car_telecom_utils.wait_for_not_in_call(self.log, self.hf)