/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 22 import android.content.res.Resources; 158 protected SettingsValues job(final Resources res) { in loadSettings() 159 return new SettingsValues(prefs, locale, res, inputAttributes); in loadSettings() 191 final Resources res) { in readKeypressSoundEnabled() argument 193 res.getBoolean(R.bool.config_default_sound_enabled)); in readKeypressSoundEnabled() 197 final Resources res) { in readVibrationEnabled() argument 200 res.getBoolean(R.bool.config_default_vibration_enabled)); in readVibrationEnabled() 204 final Resources res) { in readAutoCorrectEnabled() argument 205 final String autoCorrectionOff = res.getString( in readAutoCorrectEnabled() 211 final Resources res) { in readBlockPotentiallyOffensive() argument [all …]
|
D | SettingsValues.java | 20 import android.content.res.Configuration; 21 import android.content.res.Resources; 107 public SettingsValues(final SharedPreferences prefs, final Locale locale, final Resources res, in SettingsValues() argument 111 mDelayUpdateOldSuggestions = res.getInteger(R.integer.config_delay_update_old_suggestions); in SettingsValues() 113 StringUtils.toCodePointArray(res.getString(R.string.symbols_preceded_by_space)); in SettingsValues() 116 StringUtils.toCodePointArray(res.getString(R.string.symbols_followed_by_space)); in SettingsValues() 119 StringUtils.toCodePointArray(res.getString(R.string.symbols_word_connectors)); in SettingsValues() 121 final String[] suggestPuncsSpec = KeySpecParser.splitKeySpecs(res.getString( in SettingsValues() 124 mWordSeparators = res.getString(R.string.symbols_word_separators); in SettingsValues() 125 mSentenceSeparator = res.getInteger(R.integer.sentence_separator); in SettingsValues() [all …]
|
D | SettingsFragment.java | 26 import android.content.res.Resources; 100 final Resources res = getResources(); in onCreate() local 167 final boolean showVoiceKeyOption = res.getBoolean( in onCreate() 182 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupSettingsOption(res)) { in onCreate() 186 final String popupDismissDelayDefaultValue = Integer.toString(res.getInteger( in onCreate() 189 res.getString(R.string.key_preview_popup_dismiss_no_delay), in onCreate() 190 res.getString(R.string.key_preview_popup_dismiss_default_delay), in onCreate() 200 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate() 203 if (!res.getBoolean(R.bool.config_setup_wizard_available)) { in onCreate() 231 if (!Settings.readFromBuildConfigIfGestureInputEnabled(res)) { in onCreate() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | DefaultSoftKeyboard.java | 27 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 …]
|
D | Keyboard.java | 25 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/Mms/src/com/android/mms/ui/ |
D | MessageUtils.java | 35 import android.content.res.Resources; 174 Resources res = context.getResources(); in getNotificationIndDetails() local 189 details.append(res.getString(R.string.message_type_label)); in getNotificationIndDetails() 190 details.append(res.getString(R.string.multimedia_notification)); in getNotificationIndDetails() 195 details.append(res.getString(R.string.from_label)); in getNotificationIndDetails() 197 res.getString(R.string.hidden_sender_address)); in getNotificationIndDetails() 201 details.append(res.getString( in getNotificationIndDetails() 208 details.append(res.getString(R.string.subject_label)); in getNotificationIndDetails() 217 details.append(res.getString(R.string.message_class_label)); in getNotificationIndDetails() 222 details.append(res.getString(R.string.message_size_label)); in getNotificationIndDetails() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | Mutex.cpp | 39 int res = pthread_mutex_init (&mMutex, NULL); in Mutex() local 40 if (res != 0) in Mutex() 42 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); in Mutex() 58 int res = pthread_mutex_destroy (&mMutex); in ~Mutex() local 59 if (res != 0) in ~Mutex() 61 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res); in ~Mutex() 77 int res = pthread_mutex_lock (&mMutex); in lock() local 78 if (res != 0) in lock() 80 ALOGE ("Mutex::lock: fail lock; error=0x%X", res); in lock() 96 int res = pthread_mutex_unlock (&mMutex); in unlock() local [all …]
|
D | CondVar.cpp | 40 int const res = pthread_cond_init (&mCondition, NULL); in CondVar() local 41 if (res) in CondVar() 43 ALOGE ("CondVar::CondVar: fail init; error=0x%X", res); in CondVar() 59 int const res = pthread_cond_destroy (&mCondition); in ~CondVar() local 60 if (res) in ~CondVar() 62 ALOGE ("CondVar::~CondVar: fail destroy; error=0x%X", res); in ~CondVar() 78 int const res = pthread_cond_wait (&mCondition, mutex.nativeHandle()); in wait() local 79 if (res) in wait() 81 ALOGE ("CondVar::wait: fail wait; error=0x%X", res); in wait() 141 int const res = pthread_cond_signal (&mCondition); in notifyOne() local [all …]
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | WidgetUtils.java | 21 import android.content.res.Configuration; 22 import android.content.res.Resources; 58 Resources res = context.getResources(); in getScaleRatio() local 59 float density = res.getDisplayMetrics().density; in getScaleRatio() 60 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); in getScaleRatio() 64 < res.getDimension(R.dimen.min_digital_widget_height)) { in getScaleRatio() 88 Resources res = context.getResources(); in getHeightScaleRatio() local 89 float density = res.getDisplayMetrics().density; in getHeightScaleRatio() 91 float lblBox = 1.35f * res.getDimension(R.dimen.label_font_size); in getHeightScaleRatio() 93 if (res.getDimension(R.dimen.min_digital_widget_height) - lblBox > 0) { in getHeightScaleRatio() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | ProvisionParser.java | 20 import android.content.res.Resources; 85 private void addPolicyString(StringBuilder sb, int res) { in addPolicyString() argument 86 sb.append(mResources.getString(res)); in addPolicyString() 123 int res = 0; in parseProvisionDocWbxml() local 178 res = R.string.policy_dont_allow_storage_cards; in parseProvisionDocWbxml() 181 res = R.string.policy_dont_allow_unsigned_apps; in parseProvisionDocWbxml() 184 res = R.string.policy_dont_allow_unsigned_installers; in parseProvisionDocWbxml() 187 res = R.string.policy_dont_allow_wifi; in parseProvisionDocWbxml() 190 res = R.string.policy_dont_allow_text_messaging; in parseProvisionDocWbxml() 193 res = R.string.policy_dont_allow_pop_imap; in parseProvisionDocWbxml() [all …]
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | SoundRecorder.java | 31 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/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationItemViewCoordinates.java | 21 import android.content.res.Resources; 296 final Resources res = context.getResources(); in ConversationItemViewCoordinates() local 297 mFolderCellWidth = res.getDimensionPixelSize(R.dimen.folder_cell_width); in ConversationItemViewCoordinates() 298 mMinListWidthForWide = res.getDimensionPixelSize(R.dimen.list_min_width_is_wide); in ConversationItemViewCoordinates() 299 mMinListWidthIsSpacious = res.getDimensionPixelSize( in ConversationItemViewCoordinates() 301 mFolderMinimumWidth = res.getDimensionPixelSize(R.dimen.folder_minimum_width); in ConversationItemViewCoordinates() 303 mMode = calculateMode(res, config); in ConversationItemViewCoordinates() 429 foldersTextBottomPadding = res in ConversationItemViewCoordinates() 555 private int calculateMode(Resources res, Config config) { in calculateMode() argument 561 return res.getInteger(R.integer.conversation_list_search_header_mode); in calculateMode() [all …]
|
D | ConversationItemView.java | 28 import android.content.res.Resources; 412 final Resources res = mContext.getResources(); in ConversationItemView() local 413 mTabletDevice = Utils.useTabletUI(res); in ConversationItemView() 415 mTabletDevice ? res.getBoolean(R.bool.use_expansive_tablet_ui) : false; in ConversationItemView() 416 mListCollapsible = res.getBoolean(R.bool.list_collapsible); in ConversationItemView() 421 STAR_OFF = BitmapFactory.decodeResource(res, R.drawable.ic_btn_star_off); in ConversationItemView() 422 STAR_ON = BitmapFactory.decodeResource(res, R.drawable.ic_btn_star_on); in ConversationItemView() 423 CHECK = BitmapFactory.decodeResource(res, R.drawable.ic_avatar_check); in ConversationItemView() 424 ATTACHMENT = BitmapFactory.decodeResource(res, R.drawable.ic_attachment_holo_light); in ConversationItemView() 425 ONLY_TO_ME = BitmapFactory.decodeResource(res, R.drawable.ic_email_caret_double); in ConversationItemView() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 32 import android.content.res.Resources; 33 import android.content.res.Resources.NotFoundException; 206 Resources res = pm in updatePreferenceToSpecificActivityFromMetaDataOrRemove() local 210 if (res != null && metaData != null) { in updatePreferenceToSpecificActivityFromMetaDataOrRemove() 211 icon = res.getDrawable(metaData.getInt(META_DATA_PREFERENCE_ICON)); in updatePreferenceToSpecificActivityFromMetaDataOrRemove() 212 title = res.getString(metaData.getInt(META_DATA_PREFERENCE_TITLE)); in updatePreferenceToSpecificActivityFromMetaDataOrRemove() 213 summary = res.getString(metaData.getInt(META_DATA_PREFERENCE_SUMMARY)); in updatePreferenceToSpecificActivityFromMetaDataOrRemove() 267 Resources res = pm.getResourcesForApplication( in updateHeaderToSpecificActivityFromMetaDataOrRemove() local 271 if (res != null && metaData != null) { in updateHeaderToSpecificActivityFromMetaDataOrRemove() 272 icon = res.getDrawable(metaData.getInt(META_DATA_PREFERENCE_ICON)); in updateHeaderToSpecificActivityFromMetaDataOrRemove() [all …]
|
D | AccountPreference.java | 92 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 …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ResourceUtils.java | 19 import android.content.res.Resources; 20 import android.content.res.TypedArray; 70 public static String getDeviceOverrideValue(final Resources res, final int overrideResId) { in getDeviceOverrideValue() argument 71 final int orientation = res.getConfiguration().orientation; in getDeviceOverrideValue() 77 final String[] overrideArray = res.getStringArray(overrideResId); in getDeviceOverrideValue() 82 + " resource="+ res.getResourceEntryName(overrideResId) in getDeviceOverrideValue() 95 + " resource="+ res.getResourceEntryName(overrideResId) in getDeviceOverrideValue() 99 + " resource="+ res.getResourceEntryName(overrideResId) in getDeviceOverrideValue() 220 public static int getDefaultKeyboardWidth(final Resources res) { in getDefaultKeyboardWidth() argument 221 final DisplayMetrics dm = res.getDisplayMetrics(); in getDefaultKeyboardWidth() [all …]
|
D | SubtypeLocaleUtils.java | 23 import android.content.res.Resources; 82 final Resources res = context.getResources(); in init() 83 sResources = res; in init() 85 final String[] predefinedLayoutSet = res.getStringArray(R.array.predefined_layouts); in init() 87 final String[] layoutDisplayNames = res.getStringArray( in init() 93 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in init() 97 final int noLanguageResId = res.getIdentifier( in init() 103 final String[] exceptionalLocales = res.getStringArray( in init() 108 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in init() 112 final int resIdWithLayout = res.getIdentifier( in init() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 726 boolean res; in matchRecipientMms() 732 res = true; in matchRecipientMms() 737 res = true; in matchRecipientMms() 739 res = false; in matchRecipientMms() 743 res = false; in matchRecipientMms() 745 return res; in matchRecipientMms() 749 boolean res; in matchRecipientSms() 756 res = true; in matchRecipientSms() 759 res = true; in matchRecipientSms() 761 res = false; in matchRecipientSms() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | PieRenderer.java | 23 import android.content.res.Resources; 192 Resources res = ctx.getResources(); in init() local 193 mRadius = (int) res.getDimensionPixelSize(R.dimen.pie_radius_start); in init() 194 mRadiusInc = (int) res.getDimensionPixelSize(R.dimen.pie_radius_increment); in init() 195 mCircleSize = mRadius - res.getDimensionPixelSize(R.dimen.focus_radius_offset); in init() 196 mTouchOffset = (int) res.getDimensionPixelSize(R.dimen.pie_touch_offset); in init() 213 mInnerOffset = res.getDimensionPixelSize(R.dimen.focus_inner_offset); in init() 214 mOuterStroke = res.getDimensionPixelSize(R.dimen.focus_outer_stroke); in init() 215 mInnerStroke = res.getDimensionPixelSize(R.dimen.focus_inner_stroke); in init() 226 mSliceRadius = res.getDimensionPixelSize(R.dimen.pie_item_radius); in init() [all …]
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | PieMenu.java | 25 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 …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadNotifier.java | 32 import android.content.res.Resources; 125 final Resources res = mContext.getResources(); in updateWithLocked() local 221 percentText = res.getString(R.string.download_percent, percent); in updateWithLocked() 225 remainingText = res.getString(R.string.download_remaining, in updateWithLocked() 240 builder.setContentTitle(getDownloadTitle(res, info)); in updateWithLocked() 252 res.getString(R.string.notification_need_wifi_for_size)); in updateWithLocked() 256 builder.setContentText(res.getText(R.string.notification_download_failed)); in updateWithLocked() 259 res.getText(R.string.notification_download_complete)); in updateWithLocked() 269 inboxStyle.addLine(getDownloadTitle(res, info)); in updateWithLocked() 273 builder.setContentTitle(res.getQuantityString( in updateWithLocked() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | PieRenderer.java | 22 import android.content.res.Resources; 157 Resources res = ctx.getResources(); in init() local 158 mRadius = (int) res.getDimensionPixelSize(R.dimen.pie_radius_start); in init() 159 mCircleSize = mRadius - res.getDimensionPixelSize(R.dimen.focus_radius_offset); in init() 160 mRadiusInc = (int) res.getDimensionPixelSize(R.dimen.pie_radius_increment); in init() 161 mTouchOffset = (int) res.getDimensionPixelSize(R.dimen.pie_touch_offset); in init() 179 mInnerOffset = res.getDimensionPixelSize(R.dimen.focus_inner_offset); in init() 180 mOuterStroke = res.getDimensionPixelSize(R.dimen.focus_outer_stroke); in init() 181 mInnerStroke = res.getDimensionPixelSize(R.dimen.focus_inner_stroke); in init() 552 PointF res = new PointF(); in getPolar() local [all …]
|
D | Switch.java | 21 import android.content.res.ColorStateList; 22 import android.content.res.Resources; 23 import android.content.res.TypedArray; 122 Resources res = getResources(); in Switch() local 123 DisplayMetrics dm = res.getDisplayMetrics(); in Switch() 125 mThumbDrawable = res.getDrawable(R.drawable.switch_inner_holo_dark); in Switch() 126 mTrackDrawable = res.getDrawable(R.drawable.switch_track_holo_dark); in Switch() 127 mTextOn = res.getString(R.string.capital_on); in Switch() 128 mTextOff = res.getString(R.string.capital_off); in Switch() 129 mThumbTextPadding = res.getDimensionPixelSize(R.dimen.thumb_text_padding); in Switch() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | Util.java | 23 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/DeskClock/src/com/android/deskclock/ |
D | AlarmTimelineView.java | 20 import android.content.res.Resources; 217 final Resources res = context.getResources(); in init() local 219 mAlarmTimelineColor = res.getColor(R.color.alarm_timeline_color); in init() 220 mAlarmTimelineLength = res.getDimensionPixelOffset(R.dimen.alarm_timeline_length); in init() 221 mAlarmTimelineMarginTop = res.getDimensionPixelOffset(R.dimen.alarm_timeline_margin_top); in init() 222 mAlarmTimelineMarginBottom = res.getDimensionPixelOffset(R.dimen.footer_button_size) + in init() 223 2 * res.getDimensionPixelOffset(R.dimen.footer_button_layout_margin); in init() 224 mAlarmNodeRadius = res.getDimensionPixelOffset(R.dimen.alarm_timeline_radius); in init() 225 mAlarmNodeInnerRadius = res.getDimensionPixelOffset(R.dimen.alarm_timeline_inner_radius); in init() 226 mAlarmNodeInnerRadiusColor = res.getColor(R.color.blackish); in init() [all …]
|