Loading tests/ActivityViewTest/Android.mk 0 → 100644 +12 −0 Original line number Diff line number Diff line LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_PACKAGE_NAME := ActivityViewTest LOCAL_PRIVATE_PLATFORM_APIS := true LOCAL_MODULE_TAGS := tests LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) tests/ActivityViewTest/AndroidManifest.xml 0 → 100644 +58 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 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. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.android.test.activityview"> <uses-permission android:name="android.permission.INJECT_EVENTS"/> <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS"/> <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING"/> <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/> <uses-sdk android:targetSdkVersion="27"/> <application android:label="ActivityViewTest"> <activity android:name=".ActivityViewMainActivity" android:label="AV Main" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> <activity android:name=".ActivityViewActivity" android:label="AV" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> </activity> <activity android:name=".ActivityViewResizeActivity" android:label="AV Resize" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> </activity> <activity android:name=".ActivityViewScrollActivity" android:label="AV Scroll" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> </activity> <activity android:name=".ActivityViewTestActivity" android:resizeableActivity="true" android:theme="@*android:style/Theme.NoTitleBar" android:exported="true" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> </activity> </application> </manifest> tests/ActivityViewTest/res/layout/activity_view_activity.xml 0 → 100644 +47 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#cfd8dc"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/activity_launch_button" android:layout_width="200dp" android:layout_height="wrap_content" android:text="Launch test activity" /> <Button android:id="@+id/activity_pick_launch_button" android:layout_width="200dp" android:layout_height="wrap_content" android:text="Launch from picker" /> </LinearLayout> <ActivityView android:id="@+id/activity_view" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> No newline at end of file tests/ActivityViewTest/res/layout/activity_view_main_activity.xml 0 → 100644 +44 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <Button android:id="@+id/activity_view_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Test ActivityView" android:textAllCaps="false"/> <Button android:id="@+id/scroll_activity_view_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Test Scroll ActivityView" android:textAllCaps="false"/> <Button android:id="@+id/resize_activity_view_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Test Resize ActivityView" android:textAllCaps="false"/> </LinearLayout> tests/ActivityViewTest/res/layout/activity_view_resize_activity.xml 0 → 100644 +51 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#cfd8dc"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/activity_launch_button" android:layout_width="100dp" android:layout_height="wrap_content" android:text="Launch" /> <Button android:id="@+id/activity_resize_button" android:layout_width="100dp" android:layout_height="wrap_content" android:text="Resize" /> </LinearLayout> <SeekBar android:id="@+id/activity_view_seek_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> <ActivityView android:id="@+id/activity_view" android:layout_width="match_parent" android:layout_height="600dp" /> </LinearLayout> No newline at end of file Loading
tests/ActivityViewTest/Android.mk 0 → 100644 +12 −0 Original line number Diff line number Diff line LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_PACKAGE_NAME := ActivityViewTest LOCAL_PRIVATE_PLATFORM_APIS := true LOCAL_MODULE_TAGS := tests LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE)
tests/ActivityViewTest/AndroidManifest.xml 0 → 100644 +58 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 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. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.android.test.activityview"> <uses-permission android:name="android.permission.INJECT_EVENTS"/> <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS"/> <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING"/> <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/> <uses-sdk android:targetSdkVersion="27"/> <application android:label="ActivityViewTest"> <activity android:name=".ActivityViewMainActivity" android:label="AV Main" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> <activity android:name=".ActivityViewActivity" android:label="AV" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> </activity> <activity android:name=".ActivityViewResizeActivity" android:label="AV Resize" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> </activity> <activity android:name=".ActivityViewScrollActivity" android:label="AV Scroll" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> </activity> <activity android:name=".ActivityViewTestActivity" android:resizeableActivity="true" android:theme="@*android:style/Theme.NoTitleBar" android:exported="true" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"> </activity> </application> </manifest>
tests/ActivityViewTest/res/layout/activity_view_activity.xml 0 → 100644 +47 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#cfd8dc"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/activity_launch_button" android:layout_width="200dp" android:layout_height="wrap_content" android:text="Launch test activity" /> <Button android:id="@+id/activity_pick_launch_button" android:layout_width="200dp" android:layout_height="wrap_content" android:text="Launch from picker" /> </LinearLayout> <ActivityView android:id="@+id/activity_view" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> No newline at end of file
tests/ActivityViewTest/res/layout/activity_view_main_activity.xml 0 → 100644 +44 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <Button android:id="@+id/activity_view_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Test ActivityView" android:textAllCaps="false"/> <Button android:id="@+id/scroll_activity_view_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Test Scroll ActivityView" android:textAllCaps="false"/> <Button android:id="@+id/resize_activity_view_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Test Resize ActivityView" android:textAllCaps="false"/> </LinearLayout>
tests/ActivityViewTest/res/layout/activity_view_resize_activity.xml 0 → 100644 +51 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#cfd8dc"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/activity_launch_button" android:layout_width="100dp" android:layout_height="wrap_content" android:text="Launch" /> <Button android:id="@+id/activity_resize_button" android:layout_width="100dp" android:layout_height="wrap_content" android:text="Resize" /> </LinearLayout> <SeekBar android:id="@+id/activity_view_seek_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> <ActivityView android:id="@+id/activity_view" android:layout_width="match_parent" android:layout_height="600dp" /> </LinearLayout> No newline at end of file