Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java646 int newDeviceState = convertState(newChannelState); in broadcastHealthDeviceStateChange() local
648 if (currDeviceState == newDeviceState) return; in broadcastHealthDeviceStateChange()
661 if (newDeviceState == BluetoothHealth.STATE_CONNECTED) { in broadcastHealthDeviceStateChange()
693 updateAndSendIntent(device, newDeviceState, currDeviceState); in broadcastHealthDeviceStateChange()
698 updateAndSendIntent(device, newDeviceState, currDeviceState); in broadcastHealthDeviceStateChange()
701 private void updateAndSendIntent(BluetoothDevice device, int newDeviceState, in updateAndSendIntent() argument
703 if (newDeviceState == BluetoothHealth.STATE_DISCONNECTED) { in updateAndSendIntent()
706 mHealthDevices.put(device, newDeviceState); in updateAndSendIntent()
708 …notifyProfileConnectionStateChanged(device, BluetoothProfile.HEALTH, newDeviceState, prevDeviceSta… in updateAndSendIntent()