Merge lp://qastaging/~robertcarr/mir/receive-input-in-client into lp://qastaging/~mir-team/mir/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Thomas Voß | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 562 | ||||
Proposed branch: | lp://qastaging/~robertcarr/mir/receive-input-in-client | ||||
Merge into: | lp://qastaging/~mir-team/mir/trunk | ||||
Diff against target: |
3169 lines (+1583/-233) 69 files modified
3rd_party/CMakeLists.txt (+2/-6) 3rd_party/android-deps/std/SortedVector.h (+1/-1) 3rd_party/android-input/android/frameworks/base/include/androidfw/InputTransport.h (+2/-0) 3rd_party/android-input/android/frameworks/base/services/input/InputTransport.cpp (+5/-0) CMakeLists.txt (+0/-7) cross-compile-chroot.sh (+0/-1) debian/rules (+0/-1) doc/building_source_for_android.md (+2/-2) examples/demo_client.c (+1/-1) examples/demo_client_accelerated.cpp (+1/-1) examples/demo_client_unaccelerated.c (+1/-1) examples/eglapp.c (+14/-1) examples/render_surfaces.cpp (+2/-16) include/client/mir_toolkit/mir_client_library.h (+3/-1) include/server/mir/input/null_input_manager.h (+56/-0) include/shared/mir/input/android/android_input_lexicon.h (+7/-0) include/shared/mir_toolkit/c_types.h (+21/-0) include/shared/mir_toolkit/input/event.h (+2/-2) include/test/mir_test/wait_condition.h (+5/-3) src/client/CMakeLists.txt (+10/-3) src/client/input/CMakeLists.txt (+12/-0) src/client/input/android_input_platform.cpp (+44/-0) src/client/input/android_input_platform.h (+52/-0) src/client/input/android_input_receiver.cpp (+91/-0) src/client/input/android_input_receiver.h (+84/-0) src/client/input/android_input_receiver_thread.cpp (+68/-0) src/client/input/android_input_receiver_thread.h (+71/-0) src/client/input/input_platform.h (+55/-0) src/client/input/input_receiver_thread.h (+48/-0) src/client/mir_client_library.cpp (+10/-6) src/client/mir_client_surface.h (+1/-0) src/client/mir_connection.cpp (+8/-2) src/client/mir_connection.h (+7/-0) src/client/mir_surface.cpp (+19/-1) src/client/mir_surface.h (+13/-0) src/server/CMakeLists.txt (+1/-0) src/server/default_server_configuration.cpp (+7/-2) src/server/frontend/protobuf_message_processor.cpp (+4/-2) src/server/input/CMakeLists.txt (+0/-7) src/server/input/android/CMakeLists.txt (+1/-1) src/server/input/android/android_input_application_handle.cpp (+6/-1) src/server/input/android/android_input_application_handle.h (+1/-1) src/server/input/android/event_filter_dispatcher_policy.cpp (+3/-2) src/server/input/android/transport/CMakeLists.txt (+31/-0) src/server/input/android/transport/android_input_lexicon.cpp (+7/-7) src/server/input/dummy_input_manager.cpp (+0/-42) tests/acceptance-tests/CMakeLists.txt (+4/-0) tests/acceptance-tests/test_client_input.cpp (+268/-0) tests/acceptance-tests/test_client_library.cpp (+7/-7) tests/acceptance-tests/test_focus_management_api.cpp (+1/-1) tests/acceptance-tests/test_focus_selection.cpp (+1/-1) tests/acceptance-tests/test_surfaceloop.cpp (+5/-5) tests/integration-tests/CMakeLists.txt (+0/-2) tests/integration-tests/client/test_client_render.cpp (+8/-8) tests/integration-tests/input/android/test_android_cursor_listener.cpp (+2/-3) tests/integration-tests/input/android/test_android_input_manager.cpp (+8/-9) tests/integration-tests/input/android/test_fake_event_hub_to_event_filter.cpp (+2/-3) tests/integration-tests/test_error_reporting.cpp (+1/-1) tests/integration-tests/test_surfaceloop.cpp (+4/-4) tests/mir_test_doubles/CMakeLists.txt (+0/-2) tests/unit-tests/CMakeLists.txt (+0/-3) tests/unit-tests/client/CMakeLists.txt (+4/-0) tests/unit-tests/client/input/CMakeLists.txt (+9/-0) tests/unit-tests/client/input/test_android_input_receiver.cpp (+198/-0) tests/unit-tests/client/input/test_android_input_receiver_thread.cpp (+152/-0) tests/unit-tests/client/test_client_mir_surface.cpp (+106/-51) tests/unit-tests/input/android/test_android_input_application_handle.cpp (+18/-6) tests/unit-tests/input/android/test_android_input_lexicon.cpp (+5/-5) tests/unit-tests/input/android/test_android_input_window_handle.cpp (+1/-1) |
||||
To merge this branch: | bzr merge lp://qastaging/~robertcarr/mir/receive-input-in-client | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Alan Griffiths | Approve | ||
Chris Halse Rogers | Approve | ||
Review via email:
|
Commit message
Enable end-to-end keyboard input and test through tests/acceptanc
Description of the change
This branch contains the client side of input and the finishing touches required to make keyboard input delivery work end to end!
The driving acceptance test is shown in tests/acceptanc
See test_client_
The input machinery on the client side is mclia::
Some changes to protobuf_
Currently this is failing to work with MIR_INPUT_
On the other hand with MIR_INPUT_
Some notes from my own look at the diff
* Should the event handler type take MirSurface as the first argument? So far this hasn't been useful. If so, perhaps the EventDelegate should be passed to the Connection, it could be for other kinds of callbacks (such as?...application focus maybe?) as well. ubuntu_platform_api uses no Surface as the first argument and delegate attached to surface (or rather two argument callback, context). Maybe we should just work this way? Seems a shame to not use a delegate struct though as we will just be continually adding arguments (focus_changed_cb, proximity_cb (strawman ;)) etc...)
* The continual writing of std::function<
Jenkins will fail due to MIR_INPUT_ USE_ANDROID_ TYPES=false