summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorBadhri Jagan Sridharan <badhri@google.com>2018-11-01 12:24:20 -0700
committerHoward Yen <howardyen@google.com>2019-01-09 16:39:58 +0800
commitc6802aa729d11b32a6ca9d4500b8e72fc3686e6f (patch)
tree52e74257c9a0618069af497afe0454ad65bb5dcf /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentba1deea30d83f411a703bb2e68cb0d04ae11b23f (diff)
Check for preexisting flag before enabling the gadget
onRegistration callback gets triggered as soon has the serviceNotification object is registered with registerForNotifications. The preexisting flag in the callback is set if the gadget hal service dies and restarts. Use this to differentiate between the onRegistration call for the registerForNotifications vs actual gadget hal service restart. Do not reset usb gadget if the onRegistration callback is called as a result of registerForNotifications. This will overcome the occasional reset of the usb gadget hence the connection during phone bootup. Bug: 121448199 Test: Verified that gadget reset does not happen Change-Id: I3b94e55289bb3a53eb9e083177fd4d54bec5f4da Merged-In: I3b94e55289bb3a53eb9e083177fd4d54bec5f4da (cherry picked from commit 222ed0fcf04cc6bc064a41c60c5f7213cf724127)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions