/libcore/luni/src/test/java/libcore/java/util/prefs/ |
OldPreferencesTest.java | 54 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 55 for (String child : pref.childrenNames()) { 56 pref.node(child).removeNode(); 58 pref.clear(); 122 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 124 Preferences child1 = pref.node("child1"); 126 pref.node("child2"); 127 pref.node("child3"); 130 assertSame(pref, child1.parent()); 131 assertEquals(3, pref.childrenNames().length) 138 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 150 Preferences pref = root.node("mock"); local 183 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 197 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 224 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 242 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 255 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 269 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 291 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 308 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 322 Preferences pref = parent.node("mock"); local 357 Preferences pref = parent.node("mock"); local 397 Preferences pref = parent.node("mock"); local 403 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 451 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 469 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 487 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 505 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 523 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 541 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 580 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 605 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 619 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 727 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 815 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local 841 Preferences pref = Preferences.userNodeForPackage(Preferences.class); local [all...] |
OldAbstractPreferencesTest.java | 36 AbstractPreferences pref; field in class:OldAbstractPreferencesTest 50 pref = (AbstractPreferences) parent.node(nodeName); 54 assertTrue(pref.toString().contains(nodeName)); 58 pref.put("Value", "String"); 59 pref.flush(); 61 assertEquals("String", pref.get("Value", ":")); 64 pref.put(null, "Exception"); 78 pref.put(new String(sb), "Exception"); 91 pref.put("DoubleValue", new String(sb)); 97 pref.removeNode() [all...] |
/frameworks/opt/vcard/tests/res/raw/ |
v30_comma_separated.vcf | 3 N;TYPE=PREF,HOME:F;G;M;;
4 TEL;TYPE="COMMA,SEPARATED:INSIDE.DQUOTE",PREF:1
|
v21_pref_handling.vcf | 5 TEL;WORK;PREF:2 7 EMAIL;PREF;HOME:test@example.com 8 EMAIL;CELL;PREF:test2@examination.com
|
v21_japanese_1.vcf | 5 TEL;PREF;VOICE:0300000000
|
/packages/apps/Camera2/src/com/android/camera/ |
PieController.java | 70 public void onSettingChanged(ListPreference pref) { 77 ListPreference pref = mPreferenceGroup.findPreference(CameraSettings.KEY_CAMERA_ID); local 78 pref.setValue("" + cameraId); 93 final IconListPreference pref = local 95 if (pref == null) return null; 96 int[] iconIds = pref.getLargeIconIds(); 98 if (!pref.getUseSingleIcon() && iconIds != null) { 100 int index = pref.findIndexOfValue(pref.getValue()); 104 resid = pref.getSingleIcon() 136 final IconListPreference pref = local 191 IconListPreference pref = (IconListPreference) mPreferenceGroup local [all...] |
/external/apache-harmony/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/ |
AbstractPreferencesTest.java | 53 AbstractPreferences pref; field in class:AbstractPreferencesTest 95 // pref = new MockAbstractPreferences((AbstractPreferences) parent, 98 pref = (AbstractPreferences) parent.node("mock"); 104 if (pref instanceof MockAbstractPreferences) { 105 ((MockAbstractPreferences) pref) 118 pref = new MockAbstractPreferences( 125 pref = new MockAbstractPreferences(null, "mock"); 137 new MockAbstractPreferences(pref, ""); 143 new MockAbstractPreferences(pref, null); 148 if (!(pref instanceof MockAbstractPreferences)) [all...] |
/external/chromium/chrome/browser/prefs/ |
pref_set_observer.cc | 19 void PrefSetObserver::AddPref(const std::string& pref) { 20 if (!prefs_.count(pref) && pref_service_->FindPreference(pref.c_str())) { 21 prefs_.insert(pref); 22 registrar_.Add(pref.c_str(), this); 26 void PrefSetObserver::RemovePref(const std::string& pref) { 27 if (prefs_.erase(pref)) 28 registrar_.Remove(pref.c_str(), this); 31 bool PrefSetObserver::IsObserved(const std::string& pref) { 32 return prefs_.count(pref) > 0 37 const PrefService::Preference* pref = local [all...] |
pref_change_registrar_unittest.cc | 19 // A mock provider that allows us to capture pref observer changes. 58 AddPrefObserver(Eq(std::string("test.pref.1")), observer())); 60 AddPrefObserver(Eq(std::string("test.pref.2")), observer())); 61 registrar.Add("test.pref.1", observer()); 62 registrar.Add("test.pref.2", observer()); 68 RemovePrefObserver(Eq(std::string("test.pref.1")), observer())); 70 RemovePrefObserver(Eq(std::string("test.pref.2")), observer())); 71 registrar.Remove("test.pref.1", observer()); 72 registrar.Remove("test.pref.2", observer()); 86 AddPrefObserver(Eq(std::string("test.pref.1")), observer())) [all...] |
pref_set_observer.h | 25 // Add a |pref| to the set of preferences to observe. 26 void AddPref(const std::string& pref); 27 // Remove |pref| from the set of observed peferences. 28 void RemovePref(const std::string& pref); 30 // Check whether |pref| is in the set of observed preferences. 31 bool IsObserved(const std::string& pref); 35 // Create a pref set observer for all preferences relevant to proxies. 40 // Create a pref set observer for all preferences relevant to default search.
|
/packages/apps/Camera/src/com/android/camera/ |
PieController.java | 65 public void onSettingChanged(ListPreference pref) { 72 ListPreference pref = mPreferenceGroup.findPreference(CameraSettings.KEY_CAMERA_ID); local 73 pref.setValue("" + cameraId); 88 final IconListPreference pref = local 90 if (pref == null) return; 91 int[] iconIds = pref.getLargeIconIds(); 93 if (!pref.getUseSingleIcon() && iconIds != null) { 95 int index = pref.findIndexOfValue(pref.getValue()); 99 resid = pref.getSingleIcon() [all...] |
PhotoController.java | 88 ListPreference pref = mPreferenceGroup 90 if (pref != null) { 92 int index = (pref.findIndexOfValue(pref.getValue()) + 1) % 2; 93 pref.setValueIndex(index); 94 onSettingChanged(pref); 123 ListPreference pref = mPreferenceGroup.findPreference(CameraSettings.KEY_CAMERA_ID); local 124 pref.setValue("" + cameraId); 137 public void onListPrefChanged(ListPreference pref) { 142 onSettingChanged(pref); 181 ListPreference pref = mPreferenceGroup.findPreference(key); local [all...] |
/external/chromium_org/chrome/browser/resources/options/ |
home_page_overlay.html | 8 pref="homepage_is_newtabpage" value="true" 9 metric="Options_Homepage_IsNewTabPage" dialog-pref> 14 pref="homepage_is_newtabpage" value="true" dialog-pref> 22 pref="homepage_is_newtabpage" value="false" 23 metric="Options_Homepage_IsNewTabPage" dialog-pref> 29 pref="homepage_is_newtabpage" value="false" dialog-pref> 32 class="weakrtl favicon-cell stretch" pref="homepage" 34 dialog-pref> [all...] |
confirm_dialog.js | 10 * Boolean |pref| to |true|, asking for confirmation. If the user clicks OK, 19 * @param {string} pref The pref that requires confirmation. 21 * @param {string} confirmed_pref A pref used to remember whether the user has 24 * will pop up every time the user attempts to set |pref| to |true|. 27 function ConfirmDialog(name, title, pageDivName, okButton, cancelButton, pref, 32 this.pref = pref; 43 * Handle changes to |pref|. Only uncommitted changes are relevant as these 57 Preferences.getInstance().commitPref(this.pref, this.metric) [all...] |
/external/chromium_org/base/test/data/prefs/ |
write.golden.json | 4 "pref": "214748364842"
|
/dalvik/vm/ |
ReferenceTable.cpp | 25 bool dvmInitReferenceTable(ReferenceTable* pRef, int initialCount, 31 pRef->table = (Object**) malloc(initialCount * sizeof(Object*)); 32 if (pRef->table == NULL) 35 memset(pRef->table, 0xdd, initialCount * sizeof(Object*)); 37 pRef->nextEntry = pRef->table; 38 pRef->allocEntries = initialCount; 39 pRef->maxEntries = maxCount; 47 void dvmClearReferenceTable(ReferenceTable* pRef) 49 free(pRef->table) [all...] |
/external/chromium/chrome/browser/resources/chromeos/ |
proxy_settings.js | 19 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox); 20 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); 21 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); 22 cr.ui.decorate('input[pref][type=range]', options.PrefRange); 23 cr.ui.decorate('select[pref]', options.PrefSelect); 24 cr.ui.decorate('input[pref][type=text]', options.PrefTextField); 25 cr.ui.decorate('input[pref][type=url]', options.PrefTextField);
|
/external/chromium/chrome/browser/ui/webui/ |
shown_sections_handler_unittest.cc | 28 scoped_ptr<PrefService> pref(new TestingPrefService); 30 pref->RegisterIntegerPref(prefs::kNTPShownSections, 0); 32 EXPECT_EQ(APPS, MigratePrefValue(pref.get(), APPS)); 33 EXPECT_EQ(THUMB, MigratePrefValue(pref.get(), THUMB)); 34 EXPECT_EQ(APPS, MigratePrefValue(pref.get(), APPS | THUMB)); 38 EXPECT_EQ(THUMB, MigratePrefValue(pref.get(), 3)); 42 EXPECT_EQ(THUMB, MigratePrefValue(pref.get(), 0));
|
/external/chromium/chrome/browser/extensions/ |
extension_content_settings_apitest.cc | 22 const PrefService::Preference* pref = pref_service->FindPreference( local 24 ASSERT_TRUE(pref); 25 EXPECT_TRUE(pref->IsExtensionControlled()); 45 const PrefService::Preference* pref = local 47 ASSERT_TRUE(pref); 48 EXPECT_TRUE(pref->IsExtensionControlled()); 51 pref = prefs->FindPreference(prefs::kBlockThirdPartyCookies); 52 ASSERT_TRUE(pref); 53 EXPECT_FALSE(pref->IsExtensionControlled()); 73 const PrefService::Preference* pref = pref_service->FindPreference local [all...] |
/packages/apps/Browser/src/com/android/browser/preferences/ |
AccessibilityPreferencesFragment.java | 79 void updateMinFontSummary(Preference pref, int minFontSize) { 81 pref.setSummary(c.getString(R.string.pref_min_font_size_value, minFontSize)); 84 void updateTextZoomSummary(Preference pref, int textZoom) { 85 pref.setSummary(mFormat.format(textZoom / 100.0)); 88 void updateDoubleTapZoomSummary(Preference pref, int doubleTapZoom) { 89 pref.setSummary(mFormat.format(doubleTapZoom / 100.0)); 92 void updateInvertedContrastSummary(Preference pref, int contrast) { 93 pref.setSummary(mFormat.format(contrast / 100.0)); 97 public boolean onPreferenceChange(Preference pref, Object objValue) { 104 if (PreferenceKeys.PREF_MIN_FONT_SIZE.equals(pref.getKey())) [all...] |
/external/chromium_org/chrome/browser/profiles/ |
chrome_version_service.h | 18 // This service manages a pref which is used to determine the version of 22 // Register the user pref we use. 25 // Sets the version string in the pref for the current profile. 31 // Handles setting the profile.created_by_version Pref
|
/packages/apps/Camera/src/com/android/camera/ui/ |
MoreSettingPopup.java | 50 public void onSettingChanged(ListPreference pref); 51 public void onPreferenceClicked(ListPreference pref); 66 private int getSettingLayoutId(ListPreference pref) { 68 if (isOnOffPreference(pref)) { 74 private boolean isOnOffPreference(ListPreference pref) { 75 CharSequence[] entries = pref.getEntries(); 87 ListPreference pref = mListItem.get(position); 89 int viewLayoutId = getSettingLayoutId(pref); 93 view.initialize(pref); // no init for restore one 124 ListPreference pref = group.findPreference(keys[i]) local 145 ListPreference pref = mListItem.get(j); local 166 ListPreference pref = mListItem.get(j); local 186 ListPreference pref = mListItem.get(position); local 195 ListPreference pref = mListItem.get(i); local [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
MoreSettingPopup.java | 50 public void onSettingChanged(ListPreference pref); 51 public void onPreferenceClicked(ListPreference pref); 66 private int getSettingLayoutId(ListPreference pref) { 68 if (isOnOffPreference(pref)) { 74 private boolean isOnOffPreference(ListPreference pref) { 75 CharSequence[] entries = pref.getEntries(); 87 ListPreference pref = mListItem.get(position); 89 int viewLayoutId = getSettingLayoutId(pref); 93 view.initialize(pref); // no init for restore one 124 ListPreference pref = group.findPreference(keys[i]) local 145 ListPreference pref = mListItem.get(j); local 166 ListPreference pref = mListItem.get(j); local 186 ListPreference pref = mListItem.get(position); local 195 ListPreference pref = mListItem.get(i); local [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/ |
bluetooth_pair_device.js | 29 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox); 30 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); 31 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); 32 cr.ui.decorate('input[pref][type=range]', options.PrefRange); 33 cr.ui.decorate('select[pref]', options.PrefSelect); 34 cr.ui.decorate('input[pref][type=text]', options.PrefTextField); 35 cr.ui.decorate('input[pref][type=url]', options.PrefTextField); 38 var inputs = document.querySelectorAll('input[pref]');
|
proxy_settings.js | 17 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox); 18 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); 19 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); 20 cr.ui.decorate('input[pref][type=range]', options.PrefRange); 21 cr.ui.decorate('select[pref]', options.PrefSelect); 22 cr.ui.decorate('input[pref][type=text]', options.PrefTextField); 23 cr.ui.decorate('input[pref][type=url]', options.PrefTextField); 28 var inputs = document.querySelectorAll('input[pref]');
|