Port more notification senders to non-XDG systems

* doc/lispref/os.texi (Desktop Notifications): Document that
`:timeout' is now implemented.

* java/org/gnu/emacs/EmacsDesktopNotification.java
(EmacsDesktopNotification): New field delay.
(display1): Set delay on Android 8.0 and up.

* lisp/erc/erc-desktop-notifications.el
(erc-notifications-notify): Call Android or Haiku notification
functions on those systems.

* lisp/gnus/gnus-notifications.el (gnus-notifications-action)
(gnus-notification-close): Remove dismissed notifications from
the notification to message map.
(gnus-notifications-notify): Call android-notifications-notify
if possible.

* src/androidselect.c (android_init_emacs_desktop_notification):
Update accordingly.
(android_notifications_notify_1): New argument TIMEOUT.
(Fandroid_notifications_notify): New argument QCtimeout.
(syms_of_androidselect) <QCtimeout>: New symbol.
4 jobs for master in 115 minutes and 6 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build Images
failed #82474
build-image-inotify

01:55:06

 
  Normal
skipped #82475
test-lisp-erc-inotify
skipped #82476
test-lisp-gnus-inotify
skipped #82477
test-src-inotify
 
Name Stage Failure
failed
build-image-inotify Build Images There has been a timeout failure or the job got stuck. Check your timeout limits or try again
#11 809.5   ELC      ../lisp/language/utf-8-lang.elc
#11 810.1 ELC ../lisp/language/vietnamese.elc
#11 810.7 ELC ../lisp/loaddefs.elc
#11 815.3 ELC ../lisp/ls-lisp.elc
#11 816.2 ELC ../lisp/menu-bar.elc
#11 818.0 ELC ../lisp/minibuffer.elc
#11 821.5 ELC ../lisp/mouse.elc
#11 823.9 ELC ../lisp/mwheel.elc
#11 824.8 ELC ../lisp/newcomment.elc
#11 826.1 ELC ../lisp/obarray.elc