/packages/apps/Protips/src/com/android/protips/ |
ProtipWidget.java | 73 SharedPreferences pref = context.getSharedPreferences(PREFS_NAME, 0); local 74 mMessage = pref.getInt(PREFS_TIP_NUMBER, 0); 75 mTipSet = pref.getInt(PREFS_TIP_SET, 0); 125 SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit(); local 126 pref.putInt(PREFS_TIP_NUMBER, mMessage); 127 pref.apply(); 138 SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit(); local 139 pref.putInt(PREFS_TIP_NUMBER, mMessage); 140 pref.putInt(PREFS_TIP_SET, mTipSet); 141 pref.apply() [all...] |
/external/chromium/chrome/browser/ |
background_contents_service_unittest.cc | 41 // Returns the stored pref URL for the passed app id. 43 const DictionaryValue* pref = GetPrefs(profile); local 44 EXPECT_TRUE(pref->HasKey(UTF16ToUTF8(appid))); 46 pref->GetDictionaryWithoutPathExpansion(UTF16ToUTF8(appid), &value);
|
/external/chromium/chrome/browser/ui/views/bookmarks/ |
bookmark_bar_instructions_view.cc | 43 gfx::Size pref = view->GetPreferredSize(); local 47 descent = std::max(descent, pref.height() - baseline); 49 height = std::max(pref.height(), height); 51 width += pref.width(); 64 gfx::Size pref = view->GetPreferredSize(); local 70 y = (height() - pref.height()) / 2; 71 int view_width = std::min(remaining_width, pref.width()); 72 view->SetBounds(x, y, view_width, pref.height());
|
/external/chromium/chrome/browser/ui/views/location_bar/ |
keyword_hint_view.cc | 122 gfx::Size pref; local 125 pref = leading_label_->GetPreferredSize(); 126 leading_label_->SetBounds(x, 0, pref.width(), height()); 128 x += pref.width() + kTabButtonBitmap->width(); 129 pref = trailing_label_->GetPreferredSize(); 130 trailing_label_->SetBounds(x, 0, pref.width(), height());
|
/external/libxslt/libxslt/ |
namespaces.c | 584 xmlChar pref[30]; local 592 snprintf((char *) pref, 30, "%s_%d", nsPrefix, counter++); 593 ns = xmlSearchNs(target->doc, target, BAD_CAST pref); 602 ns = xmlNewNs(target, nsName, BAD_CAST pref);
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
OldPreferenceChangeEventTest.java | 31 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); local 41 pref.addPreferenceChangeListener(pl); 43 pref.putInt("key_int", Integer.MAX_VALUE); 48 pref.removePreferenceChangeListener(pl); 56 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); local 66 pref.addPreferenceChangeListener(pl); 68 pref.putInt("key_int", Integer.MAX_VALUE); 73 pref.putInt("key_int", Integer.MAX_VALUE); 78 pref.removePreferenceChangeListener(pl); 86 AbstractPreferences pref = (AbstractPreferences) parent.node("mock") local [all...] |
/packages/apps/Camera/src/com/android/camera/ |
PreferenceInflater.java | 85 CameraPreference pref = newPreference(parser.getName(), args); local 89 list.add(pref); 91 list.set(depth - 1, pref); 94 ((PreferenceGroup) list.get(depth - 2)).addChild(pref);
|
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...] |
/packages/apps/Gallery2/src/com/android/camera/ |
PreferenceInflater.java | 85 CameraPreference pref = newPreference(parser.getName(), args); local 89 list.add(pref); 91 list.set(depth - 1, pref); 94 ((PreferenceGroup) list.get(depth - 2)).addChild(pref);
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
CacheManager.java | 64 SharedPreferences pref = PreferenceManager local 68 n = pref.getInt(KEY_CACHE_UP_TO_DATE, 0); 73 pref.edit().putInt(KEY_CACHE_UP_TO_DATE, 1).commit();
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
PreferenceInflater.java | 85 CameraPreference pref = newPreference(parser.getName(), args); local 89 list.add(pref); 91 list.set(depth - 1, pref); 94 ((PreferenceGroup) list.get(depth - 2)).addChild(pref);
|
/packages/apps/Mms/src/com/android/mms/util/ |
CacheManager.java | 67 SharedPreferences pref = PreferenceManager local 71 n = pref.getInt(KEY_CACHE_UP_TO_DATE, 0); 76 pref.edit().putInt(KEY_CACHE_UP_TO_DATE, 1).commit();
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
ControlPanelPicker.java | 59 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); local 60 String savedDefPackage = pref.getString("defaultpanelpackage", null); 61 String savedDefName = pref.getString("defaultpanelname", null);
|
/packages/apps/Browser/src/com/android/browser/preferences/ |
GeneralPreferencesFragment.java | 74 ListPreference pref = (ListPreference) findPreference(PREF_HOMEPAGE_PICKER); local 75 pref.setSummary(getHomepageSummary()); 76 pref.setPersistent(false); 77 pref.setValue(getHomepageValue()); 78 pref.setOnPreferenceChangeListener(this); 82 public boolean onPreferenceChange(Preference pref, Object objValue) { 90 if (pref.getKey().equals(PREF_HOMEPAGE_PICKER)) { 106 promptForHomepage((ListPreference) pref); 109 pref.setSummary(getHomepageSummary()); 110 ((ListPreference)pref).setValue(getHomepageValue()) [all...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
CertFileList.java | 87 public boolean onPreferenceClick(Preference pref) { 89 pref.getTitle().toString()); 125 Preference pref = new Preference(this); local 126 pref.setTitle(file.getCanonicalPath().substring(prefixEnd)); 127 root.addPreference(pref); 128 pref.setOnPreferenceClickListener(this);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
IndicatorControl.java | 92 IconListPreference pref = local 94 if (pref != null) { 95 addIndicator(getContext(), pref); local 108 ListPreference pref = mPreferenceGroup.findPreference( local 110 if (pref == null) return; 112 mCameraPicker.initialize(pref); 123 public IndicatorButton addIndicator(Context context, IconListPreference pref) { 124 IndicatorButton b = new IndicatorButton(context, pref); 126 b.setContentDescription(pref.getTitle());
|
/packages/apps/Phone/src/com/android/phone/ |
GsmUmtsCallForwardOptions.java | 93 for (CallForwardEditPreference pref : mPreferences) { 94 Bundle bundle = mIcicle.getParcelable(pref.getKey()); 95 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); 99 pref.handleCallForwardResult(cf); 100 pref.init(this, true); 112 for (CallForwardEditPreference pref : mPreferences) { 114 bundle.putBoolean(KEY_TOGGLE, pref.isToggled()); 115 if (pref.callForwardInfo != null) { 116 bundle.putString(KEY_NUMBER, pref.callForwardInfo.number); 117 bundle.putInt(KEY_STATUS, pref.callForwardInfo.status) [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
ChooseAccountActivity.java | 137 Log.v(TAG, "Skipped pref " + providerName + ": has no authority we need"); 148 for (ProviderEntry pref : mProviderList) { 149 Drawable drawable = getDrawableForType(pref.type); 151 new ProviderPreference(this, pref.type, drawable, pref.name); 236 ProviderPreference pref = (ProviderPreference) preference; local 238 Log.v(TAG, "Attempting to add account of type " + pref.getAccountType()); 240 finishWithAccountType(pref.getAccountType());
|
/packages/apps/Settings/src/com/android/settings/ |
ApnSettings.java | 181 ApnPreference pref = new ApnPreference(this); local 183 pref.setKey(key); 184 pref.setTitle(name); 185 pref.setSummary(apn); 186 pref.setPersistent(false); 187 pref.setOnPreferenceChangeListener(this); 190 pref.setSelectable(selectable); 193 pref.setChecked(); 195 apnList.addPreference(pref); 197 mmsApnList.add(pref); [all...] |
/development/apps/Development/src/com/android/development/ |
AppHwPref.java | 99 ConfigurationInfo pref = appHwPref[i]; local 100 if((pref.reqInputFeatures & flagMask) != 0) {
|
/external/chromium/chrome/browser/chromeos/frame/ |
bubble_frame_view.cc | 156 gfx::Size pref = frame_->client_view()->GetPreferredSize(); local 157 gfx::Rect bounds(0, 0, pref.width(), pref.height());
|
/external/chromium/chrome/browser/content_settings/ |
content_settings_policy_provider.cc | 26 // Base pref path of the prefs that contain the managed default content 225 // If a pref to manage a default-content-setting was not set (NOTICE: 226 // "HasPrefPath" returns false if no value was set for a registered pref) then 229 // This indicates that no managed value is set. If a pref was set, than it 340 const PrefService::Preference* pref = prefs->FindPreference(pref_name); local 341 DCHECK(pref->IsManaged()); 342 DCHECK_EQ(Value::TYPE_LIST, pref->GetType()); 345 static_cast<const ListValue*>(pref->GetValue());
|
/external/chromium/chrome/browser/net/ |
pref_proxy_config_service.cc | 93 const PrefService::Preference* pref = local 100 return (!pref->IsUserModifiable() || pref->HasUserSetting()) ?
|
/external/chromium/chrome/browser/prefs/ |
pref_member_unittest.cc | 116 // Try changing back through the pref. 137 // Try changing back through the pref. 158 // Try changing back through the pref. 179 // Try changing back through the pref. 211 // Try changing back through the pref. 255 // Changing the pref does fire the observer. 272 IntegerPrefMember pref; local
|
pref_service_unittest.cc | 74 // Setting the pref to the same value should not set the pref value a second 80 // Clearing the pref should cause the pref to fire. 86 // Clearing the pref again should not cause the pref to fire. 129 // Now try adding a second pref observer. 152 // the user pref file, it uses the correct fallback value instead. 161 const PrefService::Preference* pref = local 163 ASSERT_TRUE(pref); [all...] |