• Home
  • History
  • Annotate
  • only in /frameworks/native/services/vr/virtual_touchpad/
History log of /frameworks/native/services/vr/virtual_touchpad/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
06936feb07bf6fbef262e4adebeb8e53910d8cf4 05-Apr-2017 Santos Cordon <santoscordon@google.com> Add uniqueId to Virtual Display and pass through to inputflinger (2/2)

This CL adds:
1) Adds uniqueId (protected via system/sig permission) to virtual
displays.
2) Add support for N virtual display viewports into inputflinger.
3) Set the virtual display's viewports in inputflinger if it has the
uniqueId value set to non-null. (a) Moving the new viewport from java to
native inputflinger and (b) adding "uniqueId" value to viewports makes
up the great majority of this change.
4) From the inputflinger side, we also read in a new value from the
input device configuration files called 'touch.displayId'.
5) When touch.displayId and the virtual display's uniqueId match,
inputflinger links the two.

Test: Start VR and ensure that the virtual viewport shows up when running
'adb shell dump input". Run a VR app, and ensure that the virtual input
device is associated with the new virtual viewport.

Bug: 36051620
Change-Id: I662f09f863a3dc94c570e7e7f30b83888b3f514c
Merged-In: I662f09f863a3dc94c570e7e7f30b83888b3f514c
irtualTouchpadEvdev.cpp
ests/VirtualTouchpad_test.cpp
cc41f5068689035520c3b6efc0ac728fff4dcb73 20-Apr-2017 Daniel Nicoara <dnicoara@google.com> Check for caller permissions in virtual touchpad service

Bug: 37542947
Test: Compiled and ran on device and verified no permission errors in VR
mode

Change-Id: I8e6198faeeb510792238f6fcce879f6bfb572281
ndroid.bp
irtualTouchpadService.cpp
b0f5100d636404af6be3bc0f891d3630bfcd5472 06-Apr-2017 Kevin Schoedel <kpschoedel@google.com> Don't stack-allocate binder objects.

These inherit from RefBase and need to be owned in an sp<>.

Bug: 36854729
Test: manual on Pixel phone
Change-Id: I5ac6f50c1a21d4c8b224d41149b16da4d438dba7
Merged-In: I54dac1298dca1eb3ab5e6751366ba67bb2e1906c
ain.cpp
4f4ac845a99012093eec66e053d1f6bf7278daf3 22-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix virtual touchpad re-attachment."
0d5a06a66396635c2c5a1178eefab248321d7068 22-Mar-2017 Kevin Schoedel <kpschoedel@google.com> Fix virtual touchpad re-attachment.

If the client crashes without detaching the virtual touchpad
and a new instance reconnects, it should take over the existing
device without attempting to configure it again.

Bug: 36051900
Test: no
Change-Id: I446f1bc7cb9c08f914b9bfc653857a97fdc7839c
irtualTouchpadService.cpp
5fb727f7a1ae1f49d8b8aa8d2d6a27a5f9118075 21-Mar-2017 Alex Vakulenko <avakulenko@google.com> Replace 'cpuset' init option with 'writepid'

The 'cpuset' option is not being upstreamed as expected and instead
we should be using the more generic 'writepid' option with the full
cpuset file path.

Bug: 35313295
Test: None
Change-Id: I451679192bad664b253b07942d78fb288980940f
irtual_touchpad.rc
de1cdaebc9b8fdbc5348e6c07f849b74bacc485d 17-Mar-2017 Kevin Schoedel <kpschoedel@google.com> Add C interface for virtual touchpad client.

For use by the dvr api.

Changes VrWindowManager::ShellView to exercise this change,
and because it will be used when that code relocates to VrCore.

Bug: 36050790
Test: use in vr_wm.
Change-Id: I0fa67d19f94939ae41ef0ea2338f92f6147a4111
ndroid.bp
vrVirtualTouchpadClient.cpp
irtualTouchpadClient.cpp
irtualTouchpadEvdev.cpp
irtualTouchpadEvdev.h
irtualTouchpadService.h
nclude/VirtualTouchpad.h
nclude/VirtualTouchpadClient.h
nclude/dvr/virtual_touchpad_client.h
ain.cpp
ests/VirtualTouchpad_test.cpp
e77dce28e5e9a7f078cb324a7b9320802fca8469 14-Mar-2017 Stephen Kiazyk <skiazyk@google.com> Force vrhwc/wm to report the native resolution

Due to some Yak-shaving, this also involved a partial conversion of our
libraries to soong.

Notes:
* I also changed the name of libsensor to libvrsensor to avoid a naming
clash with an existing library
* The remaining libraries will be soongified in a separate CL

Bug: 36139334
Test: Build and run vr apps.
Change-Id: Ib39687bd01e3d2e1c30adc54e18f362a85954ab9
ndroid.bp
ndroid.mk
0108af72a8d8d2ee2af127b4c099b340ad63e3f8 09-Mar-2017 Kevin Schoedel <kpschoedel@google.com> Support multiple virtual touchpads.

The service now creates two uinput devices, named
"vr virtual touchpad 0" for VirtualTouchpad::PRIMARY
and "vr virtual touchpad 1" for VirtualTouchpad::VIRTUAL.

