feat: initial commit - Carinha Control Panel v1.0 com UI glassmorphism, watch-bar, emojis, braco robotico e conversa IA

This commit is contained in:
julio
2026-10-05 16:21:57 -03:00
commit 8217292893
114 changed files with 13145 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
public class BrilhoTest {
public static void main(String[] args) throws Exception {
Class<?> type;
try { type = Class.forName("br.carinha.rosto.BrilhoRepouso"); }
catch (ClassNotFoundException e) { throw new AssertionError("Economia de tela ainda não implementada"); }
java.lang.reflect.Method method = type.getMethod("nivel", boolean.class, float.class,
float.class, long.class, long.class, boolean.class, boolean.class);
check(method, .08f, true, .7f, .08f, 31000L, 30000L, false, false);
check(method, .7f, true, .7f, .08f, 0L, 30000L, false, false);
check(method, .7f, true, .7f, .08f, 31000L, 30000L, true, false);
check(method, .08f, true, .7f, .08f, 1000L, 30000L, false, true);
check(method, .7f, false, .7f, .08f, 60000L, 30000L, false, true);
System.out.println("Brilho em repouso, retorno e economia desligada: OK");
}
static void check(java.lang.reflect.Method m, float want, Object... args) throws Exception {
float actual = (Float) m.invoke(null, args);
if (Math.abs(actual - want) > .001f) throw new AssertionError(actual + " != " + want);
}
}