Home
last modified time | relevance | path

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

/hardware/interfaces/usb/gadget/1.2/default/
DUsbGadget.cpp58 std::string current_speed; in getUsbSpeed() local
59 if (ReadFileToString(SPEED_PATH, &current_speed)) { in getUsbSpeed()
60 current_speed = Trim(current_speed); in getUsbSpeed()
61 ALOGI("current USB speed is %s", current_speed.c_str()); in getUsbSpeed()
62 if (current_speed == "low-speed") in getUsbSpeed()
64 else if (current_speed == "full-speed") in getUsbSpeed()
66 else if (current_speed == "high-speed") in getUsbSpeed()
68 else if (current_speed == "super-speed") in getUsbSpeed()
70 else if (current_speed == "super-speed-plus") in getUsbSpeed()
72 else if (current_speed == "UNKNOWN") in getUsbSpeed()