Searched refs:TEST_PREF (Results 1 – 2 of 2) sorted by relevance
45 private static final int TEST_PREF = OemNetworkPreferences.OEM_NETWORK_PREFERENCE_UNINITIALIZED; field in OemNetworkPreferencesTest53 () -> mBuilder.addNetworkPreference(null, TEST_PREF)); in testBuilderAddNetworkPreferenceRequiresNonNullPackageName()65 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsCorrectValue()77 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsUnmodifiableValue()83 () -> networkPreferences.put(newPackage, TEST_PREF)); in testGetNetworkPreferenceReturnsUnmodifiableValue()92 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testToStringReturnsCorrectValue()96 assertTrue(networkPreferencesString.contains(Integer.toString(TEST_PREF))); in testToStringReturnsCorrectValue()102 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testOemNetworkPreferencesParcelable()112 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testAddNetworkPreferenceOverwritesPriorPreference()117 assertEquals(networkPreferences.get(TEST_PACKAGE).intValue(), TEST_PREF); in testAddNetworkPreferenceOverwritesPriorPreference() local[all …]
71 private static final String TEST_PREF = "DatabaseTestPref"; field in DataMigrationTest86 mTargetContext.deleteSharedPreferences(TEST_PREF); in setUp()87 mPrefs = mTargetContext.getSharedPreferences(TEST_PREF, Context.MODE_PRIVATE); in setUp()100 mTargetContext.deleteSharedPreferences(TEST_PREF); in tearDown()