Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69de6be2 authored by Antonio Kantek's avatar Antonio Kantek Committed by Automerger Merge Worker
Browse files

Merge "Deleting frameworks/base/tests/ActivityViewTest" into sc-dev am: 1ebf0cf0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13856984

Change-Id: I763ef056249b2461600889a2ab2eea6920971f2c
parents 74dfdf91 1ebf0cf0
Loading
Loading
Loading
Loading

tests/ActivityViewTest/Android.bp

deleted100644 → 0
+0 −15
Original line number Diff line number Diff line
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_base_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_base_license"],
}

android_test {
    name: "ActivityViewTest",
    srcs: ["src/**/*.java"],
    platform_apis: true,
    certificate: "platform",
}
+0 −67
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_TASKS"/>
    <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"
             android:exported="true">
            <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"
             android:windowSoftInputMode="stateHidden|adjustResize">
        </activity>

        <activity android:name=".ActivityViewResizeActivity"
             android:label="AV Resize"
             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"
             android:windowSoftInputMode="stateHidden|adjustResize">
        </activity>

        <activity android:name=".ActivityViewScrollActivity"
             android:label="AV Scroll"
             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"
             android:windowSoftInputMode="stateHidden">
        </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>

        <activity android:name=".ActivityViewVisibilityActivity"
             android:label="AV Visibility"
             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density">
        </activity>
    </application>
</manifest>
+0 −47
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
+0 −50
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"/>

    <Button
        android:id="@+id/visibility_activity_view_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Test ActivityView Visibility"
        android:textAllCaps="false"/>
</LinearLayout>
+0 −51
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