summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorBadhri Jagan Sridharan <badhri@google.com>2018-11-01 12:24:20 -0700
committerBadhri Jagan Sridharan <badhri@google.com>2018-11-09 17:54:40 +0000
commit222ed0fcf04cc6bc064a41c60c5f7213cf724127 (patch)
treec82f2b39d513c83de00629b2de5add99d692712e /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent2c87f2ead8f92ea571764e7fc5e2ca3b1751c10e (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: 118678530 Test: Verified that gadget reset does not happen Change-Id: I3b94e55289bb3a53eb9e083177fd4d54bec5f4da
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions