Release v0.1.54: scheduled location sessions and paged voice delivery history

This commit is contained in:
Codex
2026-10-19 07:55:36 +08:00
parent ad2614719b
commit 4dc3e2fb9f
28 changed files with 481 additions and 153 deletions
@@ -1,3 +1,13 @@
package cn.ucvl.zhaodisplay;
/** Test-only empty queue; never touches production storage. */
final class LocationQueue {LocationQueue(android.content.Context c){}static String digest(String s){return "fixture";}long[] stats(String owner){return new long[]{0,0,0,0};}long total(){return 0;}void discard(String owner){}}
import org.json.*;
/** In-memory synthetic queue only. Production encryption and batch checks have separate tests. */
final class LocationQueue {
static final int MAX_INFLIGHT=4;JSONObject remembered;int appended=0;
LocationQueue(android.content.Context c){}static String digest(String s){return "fixture";}static String id(){return java.util.UUID.randomUUID().toString();}
long[] stats(String owner){return new long[]{0,0,0,0};}long total(){return 0;}void discard(String owner){}
void latest(String owner,JSONObject f){remembered=f;}JSONObject latest(String owner){return remembered;}void clearLatest(String owner){remembered=null;}
boolean append(String owner,String session,JSONObject point){appended++;return true;}
boolean hasBatches(String owner){return false;}boolean ready(String owner,long cutoff){return false;}
static class Batch {JSONObject request(){return new JSONObject();}}Batch next(String owner,long cutoff,long now){return null;}
boolean acknowledge(String owner,Batch batch,JSONObject receipt){return false;}
}