/libcore/luni/src/test/java/libcore/java/util/prefs/ |
D | OldPreferencesTest.java | 28 import java.util.prefs.Preferences; 42 StringBuilder key = new StringBuilder(Preferences.MAX_KEY_LENGTH); 43 for (int i = 0; i < Preferences.MAX_KEY_LENGTH; i++) { 48 StringBuilder value = new StringBuilder(Preferences.MAX_VALUE_LENGTH); 49 for (int i = 0; i < Preferences.MAX_VALUE_LENGTH; i++) { 61 defaultFactory = Preferences.setPreferencesFactory( in setUp() 64 Preferences pref = Preferences.userNodeForPackage(Preferences.class); in setUp() 73 Preferences.setPreferencesFactory(defaultFactory); in tearDown() 77 Preferences p = new MockPreferences(); in testAbstractMethods() 120 Preferences p1 = Preferences.userNodeForPackage(Preferences.class); in testToString() [all …]
|
D | PreferencesTest.java | 24 import java.util.prefs.Preferences; 36 private final Preferences userPrefs; 37 private final Preferences systemPrefs; 50 public Preferences userRoot() { in userRoot() 54 public Preferences systemRoot() { in systemRoot() 65 defaultFactory = Preferences.setPreferencesFactory( in setUp() 71 Preferences.setPreferencesFactory(defaultFactory); in tearDown() 90 Preferences userPreferences = Preferences.userRoot(); in testPreferencesClobbersExistingFiles() 99 Preferences parent = Preferences.userNodeForPackage(this.getClass()); in testHtmlEncoding() 100 Preferences p = parent.node("testHtmlEncoding"); in testHtmlEncoding()
|
D | OldNodeChangeEventTest.java | 24 import java.util.prefs.Preferences; 39 defaultFactory = Preferences.setPreferencesFactory( in setUp() 45 Preferences.setPreferencesFactory(defaultFactory); in tearDown() 50 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetChild() 51 .userNodeForPackage(Preferences.class); in testGetChild() 57 Preferences child = e.getChild(); in testGetChild() 69 Preferences child = e.getChild(); in testGetChild() 82 Preferences child1 = pref.node("mock1"); in testGetChild() 98 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetParent() 99 .userNodeForPackage(Preferences.class); in testGetParent() [all …]
|
D | OldFilePreferencesImplTest.java | 20 import java.util.prefs.Preferences; 35 defaultFactory = Preferences.setPreferencesFactory( in setUp() 41 Preferences.setPreferencesFactory(defaultFactory); in tearDown() 47 Preferences sroot = Preferences.systemRoot().node("test"); in testSystemChildNodes() 49 Preferences child1 = sroot.node("child1"); in testSystemChildNodes() 50 Preferences child2 = sroot.node("child2"); in testSystemChildNodes() 51 Preferences grandchild = child1.node("grand"); in testSystemChildNodes()
|
D | OldPreferenceChangeEventTest.java | 23 import java.util.prefs.Preferences; 38 defaultFactory = Preferences.setPreferencesFactory( in setUp() 44 Preferences.setPreferencesFactory(defaultFactory); in tearDown() 49 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetKey() 50 .userNodeForPackage(Preferences.class); in testGetKey() 74 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetNewValue() 75 .userNodeForPackage(Preferences.class); in testGetNewValue() 104 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetNode() 105 .userNodeForPackage(Preferences.class); in testGetNode()
|
D | OldAbstractPreferencesTest.java | 30 import java.util.prefs.Preferences; 57 defaultFactory = Preferences.setPreferencesFactory( in setUp() 60 root = (AbstractPreferences) Preferences.userRoot(); in setUp() 64 parent = (AbstractPreferences) Preferences.userNodeForPackage(getClass()); in setUp() 70 Preferences.setPreferencesFactory(defaultFactory); in tearDown() 94 for (i = 0; i < Preferences.MAX_KEY_LENGTH + 1; i++) { in testPut() 107 for (i = 0; i < Preferences.MAX_VALUE_LENGTH + 1; i++) { in testPut() 231 for (i = 0; i < Preferences.MAX_KEY_LENGTH + 1; i++) { in testPutInt() 297 for (i = 0; i < Preferences.MAX_KEY_LENGTH + 1; i++) { in testPutLong() 363 for (i = 0; i < Preferences.MAX_KEY_LENGTH + 1; i++) { in testPutBoolean() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | PreferenceChangeEventTest.java | 21 import java.util.prefs.Preferences; 41 event = new PreferenceChangeEvent(Preferences.userRoot(), "key", null); in testConstructorNullValue() 44 assertSame(Preferences.userRoot(), event.getNode()); in testConstructorNullValue() 45 assertSame(Preferences.userRoot(), event.getSource()); in testConstructorNullValue() 47 event = new PreferenceChangeEvent(Preferences.userRoot(), "", null); in testConstructorNullValue() 50 assertSame(Preferences.userRoot(), event.getNode()); in testConstructorNullValue() 51 assertSame(Preferences.userRoot(), event.getSource()); in testConstructorNullValue() 53 event = new PreferenceChangeEvent(Preferences.userRoot(), null, "value"); in testConstructorNullValue() 56 assertSame(Preferences.userRoot(), event.getNode()); in testConstructorNullValue() 57 assertSame(Preferences.userRoot(), event.getSource()); in testConstructorNullValue() [all …]
|
D | PreferencesTest.java | 31 import java.util.prefs.Preferences; 59 defaultFactory = Preferences.setPreferencesFactory( in setUp() 68 Preferences.setPreferencesFactory(defaultFactory); in tearDown() 73 Preferences p = Preferences.systemNodeForPackage(Object.class); in testSystemNodeForPackage() 77 Preferences root = Preferences.systemRoot(); in testSystemNodeForPackage() 78 Preferences parent = root.node("java"); in testSystemNodeForPackage() 89 Preferences.userNodeForPackage(null); in testSystemNodeForPackage() 97 Preferences p = Preferences.systemRoot(); in testSystemRoot() 108 assertEquals(80, Preferences.MAX_KEY_LENGTH); in testConsts() 109 assertEquals(80, Preferences.MAX_NAME_LENGTH); in testConsts() [all …]
|
D | NodeChangeEventTest.java | 21 import java.util.prefs.Preferences; 33 event = new NodeChangeEvent(Preferences.systemRoot(), Preferences in testConstructor() 35 assertSame(Preferences.systemRoot(), event.getParent()); in testConstructor() 36 assertSame(Preferences.userRoot(), event.getChild()); in testConstructor() 37 assertSame(Preferences.systemRoot(), event.getSource()); in testConstructor() 42 event = new NodeChangeEvent(null, Preferences.userRoot()); in testConstructorNullParam() 47 event = new NodeChangeEvent(Preferences.systemRoot(), null); in testConstructorNullParam() 48 assertSame(Preferences.systemRoot(), event.getParent()); in testConstructorNullParam() 50 assertSame(Preferences.systemRoot(), event.getSource()); in testConstructorNullParam() 55 event = new NodeChangeEvent(Preferences.systemRoot(), null); in testSerialization()
|
D | NodeChangeListenerTest.java | 21 import java.util.prefs.Preferences; 49 l.childAdded(new NodeChangeEvent(Preferences.userRoot(), Preferences in testChildAdded() 54 l.childRemoved(new NodeChangeEvent(Preferences.userRoot(), Preferences in testChildRemoved()
|
D | FilePreferencesImplTest.java | 22 import java.util.prefs.Preferences; 30 private Preferences uroot; 31 private Preferences sroot; 76 Preferences child1 = uroot.node("child1"); in testChildNodes() 77 Preferences child2 = uroot.node("\u4e2d child2"); in testChildNodes() 78 Preferences grandchild = child1.node("grand"); in testChildNodes() 102 Preferences grandchild2 = child1.node("grand"); in testChildNodes()
|
D | MockPreferencesFactory.java | 19 import java.util.prefs.Preferences; 35 public Preferences userRoot() { in userRoot() 39 public Preferences systemRoot() { in systemRoot()
|
D | PreferencesFactoryTest.java | 19 import java.util.prefs.Preferences; 49 public Preferences userRoot() { in userRoot() 53 public Preferences systemRoot() { in systemRoot()
|
D | AbstractPreferencesTest.java | 35 import java.util.prefs.Preferences; 48 private final Preferences userPrefs; 49 private final Preferences systemPrefs; 63 public Preferences userRoot() { in userRoot() 67 public Preferences systemRoot() { in systemRoot() 82 final byte[] chars = new byte[Preferences.MAX_VALUE_LENGTH]; 85 LONG_KEY = LONG_VALUE.substring(0, Preferences.MAX_KEY_LENGTH); 86 LONG_NAME = LONG_VALUE.substring(0, Preferences.MAX_NAME_LENGTH); 92 defaultFactory = Preferences.setPreferencesFactory( in setUp() 94 root = (AbstractPreferences) Preferences.userRoot(); in setUp() [all …]
|
D | PreferenceChangeListenerTest.java | 21 import java.util.prefs.Preferences; 41 l.preferenceChange(new PreferenceChangeEvent(Preferences.userRoot(), in testPreferenceChange()
|
D | MockAbstractPreferences.java | 25 import java.util.prefs.Preferences; 171 Preferences p = parent(); in removeNodeSpi()
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | NodeChangeEvent.java | 52 private Preferences child; 60 public NodeChangeEvent(Preferences parent, Preferences child) { in NodeChangeEvent() 70 public Preferences getParent() { in getParent() 71 return (Preferences) getSource(); in getParent() 79 public Preferences getChild() { in getChild()
|
D | Preferences.java | 225 public abstract class Preferences { class 402 public static Preferences userNodeForPackage(Class<?> c) { in userNodeForPackage() 452 public static Preferences systemNodeForPackage(Class<?> c) { in systemNodeForPackage() 496 public static Preferences userRoot() { in userRoot() 518 public static Preferences systemRoot() { in systemRoot() 530 protected Preferences() { in Preferences() method in Preferences 965 public abstract Preferences parent(); in parent() 989 public abstract Preferences node(String pathName); in node()
|
D | XmlSupport.java | 98 static void export(OutputStream os, final Preferences p, boolean subTree) in export() 110 List<Preferences> ancestors = new ArrayList<>(); in export() 112 for (Preferences kid = p, dad = kid.parent(); dad != null; in export() 140 Preferences prefs, boolean subTree) throws BackingStoreException in putPreferencesInXml() 142 Preferences[] kidsCopy = null; in putPreferencesInXml() 169 kidsCopy = new Preferences[kidNames.length]; in putPreferencesInXml() 225 Preferences prefsRoot = in importPreferences() 227 Preferences.userRoot() : Preferences.systemRoot()); in importPreferences() 332 private static void ImportSubtree(Preferences prefsNode, Element xmlNode) { in ImportSubtree() 343 Preferences[] prefsKids; in ImportSubtree() [all …]
|
D | PreferenceChangeEvent.java | 69 public PreferenceChangeEvent(Preferences node, String key, in PreferenceChangeEvent() 81 public Preferences getNode() { in getNode() 82 return (Preferences) getSource(); in getNode()
|
D | PreferencesFactory.java | 50 Preferences systemRoot(); in systemRoot() 59 Preferences userRoot(); in userRoot()
|
D | FileSystemPreferencesFactory.java | 40 public Preferences userRoot() { in userRoot() 44 public Preferences systemRoot() { in systemRoot()
|
D | AbstractPreferences.java | 124 public abstract class AbstractPreferences extends Preferences { 757 public Preferences parent() { in parent() 811 public Preferences node(String path) { in node() 830 private Preferences node(StringTokenizer path) { in node() 1034 return root == Preferences.userRoot(); in isUserNode() 1488 NodeAddedEvent(Preferences parent, Preferences child) { 1494 NodeRemovedEvent(Preferences parent, Preferences child) { 1611 private void enqueueNodeAddedEvent(Preferences child) { 1627 private void enqueueNodeRemovedEvent(Preferences child) {
|
D | FileSystemPreferences.java | 86 static Preferences userRoot = null; 88 static synchronized Preferences getUserRoot() { in getUserRoot() 147 static Preferences systemRoot; 149 static synchronized Preferences getSystemRoot() { in getSystemRoot() 435 Preferences userRt; in syncWorld() 436 Preferences systemRt; in syncWorld()
|
/libcore/ |
D | openjdk_java_files.bp | 1149 "ojluni/src/main/java/java/util/prefs/Preferences.java",
|