summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorNikita Dubrovsky <dubrovsky@google.com>2020-10-13 13:11:54 -0700
committerNikita Dubrovsky <dubrovsky@google.com>2020-10-26 12:12:01 -0700
commit82a414a18454d1e34f369370b2c60a5fc50a1809 (patch)
tree15fb9acc9c93617bf10f9923bff44581a9f0bf26 /rs/java/android/renderscript/ProgramStore.java
parentfa47d246b0b58b7f72d59cd8d251bf5aed797aec (diff)
Add View.onReceiveContent() and View.getOnReceiveContentMimeTypes()
Added View.onReceiveContent() which will invoke the callback if one is set. Added View.getOnReceiveContentMimeTypes() to return the MIME types that the view can receive, removing the getSupportedMimeTypes() method from the callback interface. Changed the code to pass MIME types as a String[] instead of a Set<String> in order to: * Avoid repeated conversion from Set to array in onCreateInputConnection. * Avoid misleading users of the API into using contains() to compare MIME types (ClipDescription.compareMimeTypes should be used in order to correctly handle wilcards such as "image/*"). Bug: 170191676 Bug: 152068298 Test: atest CtsViewTestCases:ViewTest Test: atest CtsViewTestCases:ViewOnReceiveContentTest Test: atest CtsWidgetTestCases:TextViewOnReceiveContentCallbackTest Test: atest FrameworksCoreTests:TextViewOnReceiveContentCallbackTest Test: atest FrameworksCoreTests:AutofillValueTest Change-Id: Id0c7f8f5fd3c7c44827a62dba1b2b205433e7540
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions