Home
last modified time | relevance | path

Searched refs:TEST_PREF (Results 1 – 1 of 1) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DOemNetworkPreferencesTest.java43 private static final int TEST_PREF = OemNetworkPreferences.OEM_NETWORK_PREFERENCE_UNINITIALIZED; field in OemNetworkPreferencesTest
51 () -> mBuilder.addNetworkPreference(null, TEST_PREF)); in testBuilderAddNetworkPreferenceRequiresNonNullPackageName()
63 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsCorrectValue()
75 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsUnmodifiableValue()
81 () -> networkPreferences.put(newPackage, TEST_PREF)); in testGetNetworkPreferenceReturnsUnmodifiableValue()
90 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testToStringReturnsCorrectValue()
94 assertTrue(networkPreferencesString.contains(Integer.toString(TEST_PREF))); in testToStringReturnsCorrectValue()
100 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testOemNetworkPreferencesParcelable()
110 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testAddNetworkPreferenceOverwritesPriorPreference()
115 assertEquals(networkPreferences.get(TEST_PACKAGE).intValue(), TEST_PREF); in testAddNetworkPreferenceOverwritesPriorPreference() local
[all …]