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

1234567

/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/support/leanback/src/main/java/androidx/leanback/app/
H A DFragmentUtil.java23 static Context getContext(Fragment fragment) { method in class:FragmentUtil
25 return fragment.getContext();
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewAutofillTest.java40 static Context getContext() { method in class:RecyclerViewAutofillTest
46 RecyclerView recyclerView = new RecyclerView(getContext());
59 ViewGroup parent = (ViewGroup) LayoutInflater.from(getContext())
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.java76 RecyclerView rv = new RecyclerView(getContext()) {
103 private Context getContext() { method in class:MultiRecyclerViewPrefetchTest
104 return InstrumentationRegistry.getContext();
126 return new RecyclerView.ViewHolder(new View(parent.getContext())) {};
/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/core/tests/coretests/src/android/os/
H A DEnvironmentTest.java42 private Context getContext() { method in class:EnvironmentTest
43 return InstrumentationRegistry.getContext();
48 dir = getContext().getDir("testing", Context.MODE_PRIVATE);
/frameworks/base/media/mca/filterfw/java/android/filterfw/
H A DMffEnvironment.java58 public FilterContext getContext() { method in class:MffEnvironment
/frameworks/base/services/tests/servicestests/src/com/android/server/appops/
H A DAppOpsActiveWatcherTest.java58 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class);
68 eq(Process.myUid()), eq(getContext().getPackageName()), eq(true));
78 Process.myUid(), getContext().getPackageName())).isTrue();
86 eq(Process.myUid()), eq(getContext().getPackageName()), eq(false));
90 Process.myUid(), getContext().getPackageName())).isFalse();
116 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class);
154 private static Context getContext() { method in class:AppOpsActiveWatcherTest
155 return InstrumentationRegistry.getContext();
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
H A DUiServiceTestCase.java38 new TestableContext(InstrumentationRegistry.getContext(), null);
40 protected TestableContext getContext() { method in class:UiServiceTestCase
/frameworks/compile/slang/
H A Dslang_rs_pragma_handler.h42 RSContext *getContext() const { function in class:slang::RSPragmaHandler
/frameworks/av/camera/ndk/impl/
H A DACaptureRequest.h53 camera_status_t getContext(void** ctx) const { function in struct:ACaptureRequest
/frameworks/base/location/java/android/location/
H A DLocalListenerHelper.java103 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/base/packages/SystemUI/tests/src/com/android/systemui/
H A DSysuiBaseFragmentTest.java60 when(inst.getContext()).thenThrow(new RuntimeException(
61 "SysUI Tests should use SysuiTestCase#getContext or SysuiTestCase#mContext"));
63 "SysUI Tests should use SysuiTestCase#getContext or SysuiTestCase#mContext"));
74 protected SysuiTestableContext getContext() { method in class:SysuiBaseFragmentTest
75 return new SysuiTestableContext(InstrumentationRegistry.getContext(), mLeakCheck);
/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/core/tests/coretests/src/com/android/internal/os/
H A DKernelCpuProcReaderTest.java59 private Context getContext() { method in class:KernelCpuProcReaderTest
60 return InstrumentationRegistry.getContext();
65 mTestDir = getContext().getDir("test", Context.MODE_PRIVATE);
66 mRoot = getContext().getFilesDir();
/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/shared/tests/src/com/android/systemui/shared/
H A DSysuiSharedLibTestCase.java36 private Context mContext = InstrumentationRegistry.getContext();
49 public Context getContext() { method in class:SysuiSharedLibTestCase

Completed in 489 milliseconds

1234567