Merge "Swap hal query order" into tm-qpr-dev am: 4c5ec9874c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19533073 Change-Id: I9ae8ce08acdd6e1ee39747dd5feeb936c02bff57 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -31,15 +31,14 @@ public final class UsbPortHalInstance {
|
|||||||
public static UsbPortHal getInstance(UsbPortManager portManager, IndentingPrintWriter pw) {
|
public static UsbPortHal getInstance(UsbPortManager portManager, IndentingPrintWriter pw) {
|
||||||
|
|
||||||
logAndPrint(Log.DEBUG, null, "Querying USB HAL version");
|
logAndPrint(Log.DEBUG, null, "Querying USB HAL version");
|
||||||
if (UsbPortHidl.isServicePresent(null)) {
|
|
||||||
logAndPrint(Log.INFO, null, "USB HAL HIDL present");
|
|
||||||
return new UsbPortHidl(portManager, pw);
|
|
||||||
}
|
|
||||||
if (UsbPortAidl.isServicePresent(null)) {
|
if (UsbPortAidl.isServicePresent(null)) {
|
||||||
logAndPrint(Log.INFO, null, "USB HAL AIDL present");
|
logAndPrint(Log.INFO, null, "USB HAL AIDL present");
|
||||||
return new UsbPortAidl(portManager, pw);
|
return new UsbPortAidl(portManager, pw);
|
||||||
}
|
}
|
||||||
|
if (UsbPortHidl.isServicePresent(null)) {
|
||||||
|
logAndPrint(Log.INFO, null, "USB HAL HIDL present");
|
||||||
|
return new UsbPortHidl(portManager, pw);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user