Home
last modified time | relevance | path

Searched refs:TestableContext (Results 1 – 25 of 43) sorted by relevance

12

/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
H A DOneHandedTestCase.java28 import android.testing.TestableContext;
46 public TestableContext mTestContext = new TestableContext(
67 protected TestableContext getTestContext() { in getTestContext()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/
H A DUiServiceTestCase.java24 import android.testing.TestableContext;
47 public final TestableContext mContext =
48 new TestableContext(InstrumentationRegistry.getContext(), null);
50 protected TestableContext getContext() { in getContext()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
H A DShellTestCase.java23 import android.testing.TestableContext;
36 protected TestableContext mContext;
44 mContext = new TestableContext( in shellSetup()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/hidedisplaycutout/
H A DHideDisplayCutoutControllerTest.java24 import android.testing.TestableContext;
43 private TestableContext mContext = new TestableContext(
H A DHideDisplayCutoutOrganizerTest.java37 import android.testing.TestableContext;
69 private TestableContext mContext = new TestableContext(
/aosp12/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/
H A DCarLauncherTest.java24 import android.testing.TestableContext;
42 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext());
/aosp12/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/assistive/
H A DProjectionModelTest.java27 import android.testing.TestableContext;
49 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext());
/aosp12/frameworks/base/tests/testables/src/android/testing/
H A DTestableContext.java59 public class TestableContext extends ContextWrapper implements TestRule { class
75 public TestableContext(Context base) { in TestableContext() method in TestableContext
79 public TestableContext(Context base, LeakCheck check) { in TestableContext() method in TestableContext
86 mSettingsProvider.clearValuesAndCheck(TestableContext.this); in TestableContext()
466 mSettingsProvider.clearValuesAndCheck(TestableContext.this); in apply()
471 mSettingsProvider.clearValuesAndCheck(TestableContext.this); in apply()
H A DBaseFragmentTest.java61 public final TestableContext mContext = getContext();
94 protected TestableContext getContext() { in getContext()
95 return new TestableContext(InstrumentationRegistry.getContext()); in getContext()
/aosp12/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
H A DAssistantSettingsTest.java32 import android.testing.TestableContext;
60 public final TestableContext mContext =
61 new TestableContext(InstrumentationRegistry.getContext(), null);
H A DNotificationEntryTest.java44 import android.testing.TestableContext;
72 public final TestableContext mContext =
73 new TestableContext(InstrumentationRegistry.getContext(), null);
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/template/
H A DGroupNotificationViewHolderTest.java26 import android.testing.TestableContext;
63 public final TestableContext mContext = new TestableContext(
/aosp12/frameworks/base/tests/testables/tests/src/android/testing/
H A DTestableContentResolverTest.java21 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext());
H A DTestablePermissionsTest.java40 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext());
H A DTestableResourcesTest.java39 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext());
H A DTestableSettingsProviderTest.java41 public final TestableContext mContext =
42 new TestableContext(InstrumentationRegistry.getContext());
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/people/
H A DPeopleServiceTest.java52 import android.testing.TestableContext;
93 public final TestableContext mContext =
94 new TestableContext(InstrumentationRegistry.getContext(), null);
96 protected TestableContext getContext() { in getContext()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DSysuiTestableContext.java24 import android.testing.TestableContext;
33 public class SysuiTestableContext extends TestableContext {
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
H A DNotificationUtilsTest.java31 import android.testing.TestableContext;
49 public final TestableContext mContext = new TestableContext(
H A DCarNotificationViewTest.java32 import android.testing.TestableContext;
71 public TestableContext mContext = new TestableContext(
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DCriticalNotificationExtractorTest.java31 import android.testing.TestableContext;
43 private TestableContext mContext = spy(getContext());
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
H A DFaceDownDetectorTest.java33 import android.testing.TestableContext;
55 public static final TestableContext sContext = new TestableContext(
H A DScreenUndimDetectorTest.java35 import android.testing.TestableContext;
65 public static final TestableContext sContext = new TestableContext(
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DPinnerServiceTest.java36 import android.testing.TestableContext;
74 public TestableContext mContext =
75 new TestableContext(InstrumentationRegistry.getContext(), null);
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
H A DMultiRateLimiterTest.java21 import android.testing.TestableContext;
40 public final TestableContext mContext =
41 new TestableContext(InstrumentationRegistry.getContext(), null);

12