Bug: b/35992608
Test: expanded VirtualTouchpad_test unit test
Change-Id: I8749d559a56cfa9c8ec9a039ff7ad44d16f81915
vdevInjector.cpp
irtualTouchpadEvdev.cpp
irtualTouchpadEvdev.h
ests/VirtualTouchpad_test.cpp
4b64dd48b6896d6b963f0a3a0259d3d2a7076a9e 07-Mar-2017 Kevin Schoedel <kpschoedel@google.com> Revise virtual touchpad interface.

- Explicit start and stop, outside of which the evdev devices
don't exist.
- Permission test (not compiled by default pending build & SELinux
support for temporarily retaining a second copy of the service
for vr_wm).
- Enforce a single user of the touchpad.
- Support 'dumpsys'.

Bug: 36051900
Test: log inspection
Change-Id: I038ed2632d5adf50a3565a981031691d5dc5f7cd
ndroid.mk
vdevInjector.cpp
vdevInjector.h
irtualTouchpadClient.cpp
irtualTouchpadEvdev.cpp
irtualTouchpadEvdev.h
irtualTouchpadService.cpp
irtualTouchpadService.h
idl/android/dvr/VirtualTouchpadService.aidl
nclude/VirtualTouchpad.h
nclude/VirtualTouchpadClient.h
ests/VirtualTouchpad_test.cpp
3002b8a74431dd7c005269cf9306443a4b4963f1 06-Mar-2017 Kevin Schoedel <kpschoedel@google.com> Interface for multiple virtual touchpads.

This passes the touchpad selection across binder, but does not yet
actually implement multiple touchpad devices.

Bug: b/35992608
Test: primary only in VirtualTouchpad_test
Change-Id: I7529735362e0e38805b9c0e52e07b5efc86bd535
irtualTouchpadClient.cpp
irtualTouchpadEvdev.cpp
irtualTouchpadEvdev.h
irtualTouchpadService.cpp
irtualTouchpadService.h
idl/android/dvr/VirtualTouchpadService.aidl
nclude/VirtualTouchpad.h
nclude/VirtualTouchpadClient.h
ests/VirtualTouchpad_test.cpp
89af70bce420f011adfeb0f80984b3895c4d7d9b 04-Mar-2017 Kevin Schoedel <kpschoedel@google.com> Provide a library interface to the virtual touchpad service.

And make VrWindowManager pay for^H^H^H^H^H^H^H^H use it. The library
interface is a step toward moving 2D embedding into VrCore because it
hides the binder connection that isn't directly accessible to VrCore.

As a matter of implementation, the touchpad-service client library
and the low-level evdev touchpad are derived from the same interface.

Bug: b/35990873
Test: VirtualTouchpad_test; integration TBD.
Change-Id: Ic922ff223ddd5a44f6fb4433a271f8341e93a0e7
ndroid.mk
irtualTouchpad.cpp
irtualTouchpad.h
irtualTouchpadClient.cpp
irtualTouchpadEvdev.cpp
irtualTouchpadEvdev.h
irtualTouchpadService.cpp
irtualTouchpadService.h
idl/android/dvr/VirtualTouchpadService.aidl
nclude/VirtualTouchpad.h
nclude/VirtualTouchpadClient.h
ain.cpp
ests/VirtualTouchpad_test.cpp
4fe60582f314e381098f8f3bc2e39c5880e9243a 02-Feb-2017 Alex Vakulenko <avakulenko@google.com> Remove references to libchrome

Removed dependencies on libchrome which was used mostly for logging
and switched over to standard Android log macros.

Bug: None
Test: `m -j32` still succeeds
Change-Id: I0a841c19c15c02f9a031af200e82837f9450d88a
vdevInjector.cpp
irtualTouchpad.cpp
irtualTouchpadService.cpp
ain.cpp
43b5b06c8be24e465bd6a7b22a8d341db1ad50a2 19-Jan-2017 Kevin Schoedel <kpschoedel@google.com> Add synthetic back button to virtual touchpad/stylus.

Also add a bit more error checking and documentation.

Test: added to VirtualTouchpad_test.cpp
Bug: 34673438
Change-Id: I3851a2ad79c5338cdd1db0c7d460aecfff082cc3
irtualTouchpad.cpp
irtualTouchpad.h
irtualTouchpadService.cpp
irtualTouchpadService.h
idl/android/dvr/VirtualTouchpadService.aidl
ests/VirtualTouchpad_test.cpp
e4eec20f6263f4a42ae462456f60ea6c4518bb0a 27-Jan-2017 Alex Vakulenko <avakulenko@google.com> Add DaydreamVR native libraries and services

Upstreaming the main VR system components from master-dreamos-dev
into goog/master.

Bug: None
Test: `m -j32` succeeds. Sailfish boots and basic_vr sample app works
Change-Id: I853015872afc443aecee10411ef2d6b79184d051
ndroid.mk
vdevInjector.cpp
vdevInjector.h
irtualTouchpad.cpp
irtualTouchpad.h
irtualTouchpadService.cpp
irtualTouchpadService.h
idl/android/dvr/VirtualTouchpadService.aidl
ain.cpp
ests/VirtualTouchpad_test.cpp
irtual_touchpad.rc