Adding a portrait and landscape file
- Some wearable devices do not support landscape - CTS tests were expecting some behavior which would not work since it was not able to switch from portrait to landscape. - Creating 2 files and then each of the devices will include that particular feature that it supports. Change-Id: If0e3151e23264a49f4964e1c643b33a90b78c114
This commit is contained in:
parent
d35e3af04d
commit
0029ecbb9b
3 changed files with 40 additions and 2 deletions
20
data/etc/android.hardware.screen.landscape.xml
Normal file
20
data/etc/android.hardware.screen.landscape.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 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.
|
||||
-->
|
||||
|
||||
<!-- Standard feature indicating that the device supports landscape mode. -->
|
||||
<permissions>
|
||||
<feature name="android.hardware.screen.landscape" />
|
||||
</permissions>
|
20
data/etc/android.hardware.screen.portrait.xml
Normal file
20
data/etc/android.hardware.screen.portrait.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 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.
|
||||
-->
|
||||
|
||||
<!-- Standard feature indicating that the device supports portrait mode. -->
|
||||
<permissions>
|
||||
<feature name="android.hardware.screen.portrait" />
|
||||
</permissions>
|
|
@ -27,8 +27,6 @@
|
|||
<feature name="android.hardware.bluetooth" />
|
||||
<feature name="android.hardware.touchscreen" />
|
||||
<feature name="android.hardware.microphone" />
|
||||
<feature name="android.hardware.screen.portrait" />
|
||||
<feature name="android.hardware.screen.landscape" />
|
||||
|
||||
<!-- basic system services -->
|
||||
<feature name="android.software.home_screen" />
|
||||
|
|
Loading…
Reference in a new issue