Tests: the terminal-callers harness stubs the Quest layer and Cardboard modules and Android's system properties

This commit is contained in:
The412Banner committed 2026-10-15 19:05:52 -04:00
1 parent b0c694d9e1
commit a281bc881e
2 files changed
+15

No files matched your search

+6
View File
@@ -65,6 +65,12 @@ typedef struct AHardwareBuffer_Desc {
static inline void AHardwareBuffer_describe(const AHardwareBuffer *b, AHardwareBuffer_Desc *d) { (void)b; *d = (AHardwareBuffer_Desc){0}; }
static inline void AHardwareBuffer_acquire(AHardwareBuffer *b) { (void)b; }
static inline void AHardwareBuffer_release(AHardwareBuffer *b) { (void)b; }
''')
(tmp / 'sys').mkdir()
(tmp / 'sys/system_properties.h').write_text('''
#pragma once
#define PROP_VALUE_MAX 92
static inline int __system_property_get(const char *name, char *value) { (void)name; value[0] = 0; return 0; }
''')
(tmp / 'android/log.h').write_text('''
#pragma once
+9
View File
@@ -55,6 +55,15 @@ int32_t ANativeWindow_getWidth(ANativeWindow *w) { return 64; }
int32_t ANativeWindow_getHeight(ANativeWindow *w) { return 64; }
void ANativeWindow_release(ANativeWindow *w) {}
void sc_layer_window_gone(void) {}
int sc_layer_present_pass(const struct vkp_draw *d, int n, int w, int h) { return 0; }
void sc_layer_hide(void) {}
int sc_layer_base_black(int w, int h) { return 0; }
void sc_layer_hide_base(void) {}
void sc_layer_hide_overlay(void) {}
void vkp_cardboard_bind_device(VkDevice d, const VkPhysicalDeviceMemoryProperties *m) {}
int vkp_cardboard_active(void) { return 0; }
void vkp_cardboard_begin_frame(void) {}
VkImage vkp_cardboard_run(VkCommandBuffer c, VkImage s, int sw, int sh, int ow, int oh) { return s; }
int vk_loader_open(const char *a, const char *b, const char *c) { assert(0); return -1; }
void vk_loader_load_instance(VkInstance i) { assert(0); }
void vk_loader_load_device(VkDevice d) { assert(0); }