Add controller to show the summary
* Add AdvancedConnectedDeviceController that used to show which component is available * Add getConnectedDevices Summary Resource Id() to decide which string should be shown. Here have 4 cases to shown the string. case 1: driving mode available and NFC is availalbe, show "Bluetooth, driving mode, NFC" case 2: driving mode available and NFC is not availalbe, show "Bluetooth, driving mode" case 3: driving mode not available and NFC is availalbe, show "Bluetooth, NFC" case 4: driving mode not available and NFC not availalbe, show "Bluetooth" * Add test to verify the summary string is correct in each condition * Add test to verify getAvailabilityStatus() is AVAILABLE. Bug: 79299421 Test: make -j50 RunSettingsRoboTests ROBOTEST_FILTER=AdvancedConnectedDeviceControllerTest Change-Id: I1048355bbd344db3ab645dd1537b4259eff57f38 Merged-In: I1048355bbd344db3ab645dd1537b4259eff57f38
Loading
Please register or sign in to comment