mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
Tests: the terminal-callers harness stubs the Quest layer and Cardboard modules and Android's system properties
This commit is contained in:
1 parent
a4d47cf33e
commit
c0e89b2c1d
2 files changed
+15
No files matched your search
@@ -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
|
||||
|
||||
@@ -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); }
|
||||
|
||||
Reference in new issue
Block a user