Use resource device id instead of InputManager one

In the previous CL ag/15474054 we used the wrong device id. The one we
are supposed to use should come from the resource file, not from the
inputmanager.

Fix that in this CL.

In addition, add a few small fixes:
1) Move the InputEventTest to CtsInputTestCases. This will help it run
in presubmit automatically.
2) Make the tests in android/view/cts/input actually use that package
name. This makes it more convenient to run. These tests should also move
to CtsInputTestCases at some point.
3) Update Kotlin code to use non-prefixed instance variable names

Fixes: 197129201
Fixes: 197129788
Test: atest CtsInputTestCases android.view.cts.input
Note: the above command for testing does not work. The test hangs after
3rd test, after passing InputDeviceKeyLayoutTest. For those tests, I had
to run them individually in order to get them to work.

Change-Id: I27ca61416e8eca5750d0c3ea636c127fe3f0668e
19 files changed