Merge "Use androidx.test instead of android.support.test"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ca42e48c2f
@@ -36,12 +36,12 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
|
||||
frameworks-core-util-lib \
|
||||
mockwebserver \
|
||||
guava \
|
||||
android-support-test \
|
||||
androidx.test.runner \
|
||||
androidx.test.rules \
|
||||
mockito-target-minus-junit4 \
|
||||
espresso-core \
|
||||
ub-uiautomator \
|
||||
platform-test-annotations \
|
||||
compatibility-device-util \
|
||||
truth-prebuilt \
|
||||
print-test-util-lib \
|
||||
testng # TODO: remove once Android migrates to JUnit 4.12, which provide assertThrows
|
||||
|
||||
@@ -1425,7 +1425,7 @@
|
||||
|
||||
</application>
|
||||
|
||||
<instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
|
||||
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.frameworks.coretests"
|
||||
android:label="Frameworks Core Tests" />
|
||||
<key-sets>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
<option name="test-tag" value="FrameworksCoreTests" />
|
||||
<test class="com.android.tradefed.testtype.AndroidJUnitTest" >
|
||||
<option name="package" value="com.android.frameworks.coretests" />
|
||||
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
|
||||
<option name="hidden-api-checks" value="false"/>
|
||||
</test>
|
||||
</configuration>
|
||||
|
||||
@@ -13,17 +13,17 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
@LargeTest
|
||||
public class AnimatorInflaterTest extends ActivityInstrumentationTestCase2<BasicAnimatorActivity> {
|
||||
|
||||
@@ -1,10 +1,26 @@
|
||||
package android.animation;
|
||||
/*
|
||||
* Copyright (C) 2015 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.
|
||||
*/
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
package android.animation;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
public class AnimatorSetActivity extends Activity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedBundleInstance) {
|
||||
|
||||
@@ -1,12 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2015 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.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.test.UiThreadTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.test.annotation.UiThreadTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class AnimatorSetActivityTest extends ActivityInstrumentationTestCase2<AnimatorSetActivity> {
|
||||
|
||||
@@ -13,12 +13,14 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.widget.Button;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@@ -13,11 +13,13 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@@ -13,14 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package android.animation;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
package android.animation;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.widget.Button;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
public class BasicAnimatorActivity extends Activity {
|
||||
public Button mAnimatingButton;
|
||||
@Override
|
||||
|
||||
@@ -13,13 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.test.UiThreadTest;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.annotation.UiThreadTest;
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import com.google.common.util.concurrent.AbstractFuture;
|
||||
|
||||
@@ -13,9 +13,11 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import android.widget.Button;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
package android.animation;
|
||||
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.test.UiThreadTest;
|
||||
import android.util.StateSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.test.annotation.UiThreadTest;
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,8 +13,11 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import static android.test.MoreAsserts.assertNotEqual;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
import static junit.framework.Assert.assertFalse;
|
||||
import static junit.framework.Assert.assertNotNull;
|
||||
@@ -24,23 +27,20 @@ import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import android.os.SystemClock;
|
||||
import android.support.test.annotation.UiThreadTest;
|
||||
import android.support.test.filters.MediumTest;
|
||||
import android.support.test.rule.ActivityTestRule;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.view.Choreographer;
|
||||
import android.view.animation.LinearInterpolator;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import static android.test.MoreAsserts.assertNotEqual;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@MediumTest
|
||||
public class ValueAnimatorTests {
|
||||
|
||||
@@ -13,15 +13,18 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.test.UiThreadTest;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.view.ViewPropertyAnimator;
|
||||
import android.widget.Button;
|
||||
|
||||
import androidx.test.annotation.UiThreadTest;
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@@ -16,16 +16,17 @@
|
||||
|
||||
package android.app;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import android.app.ApplicationErrorReport.CrashInfo;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import android.app.ApplicationErrorReport.CrashInfo;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@SmallTest
|
||||
public class ApplicationErrorReportTest {
|
||||
|
||||
@@ -16,13 +16,17 @@
|
||||
|
||||
package android.app;
|
||||
|
||||
import static android.os.storage.VolumeInfo.STATE_MOUNTED;
|
||||
import static android.os.storage.VolumeInfo.STATE_UNMOUNTED;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.IPackageManager;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.os.storage.StorageManager;
|
||||
import android.os.storage.VolumeInfo;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
@@ -32,9 +36,6 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import static android.os.storage.VolumeInfo.STATE_MOUNTED;
|
||||
import static android.os.storage.VolumeInfo.STATE_UNMOUNTED;
|
||||
|
||||
@LargeTest
|
||||
public class ApplicationPackageManagerTest extends TestCase {
|
||||
private static final String sInternalVolPath = "/data";
|
||||
|
||||
@@ -22,7 +22,8 @@ import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import android.os.Environment;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import com.google.mockwebserver.MockResponse;
|
||||
|
||||
|
||||
@@ -23,10 +23,11 @@ import android.net.Uri;
|
||||
import android.os.Environment;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
import android.os.StatFs;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
package android.app;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.InstrumentationTestCase;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
@LargeTest
|
||||
public class InstrumentationTest extends InstrumentationTestCase {
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
package android.app;
|
||||
|
||||
import static junit.framework.TestCase.assertNotNull;
|
||||
@@ -27,11 +26,12 @@ import static org.junit.Assert.fail;
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.os.Parcelable;
|
||||
import android.support.test.filters.MediumTest;
|
||||
import android.support.test.rule.ActivityTestRule;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.util.ArrayMap;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -33,11 +33,12 @@ import android.media.session.MediaSession;
|
||||
import android.os.Build;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.widget.RemoteViews;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -17,17 +17,13 @@
|
||||
package android.app;
|
||||
|
||||
import android.app.activity.LocalActivity;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.ISearchManager;
|
||||
import android.app.SearchManager;
|
||||
import android.app.SearchableInfo;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.os.ServiceManager;
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.filters.MediumTest;
|
||||
|
||||
/**
|
||||
* To launch this test from the command line:
|
||||
|
||||
@@ -21,8 +21,9 @@ import android.content.Context;
|
||||
import android.content.pm.ConfigurationInfo;
|
||||
import android.content.res.Configuration;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
@@ -36,13 +36,14 @@ import android.app.servertransaction.StopActivityItem;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.IBinder;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.filters.MediumTest;
|
||||
import android.support.test.rule.ActivityTestRule;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.util.MergedConfiguration;
|
||||
import android.view.Display;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
||||
@@ -27,11 +27,10 @@ import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.UserHandle;
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.FlakyTest;
|
||||
import android.util.Log;
|
||||
|
||||
import java.util.Arrays;
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
@LargeTest
|
||||
public class BroadcastTest extends ActivityTestsBase {
|
||||
@@ -231,7 +230,7 @@ public class BroadcastTest extends ActivityTestsBase {
|
||||
};
|
||||
|
||||
// Mark flaky until http://b/issue?id=1191607 is resolved.
|
||||
@FlakyTest(tolerance=2)
|
||||
@FlakyTest
|
||||
public void testRegistered() throws Exception {
|
||||
runLaunchpad(LaunchpadActivity.BROADCAST_REGISTERED);
|
||||
}
|
||||
@@ -248,12 +247,12 @@ public class BroadcastTest extends ActivityTestsBase {
|
||||
runLaunchpad(LaunchpadActivity.BROADCAST_ABORT);
|
||||
}
|
||||
|
||||
@FlakyTest(tolerance=2)
|
||||
@FlakyTest
|
||||
public void testAll() throws Exception {
|
||||
runLaunchpad(LaunchpadActivity.BROADCAST_ALL);
|
||||
}
|
||||
|
||||
@FlakyTest(tolerance=2)
|
||||
@FlakyTest
|
||||
public void testMulti() throws Exception {
|
||||
runLaunchpad(LaunchpadActivity.BROADCAST_MULTI);
|
||||
}
|
||||
@@ -348,7 +347,7 @@ public class BroadcastTest extends ActivityTestsBase {
|
||||
}
|
||||
|
||||
// Marking flaky until http://b/issue?id=1191337 is resolved
|
||||
@FlakyTest(tolerance=2)
|
||||
@FlakyTest
|
||||
public void testReceiveSticky() throws Exception {
|
||||
Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null);
|
||||
intent.putExtra("test", LaunchpadActivity.DATA_1);
|
||||
@@ -358,7 +357,7 @@ public class BroadcastTest extends ActivityTestsBase {
|
||||
}
|
||||
|
||||
// Marking flaky until http://b/issue?id=1191337 is resolved
|
||||
@FlakyTest(tolerance=2)
|
||||
@FlakyTest
|
||||
public void testReceive2Sticky() throws Exception {
|
||||
Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null);
|
||||
intent.putExtra("test", LaunchpadActivity.DATA_1);
|
||||
|
||||
@@ -21,7 +21,8 @@ import android.app.PendingIntent;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.os.Bundle;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
@LargeTest
|
||||
public class IntentSenderTest extends BroadcastTest {
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
package android.app.activity;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
@Suppress // Flaky.
|
||||
public class LaunchTest extends ActivityTestsBase {
|
||||
|
||||
@@ -18,8 +18,9 @@ package android.app.activity;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Intent;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
public class LifecycleTest extends ActivityTestsBase {
|
||||
private Intent mTopIntent;
|
||||
|
||||
@@ -27,8 +27,11 @@ import android.content.res.TypedArray;
|
||||
import android.content.res.XmlResourceParser;
|
||||
import android.os.Bundle;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
/* //device/apps/AndroidTests/src/com.android.unit_tests/activity/TestedScreen.java
|
||||
**
|
||||
** Copyright 2006, 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.
|
||||
*/
|
||||
/*
|
||||
* Copyright (C) 2006 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.
|
||||
*/
|
||||
|
||||
package android.app.activity;
|
||||
|
||||
@@ -21,7 +20,8 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Process;
|
||||
import android.util.Log;
|
||||
|
||||
//device/apps/AndroidTests/src/com.android.unit_tests/activity/TestedScreen.java
|
||||
|
||||
public class RemoteSubActivityScreen extends SubActivityScreen {
|
||||
Handler mHandler = new Handler();
|
||||
|
||||
@@ -22,13 +22,12 @@ import android.content.Intent;
|
||||
import android.content.ServiceConnection;
|
||||
import android.os.Binder;
|
||||
import android.os.Bundle;
|
||||
import android.os.RemoteException;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import android.util.Log;
|
||||
import android.os.RemoteException;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
// These test binders purport to support an interface whose canonical
|
||||
// interface name is ServiceTest.SERVICE_LOCAL
|
||||
|
||||
@@ -19,7 +19,8 @@ package android.app.activity;
|
||||
import android.app.AlarmManager;
|
||||
import android.content.Context;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import java.util.TimeZone;
|
||||
|
||||
|
||||
@@ -16,9 +16,10 @@
|
||||
|
||||
package android.app.activity;
|
||||
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import android.content.ComponentName;
|
||||
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
@Suppress
|
||||
public class SubActivityTest extends ActivityTestsBase {
|
||||
|
||||
|
||||
@@ -27,8 +27,9 @@ import static org.junit.Assert.assertNotEquals;
|
||||
|
||||
import android.app.admin.PasswordMetrics.PasswordComplexityBucket;
|
||||
import android.os.Parcel;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.app.assist;
|
||||
|
||||
import static android.view.View.AUTOFILL_TYPE_TEXT;
|
||||
@@ -22,13 +23,9 @@ import static android.view.View.IMPORTANT_FOR_AUTOFILL_YES;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.app.assist.AssistStructure.ViewNode;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.os.Parcel;
|
||||
import android.os.SystemClock;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.rule.ActivityTestRule;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.text.InputFilter;
|
||||
import android.util.Log;
|
||||
import android.view.autofill.AutofillId;
|
||||
@@ -37,6 +34,10 @@ import android.widget.FrameLayout;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.app.assist;
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
@@ -16,31 +16,22 @@
|
||||
|
||||
package android.app.backup;
|
||||
|
||||
import android.app.backup.BackupDataInput;
|
||||
import android.app.backup.BackupDataOutput;
|
||||
import android.content.res.AssetFileDescriptor;
|
||||
import android.content.res.AssetManager;
|
||||
import android.os.Bundle;
|
||||
import android.os.Environment;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.InstrumentationTestCase;
|
||||
import android.util.Base64;
|
||||
import android.util.Log;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.lang.Exception;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
@LargeTest
|
||||
public class BackupDataTest extends AndroidTestCase {
|
||||
|
||||
@@ -18,11 +18,12 @@ package android.app.backup;
|
||||
|
||||
import android.app.backup.FullBackup.BackupScheme.PathWithRequiredFlags;
|
||||
import android.content.Context;
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.ArraySet;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
import org.xmlpull.v1.XmlPullParserFactory;
|
||||
|
||||
@@ -23,8 +23,9 @@ import static org.mockito.Mockito.verify;
|
||||
import android.app.ClientTransactionHandler;
|
||||
import android.os.IBinder;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -35,8 +35,9 @@ import android.os.Binder;
|
||||
import android.os.Bundle;
|
||||
import android.os.PersistableBundle;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -45,10 +45,11 @@ import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.util.ArrayMap;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -50,8 +50,9 @@ import android.os.PersistableBundle;
|
||||
import android.os.RemoteCallback;
|
||||
import android.os.RemoteException;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.internal.app.IVoiceInteractor;
|
||||
|
||||
|
||||
@@ -21,7 +21,8 @@ import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
@@ -21,7 +21,8 @@ import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
@@ -16,14 +16,13 @@
|
||||
|
||||
package android.app.timezone;
|
||||
|
||||
import static junit.framework.Assert.fail;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ import static org.mockito.hamcrest.MockitoHamcrest.argThat;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.UserHandle;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import org.hamcrest.BaseMatcher;
|
||||
import org.hamcrest.Description;
|
||||
|
||||
@@ -20,10 +20,11 @@ import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
||||
@@ -33,8 +33,9 @@ import static org.junit.Assert.fail;
|
||||
|
||||
import android.app.usage.UsageEvents.Event;
|
||||
import android.os.Parcel;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package android.content;
|
||||
|
||||
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
@@ -30,9 +29,10 @@ import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
|
||||
@@ -18,7 +18,8 @@ package android.content;
|
||||
|
||||
import android.content.res.AssetManager;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
package android.content;
|
||||
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
/** Test to make sure brick intents <b>don't</b> work without permission. */
|
||||
public class BrickDeniedTest extends AndroidTestCase {
|
||||
|
||||
@@ -18,9 +18,9 @@ package android.content;
|
||||
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -16,22 +16,23 @@
|
||||
|
||||
package android.content;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.database.Cursor;
|
||||
import android.database.MatrixCursor;
|
||||
import android.net.Uri;
|
||||
import android.os.Parcel;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Set;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
@SmallTest
|
||||
public class ContentProviderOperationTest extends TestCase {
|
||||
|
||||
@@ -23,7 +23,8 @@ import static org.mockito.Mockito.withSettings;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.ProviderInfo;
|
||||
import android.net.Uri;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -16,16 +16,14 @@
|
||||
|
||||
package android.content;
|
||||
|
||||
import android.content.ContentQueryMap;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.ContentValues;
|
||||
import android.database.Cursor;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.provider.Settings;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
import java.util.Observable;
|
||||
import java.util.Observer;
|
||||
|
||||
@@ -31,10 +31,11 @@ import android.graphics.Paint;
|
||||
import android.net.Uri;
|
||||
import android.os.MemoryFile;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.util.Size;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
package android.content;
|
||||
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
/*
|
||||
runtest -c android.content.ContentValuesTest frameworks-core
|
||||
@@ -29,7 +29,7 @@ import android.test.suitebuilder.annotation.SmallTest;
|
||||
adb shell pm uninstall -k com.android.frameworks.coretests && \
|
||||
adb install out/target/product/bullhead/testcases/FrameworksCoreTests/FrameworksCoreTests.apk && \
|
||||
adb shell am instrument -w -e package android.content \
|
||||
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
|
||||
com.android.frameworks.coretests/androidx.test.runner.AndroidJUnitRunner
|
||||
*/
|
||||
public class ContentValuesTest extends AndroidTestCase {
|
||||
|
||||
|
||||
@@ -19,11 +19,12 @@ package android.content;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import android.app.ActivityThread;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@ package android.content;
|
||||
import android.content.pm.UserInfo;
|
||||
import android.os.RemoteException;
|
||||
import android.os.UserHandle;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
/**
|
||||
* To run the tests, use
|
||||
@@ -32,7 +33,7 @@ import android.support.test.filters.LargeTest;
|
||||
* Install: adb install -r \
|
||||
* ${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreTests/FrameworksCoreTests.apk
|
||||
* Run: adb shell am instrument -e class android.content.ManagedUserContentResolverTest -w \
|
||||
* com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
|
||||
* com.android.frameworks.coretests/androidx.test.runner.AndroidJUnitRunner
|
||||
*/
|
||||
@LargeTest
|
||||
public class ManagedUserContentResolverTest extends AbstractCrossUserContentResolverTest {
|
||||
|
||||
@@ -18,9 +18,10 @@ package android.content;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -13,13 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License
|
||||
*/
|
||||
|
||||
package android.content;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcelable;
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.AndroidTestCase;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
@@ -18,7 +18,8 @@ package android.content;
|
||||
|
||||
import android.content.pm.UserInfo;
|
||||
import android.os.RemoteException;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
/**
|
||||
* To run the tests, use
|
||||
@@ -31,7 +32,7 @@ import android.support.test.filters.LargeTest;
|
||||
* Install: adb install -r \
|
||||
* ${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreTests/FrameworksCoreTests.apk
|
||||
* Run: adb shell am instrument -e class android.content.SecondaryUserContentResolverTest -w \
|
||||
* com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
|
||||
* com.android.frameworks.coretests/androidx.test.runner.AndroidJUnitRunner
|
||||
*/
|
||||
@LargeTest
|
||||
public class SecondaryUserContentResolverTest extends AbstractCrossUserContentResolverTest {
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
package android.content;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
public class UriMatcherTest extends TestCase {
|
||||
|
||||
static final int ROOT = 0;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import static android.content.pm.PackageBuilder.builder;
|
||||
@@ -20,7 +21,8 @@ import static android.content.pm.SharedLibraryNames.ANDROID_HIDL_BASE;
|
||||
import static android.content.pm.SharedLibraryNames.ANDROID_HIDL_MANAGER;
|
||||
|
||||
import android.os.Build;
|
||||
import android.support.test.filters.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -13,13 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import static android.content.pm.PackageBuilder.builder;
|
||||
import static android.content.pm.SharedLibraryNames.ANDROID_TEST_BASE;
|
||||
|
||||
import android.os.Build;
|
||||
import android.support.test.filters.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import static android.content.pm.PackageBuilder.builder;
|
||||
@@ -20,7 +21,8 @@ import static android.content.pm.SharedLibraryNames.ANDROID_TEST_MOCK;
|
||||
import static android.content.pm.SharedLibraryNames.ANDROID_TEST_RUNNER;
|
||||
|
||||
import android.content.pm.PackageBackwardCompatibility.AndroidTestRunnerSplitUpdater;
|
||||
import android.support.test.filters.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -21,7 +21,14 @@ import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED
|
||||
import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
|
||||
import static android.content.pm.PackageManager.GET_DISABLED_COMPONENTS;
|
||||
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Intent;
|
||||
import android.test.AndroidTestCase;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
import com.android.frameworks.coretests.enabled_app.DisabledActivity;
|
||||
import com.android.frameworks.coretests.enabled_app.DisabledProvider;
|
||||
import com.android.frameworks.coretests.enabled_app.DisabledReceiver;
|
||||
@@ -31,12 +38,6 @@ import com.android.frameworks.coretests.enabled_app.EnabledProvider;
|
||||
import com.android.frameworks.coretests.enabled_app.EnabledReceiver;
|
||||
import com.android.frameworks.coretests.enabled_app.EnabledService;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Intent;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
package android.content.pm;
|
||||
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -16,9 +16,12 @@
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.AndroidTestCase;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import libcore.io.Streams;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -26,8 +29,6 @@ import javax.crypto.Mac;
|
||||
import javax.crypto.SecretKey;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
|
||||
import libcore.io.Streams;
|
||||
|
||||
@LargeTest
|
||||
public class MacAuthenticatedInputStreamTest extends AndroidTestCase {
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import org.junit.Assume;
|
||||
|
||||
@@ -13,13 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import static android.content.pm.PackageBuilder.builder;
|
||||
import static android.content.pm.SharedLibraryNames.ORG_APACHE_HTTP_LEGACY;
|
||||
|
||||
import android.os.Build;
|
||||
import android.support.test.filters.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -24,7 +24,8 @@ import static android.content.pm.SharedLibraryNames.ORG_APACHE_HTTP_LEGACY;
|
||||
|
||||
import android.content.pm.PackageBackwardCompatibility.RemoveUnnecessaryAndroidTestBaseLibrary;
|
||||
import android.os.Build;
|
||||
import android.support.test.filters.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Assume;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
@@ -54,11 +54,12 @@ import android.system.ErrnoException;
|
||||
import android.system.Os;
|
||||
import android.system.StructStat;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
import com.android.internal.content.PackageHelper;
|
||||
|
||||
|
||||
@@ -22,8 +22,9 @@ import android.content.pm.PackageParserCacheHelper.ReadHelper;
|
||||
import android.content.pm.PackageParserCacheHelper.WriteHelper;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -29,9 +29,10 @@ import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.FileUtils;
|
||||
import android.os.SystemProperties;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
@@ -1,8 +1,25 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
|
||||
@@ -21,11 +21,12 @@ import android.os.FileUtils;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.UserHandle;
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.SparseArray;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
import org.xmlpull.v1.XmlSerializer;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import static android.content.pm.PackageBuilder.builder;
|
||||
@@ -20,7 +21,8 @@ import static android.content.pm.SharedLibraryNames.ANDROID_TEST_BASE;
|
||||
|
||||
import android.content.pm.PackageBackwardCompatibility.RemoveUnnecessaryAndroidTestBaseLibrary;
|
||||
import android.os.Build;
|
||||
import android.support.test.filters.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import static android.content.pm.PackageBuilder.builder;
|
||||
@@ -20,7 +21,8 @@ import static android.content.pm.SharedLibraryNames.ORG_APACHE_HTTP_LEGACY;
|
||||
|
||||
import android.content.pm.PackageBackwardCompatibility.RemoveUnnecessaryOrgApacheHttpLegacyLibrary;
|
||||
import android.os.Build;
|
||||
import android.support.test.filters.SmallTest;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import android.support.test.filters.LargeTest;
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import android.content.pm.VerificationParams;
|
||||
import android.net.Uri;
|
||||
import android.os.Parcel;
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.test.AndroidTestCase;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
/**
|
||||
* Tests the android.content.pm.VerificationParams class
|
||||
*
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
package android.content.pm;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.support.test.filters.LargeTest;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
|
||||
@@ -29,12 +29,21 @@ import android.content.pm.PackageParser.Package;
|
||||
import android.content.pm.PackageParser.PackageLite;
|
||||
import android.content.pm.PackageParser.PackageParserException;
|
||||
import android.os.FileUtils;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import libcore.testing.io.TestIoUtils;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
@@ -45,14 +54,6 @@ import java.util.Map;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipOutputStream;
|
||||
|
||||
import libcore.testing.io.TestIoUtils;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@SmallTest
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class DexMetadataHelperTest {
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
package android.content.res;
|
||||
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.util.TypedValue;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
@@ -13,19 +13,18 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
package android.content.res;
|
||||
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.Test;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
/**
|
||||
* Build/install/run: bit FrameworksCoreTests:android.content.res.ConfigurationTest
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.content.res;
|
||||
|
||||
import static android.content.res.FontResourcesParser.FamilyResourceEntry;
|
||||
@@ -26,9 +27,10 @@ import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import android.app.Instrumentation;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.SmallTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
|
||||
@@ -13,14 +13,15 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
package android.content.res;
|
||||
|
||||
import android.os.FileUtils;
|
||||
import android.os.LocaleList;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.view.Display;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.android.frameworks.coretests.R;
|
||||
|
||||
|
||||
@@ -13,18 +13,20 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
package android.content.res;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.app.ResourcesManager;
|
||||
import android.os.Binder;
|
||||
import android.os.LocaleList;
|
||||
import android.support.test.filters.SmallTest;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.TypedValue;
|
||||
import android.view.Display;
|
||||
import android.view.DisplayAdjustments;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class ResourcesManagerTest extends TestCase {
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
|
||||
package android.database;
|
||||
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.database.CursorWindow;
|
||||
import android.test.PerformanceTestCase;
|
||||
|
||||
import java.util.Arrays;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class CursorWindowTest extends TestCase implements PerformanceTestCase {
|
||||
public boolean isPerformanceOnly() {
|
||||
return false;
|
||||
|
||||
@@ -18,10 +18,6 @@ package android.database;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
import android.database.CursorIndexOutOfBoundsException;
|
||||
import android.database.DataSetObserver;
|
||||
import android.database.DatabaseUtils;
|
||||
import android.database.sqlite.SQLiteCursor;
|
||||
import android.database.sqlite.SQLiteCursorDriver;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
@@ -29,11 +25,12 @@ import android.database.sqlite.SQLiteQuery;
|
||||
import android.os.Looper;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.PerformanceTestCase;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -25,16 +25,17 @@ import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteDebug;
|
||||
import android.database.sqlite.SQLiteException;
|
||||
import android.os.Parcel;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.uiautomator.UiDevice;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.PerformanceTestCase;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.util.Log;
|
||||
import android.util.Pair;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
package android.database;
|
||||
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.Cursor;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
import android.util.Log;
|
||||
import android.test.MoreAsserts;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Locale;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class DatabaseLocaleTest extends TestCase {
|
||||
|
||||
private SQLiteDatabase mDatabase;
|
||||
|
||||
@@ -17,11 +17,13 @@
|
||||
package android.database;
|
||||
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import android.test.AndroidTestCase;
|
||||
|
||||
/*
|
||||
* This is a series of unit tests for database locks.
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
package android.database;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
import android.database.sqlite.SQLiteConstraintException;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteDoneException;
|
||||
import android.database.sqlite.SQLiteStatement;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.PerformanceTestCase;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
|
||||
import androidx.test.filters.MediumTest;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
package android.database;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.sqlite.*;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.util.Log;
|
||||
|
||||
import android.test.AndroidTestCase;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import androidx.test.filters.Suppress;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import static android.database.DatabaseUtils.bindSelection;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user