change package name to uiuios
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
<manifest
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.launcher3.tests">
|
||||
package="com.android.uiuios.tests">
|
||||
|
||||
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<uses-library android:name="android.test.runner"/>
|
||||
|
||||
<receiver
|
||||
android:name="com.android.launcher3.testcomponent.AppWidgetNoConfig"
|
||||
android:name="com.android.uiuios.testcomponent.AppWidgetNoConfig"
|
||||
android:label="No Config">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||
@@ -34,7 +34,7 @@
|
||||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name="com.android.launcher3.testcomponent.AppWdigetHidden"
|
||||
android:name="com.android.uiuios.testcomponent.AppWdigetHidden"
|
||||
android:label="Hidden widget">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||
@@ -44,7 +44,7 @@
|
||||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name="com.android.launcher3.testcomponent.AppWidgetWithConfig"
|
||||
android:name="com.android.uiuios.testcomponent.AppWidgetWithConfig"
|
||||
android:label="With Config">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||
@@ -54,13 +54,13 @@
|
||||
</receiver>
|
||||
|
||||
<activity
|
||||
android:name="com.android.launcher3.testcomponent.WidgetConfigActivity">
|
||||
android:name="com.android.uiuios.testcomponent.WidgetConfigActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.android.launcher3.testcomponent.RequestPinItemActivity"
|
||||
android:name="com.android.uiuios.testcomponent.RequestPinItemActivity"
|
||||
android:icon="@drawable/test_drawable_pin_item"
|
||||
android:label="Test Pin Item">
|
||||
<intent-filter>
|
||||
@@ -71,12 +71,12 @@
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="com.android.launcher3.testcomponent.TestCommandReceiver"
|
||||
android:name="com.android.uiuios.testcomponent.TestCommandReceiver"
|
||||
android:authorities="${packageName}.commands"
|
||||
android:exported="true"/>
|
||||
|
||||
<activity
|
||||
android:name="com.android.launcher3.testcomponent.TestLauncherActivity"
|
||||
android:name="com.android.uiuios.testcomponent.TestLauncherActivity"
|
||||
android:clearTaskOnLaunch="true"
|
||||
android:configChanges="keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenSize|screenLayout|smallestScreenSize"
|
||||
android:enabled="false"
|
||||
@@ -98,15 +98,15 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.android.launcher3.testcomponent.BaseTestingActivity"
|
||||
android:name="com.android.uiuios.testcomponent.BaseTestingActivity"
|
||||
android:label="LauncherTestApp"
|
||||
android:taskAffinity="com.android.launcher3.testcomponent.Affinity1">
|
||||
android:taskAffinity="com.android.uiuios.testcomponent.Affinity1">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="com.android.launcher3.intent.action.test_shortcut"/>
|
||||
<action android:name="com.android.uiuios.intent.action.test_shortcut"/>
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.app.shortcuts"
|
||||
@@ -114,7 +114,7 @@
|
||||
</activity>
|
||||
<activity-alias android:name="Activity2"
|
||||
android:label="TestActivity2"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -122,7 +122,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity3"
|
||||
android:label="TestActivity3"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -130,7 +130,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity4"
|
||||
android:label="TestActivity4"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -138,7 +138,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity5"
|
||||
android:label="TestActivity5"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -146,7 +146,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity6"
|
||||
android:label="TestActivity6"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -154,7 +154,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity7"
|
||||
android:label="TestActivity7"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -162,7 +162,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity8"
|
||||
android:label="TestActivity8"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -170,7 +170,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity9"
|
||||
android:label="TestActivity9"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -178,7 +178,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity10"
|
||||
android:label="TestActivity10"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
@@ -186,7 +186,7 @@
|
||||
</activity-alias>
|
||||
<activity-alias android:name="Activity11"
|
||||
android:label="TestActivity11"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
android:targetActivity="com.android.uiuios.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.android.launcher3.tests">
|
||||
package="com.android.uiuios.tests">
|
||||
|
||||
<uses-sdk android:targetSdkVersion="28" android:minSdkVersion="25"
|
||||
tools:overrideLibrary="android.support.test.uiautomator.v18"/>
|
||||
@@ -29,6 +29,6 @@
|
||||
android:functionalTest="false"
|
||||
android:handleProfiling="false"
|
||||
android:name="androidx.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.launcher3" >
|
||||
android:targetPackage="com.android.uiuios" >
|
||||
</instrumentation>
|
||||
</manifest>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:minHeight="110dp"
|
||||
android:updatePeriodMillis="86400000"
|
||||
android:initialLayout="@layout/test_layout_appwidget_blue"
|
||||
android:configure="com.android.launcher3.testcomponent.WidgetConfigActivity"
|
||||
android:configure="com.android.uiuios.testcomponent.WidgetConfigActivity"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:widgetFeatures="reconfigurable"
|
||||
android:widgetCategory="home_screen">
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
<shortcut
|
||||
android:shortcutId="shortcut1"
|
||||
android:shortcutShortLabel="@string/shortcut1">
|
||||
<intent android:action="com.android.launcher3.intent.action.test_shortcut"/>
|
||||
<intent android:action="com.android.uiuios.intent.action.test_shortcut"/>
|
||||
</shortcut>
|
||||
<shortcut
|
||||
android:shortcutId="shortcut2"
|
||||
android:shortcutShortLabel="@string/shortcut2">
|
||||
<intent android:action="com.android.launcher3.intent.action.test_shortcut"/>
|
||||
<intent android:action="com.android.uiuios.intent.action.test_shortcut"/>
|
||||
</shortcut>
|
||||
<shortcut
|
||||
android:shortcutId="shortcut3"
|
||||
android:shortcutShortLabel="@string/shortcut3">
|
||||
<intent android:action="com.android.launcher3.intent.action.test_shortcut"/>
|
||||
<intent android:action="com.android.uiuios.intent.action.test_shortcut"/>
|
||||
</shortcut>
|
||||
</shortcuts>
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.launcher3.allapps.search;
|
||||
package com.android.uiuios.allapps.search;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import android.content.ComponentName;
|
||||
|
||||
import com.android.launcher3.AppInfo;
|
||||
import com.android.uiuios.AppInfo;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.android.launcher3.model;
|
||||
package com.android.uiuios.model;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
@@ -10,36 +10,36 @@ import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.launcher3.WorkspaceItemInfo;
|
||||
import com.android.launcher3.icons.IconCache;
|
||||
import com.android.launcher3.InvariantDeviceProfile;
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.LauncherAppState;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.compat.LauncherAppsCompat;
|
||||
import com.android.launcher3.icons.BitmapInfo;
|
||||
import com.android.uiuios.WorkspaceItemInfo;
|
||||
import com.android.uiuios.icons.IconCache;
|
||||
import com.android.uiuios.InvariantDeviceProfile;
|
||||
import com.android.uiuios.ItemInfo;
|
||||
import com.android.uiuios.LauncherAppState;
|
||||
import com.android.uiuios.Utilities;
|
||||
import com.android.uiuios.compat.LauncherAppsCompat;
|
||||
import com.android.uiuios.icons.BitmapInfo;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.INTENT;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CELLX;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CELLY;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_DESKTOP;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_HOTSEAT;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ICON;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ICON_PACKAGE;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ICON_RESOURCE;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.PROFILE_ID;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.RESTORED;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.SCREEN;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.TITLE;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites._ID;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.INTENT;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.CELLX;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.CELLY;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.CONTAINER;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.CONTAINER_DESKTOP;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.CONTAINER_HOTSEAT;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.ICON;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.ICON_PACKAGE;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.ICON_RESOURCE;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.ITEM_TYPE;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.PROFILE_ID;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.RESTORED;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.SCREEN;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites.TITLE;
|
||||
import static com.android.uiuios.LauncherSettings.Favorites._ID;
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
import static junit.framework.Assert.assertFalse;
|
||||
import static junit.framework.Assert.assertNotNull;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.android.launcher3.provider;
|
||||
package com.android.uiuios.provider;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.database.Cursor;
|
||||
@@ -7,8 +7,8 @@ import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.launcher3.LauncherProvider.DatabaseHelper;
|
||||
import com.android.launcher3.LauncherSettings.Favorites;
|
||||
import com.android.uiuios.LauncherProvider.DatabaseHelper;
|
||||
import com.android.uiuios.LauncherSettings.Favorites;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
import android.appwidget.AppWidgetProvider;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
import android.appwidget.AppWidgetProvider;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
/**
|
||||
* A simple app widget with configuration sceen.
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.BroadcastReceiver;
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.PendingIntent;
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED;
|
||||
import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
import static android.content.Intent.ACTION_MAIN;
|
||||
import static android.content.Intent.CATEGORY_LAUNCHER;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.util.Pair;
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.testcomponent;
|
||||
package com.android.uiuios.testcomponent;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.launcher3.touch;
|
||||
package com.android.uiuios.touch;
|
||||
|
||||
import static org.mockito.Matchers.anyBoolean;
|
||||
import static org.mockito.Matchers.anyFloat;
|
||||
@@ -25,7 +25,7 @@ import static org.mockito.Mockito.verify;
|
||||
import android.util.Log;
|
||||
import android.view.ViewConfiguration;
|
||||
|
||||
import com.android.launcher3.testcomponent.TouchEventGenerator;
|
||||
import com.android.uiuios.testcomponent.TouchEventGenerator;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
@@ -13,11 +13,11 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.ui;
|
||||
package com.android.uiuios.ui;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
|
||||
import static com.android.launcher3.ui.TaplTestsLauncher3.getAppPackageName;
|
||||
import static com.android.uiuios.ui.TaplTestsLauncher3.getAppPackageName;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
@@ -44,22 +44,22 @@ import androidx.test.uiautomator.UiDevice;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
import androidx.test.uiautomator.Until;
|
||||
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.LauncherAppState;
|
||||
import com.android.launcher3.LauncherModel;
|
||||
import com.android.launcher3.LauncherSettings;
|
||||
import com.android.launcher3.LauncherState;
|
||||
import com.android.launcher3.MainThreadExecutor;
|
||||
import com.android.launcher3.ResourceUtils;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.compat.LauncherAppsCompat;
|
||||
import com.android.launcher3.model.AppLaunchTracker;
|
||||
import com.android.launcher3.tapl.LauncherInstrumentation;
|
||||
import com.android.launcher3.tapl.TestHelpers;
|
||||
import com.android.launcher3.util.Wait;
|
||||
import com.android.launcher3.util.rule.FailureWatcher;
|
||||
import com.android.launcher3.util.rule.LauncherActivityRule;
|
||||
import com.android.launcher3.util.rule.ShellCommandRule;
|
||||
import com.android.uiuios.Launcher;
|
||||
import com.android.uiuios.LauncherAppState;
|
||||
import com.android.uiuios.LauncherModel;
|
||||
import com.android.uiuios.LauncherSettings;
|
||||
import com.android.uiuios.LauncherState;
|
||||
import com.android.uiuios.MainThreadExecutor;
|
||||
import com.android.uiuios.ResourceUtils;
|
||||
import com.android.uiuios.Utilities;
|
||||
import com.android.uiuios.compat.LauncherAppsCompat;
|
||||
import com.android.uiuios.model.AppLaunchTracker;
|
||||
import com.android.uiuios.tapl.LauncherInstrumentation;
|
||||
import com.android.uiuios.tapl.TestHelpers;
|
||||
import com.android.uiuios.util.Wait;
|
||||
import com.android.uiuios.util.rule.FailureWatcher;
|
||||
import com.android.uiuios.util.rule.LauncherActivityRule;
|
||||
import com.android.uiuios.util.rule.ShellCommandRule;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
@@ -349,7 +349,7 @@ public abstract class AbstractLauncherUiTest {
|
||||
intent.addCategory(Intent.CATEGORY_LAUNCHER);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.setComponent(new ComponentName(packageName,
|
||||
"com.android.launcher3.tests.Activity" + activityNumber));
|
||||
"com.android.uiuios.tests.Activity" + activityNumber));
|
||||
instrumentation.getTargetContext().startActivity(intent);
|
||||
assertTrue(packageName + " didn't start",
|
||||
mDevice.wait(
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.ui;
|
||||
package com.android.uiuios.ui;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@@ -29,10 +29,10 @@ import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.launcher3.LauncherAppWidgetProviderInfo;
|
||||
import com.android.launcher3.testcomponent.TestCommandReceiver;
|
||||
import com.android.launcher3.util.LauncherLayoutBuilder;
|
||||
import com.android.launcher3.util.rule.ShellCommandRule;
|
||||
import com.android.uiuios.LauncherAppWidgetProviderInfo;
|
||||
import com.android.uiuios.testcomponent.TestCommandReceiver;
|
||||
import com.android.uiuios.util.LauncherLayoutBuilder;
|
||||
import com.android.uiuios.util.rule.ShellCommandRule;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.android.launcher3.ui;
|
||||
package com.android.uiuios.ui;
|
||||
|
||||
import android.view.Surface;
|
||||
|
||||
import com.android.launcher3.tapl.TestHelpers;
|
||||
import com.android.uiuios.tapl.TestHelpers;
|
||||
|
||||
import org.junit.rules.TestRule;
|
||||
import org.junit.runner.Description;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.ui;
|
||||
package com.android.uiuios.ui;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
|
||||
@@ -27,19 +27,19 @@ import static org.junit.Assert.assertTrue;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.LauncherState;
|
||||
import com.android.launcher3.popup.ArrowPopup;
|
||||
import com.android.launcher3.tapl.AllApps;
|
||||
import com.android.launcher3.tapl.AppIcon;
|
||||
import com.android.launcher3.tapl.AppIconMenu;
|
||||
import com.android.launcher3.tapl.AppIconMenuItem;
|
||||
import com.android.launcher3.tapl.TestHelpers;
|
||||
import com.android.launcher3.tapl.Widgets;
|
||||
import com.android.launcher3.tapl.Workspace;
|
||||
import com.android.launcher3.views.OptionsPopupView;
|
||||
import com.android.launcher3.widget.WidgetsFullSheet;
|
||||
import com.android.launcher3.widget.WidgetsRecyclerView;
|
||||
import com.android.uiuios.Launcher;
|
||||
import com.android.uiuios.LauncherState;
|
||||
import com.android.uiuios.popup.ArrowPopup;
|
||||
import com.android.uiuios.tapl.AllApps;
|
||||
import com.android.uiuios.tapl.AppIcon;
|
||||
import com.android.uiuios.tapl.AppIconMenu;
|
||||
import com.android.uiuios.tapl.AppIconMenuItem;
|
||||
import com.android.uiuios.tapl.TestHelpers;
|
||||
import com.android.uiuios.tapl.Widgets;
|
||||
import com.android.uiuios.tapl.Workspace;
|
||||
import com.android.uiuios.views.OptionsPopupView;
|
||||
import com.android.uiuios.widget.WidgetsFullSheet;
|
||||
import com.android.uiuios.widget.WidgetsRecyclerView;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.ui;
|
||||
package com.android.uiuios.ui;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
import static androidx.test.InstrumentationRegistry.getTargetContext;
|
||||
@@ -38,11 +38,11 @@ import androidx.test.uiautomator.UiDevice;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
import androidx.test.uiautomator.Until;
|
||||
|
||||
import com.android.launcher3.LauncherAppWidgetProviderInfo;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.compat.AppWidgetManagerCompat;
|
||||
import com.android.launcher3.testcomponent.AppWidgetNoConfig;
|
||||
import com.android.launcher3.testcomponent.AppWidgetWithConfig;
|
||||
import com.android.uiuios.LauncherAppWidgetProviderInfo;
|
||||
import com.android.uiuios.R;
|
||||
import com.android.uiuios.compat.AppWidgetManagerCompat;
|
||||
import com.android.uiuios.testcomponent.AppWidgetNoConfig;
|
||||
import com.android.uiuios.testcomponent.AppWidgetWithConfig;
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.function.Function;
|
||||
@@ -13,9 +13,9 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.launcher3.ui;
|
||||
package com.android.uiuios.ui;
|
||||
|
||||
import static com.android.launcher3.LauncherState.ALL_APPS;
|
||||
import static com.android.uiuios.LauncherState.ALL_APPS;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.ui.widget;
|
||||
package com.android.uiuios.ui.widget;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
|
||||
@@ -30,17 +30,17 @@ import androidx.test.runner.AndroidJUnit4;
|
||||
import androidx.test.uiautomator.By;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.LauncherAppWidgetProviderInfo;
|
||||
import com.android.launcher3.Workspace;
|
||||
import com.android.launcher3.testcomponent.WidgetConfigActivity;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.ui.TestViewHelpers;
|
||||
import com.android.launcher3.util.Condition;
|
||||
import com.android.launcher3.util.Wait;
|
||||
import com.android.launcher3.util.rule.ShellCommandRule;
|
||||
import com.android.launcher3.widget.WidgetCell;
|
||||
import com.android.uiuios.ItemInfo;
|
||||
import com.android.uiuios.LauncherAppWidgetInfo;
|
||||
import com.android.uiuios.LauncherAppWidgetProviderInfo;
|
||||
import com.android.uiuios.Workspace;
|
||||
import com.android.uiuios.testcomponent.WidgetConfigActivity;
|
||||
import com.android.uiuios.ui.AbstractLauncherUiTest;
|
||||
import com.android.uiuios.ui.TestViewHelpers;
|
||||
import com.android.uiuios.util.Condition;
|
||||
import com.android.uiuios.util.Wait;
|
||||
import com.android.uiuios.util.rule.ShellCommandRule;
|
||||
import com.android.uiuios.widget.WidgetCell;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.ui.widget;
|
||||
package com.android.uiuios.ui.widget;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@@ -23,16 +23,16 @@ import androidx.test.uiautomator.By;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
import android.view.View;
|
||||
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.LauncherAppWidgetProviderInfo;
|
||||
import com.android.launcher3.Workspace.ItemOperator;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.ui.TestViewHelpers;
|
||||
import com.android.launcher3.util.Condition;
|
||||
import com.android.launcher3.util.Wait;
|
||||
import com.android.launcher3.util.rule.ShellCommandRule;
|
||||
import com.android.launcher3.widget.WidgetCell;
|
||||
import com.android.uiuios.ItemInfo;
|
||||
import com.android.uiuios.LauncherAppWidgetInfo;
|
||||
import com.android.uiuios.LauncherAppWidgetProviderInfo;
|
||||
import com.android.uiuios.Workspace.ItemOperator;
|
||||
import com.android.uiuios.ui.AbstractLauncherUiTest;
|
||||
import com.android.uiuios.ui.TestViewHelpers;
|
||||
import com.android.uiuios.util.Condition;
|
||||
import com.android.uiuios.util.Wait;
|
||||
import com.android.uiuios.util.rule.ShellCommandRule;
|
||||
import com.android.uiuios.widget.WidgetCell;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Rule;
|
||||
@@ -13,9 +13,9 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.ui.widget;
|
||||
package com.android.uiuios.ui.widget;
|
||||
|
||||
import static com.android.launcher3.WorkspaceLayoutManager.FIRST_SCREEN_ID;
|
||||
import static com.android.uiuios.WorkspaceLayoutManager.FIRST_SCREEN_ID;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
@@ -34,19 +34,19 @@ import android.os.Bundle;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.launcher3.LauncherAppWidgetHost;
|
||||
import com.android.launcher3.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.LauncherAppWidgetProviderInfo;
|
||||
import com.android.launcher3.LauncherSettings;
|
||||
import com.android.launcher3.compat.AppWidgetManagerCompat;
|
||||
import com.android.launcher3.compat.PackageInstallerCompat;
|
||||
import com.android.launcher3.tapl.Workspace;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.ui.TestViewHelpers;
|
||||
import com.android.launcher3.util.ContentWriter;
|
||||
import com.android.launcher3.util.rule.ShellCommandRule;
|
||||
import com.android.launcher3.widget.PendingAddWidgetInfo;
|
||||
import com.android.launcher3.widget.WidgetHostViewLoader;
|
||||
import com.android.uiuios.LauncherAppWidgetHost;
|
||||
import com.android.uiuios.LauncherAppWidgetInfo;
|
||||
import com.android.uiuios.LauncherAppWidgetProviderInfo;
|
||||
import com.android.uiuios.LauncherSettings;
|
||||
import com.android.uiuios.compat.AppWidgetManagerCompat;
|
||||
import com.android.uiuios.compat.PackageInstallerCompat;
|
||||
import com.android.uiuios.tapl.Workspace;
|
||||
import com.android.uiuios.ui.AbstractLauncherUiTest;
|
||||
import com.android.uiuios.ui.TestViewHelpers;
|
||||
import com.android.uiuios.util.ContentWriter;
|
||||
import com.android.uiuios.util.rule.ShellCommandRule;
|
||||
import com.android.uiuios.widget.PendingAddWidgetInfo;
|
||||
import com.android.uiuios.widget.WidgetHostViewLoader;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
@@ -13,9 +13,9 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.ui.widget;
|
||||
package com.android.uiuios.ui.widget;
|
||||
|
||||
import static com.android.launcher3.ui.TaplTestsLauncher3.getAppPackageName;
|
||||
import static com.android.uiuios.ui.TaplTestsLauncher3.getAppPackageName;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNotSame;
|
||||
@@ -29,21 +29,21 @@ import android.view.View;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.LauncherSettings.Favorites;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.Workspace.ItemOperator;
|
||||
import com.android.launcher3.WorkspaceItemInfo;
|
||||
import com.android.launcher3.shortcuts.ShortcutKey;
|
||||
import com.android.launcher3.tapl.AddToHomeScreenPrompt;
|
||||
import com.android.launcher3.testcomponent.AppWidgetNoConfig;
|
||||
import com.android.launcher3.testcomponent.AppWidgetWithConfig;
|
||||
import com.android.launcher3.testcomponent.RequestPinItemActivity;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.util.Condition;
|
||||
import com.android.launcher3.util.Wait;
|
||||
import com.android.launcher3.util.rule.ShellCommandRule;
|
||||
import com.android.uiuios.ItemInfo;
|
||||
import com.android.uiuios.LauncherAppWidgetInfo;
|
||||
import com.android.uiuios.LauncherSettings.Favorites;
|
||||
import com.android.uiuios.Utilities;
|
||||
import com.android.uiuios.Workspace.ItemOperator;
|
||||
import com.android.uiuios.WorkspaceItemInfo;
|
||||
import com.android.uiuios.shortcuts.ShortcutKey;
|
||||
import com.android.uiuios.tapl.AddToHomeScreenPrompt;
|
||||
import com.android.uiuios.testcomponent.AppWidgetNoConfig;
|
||||
import com.android.uiuios.testcomponent.AppWidgetWithConfig;
|
||||
import com.android.uiuios.testcomponent.RequestPinItemActivity;
|
||||
import com.android.uiuios.ui.AbstractLauncherUiTest;
|
||||
import com.android.uiuios.util.Condition;
|
||||
import com.android.uiuios.util.Wait;
|
||||
import com.android.uiuios.util.rule.ShellCommandRule;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.android.launcher3.util;
|
||||
package com.android.uiuios.util;
|
||||
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
import com.android.launcher3.MainThreadExecutor;
|
||||
import com.android.uiuios.MainThreadExecutor;
|
||||
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
@@ -13,7 +13,7 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.util;
|
||||
package com.android.uiuios.util;
|
||||
|
||||
|
||||
import android.text.TextUtils;
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.util;
|
||||
package com.android.uiuios.util;
|
||||
|
||||
import static com.android.launcher3.util.RaceConditionTracker.ENTER_POSTFIX;
|
||||
import static com.android.launcher3.util.RaceConditionTracker.EXIT_POSTFIX;
|
||||
import static com.android.uiuios.util.RaceConditionTracker.ENTER_POSTFIX;
|
||||
import static com.android.uiuios.util.RaceConditionTracker.EXIT_POSTFIX;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.util;
|
||||
package com.android.uiuios.util;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.launcher3.util;
|
||||
package com.android.uiuios.util;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getContext;
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.android.launcher3.util;
|
||||
package com.android.uiuios.util;
|
||||
|
||||
import android.os.SystemClock;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.android.launcher3.util.rule;
|
||||
package com.android.uiuios.util.rule;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.util.rule;
|
||||
package com.android.uiuios.util.rule;
|
||||
|
||||
import static com.android.launcher3.tapl.TestHelpers.getHomeIntentInPackage;
|
||||
import static com.android.uiuios.tapl.TestHelpers.getHomeIntentInPackage;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
import static androidx.test.InstrumentationRegistry.getTargetContext;
|
||||
@@ -26,8 +26,8 @@ import android.app.Application.ActivityLifecycleCallbacks;
|
||||
import android.os.Bundle;
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.Workspace.ItemOperator;
|
||||
import com.android.uiuios.Launcher;
|
||||
import com.android.uiuios.Workspace.ItemOperator;
|
||||
|
||||
import org.junit.rules.TestRule;
|
||||
import org.junit.runner.Description;
|
||||
@@ -13,9 +13,9 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.android.launcher3.util.rule;
|
||||
package com.android.uiuios.util.rule;
|
||||
|
||||
import static com.android.launcher3.tapl.TestHelpers.getLauncherInMyProcess;
|
||||
import static com.android.uiuios.tapl.TestHelpers.getLauncherInMyProcess;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.android.launcher3.widget;
|
||||
package com.android.uiuios.widget;
|
||||
|
||||
import static org.mockito.Matchers.eq;
|
||||
import static org.mockito.Matchers.isNull;
|
||||
@@ -28,14 +28,14 @@ import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
import android.view.LayoutInflater;
|
||||
|
||||
import com.android.launcher3.icons.IconCache;
|
||||
import com.android.launcher3.InvariantDeviceProfile;
|
||||
import com.android.launcher3.LauncherAppWidgetProviderInfo;
|
||||
import com.android.launcher3.WidgetPreviewLoader;
|
||||
import com.android.launcher3.compat.AppWidgetManagerCompat;
|
||||
import com.android.launcher3.model.PackageItemInfo;
|
||||
import com.android.launcher3.model.WidgetItem;
|
||||
import com.android.launcher3.util.MultiHashMap;
|
||||
import com.android.uiuios.icons.IconCache;
|
||||
import com.android.uiuios.InvariantDeviceProfile;
|
||||
import com.android.uiuios.LauncherAppWidgetProviderInfo;
|
||||
import com.android.uiuios.WidgetPreviewLoader;
|
||||
import com.android.uiuios.compat.AppWidgetManagerCompat;
|
||||
import com.android.uiuios.model.PackageItemInfo;
|
||||
import com.android.uiuios.model.WidgetItem;
|
||||
import com.android.uiuios.util.MultiHashMap;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
@@ -19,7 +19,7 @@
|
||||
-->
|
||||
<manifest
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.launcher3.tapl"
|
||||
package="com.android.uiuios.tapl"
|
||||
>
|
||||
|
||||
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import androidx.test.uiautomator.By;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
@@ -26,7 +26,7 @@ public class AddToHomeScreenPrompt {
|
||||
AddToHomeScreenPrompt(LauncherInstrumentation launcher) {
|
||||
mLauncher = launcher;
|
||||
mWidgetCell = launcher.waitForLauncherObject(By.clazz(
|
||||
"com.android.launcher3.widget.WidgetCell"));
|
||||
"com.android.uiuios.widget.WidgetCell"));
|
||||
mLauncher.assertNotNull("Can't find widget cell object", mWidgetCell);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.graphics.Rect;
|
||||
@@ -26,8 +26,8 @@ import androidx.test.uiautomator.BySelector;
|
||||
import androidx.test.uiautomator.Direction;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
import com.android.launcher3.ResourceUtils;
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.uiuios.ResourceUtils;
|
||||
import com.android.uiuios.testing.TestProtocol;
|
||||
|
||||
/**
|
||||
* Operations on AllApps opened from Home. Also a parent for All Apps opened from Overview.
|
||||
@@ -14,16 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import static com.android.launcher3.testing.TestProtocol.OVERVIEW_STATE_ORDINAL;
|
||||
import static com.android.uiuios.testing.TestProtocol.OVERVIEW_STATE_ORDINAL;
|
||||
|
||||
import android.graphics.Point;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.uiuios.testing.TestProtocol;
|
||||
|
||||
/**
|
||||
* Operations on AllApps opened from Overview.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.os.SystemClock;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import static com.android.launcher3.testing.TestProtocol.BACKGROUND_APP_STATE_ORDINAL;
|
||||
import static com.android.uiuios.testing.TestProtocol.BACKGROUND_APP_STATE_ORDINAL;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.os.SystemClock;
|
||||
@@ -24,7 +24,7 @@ import android.view.MotionEvent;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.uiuios.testing.TestProtocol;
|
||||
|
||||
/**
|
||||
* Indicates the base state with a UI other than Overview running as foreground. It can also
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.test.uiautomator.BySelector;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import static com.android.launcher3.testing.TestProtocol.OVERVIEW_STATE_ORDINAL;
|
||||
import static com.android.uiuios.testing.TestProtocol.OVERVIEW_STATE_ORDINAL;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import android.graphics.Point;
|
||||
|
||||
@@ -23,7 +23,7 @@ import androidx.test.uiautomator.BySelector;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
import androidx.test.uiautomator.Until;
|
||||
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.uiuios.testing.TestProtocol;
|
||||
|
||||
/**
|
||||
* Ancestor for AppIcon and AppMenuItem.
|
||||
@@ -14,16 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
|
||||
import static android.content.pm.PackageManager.DONT_KILL_APP;
|
||||
import static android.content.pm.PackageManager.MATCH_ALL;
|
||||
import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS;
|
||||
|
||||
import static com.android.launcher3.tapl.TestHelpers.getOverviewPackageName;
|
||||
import static com.android.launcher3.testing.TestProtocol.BACKGROUND_APP_STATE_ORDINAL;
|
||||
import static com.android.launcher3.testing.TestProtocol.NORMAL_STATE_ORDINAL;
|
||||
import static com.android.uiuios.tapl.TestHelpers.getOverviewPackageName;
|
||||
import static com.android.uiuios.testing.TestProtocol.BACKGROUND_APP_STATE_ORDINAL;
|
||||
import static com.android.uiuios.testing.TestProtocol.NORMAL_STATE_ORDINAL;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.app.Instrumentation;
|
||||
@@ -60,7 +60,7 @@ import androidx.test.uiautomator.UiDevice;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
import androidx.test.uiautomator.Until;
|
||||
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.uiuios.testing.TestProtocol;
|
||||
import com.android.systemui.shared.system.QuickStepContract;
|
||||
|
||||
import org.junit.Assert;
|
||||
@@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import static com.android.launcher3.testing.TestProtocol.ALL_APPS_STATE_ORDINAL;
|
||||
import static com.android.uiuios.testing.TestProtocol.ALL_APPS_STATE_ORDINAL;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
import com.android.launcher3.tapl.LauncherInstrumentation.ContainerType;
|
||||
import com.android.uiuios.tapl.LauncherInstrumentation.ContainerType;
|
||||
|
||||
/**
|
||||
* Overview pane.
|
||||
@@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import android.graphics.Rect;
|
||||
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
import androidx.test.uiautomator.Until;
|
||||
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.uiuios.testing.TestProtocol;
|
||||
|
||||
/**
|
||||
* A recent task in the overview panel carousel.
|
||||
@@ -14,7 +14,7 @@
|
||||
* the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import static androidx.test.InstrumentationRegistry.getInstrumentation;
|
||||
import static androidx.test.InstrumentationRegistry.getTargetContext;
|
||||
@@ -45,7 +45,7 @@ public class TestHelpers {
|
||||
|
||||
// If we are in the same process, we can instantiate the class name.
|
||||
try {
|
||||
Class launcherClazz = Class.forName("com.android.launcher3.Launcher");
|
||||
Class launcherClazz = Class.forName("com.android.uiuios.Launcher");
|
||||
return launcherClazz.isAssignableFrom(Class.forName(info.name));
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import androidx.test.uiautomator.Direction;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
import com.android.launcher3.ResourceUtils;
|
||||
import com.android.uiuios.ResourceUtils;
|
||||
|
||||
/**
|
||||
* All widgets container.
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launcher3.tapl;
|
||||
package com.android.uiuios.tapl;
|
||||
|
||||
import static com.android.launcher3.testing.TestProtocol.ALL_APPS_STATE_ORDINAL;
|
||||
import static com.android.uiuios.testing.TestProtocol.ALL_APPS_STATE_ORDINAL;
|
||||
|
||||
import static junit.framework.TestCase.assertTrue;
|
||||
|
||||
@@ -31,7 +31,7 @@ import androidx.test.uiautomator.By;
|
||||
import androidx.test.uiautomator.Direction;
|
||||
import androidx.test.uiautomator.UiObject2;
|
||||
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.uiuios.testing.TestProtocol;
|
||||
|
||||
/**
|
||||
* Operations on the workspace screen.
|
||||
@@ -226,7 +226,7 @@ public final class Workspace extends Home {
|
||||
@Nullable
|
||||
public Widget tryGetWidget(String label, long timeout) {
|
||||
final UiObject2 widget = mLauncher.tryWaitForLauncherObject(
|
||||
By.clazz("com.android.launcher3.widget.LauncherAppWidgetHostView").desc(label),
|
||||
By.clazz("com.android.uiuios.widget.LauncherAppWidgetHostView").desc(label),
|
||||
timeout);
|
||||
return widget != null ? new Widget(mLauncher, widget) : null;
|
||||
}
|
||||
@@ -234,7 +234,7 @@ public final class Workspace extends Home {
|
||||
@Nullable
|
||||
public Widget tryGetPendingWidget(long timeout) {
|
||||
final UiObject2 widget = mLauncher.tryWaitForLauncherObject(
|
||||
By.clazz("com.android.launcher3.widget.PendingAppWidgetHostView"), timeout);
|
||||
By.clazz("com.android.uiuios.widget.PendingAppWidgetHostView"), timeout);
|
||||
return widget != null ? new Widget(mLauncher, widget) : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user