]> git.eshelyaron.com Git - emacs.git/commit
Port Android battery status to Android 4.4 and earlier
authorPo Lu <luangruo@yahoo.com>
Fri, 10 Mar 2023 01:40:41 +0000 (09:40 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 10 Mar 2023 01:40:41 +0000 (09:40 +0800)
commit488a75f2e2b73038ff341f3484a8cf8584633eff
tree4871fe49e7009816a004f96d59fcb3b945c294d8
parent4392423cb6df5a8af9a0520da04378e189fd387e
Port Android battery status to Android 4.4 and earlier

* java/org/gnu/emacs/EmacsService.java (EmacsService)
(queryBattery19): New function.
(queryBattery): Call it on old systems.  Also, return AC line
status and temperature.
* lisp/battery.el (battery-android): Implement more format
directives.
* src/android.c (android_query_battery): Handle new status
fields.
* src/android.h (struct android_battery_state): Add `plugged'
and `temperature'.
* src/androidfns.c (Fandroid_query_battery): Return new fields.
java/org/gnu/emacs/EmacsService.java
lisp/battery.el
src/android.c
src/android.h
src/androidfns.c