mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-30 04:38:51 +00:00
Rename control message type to COLLAPSE_PANELS
The collapsing action collapses any panels. By the way, the Android method is named collapsePanels(). PR #2260 <https://github.com/Genymobile/scrcpy/pull/2260> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
parent
bb4614d558
commit
66c581851f
8 changed files with 15 additions and 15 deletions
|
@ -177,9 +177,9 @@ static void test_serialize_expand_notification_panel(void) {
|
|||
assert(!memcmp(buf, expected, sizeof(expected)));
|
||||
}
|
||||
|
||||
static void test_serialize_collapse_notification_panel(void) {
|
||||
static void test_serialize_collapse_panels(void) {
|
||||
struct control_msg msg = {
|
||||
.type = CONTROL_MSG_TYPE_COLLAPSE_NOTIFICATION_PANEL,
|
||||
.type = CONTROL_MSG_TYPE_COLLAPSE_PANELS,
|
||||
};
|
||||
|
||||
unsigned char buf[CONTROL_MSG_MAX_SIZE];
|
||||
|
@ -187,7 +187,7 @@ static void test_serialize_collapse_notification_panel(void) {
|
|||
assert(size == 1);
|
||||
|
||||
const unsigned char expected[] = {
|
||||
CONTROL_MSG_TYPE_COLLAPSE_NOTIFICATION_PANEL,
|
||||
CONTROL_MSG_TYPE_COLLAPSE_PANELS,
|
||||
};
|
||||
assert(!memcmp(buf, expected, sizeof(expected)));
|
||||
}
|
||||
|
@ -274,7 +274,7 @@ int main(int argc, char *argv[]) {
|
|||
test_serialize_inject_scroll_event();
|
||||
test_serialize_back_or_screen_on();
|
||||
test_serialize_expand_notification_panel();
|
||||
test_serialize_collapse_notification_panel();
|
||||
test_serialize_collapse_panels();
|
||||
test_serialize_get_clipboard();
|
||||
test_serialize_set_clipboard();
|
||||
test_serialize_set_screen_power_mode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue