<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<pointer-icon xmlns:android="http://schemas.android.com/apk/res/android"
    android:bitmap="@drawable/test_drawable"
    android:hotSpotX="16dp"
    android:hotSpotY="16dp" />

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<pointer-icon xmlns:android="http://schemas.android.com/apk/res/android"
    android:bitmap="@drawable/test_drawable"
    android:hotSpotX="1dp"
    android:hotSpotY="1dp" />

Fix pointer icon resource for PointerIconCompatTest
Fix pointer icon resource for PointerIconCompatTest

The pointer_icon.xml resource currently has the hotspot at (16,16),
but the underlying bitmap is only 12x12. This leads to an exception
when the PointerIcon object is being read from the parcel.

This tests used to always pass due to the following reasons:
1) There is no hotspot validation in PointerIcon.load (which is called
on the client side).
2) Hotspot validation is performed in PointerIcon.createFromParcel
(on the system server side), but the test app probably used to quit
before the binder call reaches the server.

Changing the hotspot in the resource to (1,1) solves the problem.

Bug: 70862454
Test: android.support.v4.view.PointerIconCompatTest
Change-Id: If973c756647e900fd497624732aad74899c3902b
