/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | Config.java | 103 String[] corpora = mContext.getResources().getStringArray(res); in loadResourceStringSet() 163 return mContext.getResources().getInteger(R.integer.num_suggestions_above_keyboard); in getNumSuggestionsAboveKeyboard() 170 return mContext.getResources().getInteger(R.integer.max_promoted_suggestions); in getMaxPromotedSuggestions() 174 return mContext.getResources().getInteger(R.integer.max_promoted_results); in getMaxPromotedResults() 188 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_web_source); in getMaxShortcutsPerWebSource() 195 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_non_web_source); in getMaxShortcutsPerNonWebSource() 317 return mContext.getResources().getBoolean(R.bool.show_zero_query_suggestions); in showSuggestionsForZeroQuery() 322 return mContext.getResources().getBoolean(R.bool.show_zero_query_shortcuts); in showShortcutsForZeroQuery() 326 return mContext.getResources().getBoolean(R.bool.show_scrolling_suggestions); in showScrollingSuggestions() 330 return mContext.getResources().getBoolean(R.bool.show_scrolling_results); in showScrollingResults()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | CircleButtonsLinearLayout.java | 50 mLeftButtonPadding = mContext.getResources().getDimension(leftButtonPaddingDimenId); in setCircleTimerViewIds() 51 mRightButtonPadding = mContext.getResources().getDimension(rightButtonPaddingDimenId); in setCircleTimerViewIds() 54 mContext.getResources().getDimension(R.dimen.circletimer_diamond_size); in setCircleTimerViewIds() 56 mContext.getResources().getDimension(R.dimen.circletimer_marker_size); in setCircleTimerViewIds() 57 mStrokeSize = mContext.getResources().getDimension(R.dimen.circletimer_circle_size); in setCircleTimerViewIds() 165 - (int) mContext.getResources().getDimension(R.dimen.timer_button_extra_offset); in remeasureViews()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | WidgetUtils.java | 33 float fontSize = context.getResources().getDimension(R.dimen.widget_big_font_size); in setClockSize() 52 Resources res = context.getResources(); in getScaleRatio() 71 Resources res = context.getResources(); in getHeightScaleRatio() 88 int neededSize = (int) context.getResources(). in showList()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | CameraSwitcher.java | 76 mItemSize = context.getResources().getDimensionPixelSize(R.dimen.switcher_size); in init() 78 mIndicator = context.getResources().getDrawable(R.drawable.ic_switcher_menu_indicator); in init() 135 item.setContentDescription(getContext().getResources().getString( in initPopup() 139 item.setContentDescription(getContext().getResources().getString( in initPopup() 143 item.setContentDescription(getContext().getResources().getString( in initPopup() 147 item.setContentDescription(getContext().getResources().getString( in initPopup() 214 if (getResources().getConfiguration().orientation in updateInitialTranslations()
|
/packages/apps/Mms/src/com/android/mms/layout/ |
D | HVGALayoutParameters.java | 48 float scale = context.getResources().getDisplayMetrics().density; in HVGALayoutParameters() 49 mMaxWidth = (int) (context.getResources().getConfiguration().screenWidthDp * scale + 0.5f); in HVGALayoutParameters() 51 (int) (context.getResources().getConfiguration().screenHeightDp * scale + 0.5f); in HVGALayoutParameters()
|
/packages/apps/Contacts/src/com/android/contacts/preference/ |
D | ContactsPreferences.java | 50 return mContext.getResources().getBoolean(R.bool.config_sort_order_user_changeable); in isSortOrderUserChangeable() 54 if (mContext.getResources().getBoolean(R.bool.config_default_sort_order_primary)) { in getDefaultSortOrder() 84 return mContext.getResources().getBoolean(R.bool.config_display_order_user_changeable); in isDisplayOrderUserChangeable() 88 if (mContext.getResources().getBoolean(R.bool.config_default_display_order_primary)) { in getDefaultDisplayOrder()
|
D | ContactsPreferenceActivity.java | 61 return !context.getResources().getBoolean(R.bool.config_sort_order_user_changeable) in isEmpty() 62 && !context.getResources().getBoolean(R.bool.config_display_order_user_changeable); in isEmpty()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ConversationListItem.java | 76 … sDefaultContactImage = context.getResources().getDrawable(R.drawable.ic_contact_picture); in ConversationListItem() 113 buf.append(mContext.getResources().getString(R.string.message_count_format, in formatMessage() 116 mContext.getResources().getColor(R.color.message_count_color)), in formatMessage() 120 buf.append(mContext.getResources().getString(R.string.draft_separator)); in formatMessage() 123 buf.append(mContext.getResources().getString(R.string.has_draft)); in formatMessage() 128 mContext.getResources().getColor(R.drawable.text_color_red)), in formatMessage() 234 Drawable background = mContext.getResources().getDrawable(backgroundId); in updateBackground()
|
/packages/apps/Email/src/com/android/email/ |
D | FolderProperties.java | 54 mSpecialMailbox = context.getResources().getStringArray(R.array.mailbox_display_names); in FolderProperties() 62 context.getResources().obtainTypedArray(R.array.mailbox_display_icons); in FolderProperties() 64 context.getResources().getDrawable(R.drawable.ic_menu_star_holo_light); in FolderProperties() 66 context.getResources().getDrawable(R.drawable.ic_list_combined_inbox); in FolderProperties() 219 return mContext.getResources().getDrawable(resId);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Cling.java | 94 Resources r = getContext().getResources(); in init() 210 mBackground = getResources().getDrawable(R.drawable.bg_cling1); in dispatchDraw() 214 mBackground = getResources().getDrawable(R.drawable.bg_cling2); in dispatchDraw() 217 mBackground = getResources().getDrawable(R.drawable.bg_cling3); in dispatchDraw() 219 mBackground = getResources().getDrawable(R.drawable.bg_cling4); in dispatchDraw() 221 mBackground = getResources().getDrawable(R.drawable.bg_cling5); in dispatchDraw() 254 mHandTouchGraphic = getResources().getDrawable(R.drawable.hand); in dispatchDraw()
|
D | LauncherApplication.java | 47 sIsScreenLarge = getResources().getBoolean(R.bool.is_large_screen); in onCreate() 48 sScreenDensity = getResources().getDisplayMetrics().density; in onCreate() 134 return context.getResources().getConfiguration().orientation == in isScreenLandscape()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BookmarkUtils.java | 71 Resources res = context.getResources(); in createListFaviconBackground() 74 faviconBackground.getPaint().setColor(context.getResources() in createListFaviconBackground() 140 Drawable drawable = context.getResources().getDrawableForDensity( in getIconBackground() 149 Drawable drawable = context.getResources().getDrawableForDensity( in getIconBackground() 187 p.setColor(context.getResources() in drawFaviconToCanvas() 194 int faviconDimension = context.getResources().getDimensionPixelSize(R.dimen.favicon_size); in drawFaviconToCanvas() 199 faviconPaddedRectDimension = context.getResources().getDimensionPixelSize( in drawFaviconToCanvas()
|
/packages/apps/Phone/src/com/android/phone/ |
D | EnableIccPinScreen.java | 74 setTitle(getResources().getText(id)); in onCreate() 112 showStatus(getResources().getText( in handleResult() 118 showStatus(getResources().getText( in handleResult() 135 showStatus(getResources().getText(
|
D | EnableFdnScreen.java | 74 setTitle(getResources().getText(id)); in onCreate() 117 showStatus(getResources().getText(mEnable ? in handleResult() 123 showStatus(getResources().getText( in handleResult() 140 showStatus(getResources().getText(
|
D | NetworkSetting.java | 282 dialog.setMessage(getResources().getString(R.string.register_automatically)); in onCreateDialog() 289 dialog.setMessage(getResources().getString(R.string.load_networks_progress)); in onCreateDialog() 315 mNetworkSelectMsg = getResources().getString(R.string.register_on_network, networkStr); in displayNetworkSeletionInProgress() 323 String status = getResources().getString(R.string.network_query_error); in displayNetworkQueryFailed() 337 status = getResources().getString(R.string.not_allowed); in displayNetworkSelectionFailed() 339 status = getResources().getString(R.string.connect_later); in displayNetworkSelectionFailed() 348 String status = getResources().getString(R.string.registration_done); in displayNetworkSelectionSucceeded()
|
D | EditFdnContactScreen.java | 165 Resources r = getResources(); in onCreateOptionsMenu() 292 showStatus(getResources().getText(R.string.adding_fdn_contact)); in addContact() 317 showStatus(getResources().getText(R.string.updating_fdn_contact)); in updateContact() 366 showStatus(getResources().getText(mAddContact ? in handleResult() 371 showStatus(getResources().getText(R.string.fdn_invalid_number)); in handleResult() 375 showStatus(getResources().getText(R.string.pin2_or_fdn_invalid)); in handleResult()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | Settings.java | 104 final String autoCorrectionOff = getResources().getString( in ensureConsistencyOfAutoCorrectionSettings() 117 final Resources res = getResources(); in onCreate() 283 final boolean gestureInputEnabledByConfig = getResources().getBoolean( in onSharedPreferenceChanged() 298 refreshEnablingsOfKeypressSoundAndVibrationSettings(prefs, getResources()); in onSharedPreferenceChanged() 303 getResources().getStringArray(R.array.prefs_suggestion_visibilities) in updateShowCorrectionSuggestionsSummary() 312 final Resources res = getResources(); in updateCustomInputStylesSummary() 333 getResources().getStringArray(R.array.voice_input_modes_summary) in updateVoiceModeSummary() 367 final Resources res = context.getResources(); in showKeypressVibrationDurationSettingsDialog() 388 getPreferenceManager().getSharedPreferences(), getResources()); in showKeypressVibrationDurationSettingsDialog() 425 final Resources res = context.getResources(); in showKeypressSoundVolumeSettingDialog()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/ |
D | SearchableItemsController.java | 76 private Resources getResources() { in getResources() method in SearchableItemsController 77 return getContext().getResources(); in getResources() 86 getResources().getBoolean(R.bool.show_non_all_corpora_in_settings); in populateSourcePreference()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DeviceInfoSettings.java | 90 String status = getResources().getString(R.string.selinux_status_disabled); in onCreate() 93 String status = getResources().getString(R.string.selinux_status_permissive); in onCreate() 194 mDevHitToast = Toast.makeText(getActivity(), getResources().getQuantityString( in onPreferenceTreeClick() 225 if (!getResources().getBoolean(resId)) { in removePreferenceIfBoolFalse() 238 getResources().getString(R.string.device_info_default)); in setStringSummary() 246 getResources().getString(R.string.device_info_default))); in setValueSummary()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | ExpandableTextView.java | 55 mMaxCollapsedLines = getResources().getInteger((R.integer.event_info_desc_line_num)); in init() 56 mExpandDrawable = getResources().getDrawable(R.drawable.ic_expand_small_holo_light); in init() 57 mCollapseDrawable = getResources().getDrawable(R.drawable.ic_collapse_small_holo_light); in init()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | FaceView.java | 53 mDrawableFocusing = getResources().getDrawable(R.drawable.ic_focus_focusing); in FaceView() 54 mDrawableFocused = getResources().getDrawable(R.drawable.ic_focus_face_focused); in FaceView() 55 mDrawableFocusFailed = getResources().getDrawable(R.drawable.ic_focus_failed); in FaceView()
|
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | LocaleTestUtils.java | 86 mSavedContextLocale = setResourcesLocale(mContext.getResources(), locale); in setLocale() 100 setResourcesLocale(mContext.getResources(), mSavedContextLocale); in restoreLocale()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | UiUtilities.java | 35 final Resources res = context.getResources(); in formatSize() 174 return context.getResources().getBoolean(R.bool.use_two_pane); in useTwoPane() 181 return context.getResources().getBoolean(R.bool.show_two_pane_search_result); in showTwoPaneSearchResults()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatterySipper.java | 73 icon = mContext.getResources().getDrawable(iconId); in BatterySipper() 115 name = mContext.getResources().getString(R.string.process_kernel_label); in getQuickNameIconForUid() 117 name = mContext.getResources().getString(R.string.process_mediaserver_label); in getQuickNameIconForUid() 120 icon = mContext.getResources().getDrawable(iconId); in getQuickNameIconForUid()
|
/packages/apps/Music/src/com/android/music/ |
D | VerticalTextSpinner.java | 106 float scale = getResources().getDisplayMetrics().density; in VerticalTextSpinner() 117 mBackgroundFocused = context.getResources().getDrawable(R.drawable.pickerbox_background); in VerticalTextSpinner() 118 mSelectorFocused = context.getResources().getDrawable(R.drawable.pickerbox_selected); in VerticalTextSpinner() 119 mSelectorNormal = context.getResources().getDrawable(R.drawable.pickerbox_unselected); in VerticalTextSpinner() 131 mTextPaintDark.setColor(context.getResources() in VerticalTextSpinner() 136 mTextPaintLight.setColor(context.getResources() in VerticalTextSpinner()
|