/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/Stk/src/com/android/stk/ |
D | StkAppService.java | 462 m.text = getResources().getString(R.string.default_close_channel_msg); in handleCmd() 465 m.text = getResources().getString(R.string.default_receive_data_msg); in handleCmd() 468 m.text = getResources().getString(R.string.default_send_data_msg); in handleCmd() 784 .getResources().getSystem(), in launchIdleText() 811 msg.title = getResources().getString(R.string.stk_dialog_title); in launchOpenChannelDialog() 813 msg.text = getResources().getString(R.string.default_open_channel_msg); in launchOpenChannelDialog() 821 .setPositiveButton(getResources().getString(R.string.stk_dialog_accept), in launchOpenChannelDialog() 833 .setNegativeButton(getResources().getString(R.string.stk_dialog_reject), in launchOpenChannelDialog() 848 if (!mContext.getResources().getBoolean( in launchOpenChannelDialog() 863 msg.title = getResources().getString(R.string.stk_dialog_title); in launchTransientEventMessage() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | CameraSwitcher.java | 77 mItemSize = context.getResources().getDimensionPixelSize(R.dimen.switcher_size); in init() 79 mIndicator = context.getResources().getDrawable(R.drawable.ic_switcher_menu_indicator); in init() 137 item.setContentDescription(getContext().getResources().getString( in initPopup() 141 item.setContentDescription(getContext().getResources().getString( in initPopup() 145 item.setContentDescription(getContext().getResources().getString( in initPopup() 149 item.setContentDescription(getContext().getResources().getString( in initPopup() 216 if (getResources().getConfiguration().orientation in updateInitialTranslations()
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | SoundRecorder.java | 347 mTimerFormat = getResources().getString(R.string.timer_format); in initResourceRefs() 377 mErrorUiMessage = getResources().getString(R.string.insert_sd_card); in onClick() 381 mErrorUiMessage = getResources().getString(R.string.storage_is_full); in onClick() 597 Resources res = getResources(); in addToMediaDB() 652 Resources res = getResources(); in updateTimerView() 686 = getResources().getString(R.string.storage_is_full); in updateTimeRemaining() 690 = getResources().getString(R.string.max_length_reached); in updateTimeRemaining() 701 Resources res = getResources(); in updateTimeRemaining() 716 Resources res = getResources(); in updateUi() 840 Resources res = getResources(); in onError()
|
/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/Settings/src/com/android/settings/ |
D | RadioInfo.java | 449 Resources r = getResources(); in updateSignalStrength() 471 Resources r = getResources(); in updateLocation() 559 Resources r = getResources(); in updateServiceState() 589 Resources r = getResources(); in updatePhoneState() 610 Resources r = getResources(); in updateDataState() 632 Resources r = getResources(); in updateNetworkType() 642 Resources r = getResources(); in updateProperties() 674 Resources r = getResources(); in updateDataStats2() 757 mPingIpAddrResult = getResources().getString(R.string.radioInfo_unknown); in updatePingState() 758 mPingHostnameResult = getResources().getString(R.string.radioInfo_unknown); in updatePingState() [all …]
|
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() 197 mDevHitToast = Toast.makeText(getActivity(), getResources().getQuantityString( in onPreferenceTreeClick() 228 if (!getResources().getBoolean(resId)) { in removePreferenceIfBoolFalse() 241 getResources().getString(R.string.device_info_default)); in setStringSummary() 249 getResources().getString(R.string.device_info_default))); in setValueSummary()
|
D | ChooseLockPassword.java | 336 return String.format(getResources().getQuantityString( in validatePassword() 340 return String.format(getResources().getQuantityString( in validatePassword() 344 return String.format(getResources().getQuantityString( in validatePassword() 348 return String.format(getResources().getQuantityString( in validatePassword() 352 return String.format(getResources().getQuantityString( in validatePassword() 356 return String.format(getResources().getQuantityString( in validatePassword()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | SendUi.java | 322 final int statusBarHeight = mContext.getResources().getDimensionPixelSize( in showPreSend() 335 mTextHint.setText(mContext.getResources().getString(R.string.touch)); in showPreSend() 346 int orientation = mContext.getResources().getConfiguration().orientation; in showPreSend() 553 boolean hasNavBar = mContext.getResources().getBoolean( in createScreenshot() 558 final int statusBarHeight = mContext.getResources().getDimensionPixelSize( in createScreenshot() 562 final int navBarHeight = hasNavBar ? mContext.getResources().getDimensionPixelSize( in createScreenshot() 564 final int navBarHeightLandscape = hasNavBar ? mContext.getResources().getDimensionPixelSize( in createScreenshot() 567 final int navBarWidth = hasNavBar ? mContext.getResources().getDimensionPixelSize( in createScreenshot() 725 mTextRetry.setText(mContext.getResources().getString(R.string.beam_try_again)); in showSendHint()
|
/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()
|
D | BrowserSettings.java | 185 DisplayMetrics metrics = mContext.getResources().getDisplayMetrics(); 228 sFactoryResetUrl = mContext.getResources().getString(R.string.homepage_base); 885 return context.getResources().getString(R.string.pref_data_preload_value_wifi_only); in getPreloadOnWifiOnlyPreferenceString() 889 return context.getResources().getString(R.string.pref_data_preload_value_always); in getPreloadAlwaysPreferenceString() 899 preload = mContext.getResources().getString(R.string.pref_data_preload_default_value); in getDefaultPreloadSetting() 909 return context.getResources().getString(R.string.pref_link_prefetch_value_wifi_only); in getLinkPrefetchOnWifiOnlyPreferenceString() 913 return context.getResources().getString(R.string.pref_link_prefetch_value_always); in getLinkPrefetchAlwaysPreferenceString() 923 preload = mContext.getResources().getString(R.string.pref_link_prefetch_default_value); in getDefaultLinkPrefetchSetting()
|
/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()
|
/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/Phone/src/com/android/phone/ |
D | NetworkSetting.java | 289 dialog.setMessage(getResources().getString(R.string.register_automatically)); in onCreateDialog() 296 dialog.setMessage(getResources().getString(R.string.load_networks_progress)); in onCreateDialog() 322 mNetworkSelectMsg = getResources().getString(R.string.register_on_network, networkStr); in displayNetworkSeletionInProgress() 330 String status = getResources().getString(R.string.network_query_error); in displayNetworkQueryFailed() 344 status = getResources().getString(R.string.not_allowed); in displayNetworkSelectionFailed() 346 status = getResources().getString(R.string.connect_later); in displayNetworkSelectionFailed() 355 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/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterRS.java | 74 createFilter(pipeline.getResources(), getEnvironment().getScaleFactor(), in apply() 109 Resources rsc = pipeline.getResources(); in apply() 153 mGreyConvert = new ScriptC_grey(RS, RS.getApplicationContext().getResources(), in convertRGBAtoA() 176 Resources res = CachingPipeline.getResources(); in loadScaledResourceAlpha() 189 Resources res = CachingPipeline.getResources(); in loadScaledResourceAlpha() 208 Resources res = CachingPipeline.getResources(); in loadResource()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | SettingsFragment.java | 86 final Resources res = getResources(); in onCreate() 248 final Resources res = getResources(); in onSharedPreferenceChanged() 262 refreshEnablingsOfKeypressSoundAndVibrationSettings(prefs, getResources()); in onSharedPreferenceChanged() 266 final String autoCorrectionOff = getResources().getString( in ensureConsistencyOfAutoCorrectionSettings() 274 getResources().getStringArray(R.array.prefs_suggestion_visibilities) in updateShowCorrectionSuggestionsSummary() 283 final Resources res = getResources(); in updateCustomInputStylesSummary() 304 getResources().getStringArray(R.array.voice_input_modes_summary) in updateVoiceModeSummary()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
D | IngestService.java | 147 .setContentText(getResources().getText(R.string.ingest_scanning_done)); in setClientActivity() 184 .setContentText(getResources().getText(R.string.ingest_importing)); in importSelectedItems() 219 .setContentText(getResources().getText(R.string.ingest_importing)); in onImportProgress() 236 .setContentText(getResources().getText(R.string.import_complete)); in onImportFinish() 255 .setContentText(getResources().getText(R.string.ingest_scanning)); in onObjectIndexed() 274 .setContentText(getResources().getText(R.string.ingest_scanning_done)); in onIndexFinish()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchFragment.java | 99 mBackgroundColor = getResources().getColor(R.color.blackish); in LapsListAdapter() 100 mFormats = context.getResources().getStringArray(R.array.stopwatch_format_set); in LapsListAdapter() 101 mLapFormatSet = context.getResources().getStringArray(R.array.sw_lap_number_set); in LapsListAdapter() 486 shareOptionThreeTitles.add(getResources().getString(R.string.see_all)); in showSharePopup() 487 shareOptionThreeIcons.add(getResources().getDrawable(android.R.color.transparent)); in showSharePopup() 513 if (label.equals(getResources().getString(R.string.see_all))) { in showSharePopup() 534 mSharePopup.setWidth((int) getResources().getDimension(R.dimen.popup_window_width)); in showSharePopup() 608 b.setContentDescription(getActivity().getResources().getString(text)); in setButton() 615 String textStr = getActivity().getResources().getString(text); in setStartStopText()
|
/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()
|
/packages/apps/Gallery2/src/com/android/camera/ui/ |
D | CameraSwitcher.java | 92 mItemSize = context.getResources().getDimensionPixelSize(R.dimen.switcher_size); in init() 94 mIndicator = context.getResources().getDrawable(R.drawable.ic_switcher_menu_indicator); in init() 184 item.setContentDescription(getContext().getResources().getString( in initPopup() 188 item.setContentDescription(getContext().getResources().getString( in initPopup() 192 item.setContentDescription(getContext().getResources().getString( in initPopup() 196 item.setContentDescription(getContext().getResources().getString( in initPopup()
|
/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/Email/src/com/android/email/activity/ |
D | MessageListItem.java | 158 Resources r = context.getResources(); in init() 282 mWideReadSelector = getContext().getResources() in updateBackground() 288 mReadSelector = getContext().getResources() in updateBackground() 296 mWideUnreadSelector = getContext().getResources().getDrawable( in updateBackground() 302 mUnreadSelector = getContext().getResources() in updateBackground() 520 final Resources res = context.getResources(); in initializeSlop()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserSettings.java | 235 getResources().getString(R.string.user_remove_user_menu, nickname)); in onCreateOptionsMenu() 341 getResources().getString(R.string.user_new_profile_name), in createLimitedUser() 349 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), in createLimitedUser() 366 getResources().getString(R.string.user_new_user_name), 0); in createTrustedUser() 667 final Resources resources = getResources(); in loadIconsAsync() 700 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), in assignDefaultPhoto() 764 Bitmap icon = BitmapFactory.decodeResource(getResources(), iconResId); in encircle()
|
/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()
|