/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
D | SettingsDialog.java | 71 lp.y = getResources().getDimensionPixelSize(R.dimen.panel_y_offset); in onCreate() 88 if (getResources().getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) { in onCreate() 89 pivotX = getResources().getDimensionPixelSize(R.dimen.slider_horizontal_padding); in onCreate() 91 pivotX = getResources().getDimensionPixelSize( in onCreate() 94 … final int pivotY = getResources().getDimensionPixelSize(R.dimen.main_panel_text_height_half); in onCreate() 107 String[] presetSettingValues = getResources().getStringArray( in onCreate() 110 presetSettingValues[getResources().getInteger( in onCreate() 153 String[] settingNames = getResources().getStringArray(R.array.setting_names); in getSettings() 154 String[] settingKeys = getResources().getStringArray(R.array.setting_keys); in getSettings() 155 int[] maxSettingValues = getResources().getIntArray(R.array.setting_max_values); in getSettings() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Partner.java | 83 public Resources getResources() { in getResources() method in Partner 88 int defaultLayout = getResources().getIdentifier(Partner.RES_DEFAULT_LAYOUT, in hasDefaultLayout() 94 int folder = getResources().getIdentifier(Partner.RES_FOLDER, in hasFolder() 100 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool", in hideDefaultWallpaper() 102 return resId != 0 && getResources().getBoolean(resId); in hideDefaultWallpaper() 106 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string", in getWallpaperDirectory() 108 return (resId != 0) ? new File(getResources().getString(resId)) : null; in getWallpaperDirectory() 112 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool", in requiresFirstRunFlow() 114 return resId != 0 && getResources().getBoolean(resId); in requiresFirstRunFlow() 123 int resId = getResources().getIdentifier(RES_GRID_NUM_ROWS, in applyInvariantDeviceProfileOverrides() [all …]
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | Keys.java | 91 context.getResources().getIntArray(R.array.pref_countdown_duration)); in setDefaults() 95 context.getResources().getStringArray(R.array.camera_id_entryvalues)); in setDefaults() 99 context.getResources().getStringArray(R.array.pref_camera_scenemode_entryvalues)); in setDefaults() 103 context.getResources().getStringArray(R.array.pref_camera_flashmode_entryvalues)); in setDefaults() 107 context.getResources().getStringArray(R.array.pref_camera_hdr_supportmode_entryvalues)); in setDefaults() 116 context.getResources().getStringArray(R.array.pref_camera_focusmode_entryvalues)); in setDefaults() 130 context.getResources().getStringArray(R.array.pref_video_quality_entryvalues)); in setDefaults() 138 context.getResources().getStringArray(R.array.pref_video_quality_entryvalues)); in setDefaults() 146 context.getResources().getStringArray( in setDefaults() 151 context.getResources().getStringArray( in setDefaults() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/privacy/ |
D | PrivacyActivity.java | 162 ActionType.FACTORY_RESET_CONFIRM.getTitle(getResources()), in onFactoryResetConfirm() 166 getResources().getColor(R.color.icon_background)), in onFactoryResetConfirm() 226 getResources(), isOn)); in onBackupData() 230 getResources(), !isOn)); in onBackupData() 248 CharSequence msg = getResources() in onBackupData() 285 ActionType.AUTOMATIC_RESTORE, ActionBehavior.ON).getKey(), getResources(), in onAutomaticRestore() 288 ActionType.AUTOMATIC_RESTORE, ActionBehavior.OFF).getKey(), getResources(), in onAutomaticRestore() 338 actions.add(ActionType.BACKUP_DATA.toAction(getResources(), in getMainActions() 343 getResources(), configSummary == null ? getString( in getMainActions() 349 getResources(), isAutoRestoreEnabled() ? getString(R.string.settings_on) in getMainActions() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryEntry.java | 135 name = context.getResources().getString(R.string.power_idle); in BatteryEntry() 139 name = context.getResources().getString(R.string.power_cell); in BatteryEntry() 143 name = context.getResources().getString(R.string.power_phone); in BatteryEntry() 147 name = context.getResources().getString(R.string.power_wifi); in BatteryEntry() 151 name = context.getResources().getString(R.string.power_bluetooth); in BatteryEntry() 155 name = context.getResources().getString(R.string.power_screen); in BatteryEntry() 159 name = context.getResources().getString(R.string.power_flashlight); in BatteryEntry() 172 name = context.getResources().getString( in BatteryEntry() 177 name = context.getResources().getString(R.string.power_unaccounted); in BatteryEntry() 181 name = context.getResources().getString(R.string.power_overcounted); in BatteryEntry() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 164 final int iconSize = getResources() in onMeasure() 173 getResources().getDimensionPixelSize(R.dimen.message_bubble_arrow_width); in onMeasure() 301 final String subjectText = MmsUtils.cleanseMmsSubject(getResources(), in shouldShowMessageTextBubble() 390 final String titleText = getResources().getString(titleResId); in updateViewContent() 393 final String mmsInfoText = getResources().getString( in updateViewContent() 409 final String subjectText = MmsUtils.cleanseMmsSubject(getResources(), in updateViewContent() 423 statusText = getResources().getString(statusResId); in updateViewContent() 449 final String simNameText = mData.getIsIncoming() ? getResources().getString( in updateViewContent() 453 mSimNameView.setTextColor(showSimIconAsIncoming ? getResources().getColor( in updateViewContent() 551 final int iconSize = getResources() in updateMessageAttachments() [all …]
|
D | ComposeMessageView.java | 289 event.getText().add(getResources() in onFinishInflate() 459 final boolean defaultValue = context.getResources().getBoolean( in playSentSound() 546 final Resources res = getContext().getResources(); in announceMediaItemState() 558 final String announcement = getContext().getResources().getQuantityString( in announceAttachmentState() 711 mComposeEditText.setHint(Html.fromHtml(getResources().getString( in updateVisualsOnDraftChanged() 741 mComposeEditText.setHint(getResources().getQuantityString( in updateVisualsOnDraftChanged() 746 mComposeEditText.setHint(getResources().getQuantityString( in updateVisualsOnDraftChanged() 751 mComposeEditText.setHint(getResources().getQuantityString( in updateVisualsOnDraftChanged() 756 mComposeEditText.setHint(getResources().getQuantityString( in updateVisualsOnDraftChanged() 761 mComposeEditText.setHint(getResources().getQuantityString( in updateVisualsOnDraftChanged() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | KindSectionView.java | 200 : getResources().getString(kind.titleRes); in setState() 365 return getResources().getDrawable(R.drawable.ic_place_24dp); in getMimeTypeDrawable() 367 return getResources().getDrawable(R.drawable.ic_dialer_sip_black_24dp); in getMimeTypeDrawable() 369 return getResources().getDrawable(R.drawable.ic_phone_24dp); in getMimeTypeDrawable() 371 return getResources().getDrawable(R.drawable.ic_message_24dp); in getMimeTypeDrawable() 373 return getResources().getDrawable(R.drawable.ic_event_24dp); in getMimeTypeDrawable() 375 return getResources().getDrawable(R.drawable.ic_email_24dp); in getMimeTypeDrawable() 377 return getResources().getDrawable(R.drawable.ic_public_black_24dp); in getMimeTypeDrawable() 379 return getResources().getDrawable(R.drawable.ic_camera_alt_black_24dp); in getMimeTypeDrawable() 381 return getResources().getDrawable(R.drawable.ic_people_black_24dp); in getMimeTypeDrawable() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | Config.java | 103 String[] items = mContext.getResources().getStringArray(res); in loadResourceStringSet() 122 return mContext.getResources().getInteger(R.integer.num_suggestions_above_keyboard); in getNumSuggestionsAboveKeyboard() 129 return mContext.getResources().getInteger(R.integer.max_promoted_suggestions); in getMaxPromotedSuggestions() 133 return mContext.getResources().getInteger(R.integer.max_promoted_results); in getMaxPromotedResults() 147 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_web_source); in getMaxShortcutsPerWebSource() 154 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_non_web_source); in getMaxShortcutsPerNonWebSource() 268 return mContext.getResources().getBoolean(R.bool.show_zero_query_suggestions); in showSuggestionsForZeroQuery() 273 return mContext.getResources().getBoolean(R.bool.show_zero_query_shortcuts); in showShortcutsForZeroQuery() 277 return mContext.getResources().getBoolean(R.bool.show_scrolling_suggestions); in showScrollingSuggestions() 281 return mContext.getResources().getBoolean(R.bool.show_scrolling_results); in showScrollingResults()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DisplaySettings.java | 114 && getResources().getBoolean( in onCreate() 131 if (isAutomaticBrightnessAvailable(getResources())) { in onCreate() 152 if (isTapToWakeAvailable(getResources())) { in onCreate() 159 if (isCameraGestureAvailable(getResources())) { in onCreate() 166 if (isCameraDoubleTapPowerGestureAvailable(getResources())) { in onCreate() 235 name = context.getResources().getString( in isDozeAvailable() 329 String[] indices = getResources().getStringArray(R.array.entryvalues_font_size); in floatToIndex() 353 final Resources res = getResources(); in readFontSizePreference() 534 if (!context.getResources().getBoolean( 538 if (!isAutomaticBrightnessAvailable(context.getResources())) { [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | BottomBar.java | 92 mCircleRadius = getResources() in BottomBar() 94 mBackgroundAlphaOverlay = getResources() in BottomBar() 96 mBackgroundAlphaDefault = getResources() in BottomBar() 100 TypedArray ar = context.getResources() in BottomBar() 107 context.getResources().getDrawable(drawableId).getConstantState(); in BottomBar() 405 return (LayerDrawable) constantState.newDrawable(getContext().getResources()); in newDrawableFromConstantState() 425 int pressedColor = getContext().getResources().getColor(colorId); in setupShutterBackgroundForModeIndex() 493 Drawable iconDrawable = getResources().getDrawable(resId); in setShutterButtonIcon() 511 getResources().getDrawable(resId)); in animateToVideoStop() 527 getResources().getDrawable(resId)); in animateToFullSize()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcessStatsMemDetail.java | 122 CharSequence[] labels = getResources().getTextArray(R.array.proc_stats_memory_states); in fillMemStateSection() 142 CharSequence[] labels = getResources().getTextArray(R.array.proc_stats_process_states); in fillMemUseSection() 144 getResources().getText(R.string.mem_use_kernel_type), mMemKernelWeight); in fillMemUseSection() 146 getResources().getText(R.string.mem_use_zram_type), mMemZRamWeight); in fillMemUseSection() 148 getResources().getText(R.string.mem_use_native_type), mMemNativeWeight); in fillMemUseSection() 153 getResources().getText(R.string.mem_use_kernel_cache_type), mMemCachedWeight); in fillMemUseSection() 155 getResources().getText(R.string.mem_use_free_type), mMemFreeWeight); in fillMemUseSection() 157 getResources().getText(R.string.mem_use_total), mMemTotalWeight); in fillMemUseSection()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ExpandingEntryCardView.java | 315 mDividerLineHeightPixels = getResources() in ExpandingEntryCardView() 501 getResources().getDimensionPixelSize( in formatEntryIfFirst() 503 getResources().getDimensionPixelSize( in formatEntryIfFirst() 512 Resources res = getResources(); in generateSeparator() 539 return getResources().getText(R.string.expanding_entry_card_view_see_more); in getExpandButtonText() 548 return getResources().getText(R.string.expanding_entry_card_view_see_less); in getCollapseButtonText() 753 headerLayoutParams.topMargin = (int) (getResources().getDimension( in createEntryView() 755 headerLayoutParams.bottomMargin += (int) (getResources().getDimension( in createEntryView() 765 getResources().getDimensionPixelSize( in createEntryView() 857 (int) getResources().getDimension( in updateBadges() [all …]
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | IndicatorIconController.java | 70 mFlashIndicatorPhotoIcons = context.getResources().obtainTypedArray( in IndicatorIconController() 72 mFlashIndicatorVideoIcons = context.getResources().obtainTypedArray( in IndicatorIconController() 76 mHdrPlusIndicatorIcons = context.getResources().obtainTypedArray( in IndicatorIconController() 78 mHdrIndicatorIcons = context.getResources().obtainTypedArray( in IndicatorIconController() 85 context.getResources().obtainTypedArray(panoIndicatorArrayId); in IndicatorIconController() 89 mCountdownTimerIndicatorIcons = context.getResources().obtainTypedArray( in IndicatorIconController() 176 if (modeIndex == mController.getAndroidContext().getResources() in syncFlashIndicator() 181 } else if (modeIndex == mController.getAndroidContext().getResources() in syncFlashIndicator()
|
D | RoundedThumbnailView.java | 242 mThumbnailPadding = getResources().getDimension(R.dimen.rounded_thumbnail_padding); in RoundedThumbnailView() 248 getResources().getDimension(R.dimen.rounded_thumbnail_diameter_min); in RoundedThumbnailView() 250 getResources().getDimension(R.dimen.rounded_thumbnail_diameter_max); in RoundedThumbnailView() 253 getResources().getDimension(R.dimen.rounded_thumbnail_diameter_normal); in RoundedThumbnailView() 259 getResources().getDimension(R.dimen.rounded_thumbnail_ripple_ring_diameter_max); in RoundedThumbnailView() 264 getResources().getDimension(R.dimen.rounded_thumbnail_ripple_ring_diameter_min); in RoundedThumbnailView() 266 getResources().getDimension(R.dimen.rounded_thumbnail_ripple_ring_thick_max); in RoundedThumbnailView() 268 getResources().getDimension(R.dimen.rounded_thumbnail_ripple_ring_thick_min); in RoundedThumbnailView()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | UiUtils.java | 62 getApplicationContext().getResources().getInteger( 66 getApplicationContext().getResources().getInteger( 70 getApplicationContext().getResources().getInteger( 74 getApplicationContext().getResources().getInteger( 109 getApplicationContext().getResources().getQuantityString(pluralsMessageId, count), in showToast() 172 return Factory.get().getApplicationContext().getResources().getConfiguration().orientation in isLandscapeMode() 267 final int orientation = activity.getResources().getConfiguration().orientation; in lockOrientation() 303 return OsUtil.isAtLeastJB_MR2() && Factory.get().getApplicationContext().getResources() in isRtlMode() 376 activity.getResources().getDimensionPixelSize(R.dimen.action_bar_elevation) : in setActionBarShadowVisibility()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | Calculator.java | 183 final int errorColor = getResources().getColor(R.color.calculator_error_color); in setState() 189 getResources().getColor(R.color.display_formula_text_color)); in setState() 191 getResources().getColor(R.color.display_result_text_color)); in setState() 193 getResources().getColor(R.color.calculator_accent_color)); in setState() 292 animatorSet.setDuration(getResources().getInteger(android.R.integer.config_mediumAnimTime)); in onTextSizeChanged() 325 revealView.setBackgroundColor(getResources().getColor(colorRes)); in reveal() 345 getResources().getInteger(android.R.integer.config_longAnimTime)); in reveal() 349 getResources().getInteger(android.R.integer.config_mediumAnimTime)); in reveal() 431 animatorSet.setDuration(getResources().getInteger(android.R.integer.config_longAnimTime)); in onResult()
|
/packages/services/Telephony/src/com/android/phone/settings/fdn/ |
D | EditFdnContactScreen.java | 179 Resources r = getResources(); in onCreateOptionsMenu() 308 showStatus(getResources().getText(R.string.adding_fdn_contact)); in addContact() 333 showStatus(getResources().getText(R.string.updating_fdn_contact)); in updateContact() 382 showStatus(getResources().getText(mAddContact ? in handleResult() 387 showStatus(getResources().getText(R.string.fdn_invalid_number)); in handleResult() 390 showStatus(getResources().getText(R.string.fdn_enable_puk2_requested)); in handleResult() 392 showStatus(getResources().getText(R.string.puk2_blocked)); in handleResult() 396 showStatus(getResources().getText(R.string.pin2_or_fdn_invalid)); in handleResult()
|
/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/Browser/src/com/android/browser/ |
D | PermissionsPrompt.java | 84 String[] resources = mRequest.getResources(); in setMessage() 88 strings.add(getResources().getString(R.string.resource_video_capture)); in setMessage() 90 strings.add(getResources().getString(R.string.resource_audio_capture)); in setMessage() 92 strings.add(getResources().getString(R.string.resource_protected_media_id)); in setMessage() 104 getResources().getString(R.string.permissions_prompt_message), in setMessage() 121 mRequest.grant(mRequest.getResources()); in handleButtonClick()
|
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/Nfc/src/com/android/nfc/beam/ |
D | SendUi.java | 353 final int statusBarHeight = mContext.getResources().getDimensionPixelSize( in showPreSend() 367 mTextHint.setText(mContext.getResources().getString(R.string.ask_nfc_tap)); in showPreSend() 369 mTextHint.setText(mContext.getResources().getString(R.string.touch)); in showPreSend() 381 int orientation = mContext.getResources().getConfiguration().orientation; in showPreSend() 591 boolean hasNavBar = mContext.getResources().getBoolean( in createScreenshot() 596 final int statusBarHeight = mContext.getResources().getDimensionPixelSize( in createScreenshot() 600 final int navBarHeight = hasNavBar ? mContext.getResources().getDimensionPixelSize( in createScreenshot() 602 final int navBarHeightLandscape = hasNavBar ? mContext.getResources().getDimensionPixelSize( in createScreenshot() 605 final int navBarWidth = hasNavBar ? mContext.getResources().getDimensionPixelSize( in createScreenshot() 763 mTextRetry.setText(mContext.getResources().getString(R.string.beam_try_again)); in showSendHint()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/ |
D | DaydreamActivity.java | 186 String[] screenOffEntries = getResources().getStringArray( in getMainActions() 207 R.drawable.ic_settings_daydream, getResources().getColor(R.color.icon_background)); in createSubMenuContentFragment() 214 getResources().getColor(R.color.icon_background)); in createMainMenuContentFragment() 223 String[] sleepOptionValues = getResources().getStringArray(valuesResId); in getListActions() 224 String[] sleepOptionEntries = getResources().getStringArray(entriesResId); in getListActions() 245 String[] sleepOptionValues = getResources().getStringArray(valuesResId); in getEntry() 246 String[] sleepOptionEntries = getResources().getStringArray(entriesResId); in getEntry()
|
/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/SoundRecorder/src/com/android/soundrecorder/ |
D | SoundRecorder.java | 348 mTimerFormat = getResources().getString(R.string.timer_format); in initResourceRefs() 374 mErrorUiMessage = getResources().getString(R.string.insert_sd_card); in onClick() 378 mErrorUiMessage = getResources().getString(R.string.storage_is_full); in onClick() 595 Resources res = getResources(); in addToMediaDB() 650 Resources res = getResources(); in updateTimerView() 684 = getResources().getString(R.string.storage_is_full); in updateTimeRemaining() 688 = getResources().getString(R.string.max_length_reached); in updateTimeRemaining() 699 Resources res = getResources(); in updateTimeRemaining() 714 Resources res = getResources(); in updateUi() 838 Resources res = getResources(); in onError()
|