Snap for 9586404 from 4a6ea2d8c2
to udc-release
Change-Id: I6ec373214c9b5496ed6c1c17197272bf6ef4c07b
This commit is contained in:
commit
43c4f5ad5a
3 changed files with 12 additions and 7 deletions
|
@ -257,11 +257,6 @@ PRODUCT_VENDOR_PROPERTIES += \
|
|||
ro.hardware.egl = mali
|
||||
endif
|
||||
|
||||
# Configure EGL blobcache
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
ro.egl.blobcache.multifile=true \
|
||||
ro.egl.blobcache.multifile_limit=134217728 \
|
||||
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
ro.opengles.version=196610 \
|
||||
graphics.gpu.profiler.support=true \
|
||||
|
@ -929,6 +924,8 @@ SUPPORT_NR := true
|
|||
SUPPORT_NR_DS := true
|
||||
# Using IRadio 2.0
|
||||
USE_RADIO_HAL_2_0 := true
|
||||
# Support SecureElement HAL for HIDL
|
||||
USE_SE_HIDL := true
|
||||
# Using Early Send Device Info
|
||||
USE_EARLY_SEND_DEVICE_INFO := true
|
||||
|
||||
|
|
|
@ -336,11 +336,14 @@ static Status validateAndSetVidPid(uint64_t functions) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
ScopedAStatus UsbGadget::reset() {
|
||||
ScopedAStatus UsbGadget::reset(const shared_ptr<IUsbGadgetCallback> &callback,
|
||||
int64_t in_transactionId) {
|
||||
ALOGI("USB Gadget reset");
|
||||
|
||||
if (!WriteStringToFile("none", PULLUP_PATH)) {
|
||||
ALOGI("Gadget cannot be pulled down");
|
||||
if (callback)
|
||||
callback->resetCb(Status::ERROR, in_transactionId);
|
||||
return ScopedAStatus::fromServiceSpecificErrorWithMessage(
|
||||
-1, "Gadget cannot be pulled down");
|
||||
}
|
||||
|
@ -349,9 +352,13 @@ ScopedAStatus UsbGadget::reset() {
|
|||
|
||||
if (!WriteStringToFile(kGadgetName, PULLUP_PATH)) {
|
||||
ALOGI("Gadget cannot be pulled up");
|
||||
if (callback)
|
||||
callback->resetCb(Status::ERROR, in_transactionId);
|
||||
return ScopedAStatus::fromServiceSpecificErrorWithMessage(
|
||||
-1, "Gadget cannot be pulled up");
|
||||
}
|
||||
if (callback)
|
||||
callback->resetCb(Status::SUCCESS, in_transactionId);
|
||||
|
||||
return ScopedAStatus::ok();
|
||||
}
|
||||
|
|
|
@ -107,7 +107,8 @@ struct UsbGadget : public BnUsbGadget {
|
|||
ScopedAStatus getCurrentUsbFunctions(const shared_ptr<IUsbGadgetCallback> &callback,
|
||||
int64_t in_transactionId) override;
|
||||
|
||||
ScopedAStatus reset() override;
|
||||
ScopedAStatus reset(const shared_ptr<IUsbGadgetCallback> &callback,
|
||||
int64_t in_transactionId) override;
|
||||
|
||||
ScopedAStatus getUsbSpeed(const shared_ptr<IUsbGadgetCallback> &callback,
|
||||
int64_t in_transactionId) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue