summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2016-11-02 15:57:19 +0800
committerYi Kong <yikong@google.com>2016-11-10 07:04:52 +0000
commit1aea56624e153ef798126f290b826fbd75a08206 (patch)
tree2147749aee5feac447846596f7da2b7d7be824b7 /annotations/generate_annotated_java_files.py
parente9b3abc6bc5dcf9fb09dbf10a9751b09e3dc99a8 (diff)
Move AbstractPlainDatagramSocketImpl#dataAvailable away from JNI
and remove clinit code, made possible from removing dependency on JNI. IoBridge#available has two differences from raw ioctl. Firstly, if value from ioctl is negative, it returns 0 instead of original value. This is a safer behaviour since negative return is treated as error and zero has no behavioural difference for DatagramSocket. Secondly, it does not throw if errorno == ENOTTY, but socket fds always support FIONREAD. Thus the code maintains original behaviour. Bug: 28609551 Test: CtsLibcoreTestCases Change-Id: Ib378c416f1e44b675490e8459f7c9f436ba8e62d
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions