Home
last modified time | relevance | path

Searched refs:ContextWrapper (Results 1 – 25 of 131) sorted by relevance

123456

/aosp14/frameworks/base/core/tests/coretests/src/android/content/
H A DContextWrapperTest.java67 final ContextWrapper wrapper = new TestContextWrapper(null /* base */); in testRegisterComponentCallbacksWithoutBaseContextBeforeT()
89 final ContextWrapper wrapper = new TestContextWrapper(null /* base */); in testRegisterComponentCallbacksWithoutBaseContextAfterT()
121 final ContextWrapper wrapper = new ContextWrapper(windowContext); in testRegisterComponentCallbacks()
138 private static class TestContextWrapper extends ContextWrapper {
H A DContextTest.java183 ContextWrapper wrapper = new ContextWrapper(null /* base */); in testIsUiContext_ContextWrapper()
187 wrapper = new ContextWrapper(createUiContext()); in testIsUiContext_ContextWrapper()
/aosp14/frameworks/base/core/java/android/content/
H A DTEST_MAPPING22 "file_patterns": ["(/|^)Context.java", "(/|^)ContextWrapper.java"]
43 …"file_patterns": ["(/|^)Context.java", "(/|^)ContextWrapper.java", "(/|^)ComponentCallbacksControl…
60 "file_patterns": ["(/|^)Context.java", "(/|^)ContextWrapper.java"]
H A DMutableContextWrapper.java23 public class MutableContextWrapper extends ContextWrapper {
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/
H A DPackageUtilsTest.java26 import android.content.ContextWrapper;
65 new ContextWrapper( in isAllowlisted_true()
91 new ContextWrapper( in isAllowlisted_package_disallowed()
117 new ContextWrapper( in isAllowlisted_signature_mismatch()
/aosp14/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
H A DTestContext.java19 import android.content.ContextWrapper;
24 public class TestContext extends ContextWrapper {
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/
H A DAmbientFilterTest.java26 import android.content.ContextWrapper;
39 private ContextWrapper mContextSpy;
45 mContextSpy = spy(new ContextWrapper(InstrumentationRegistry.getContext())); in setUp()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/dreams/
H A DDreamManagerServiceMockingTest.java30 import android.content.ContextWrapper;
55 private ContextWrapper mContextSpy;
78 mContextSpy = spy(new ContextWrapper(InstrumentationRegistry.getContext())); in setUp()
/aosp14/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/utils/
H A DContextWithServiceOverrides.java20 import android.content.ContextWrapper;
26 public class ContextWithServiceOverrides extends ContextWrapper {
/aosp14/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
H A DFakeContextBuilder.java27 import android.content.ContextWrapper;
55 private final ContextWrapper mContext;
63 mContext = new ContextWrapper(InstrumentationRegistry.getTargetContext()) { in FakeContextBuilder()
/aosp14/frameworks/base/core/java/android/window/
H A DWindowContext.java28 import android.content.ContextWrapper;
48 public class WindowContext extends ContextWrapper implements WindowProvider {
/aosp14/frameworks/base/core/tests/coretests/src/android/provider/
H A DTestDocumentsProvider.java23 import android.content.ContextWrapper;
105 private static class TestContext extends ContextWrapper {
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/
H A DAmbientSensorTest.java28 import android.content.ContextWrapper;
64 private ContextWrapper mContextSpy;
74 mContextSpy = spy(new ContextWrapper(InstrumentationRegistry.getContext())); in setUp()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotPersisterTestBase.java32 import android.content.ContextWrapper;
68 private ContextWrapper mContextSpy;
103 mContextSpy = spy(new ContextWrapper(mWm.mContext)); in setUp()
/aosp14/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java24 import android.content.ContextWrapper;
47 public class IsolatedContext extends ContextWrapper {
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
H A DSettingsScaffold.kt21 import android.content.ContextWrapper
79 is ContextWrapper -> baseContext.getActivity()
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DLockPatternUtilsTest.java41 import android.content.ContextWrapper;
79 final Context context = spy(new ContextWrapper(InstrumentationRegistry.getTargetContext())); in configureTest()
264 final Context context = new ContextWrapper(InstrumentationRegistry.getTargetContext()); in createStrongAuthTracker()
280 final Context context = spy(new ContextWrapper(InstrumentationRegistry.getTargetContext())); in createTestLockSettings()
/aosp14/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java23 import android.content.ContextWrapper;
33 public class ContextThemeWrapper extends ContextWrapper {
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DMockLockSettingsContext.java26 import android.content.ContextWrapper;
38 public class MockLockSettingsContext extends ContextWrapper {
H A DRebootEscrowProviderServerBasedImplTests.java32 import android.content.ContextWrapper;
75 Context context = new ContextWrapper(InstrumentationRegistry.getContext()); in setUp()
/aosp14/frameworks/base/tools/aapt2/optimize/
H A DMultiApkGenerator.cpp54 class ContextWrapper : public IAaptContext { class
56 explicit ContextWrapper(IAaptContext* context) in ContextWrapper() function in aapt::ContextWrapper
138 ContextWrapper wrapped_context{context_}; in FromBaseApk()
230 ContextWrapper wrapped_context{context}; in FilterTable()
/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/input/
H A DInputManagerTest.kt19 import android.content.ContextWrapper
69 context = Mockito.spy(ContextWrapper(ApplicationProvider.getApplicationContext()))
H A DKeyboardBacklightListenerTest.kt20 import android.content.ContextWrapper
67 context = Mockito.spy(ContextWrapper(ApplicationProvider.getApplicationContext()))
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
H A DSmallAreaDetectionControllerTest.java29 import android.content.ContextWrapper;
92 new ContextWrapper(ApplicationProvider.getApplicationContext()), in setup()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DActiveSourceActionTest.java28 import android.content.ContextWrapper;
61 mContextSpy = spy(new ContextWrapper(InstrumentationRegistry.getTargetContext())); in setUp()

123456