/libcore/luni/src/main/java/java/util/prefs/ |
PreferencesFactory.java | 20 * This interface is used by the {@link Preferences} class as factory class to 21 * create {@code Preferences} instances. This interface can be implemented and 22 * installed to replace the default preferences implementation. 24 * @see java.util.prefs.Preferences 30 * Returns the root node of the preferences hierarchy for the calling user 33 * @return the user preferences hierarchy root node. 35 Preferences userRoot(); 38 * Returns the root node of the system preferences hierarchy. 40 * @return the system preferences hierarchy root node. 42 Preferences systemRoot() [all...] |
FilePreferencesFactoryImpl.java | 26 // user root preferences 27 private static final Preferences USER_ROOT = new FilePreferencesImpl(true); 29 // system root preferences 30 private static final Preferences SYSTEM_ROOT = new FilePreferencesImpl(false); 35 public Preferences userRoot() { 39 public Preferences systemRoot() {
|
NodeChangeEvent.java | 34 * @see java.util.prefs.Preferences 43 private final Preferences parent; 44 private final Preferences child; 50 * the {@code Preferences} instance that fired this event; this object is 53 * the child {@code Preferences} instance that was added or deleted. 55 public NodeChangeEvent (Preferences p, Preferences c) { 62 * Gets the {@code Preferences} instance that fired this event. 64 * @return the {@code Preferences} instance that fired this event. 66 public Preferences getParent() [all...] |
PreferenceChangeEvent.java | 34 * @see java.util.prefs.Preferences 43 private final Preferences node; 53 * the {@code Preferences} instance that fired this event; this object is 61 public PreferenceChangeEvent(Preferences p, String k, String v) { 89 * Gets the {@code Preferences} instance that fired this event. 91 * @return the {@code Preferences} instance that fired this event. 93 public Preferences getNode() {
|
Preferences.java | 26 * An instance of the class {@code Preferences} represents one node in a 29 * system preferences shared by all users and the other for user preferences 30 * specific to the user. {@code Preferences} hierarchy trees and data are stored 45 * Modification to preferences data may be asynchronous, which means that 55 * When invoking a method that retrieves preferences, the user must provide 56 * a default value. The default value is returned when the preferences cannot 61 * Preferences can be exported to and imported from an XML files. These 64 * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd" [all...] |
/external/apache-harmony/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/ |
PreferenceChangeEventTest.java | 21 import java.util.prefs.Preferences; 43 event = new PreferenceChangeEvent(Preferences.userRoot(), "key", null); 46 assertSame(Preferences.userRoot(), event.getNode()); 47 assertSame(Preferences.userRoot(), event.getSource()); 49 event = new PreferenceChangeEvent(Preferences.userRoot(), "", null); 52 assertSame(Preferences.userRoot(), event.getNode()); 53 assertSame(Preferences.userRoot(), event.getSource()); 55 event = new PreferenceChangeEvent(Preferences.userRoot(), null, "value"); 58 assertSame(Preferences.userRoot(), event.getNode()); 59 assertSame(Preferences.userRoot(), event.getSource()) [all...] |
NodeChangeEventTest.java | 21 import java.util.prefs.Preferences; 35 event = new NodeChangeEvent(Preferences.systemRoot(), Preferences 37 assertSame(Preferences.systemRoot(), event.getParent()); 38 assertSame(Preferences.userRoot(), event.getChild()); 39 assertSame(Preferences.systemRoot(), event.getSource()); 44 event = new NodeChangeEvent(null, Preferences.userRoot()); 49 event = new NodeChangeEvent(Preferences.systemRoot(), null); 50 assertSame(Preferences.systemRoot(), event.getParent()); 52 assertSame(Preferences.systemRoot(), event.getSource()) [all...] |
MockPreferencesFactory.java | 19 import java.util.prefs.Preferences; 35 public Preferences userRoot() { 39 public Preferences systemRoot() {
|
PreferencesProviderTest.java | 20 import java.util.prefs.Preferences; 29 assertEquals(MockAbstractPreferences.class, Preferences.systemRoot().getClass());
|
NodeChangeListenerTest.java | 21 import java.util.prefs.Preferences; 50 l.childAdded(new NodeChangeEvent(Preferences.userRoot(), Preferences 55 l.childRemoved(new NodeChangeEvent(Preferences.userRoot(), Preferences
|
PreferencesTest.java | 29 import java.util.prefs.Preferences; 48 in = new ByteArrayInputStream("<!DOCTYPE preferences SYSTEM \"http://java.sun.com/dtd/preferences.dtd\"><preferences><root type=\"user\"><map></map></root></preferences>".getBytes("UTF-8")); 62 Preferences p = null; 64 p = Preferences.systemNodeForPackage(Object.class); 71 Preferences root = Preferences.systemRoot(); 72 Preferences parent = root.node("java") [all...] |
PreferencesFactoryTest.java | 19 import java.util.prefs.Preferences; 50 public Preferences userRoot() { 54 public Preferences systemRoot() {
|
PreferenceChangeListenerTest.java | 21 import java.util.prefs.Preferences; 42 l.preferenceChange(new PreferenceChangeEvent(Preferences.userRoot(),
|
FilePreferencesImplTest.java | 23 import java.util.prefs.Preferences; 30 private Preferences uroot; 31 private Preferences sroot; 42 uroot = Preferences.userRoot().node("harmony_test"); 43 sroot = Preferences.systemRoot().node("harmony_test"); 82 Preferences child1 = uroot.node("child1"); 83 Preferences child2 = uroot.node("\u4e2d child2"); 84 Preferences grandchild = child1.node("grand");
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
OldPreferencesTest.java | 27 import java.util.prefs.Preferences; 36 StringBuilder key = new StringBuilder(Preferences.MAX_KEY_LENGTH); 37 for (int i = 0; i < Preferences.MAX_KEY_LENGTH; i++) { 42 StringBuilder value = new StringBuilder(Preferences.MAX_VALUE_LENGTH); 43 for (int i = 0; i < Preferences.MAX_VALUE_LENGTH; i++) { 52 Preferences pref = Preferences.userNodeForPackage(Preferences.class); 60 Preferences p = new MockPreferences(); 103 Preferences p1 = Preferences.userNodeForPackage(Preferences.class) [all...] |
OldNodeChangeEventTest.java | 23 import java.util.prefs.Preferences; 29 AbstractPreferences parent = (AbstractPreferences) Preferences 30 .userNodeForPackage(Preferences.class); 36 Preferences child = e.getChild(); 48 Preferences child = e.getChild(); 61 Preferences child1 = pref.node("mock1"); 77 AbstractPreferences parent = (AbstractPreferences) Preferences 78 .userNodeForPackage(Preferences.class); 84 Preferences parent = e.getParent(); 96 Preferences parent = e.getParent() [all...] |
OldFilePreferencesImplTest.java | 19 import java.util.prefs.Preferences; 26 Preferences sroot = Preferences.systemRoot().node("test"); 28 Preferences child1 = sroot.node("child1"); 29 Preferences child2 = sroot.node("child2"); 30 Preferences grandchild = child1.node("grand");
|
PreferencesTest.java | 22 import java.util.prefs.Preferences; 28 * The preferences API is designed to be hostile towards files that exist 40 Preferences userPreferences = Preferences.userRoot(); 49 Preferences parent = Preferences.userNodeForPackage(this.getClass()); 50 Preferences p = parent.node("testHtmlEncoding");
|
OldPreferenceChangeEventTest.java | 22 import java.util.prefs.Preferences; 28 AbstractPreferences parent = (AbstractPreferences) Preferences 29 .userNodeForPackage(Preferences.class); 53 AbstractPreferences parent = (AbstractPreferences) Preferences 54 .userNodeForPackage(Preferences.class); 83 AbstractPreferences parent = (AbstractPreferences) Preferences 84 .userNodeForPackage(Preferences.class);
|
/external/webkit/Source/WebKit/chromium/src/js/ |
DevTools.js | 41 Preferences.ignoreWhitespace = false; 42 Preferences.samplingCPUProfiler = true; 43 Preferences.heapProfilerPresent = true; 44 Preferences.detailedHeapProfiles = false; 45 Preferences.debuggerAlwaysEnabled = true; 46 Preferences.profilerAlwaysEnabled = true; 47 Preferences.canEditScriptSource = true; 48 Preferences.onlineDetectionEnabled = false; 49 Preferences.nativeInstrumentationEnabled = true; 50 Preferences.fileSystemEnabled = false [all...] |
/packages/apps/Contacts/src/com/android/contacts/preference/ |
ContactsPreferences.java | 30 * Manages user preferences for contacts. 55 return ContactsContract.Preferences.SORT_ORDER_PRIMARY; 57 return ContactsContract.Preferences.SORT_ORDER_ALTERNATIVE; 69 ContactsContract.Preferences.SORT_ORDER); 80 ContactsContract.Preferences.SORT_ORDER, sortOrder); 89 return ContactsContract.Preferences.DISPLAY_ORDER_PRIMARY; 91 return ContactsContract.Preferences.DISPLAY_ORDER_ALTERNATIVE; 103 ContactsContract.Preferences.DISPLAY_ORDER); 114 ContactsContract.Preferences.DISPLAY_ORDER, displayOrder); 122 // Reset preferences to "unknown" because they may have changed while th [all...] |
DisplayOrderPreference.java | 53 String.valueOf(ContactsContract.Preferences.DISPLAY_ORDER_PRIMARY), 54 String.valueOf(ContactsContract.Preferences.DISPLAY_ORDER_ALTERNATIVE), 67 case ContactsContract.Preferences.DISPLAY_ORDER_PRIMARY: 69 case ContactsContract.Preferences.DISPLAY_ORDER_ALTERNATIVE:
|
SortOrderPreference.java | 53 String.valueOf(ContactsContract.Preferences.SORT_ORDER_PRIMARY), 54 String.valueOf(ContactsContract.Preferences.SORT_ORDER_ALTERNATIVE), 67 case ContactsContract.Preferences.SORT_ORDER_PRIMARY: 69 case ContactsContract.Preferences.SORT_ORDER_ALTERNATIVE:
|
/external/chromium/chrome/browser/chromeos/ |
preferences.h | 20 // The Preferences class handles Chrome OS preferences. When the class 22 // the preferences. These include touchpad settings, etc. 23 // When the preferences change, we change the settings to reflect the new value. 24 class Preferences : public NotificationObserver { 26 Preferences(); 27 virtual ~Preferences(); 43 // stored in the preferences. 92 // Input method preferences. 126 DISALLOW_COPY_AND_ASSIGN(Preferences); [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
GeneralPreferences.java | 28 import com.android.email.Preferences; 38 private static final String PREFERENCE_KEY_REPLY_ALL = Preferences.REPLY_ALL; 41 private Preferences mPreferences; 51 getPreferenceManager().setSharedPreferencesName(Preferences.PREFERENCES_FILE); 53 // Load the preferences from an XML resource 103 mPreferences = Preferences.getPreferences(getActivity());
|