Searched refs:getTestContext (Results 1 – 20 of 20) sorted by relevance
34 final Context context = getTestContext(); in writeAssetFileToDisk()51 final File sourceDbFile = new File(getTestContext().getCacheDir(), "contacts2src.db"); in testMigration()64 new CallLogDatabaseHelperTestable(getTestContext(), sourceDb); in testMigration()
40 final Drawable source = getTestContext().getResources().getDrawable( in testTransparency()
92 final Resources resources = getTestContext().getResources(); in loadPhotoFromResource()
232 Context context = getTestContext(); in readAssetAsString()
141 try (InputStream input = getTestContext().getAssets().open(CONTACTS2_DB_1108_ASSET_NAME);) { in create1108()
60 FakeFactory.register(getTestContext()) in setUp()69 .thenReturn(new SimSelectorView(getTestContext(), null)); in initNewInputManager()72 .thenReturn(new EditText(getTestContext())); in initNewInputManager()89 final ConversationInputManager inputManager = new ConversationInputManager(getTestContext(), in initNewInputManager()
149 mContext = new FakeContext(getTestContext()); in setUp()169 FakeFactory.registerWithFakeContext(getTestContext(), mContext) in setUp()
461 final FakeContext context = new FakeContext(getTestContext()); in setUp()478 FakeFactory.registerWithFakeContext(getTestContext(), context) in setUp()
49 FakeFactory.register(getTestContext()) in setUp()
49 mContext = new FakeContext(getTestContext()); in setUp()56 mFakeFactory = FakeFactory.registerWithFakeContext(getTestContext(), mContext) in setUp()
39 dataModel = new DataModelImpl(getTestContext()); in setUp()
44 FakeFactory.register(getTestContext()) in setUp()
56 public Context getTestContext() { in getTestContext() method in BugleTestCase
45 FakeFactory.register(getTestContext()) in setUp()
38 FakeFactory.register(getTestContext()) in setUp()
32 FakeFactory.register(getTestContext()); in setUp()
85 mContext = getTestContext(); in setUp()
86 is = getTestContext().getContentResolver().openInputStream(CONTACTS_PHOTO_URI); in setUp()
452 test.setTestContext(getTestContext()); in testDeadlockOnOutgoingCall()
48 FakeFactory.registerWithoutFakeContext(getTestContext()); in setUp()