Searched defs:getContext (Results 1 - 25 of 139) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/view/
H A DRenderNodeAnimatorTest.java37 private Context getContext() { method in class:RenderNodeAnimatorTest
48 View view = new View(getContext());
H A DViewInvalidateTest.java62 mParent = new FrameLayout(getContext());
63 mChild = new View(getContext());
83 Context getContext() { method in class:ViewInvalidateTest
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DFragmentBase.java32 Context getContext(); method in interface:FragmentBase
H A DPluginFragment.java33 return super.onGetLayoutInflater(savedInstanceState).cloneInContext(getContext());
42 public Context getContext() { method in class:PluginFragment
/frameworks/base/services/tests/notification/src/com/android/server/notification/
H A DNotificationTestCase.java28 new TestableContext(InstrumentationRegistry.getContext(), null);
30 protected TestableContext getContext() { method in class:NotificationTestCase
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DFragmentUtil.java27 return fragment.getContext();
30 public static Context getContext(Fragment fragment) { method in class:FragmentUtil
/frameworks/base/apct-tests/perftests/core/src/android/database/
H A DCursorWindowPerfTest.java42 private static Context getContext() { method in class:CursorWindowPerfTest
52 getContext().deleteDatabase(DB_NAME);
53 sDatabase = getContext().openOrCreateDatabase(DB_NAME, Context.MODE_PRIVATE, null);
67 getContext().deleteDatabase(DB_NAME);
/frameworks/base/media/mca/filterfw/java/android/filterfw/
H A DMffEnvironment.java58 public FilterContext getContext() { method in class:MffEnvironment
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DSysuiBaseFragmentTest.java56 when(inst.getContext()).thenThrow(new RuntimeException(
57 "SysUI Tests should use SysuiTestCase#getContext or SysuiTestCase#mContext"));
59 "SysUI Tests should use SysuiTestCase#getContext or SysuiTestCase#mContext"));
70 protected SysuiTestableContext getContext() { method in class:SysuiBaseFragmentTest
71 return new SysuiTestableContext(InstrumentationRegistry.getContext(), mLeakCheck);
H A DSysuiTestCase.java50 InstrumentationRegistry.getContext(), getLeakCheck());
62 when(inst.getContext()).thenAnswer(invocation -> {
64 "SysUI Tests should use SysuiTestCase#getContext or SysuiTestCase#mContext");
68 "SysUI Tests should use SysuiTestCase#getContext or SysuiTestCase#mContext");
83 public Context getContext() { method in class:SysuiTestCase
/frameworks/compile/slang/
H A Dslang_rs_pragma_handler.h42 RSContext *getContext() const { function in class:slang::RSPragmaHandler
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGapWorkerTest.java41 private Context getContext() { method in class:GapWorkerTest
42 return InstrumentationRegistry.getContext();
90 list.get(1).view = new RecyclerView(getContext());
175 RecyclerView recyclerView = new RecyclerView(getContext());
H A DMultiRecyclerViewPrefetchTest.java74 RecyclerView rv = new RecyclerView(getContext()) {
101 private Context getContext() { method in class:MultiRecyclerViewPrefetchTest
102 return InstrumentationRegistry.getContext();
123 return new RecyclerView.ViewHolder(new View(parent.getContext())) {};
H A DRecycledViewPoolTest.java41 private Context getContext() { method in class:RecycledViewPoolTest
42 return InstrumentationRegistry.getContext();
53 RecyclerView.ViewHolder holder = new MockViewHolder(getContext());
/frameworks/base/location/java/android/location/
H A DLocalListenerHelper.java98 protected Context getContext() { method in class:LocalListenerHelper
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DMtpManagerTest.java46 mUsbManager = getContext().getSystemService(UsbManager.class);
47 mManager = new MtpManager(getContext());
161 private Context getContext() { method in class:MtpManagerTest
162 return getInstrumentation().getContext();
/frameworks/compile/libbcc/include/bcc/
H A DSource.h82 inline BCCContext &getContext() function in class:bcc::Source
84 inline const BCCContext &getContext() const function in class:bcc::Source
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DReflectionInflater.java71 public Context getContext() { method in class:ReflectionInflater
/frameworks/base/legacy-test/src/android/test/
H A DAndroidTestCase.java64 public Context getContext() { method in class:AndroidTestCase
106 getContext().startActivity(intent);
125 getContext().getContentResolver().query(uri, null, null, null, null);
144 getContext().getContentResolver().insert(uri, new ContentValues());
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFilterFunction.java104 public FilterContext getContext() { method in class:FilterFunction
H A DFrameManager.java53 public FilterContext getContext() { method in class:FrameManager
H A DGraphRunner.java55 public FilterContext getContext() { method in class:GraphRunner
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSHost.java29 Context getContext(); method in interface:QSHost
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DCoreSettingsObserverTest.java97 final Context originalContext = InstrumentationRegistry.getContext();
148 public Context getContext() { method in class:CoreSettingsObserverTest.TestInjector
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DService.java44 public Context getContext() { method in class:Service

Completed in 6872 milliseconds

123456