Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 497) sorted by relevance

12345678910>>...20

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSettingsValues.java21 import android.content.res.Resources;
87 final Resources res = context.getResources(); in SettingsValues() local
90 mDelayUpdateOldSuggestions = res.getInteger(R.integer.config_delay_update_old_suggestions); in SettingsValues()
91 mWeakSpaceStrippers = res.getString(R.string.weak_space_stripping_symbols); in SettingsValues()
92 mWeakSpaceSwappers = res.getString(R.string.weak_space_swapping_symbols); in SettingsValues()
93 mPhantomSpacePromotingSymbols = res.getString(R.string.phantom_space_promoting_symbols); in SettingsValues()
104 res.getString(R.string.suggested_punctuations), null); in SettingsValues()
107 res.getString(R.string.symbols_excluded_from_word_separators); in SettingsValues()
109 mSymbolsExcludedFromWordSeparators, res); in SettingsValues()
114 mVibrateOn = isVibrateOn(context, prefs, res); in SettingsValues()
[all …]
DDictionaryFactory.java20 import android.content.res.AssetFileDescriptor;
21 import android.content.res.Resources;
116 } catch (android.content.res.Resources.NotFoundException e) { in createBinaryDictionary()
157 final Resources res = context.getResources(); in isDictionaryAvailable() local
158 return 0 != getMainDictionaryResourceIdIfAvailableForLocale(res, locale); in isDictionaryAvailable()
169 private static int getMainDictionaryResourceIdIfAvailableForLocale(final Resources res, in getMainDictionaryResourceIdIfAvailableForLocale() argument
175 if ((resId = res.getIdentifier( in getMainDictionaryResourceIdIfAvailableForLocale()
183 if ((resId = res.getIdentifier(dictLanguage, "raw", RESOURCE_PACKAGE_NAME)) != 0) { in getMainDictionaryResourceIdIfAvailableForLocale()
196 public static int getMainDictionaryResourceId(final Resources res, final Locale locale) { in getMainDictionaryResourceId() argument
197 int resourceId = getMainDictionaryResourceIdIfAvailableForLocale(res, locale); in getMainDictionaryResourceId()
[all …]
DSettings.java25 import android.content.res.Resources;
116 final Resources res = getResources(); in onCreate() local
146 final boolean showVoiceKeyOption = res.getBoolean( in onCreate()
164 final boolean showPopupOption = res.getBoolean( in onCreate()
170 final boolean showBigramSuggestionsOption = res.getBoolean( in onCreate()
187 res.getString(R.string.key_preview_popup_dismiss_no_delay), in onCreate()
188 res.getString(R.string.key_preview_popup_dismiss_default_delay), in onCreate()
190 final String popupDismissDelayDefaultValue = Integer.toString(res.getInteger( in onCreate()
199 SettingsValues.isKeyPreviewPopupEnabled(prefs, res)); in onCreate()
211 res.getBoolean(R.bool.config_enable_usability_study_mode_option) in onCreate()
[all …]
DSubtypeLocale.java23 import android.content.res.Resources;
73 final Resources res = context.getResources(); in init() local
75 final String[] predefinedLayoutSet = res.getStringArray(R.array.predefined_layouts); in init()
77 final String[] layoutDisplayNames = res.getStringArray( in init()
83 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in init()
87 final int noLanguageResId = res.getIdentifier( in init()
93 final String[] exceptionalLocales = res.getStringArray( in init()
95 final String[] exceptionalDisplayNames = res.getStringArray( in init()
101 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in init()
105 final String[] keyboardLayoutSetMap = res.getStringArray( in init()
[all …]
DLocaleUtils.java19 import android.content.res.Configuration;
20 import android.content.res.Resources;
167 protected abstract T job(Resources res); in job() argument
176 public T runInLocale(final Resources res, final Locale newLocale) { in runInLocale() argument
178 final Configuration conf = res.getConfiguration(); in runInLocale()
183 res.updateConfiguration(conf, null); in runInLocale()
185 return job(res); in runInLocale()
189 res.updateConfiguration(conf, null); in runInLocale()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DSubtypeLocaleTests.java20 import android.content.res.Resources;
96 protected Void job(Resources res) { in testPredefinedSubtypesInEnglish()
98 SubtypeLocale.getSubtypeDisplayName(EN_US, res)); in testPredefinedSubtypesInEnglish()
100 SubtypeLocale.getSubtypeDisplayName(EN_GB, res)); in testPredefinedSubtypesInEnglish()
102 SubtypeLocale.getSubtypeDisplayName(FR, res)); in testPredefinedSubtypesInEnglish()
104 SubtypeLocale.getSubtypeDisplayName(FR_CA, res)); in testPredefinedSubtypesInEnglish()
106 SubtypeLocale.getSubtypeDisplayName(DE, res)); in testPredefinedSubtypesInEnglish()
108 SubtypeLocale.getSubtypeDisplayName(ZZ, res)); in testPredefinedSubtypesInEnglish()
127 protected Void job(Resources res) { in testAdditionalSubtypesInEnglish()
129 SubtypeLocale.getSubtypeDisplayName(FR_QWERTZ, res)); in testAdditionalSubtypesInEnglish()
[all …]
/packages/apps/Settings/src/com/android/settings/
DAccountPreference.java92 int res; in getSyncStatusMessage() local
95 res = R.string.sync_enabled; in getSyncStatusMessage()
98 res = R.string.sync_disabled; in getSyncStatusMessage()
101 res = R.string.sync_error; in getSyncStatusMessage()
104 res = R.string.sync_in_progress; in getSyncStatusMessage()
107 res = R.string.sync_error; in getSyncStatusMessage()
110 return res; in getSyncStatusMessage()
114 int res; in getSyncStatusIcon() local
117 res = R.drawable.ic_sync_green_holo; in getSyncStatusIcon()
120 res = R.drawable.ic_sync_grey_holo; in getSyncStatusIcon()
[all …]
DUtils.java26 import android.content.res.Resources;
27 import android.content.res.Resources.NotFoundException;
176 Resources res = pm in updatePreferenceToSpecificActivityFromMetaDataOrRemove() local
180 if (res != null && metaData != null) { in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
181 icon = res.getDrawable(metaData.getInt(META_DATA_PREFERENCE_ICON)); in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
182 title = res.getString(metaData.getInt(META_DATA_PREFERENCE_TITLE)); in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
183 summary = res.getString(metaData.getInt(META_DATA_PREFERENCE_SUMMARY)); in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
237 Resources res = pm.getResourcesForApplication( in updateHeaderToSpecificActivityFromMetaDataOrRemove() local
241 if (res != null && metaData != null) { in updateHeaderToSpecificActivityFromMetaDataOrRemove()
242 icon = res.getDrawable(metaData.getInt(META_DATA_PREFERENCE_ICON)); in updateHeaderToSpecificActivityFromMetaDataOrRemove()
[all …]
DOwnerInfoSettings.java45 final ContentResolver res = getActivity().getContentResolver(); in initView() local
46 String info = Settings.Secure.getString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO); in initView()
47 int enabled = Settings.Secure.getInt(res, in initView()
56 Settings.Secure.putInt(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED, in initView()
70 ContentResolver res = getActivity().getContentResolver(); in saveToDb() local
72 Settings.Secure.putString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO, info); in saveToDb()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DDefaultSoftKeyboard.java27 import android.content.res.*;
638 Resources res = mWnn.getResources(); in updateIndicator() local
644 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_off)); in updateIndicator()
645 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
646 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
647 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
650 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_on)); in updateIndicator()
651 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
652 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
653 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
[all …]
DKeyboard.java25 import android.content.res.Resources;
26 import android.content.res.TypedArray;
27 import android.content.res.XmlResourceParser;
194 public Row(Resources res, Keyboard parent, XmlResourceParser parser) { in Row() argument
196 TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), in Row()
211 a = res.obtainAttributes(Xml.asAttributeSet(parser), in Row()
323 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { in Key() argument
329 TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), in Key()
342 a = res.obtainAttributes(Xml.asAttributeSet(parser), in Key()
385 a = res.obtainAttributes(Xml.asAttributeSet(parser), R.styleable.WnnKeyboard_Key); in Key()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DUtil.java23 import android.content.res.Resources;
47 public static Uri getResourceUri(Context packageContext, int res) { in getResourceUri() argument
50 return getResourceUri(resources, packageContext.getPackageName(), res); in getResourceUri()
52 Log.e(TAG, "Resource not found: " + res + " in " + packageContext.getPackageName()); in getResourceUri()
57 public static Uri getResourceUri(Context context, ApplicationInfo appInfo, int res) { in getResourceUri() argument
60 return getResourceUri(resources, appInfo.packageName, res); in getResourceUri()
65 Log.e(TAG, "Resource not found: " + res + " in " + appInfo.packageName); in getResourceUri()
70 private static Uri getResourceUri(Resources resources, String appPkg, int res) in getResourceUri() argument
72 String resPkg = resources.getResourcePackageName(res); in getResourceUri()
73 String type = resources.getResourceTypeName(res); in getResourceUri()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DAttachmentInfoDialog.java29 import android.content.res.Resources;
46 Resources res = context.getResources(); in newInstance() local
47 String title = res.getString(R.string.attachment_info_dialog_default_title); in newInstance()
48 String bodyText = res.getString(R.string.attachment_info_unknown); in newInstance()
57 bodyText = res.getString(R.string.attachment_info_malware); in newInstance()
59 bodyText = res.getString(R.string.attachment_info_policy); in newInstance()
61 bodyText = res.getString(R.string.attachment_info_no_intent); in newInstance()
63 bodyText = res.getString(R.string.attachment_info_sideload_disabled); in newInstance()
64 actionText = res.getString(R.string.attachment_info_application_settings); in newInstance()
69 bodyText = res.getString(R.string.attachment_info_apk_install_disabled); in newInstance()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DInterestingConfigChanges.java20 import android.content.res.Configuration;
21 import android.content.res.Resources;
27 boolean applyNewConfig(Resources res) { in applyNewConfig() argument
28 int configChanges = mLastConfiguration.updateFrom(res.getConfiguration()); in applyNewConfig()
29 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
32 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
/packages/apps/Camera/src/com/android/camera/
DIconListPreference.java20 import android.content.res.Resources;
21 import android.content.res.TypedArray;
37 Resources res = context.getResources(); in IconListPreference() local
40 mIconIds = getIds(res, a.getResourceId( in IconListPreference()
42 mLargeIconIds = getIds(res, a.getResourceId( in IconListPreference()
44 mImageIds = getIds(res, a.getResourceId( in IconListPreference()
73 private int[] getIds(Resources res, int iconsRes) { in getIds() argument
75 TypedArray array = res.obtainTypedArray(iconsRes); in getIds()
/packages/apps/LegacyCamera/src/com/android/camera/
DIconListPreference.java20 import android.content.res.Resources;
21 import android.content.res.TypedArray;
39 Resources res = context.getResources(); in IconListPreference() local
42 mIconIds = getIds(res, a.getResourceId( in IconListPreference()
44 mLargeIconIds = getIds(res, a.getResourceId( in IconListPreference()
46 mImageIds = getIds(res, a.getResourceId( in IconListPreference()
75 private int[] getIds(Resources res, int iconsRes) { in getIds() argument
77 TypedArray array = res.obtainTypedArray(iconsRes); in getIds()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DProvisionParser.java20 import android.content.res.Resources;
80 private void addPolicyString(StringBuilder sb, int res) { in addPolicyString() argument
81 sb.append(mResources.getString(res)); in addPolicyString()
118 int res = 0; in parseProvisionDocWbxml() local
173 res = R.string.policy_dont_allow_storage_cards; in parseProvisionDocWbxml()
176 res = R.string.policy_dont_allow_unsigned_apps; in parseProvisionDocWbxml()
179 res = R.string.policy_dont_allow_unsigned_installers; in parseProvisionDocWbxml()
182 res = R.string.policy_dont_allow_wifi; in parseProvisionDocWbxml()
185 res = R.string.policy_dont_allow_text_messaging; in parseProvisionDocWbxml()
188 res = R.string.policy_dont_allow_pop_imap; in parseProvisionDocWbxml()
[all …]
DSearch.java67 int res = 0; in searchMessages() local
69 if (account == null) return res; in searchMessages()
71 if (svc == null) return res; in searchMessages()
74 if (searchMailbox == null) return res; in searchMessages()
120 res = sp.getTotalResults(); in searchMessages()
144 return res; in searchMessages()
168 boolean res = false; in parse()
184 return res; in parse()
188 boolean res = false; in parseResponse()
196 return res; in parseResponse()
[all …]
DSettingsParser.java40 boolean res = false; in parse()
49 res = true; in parse()
52 res = false; in parse()
60 return res; in parse()
/packages/apps/Mms/src/com/android/mms/ui/
DMessageUtils.java53 import android.content.res.Resources;
145 Resources res = context.getResources(); in getNotificationIndDetails() local
160 details.append(res.getString(R.string.message_type_label)); in getNotificationIndDetails()
161 details.append(res.getString(R.string.multimedia_notification)); in getNotificationIndDetails()
166 details.append(res.getString(R.string.from_label)); in getNotificationIndDetails()
168 res.getString(R.string.hidden_sender_address)); in getNotificationIndDetails()
172 details.append(res.getString( in getNotificationIndDetails()
179 details.append(res.getString(R.string.subject_label)); in getNotificationIndDetails()
188 details.append(res.getString(R.string.message_class_label)); in getNotificationIndDetails()
193 details.append(res.getString(R.string.message_size_label)); in getNotificationIndDetails()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DAddAdapter.java20 import android.content.res.Resources;
54 public ListItem(Resources res, int textResourceId, int imageResourceId, int actionTag) { in ListItem() argument
55 text = res.getString(textResourceId); in ListItem()
57 image = res.getDrawable(imageResourceId); in ListItem()
71 Resources res = launcher.getResources(); in AddAdapter() local
73 mItems.add(new ListItem(res, R.string.group_wallpapers, in AddAdapter()
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DSoundRecorder.java31 import android.content.res.Configuration;
32 import android.content.res.Resources;
555 private int getPlaylistId(Resources res) { in getPlaylistId() argument
559 final String[] args = new String[] { res.getString(R.string.audio_db_playlist_name) }; in getPlaylistId()
578 private Uri createPlaylist(Resources res, ContentResolver resolver) { in createPlaylist() argument
580 cv.put(MediaStore.Audio.Playlists.NAME, res.getString(R.string.audio_db_playlist_name)); in createPlaylist()
597 Resources res = getResources(); in addToMediaDB() local
603 res.getString(R.string.audio_db_title_format)); in addToMediaDB()
618 res.getString(R.string.audio_db_artist_name)); in addToMediaDB()
620 res.getString(R.string.audio_db_album_name)); in addToMediaDB()
[all …]
/packages/apps/Music/src/com/android/music/
DMediaAppWidgetProvider.java25 import android.content.res.Resources;
67 final Resources res = context.getResources(); in defaultAppWidget() local
71 views.setTextViewText(R.id.artist, res.getText(R.string.widget_initial_text)); in defaultAppWidget()
113 final Resources res = service.getResources(); in performUpdate() local
125 errorState = res.getText(R.string.sdcard_busy_title); in performUpdate()
127 errorState = res.getText(R.string.sdcard_busy_title_nosdcard); in performUpdate()
131 errorState = res.getText(R.string.sdcard_missing_title); in performUpdate()
133 errorState = res.getText(R.string.sdcard_missing_title_nosdcard); in performUpdate()
136 errorState = res.getText(R.string.emptyplaylist); in performUpdate()
/packages/apps/Nfc/src/com/android/nfc/handover/
DConfirmConnectActivity.java8 import android.content.res.Resources;
22 Resources res = getResources(); in onCreate() local
24 String confirmString = String.format(res.getString(R.string.confirm_pairing), deviceName); in onCreate()
27 .setPositiveButton(res.getString(R.string.pair_yes), in onCreate()
36 .setNegativeButton(res.getString(R.string.pair_no), in onCreate()
/packages/apps/Browser/src/com/android/browser/view/
DPieMenu.java25 import android.content.res.Resources;
141 Resources res = ctx.getResources(); in init() local
142 mRadius = (int) res.getDimension(R.dimen.qc_radius_start); in init()
143 mRadiusInc = (int) res.getDimension(R.dimen.qc_radius_increment); in init()
144 mSlop = (int) res.getDimension(R.dimen.qc_slop); in init()
145 mTouchOffset = (int) res.getDimension(R.dimen.qc_touch_offset); in init()
150 mBackground = res.getDrawable(R.drawable.qc_background_normal); in init()
152 mNormalPaint.setColor(res.getColor(R.color.qc_normal)); in init()
155 mSelectedPaint.setColor(res.getColor(R.color.qc_selected)); in init()
159 mSubPaint.setColor(res.getColor(R.color.qc_sub)); in init()
[all …]

12345678910>>...20