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

Commit f97da47c authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Opensource a test tool called EditTextVariations

This CL opensouces a testing tool called EditTextVariations that has
been used internally to test IME behaviors on various
EditorInfo#inputType and EditorInfo#imeOptions.

Bug: 80039502
Test: Manually verified as follows.
 1. tapas EditTextVariations
 2. make -j
 3. adb install -r $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/EditTextVariations.apk
Change-Id: Ia87e655573c2fd1fc09d56e4af90bfb1dfd65f9b
parent a3b17c25
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
# Copyright (C) 2013 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.

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_PACKAGE_NAME := EditTextVariations

LOCAL_SDK_VERSION := current

include $(BUILD_PACKAGE)
+44 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 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.android.inputmethod.tools.edittextvariations"
    android:versionName="0.67"
    android:versionCode="67"
>
    <supports-screens android:resizeable="true" />
    <uses-sdk
        android:targetSdkVersion="27"
        android:minSdkVersion="11" />
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:allowBackup="false"
    >
        <activity
            android:name=".EditTextVariations"
            android:windowSoftInputMode="stateHidden|adjustPan"
            android:theme="@style/defaultActivityTheme"
            android:label="@string/app_name"
        >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>
+56 −0
Original line number Diff line number Diff line
<!--
/*
**
** Copyright 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.
*/
-->

body {
    background-color: black;
}
div.placeholder {
    color: #a0a0a0;
    font-size: 18px;
    margin: 0px 0px -34px 0px;
    padding: 4px 0px 4px 0px
}
div.input {
    border: none;
    margin: 4px 0px 4px -8px;
}
input {
    color: black;
    background-color: white;
    font-size: 18px;
    line-height: 200%;
    vertical-align: center;
    padding-left: 8px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: none;
}
textarea {
    color: black;
    background-color: white;
    font-size: 18px;
    line-height: 150%;
    vertical-align: center;
    padding-left: 8px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: none;
}
+56 −0
Original line number Diff line number Diff line
<!--
/*
**
** Copyright 2011, 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.
*/
-->

body {
    background-color: black;
}
div.placeholder {
    color: #a0a0a0;
    font-size: 18px;
    margin: 0px 0px -34px 0px;
    padding: 4px 0px 4px 0px
}
div.input {
    border: none;
    margin: 4px 0px 4px -8px;
}
input {
    color: black;
    background-color: white;
    font-size: 18px;
    line-height: 200%;
    vertical-align: center;
    padding-left: 8px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: none;
}
textarea {
    color: black;
    background-color: white;
    font-size: 18px;
    line-height: 150%;
    vertical-align: center;
    padding-left: 8px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: none;
}
+56 −0
Original line number Diff line number Diff line
<!--
/*
**
** Copyright 2011, 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.
*/
-->

body {
    background-color: #16191C;
}
div.placeholder {
    color: #808080;
    font-size: 18px;
    margin: 0px 0px -34px 0px;
    padding: 4px 0px 4px 0px
}
div.input {
    border: none;
    margin: 4px 0px 4px -8px;
}
input {
    color: white;
    background-color: rgba(0, 0, 0, 0.0);
    font-size: 18px;
    line-height: 180%;
    vertical-align: center;
    padding-left: 8px;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid #5E6063;
    border-left: none;
}
textarea {
    color: white;
    background-color: rgba(0, 0, 0, 0.0);
    font-size: 18px;
    line-height: 150%;
    vertical-align: center;
    padding-left: 8px;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid #5E6063;
    border-left: none;
}
Loading