summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2013-09-02 20:38:47 -0700
committerMartijn Coenen <maco@google.com>2013-09-02 20:43:57 -0700
commit5b1e032ea7c06ab11d778264dd950009fcb93cc5 (patch)
tree69b8691184cde10bbf629921a4a17e0e419f7078 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent52c10e94d98e32d977bfd4021136f4c9fa571bd6 (diff)
Reader mode NFC API: move to callback model.
Using intents for reader mode doesn't work well for 2 reasons: 1) Intents are used to resolve, but in reader mode we already know where to resolve to. Additionally, dispatching an intent causes additional latency. 2) Using intents with foreground dispatch was tricky; for every call to onNewIntent() with a new tag, there was a call to onPause(), which effectively disabled reader mode again, causing a discovery loop. Instead, let the app register a callback, and call that when we discover a new tag. Also, add new flag to disable platform sounds, and to change the presence check delay. Bug: 10360259 Change-Id: I8373543d6cf2f7ca73c9b3e42bb8b51e3ac48cac
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions