Home | History | Annotate | Download | only in messaging

Lines Matching refs:factory

51 public class FakeFactory extends Factory {
70 // In tests we currently NEVER run the application/factory initialization
74 final FakeFactory factory = new FakeFactory();
75 Factory.setInstance(factory);
77 // At this point Factory is published. Services can now get initialized and depend on
78 // Factory.get().
79 factory.mContext = context;
80 factory.mFakeContext = fake;
81 factory.mMediaResourceManager = Mockito.mock(MediaResourceManager.class);
82 factory.mBugleGservices = new FakeBugleGservices();
83 factory.mBuglePrefs = new FakeBuglePrefs();
84 factory.mPhoneUtils = Mockito.mock(PhoneUtils.class);
88 Mockito.when(factory.mPhoneUtils.getCanonicalBySystemLocale(Matchers.anyString()))
97 Mockito.when(factory.mPhoneUtils.getCanonicalBySimLocale(Matchers.anyString())).thenAnswer(
106 Mockito.when(factory.mPhoneUtils.formatForDisplay(Matchers.anyString())).thenAnswer(
115 Mockito.when(factory.mPhoneUtils.toLMr1()).thenReturn(
143 factory.withProvider(Settings.System.CONTENT_URI, settings);
145 return factory;