Searched refs:newConfig (Results 1 – 9 of 9) sorted by relevance
11 import static com.xtremelabs.robolectric.util.TestUtil.newConfig;20 … new ApplicationResolver(newConfig("TestAndroidManifestWithBadAppName.xml")).resolveApplication(); in shouldThrowWhenManifestContainsBadApplicationClassName()26 … new ApplicationResolver(newConfig("TestAndroidManifest.xml")).resolveApplication().getClass()); in shouldReturnDefaultAndroidApplicationWhenManifestDeclaresNoAppName()32 …new ApplicationResolver(newConfig("TestAndroidManifestWithAppName.xml")).resolveApplication().getC… in shouldReturnSpecifiedApplicationWhenManifestDeclaresAppName()37 …Application application = new ApplicationResolver(newConfig("TestAndroidManifestWithPackageName.xm… in shouldAssignThePackageNameFromTheManifest()43 …Application application = new ApplicationResolver(newConfig("TestAndroidManifestWithAppName.xml"))… in shouldAssignTheApplicationNameFromTheManifest()49 …Application application = new ApplicationResolver(newConfig("TestAndroidManifestWithReceivers.xml"… in shouldRegisterReceiversFromTheManifest()
11 import static com.xtremelabs.robolectric.util.TestUtil.newConfig;19 RobolectricConfig config = newConfig("TestAndroidManifestWithReceivers.xml"); in shouldReadBroadcastReceivers()47 assertEquals(42, newConfig("TestAndroidManifestWithSdkVersion.xml").getSdkVersion()); in shouldReadSdkVersionFromAndroidManifest()48 assertEquals(3, newConfig("TestAndroidManifestWithSdkVersion.xml").getMinSdkVersion()); in shouldReadSdkVersionFromAndroidManifest()53 … assertEquals(3, newConfig("TestAndroidManifestWithMinSdkVersionOnly.xml").getRealSdkVersion()); in shouldRessolveSdkVersionForResources()54 assertEquals(42, newConfig("TestAndroidManifestWithSdkVersion.xml").getRealSdkVersion()); in shouldRessolveSdkVersionForResources()59 …assertEquals("robolectricprocess", newConfig("TestAndroidManifestWithProcess.xml").getProcessName(… in shouldReadProcessFromAndroidManifest()64 …assertEquals("com.xtremelabs.robolectric", newConfig("TestAndroidManifestWithNoProcess.xml").getPr… in shouldReturnPackageNameWhenNoProcessIsSpecifiedInTheManifest()69 RobolectricConfig config = newConfig("TestAndroidManifestWithFlags.xml"); in shouldReadFlagsFromAndroidManifest()
227 StringBuffer newConfig = null; in getConfigurationsPattern() local232 if (newConfig == null) { in getConfigurationsPattern()233 newConfig = new StringBuffer(refLength); in getConfigurationsPattern()235 newConfig.append(this.configPattern.substring(0, j)); in getConfigurationsPattern()237 newConfig.append('_'); in getConfigurationsPattern()238 } else if (newConfig != null) { in getConfigurationsPattern()239 newConfig.append(c); in getConfigurationsPattern()242 if (newConfig != null) { in getConfigurationsPattern()243 this.configPattern = newConfig.toString(); in getConfigurationsPattern()
250 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument251 super.onConfigurationChanged(newConfig); in onConfigurationChanged()252 if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { in onConfigurationChanged()
895 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument896 super.onConfigurationChanged(newConfig); in onConfigurationChanged()900 getRequestedOrientation(), newConfig.orientation)); in onConfigurationChanged()903 …&& (newConfig.orientation != Configuration.ORIENTATION_LANDSCAPE && getRequestedOrientation() == A… in onConfigurationChanged()904 …|| (newConfig.orientation != Configuration.ORIENTATION_PORTRAIT && getRequestedOrientation() == Ac… in onConfigurationChanged()911 … .setHardKeyboardHidden(newConfig.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_YES); in onConfigurationChanged()
30 import static com.xtremelabs.robolectric.util.TestUtil.newConfig;100 …Application application = new ApplicationResolver(newConfig("TestAndroidManifestWithPackageName.xm… in packageManager_shouldKnowPackageName()106 …Application application = new ApplicationResolver(newConfig("TestAndroidManifestWithAppName.xml"))… in packageManager_shouldKnowApplicationName()
32 import static com.xtremelabs.robolectric.util.TestUtil.newConfig;163 …Robolectric.application = new ApplicationResolver(newConfig("TestAndroidManifestWithPackageName.xm… in shouldRetrievePackageNameFromTheManifest()
76 public static RobolectricConfig newConfig(String androidManifestFile) { in newConfig() method in TestUtil
110 @Override public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument