/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogListItemHelper.java | 37 private final Resources mResources; field in CallLogListItemHelper 53 mResources = resources; in CallLogListItemHelper() 117 mResources.getString(R.string.description_video_call_action), nameOrNumber)); in setActionContentDescriptions() 121 mResources.getString(R.string.description_create_new_contact_action), nameOrNumber)); in setActionContentDescriptions() 125 mResources.getString(R.string.description_add_to_existing_contact_action), in setActionContentDescriptions() 130 mResources.getString(R.string.description_details_action), nameOrNumber)); in setActionContentDescriptions() 141 return mResources.getString( in getContactBadgeDescription() 144 return mResources.getString(R.string.description_contact_details, getNameOrNumber(details)); in getContactBadgeDescription() 191 mResources.getString(R.string.description_num_calls, details.callTypes.length)); in getCallDescription() 196 callDescription.append(mResources.getString(R.string.description_video_call)); in getCallDescription() [all …]
|
D | PhoneCallDetailsHelper.java | 49 private final Resources mResources; field in PhoneCallDetailsHelper 69 mResources = resources; in PhoneCallDetailsHelper() 113 mResources.getString( in setPhoneCallDetails() 116 accountLabel = mResources.getString(R.string.call_log_via_number, details.viaNumber); in setPhoneCallDetails() 201 return mResources.getString(R.string.spam_number_call_log_label); in getCallTypeOrLocation() 203 return mResources.getString(R.string.blocked_number_call_log_label); in getCallTypeOrLocation() 220 : Phone.getTypeLabel(mResources, details.numberType, details.numberLabel); in getCallTypeOrLocation() 282 return mResources.getString( in getGranularDateTime() 293 return mResources.getString(R.string.voicemailCallLogToday); in getGranularDate() 323 nameText = mResources.getString(R.string.unknown); in setCallDetailsHeader() [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ |
D | CallTypeIconsView.java | 39 private Resources mResources; field in CallTypeIconsView 51 mResources = new Resources(context); in CallTypeIconsView() 52 mResources.voicemail.setColorFilter( in CallTypeIconsView() 67 mWidth += drawable.getIntrinsicWidth() + mResources.iconMargin; in add() 83 return mResources.incoming; in getCallTypeDrawable() 85 return mResources.outgoing; in getCallTypeDrawable() 87 return mResources.missed; in getCallTypeDrawable() 89 return mResources.voicemail; in getCallTypeDrawable() 95 return mResources.missed; in getCallTypeDrawable() 112 left = right + mResources.iconMargin; in onDraw()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 101 private final Resources mResources; field in PhotoTable 132 mResources = getResources(); in PhotoTable() 133 mInset = mResources.getDimensionPixelSize(R.dimen.photo_inset); in PhotoTable() 134 mDropPeriod = mResources.getInteger(R.integer.table_drop_period); in PhotoTable() 135 mFastDropPeriod = mResources.getInteger(R.integer.fast_drop); in PhotoTable() 136 mNowDropDelay = mResources.getInteger(R.integer.now_drop); in PhotoTable() 137 mImageRatio = mResources.getInteger(R.integer.image_ratio) / 1000000f; in PhotoTable() 138 mTableRatio = mResources.getInteger(R.integer.table_ratio) / 1000000f; in PhotoTable() 139 mImageRotationLimit = (float) mResources.getInteger(R.integer.max_image_rotation); in PhotoTable() 140 mThrowSpeed = mResources.getDimension(R.dimen.image_throw_speed); in PhotoTable() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/preference/ |
D | ContactsPreferencesTest.java | 42 @Mock private Resources mResources; field in ContactsPreferencesTest 54 Mockito.when(mContext.getResources()).thenReturn(mResources); in setUp() 55 Mockito.when(mResources.getString(Mockito.anyInt())) in setUp() 76 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetSortOrderDefault() 85 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetSortOrder() 95 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetDisplayOrderDefault() 104 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetDisplayOrder() 114 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetPhoneticNameDisplayDefault() 123 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetPhoneticNameDisplay() 134 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testRefreshPhoneticNameDisplay() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaAdapter.java | 43 private final Resources mResources; field in AgendaAdapter 86 mResources = context.getResources(); in AgendaAdapter() 87 mNoTitleLabel = mResources.getString(R.string.no_title_label); in AgendaAdapter() 88 mDeclinedColor = mResources.getColor(R.color.agenda_item_declined_color); in AgendaAdapter() 89 mStandardColor = mResources.getColor(R.color.agenda_item_standard_color); in AgendaAdapter() 90 mWhereDeclinedColor = mResources.getColor(R.color.agenda_item_where_declined_text_color); in AgendaAdapter() 91 mWhereColor = mResources.getColor(R.color.agenda_item_where_text_color); in AgendaAdapter() 95 COLOR_CHIP_ALL_DAY_HEIGHT = mResources.getInteger(R.integer.color_chip_all_day_height); in AgendaAdapter() 96 COLOR_CHIP_HEIGHT = mResources.getInteger(R.integer.color_chip_height); in AgendaAdapter() 98 mScale = mResources.getDisplayMetrics().density; in AgendaAdapter()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardBuilder.java | 145 protected final Resources mResources; field in KeyboardBuilder 156 mResources = res; in KeyboardBuilder() 170 final XmlResourceParser parser = mResources.getXml(xmlId); in load() 241 final TypedArray keyAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard_Key); in parseKeyboardAttributes() 289 final String[] data = mResources.getStringArray(resourceId); in parseKeyboardAttributes() 341 final TypedArray keyboardAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard); in parseRowAttributes() 349 return new KeyboardRow(mResources, mParams, parser, mCurrentY); in parseRowAttributes() 400 final KeyboardRow gridRows = new KeyboardRow(mResources, mParams, parser, mCurrentY); in parseGridRows() 401 final TypedArray gridRowAttr = mResources.obtainAttributes( in parseGridRows() 416 final String[] array = mResources.getStringArray( in parseGridRows() [all …]
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | StringResourceMap.java | 41 private final List<StringResource> mResources; field in StringResourceMap 75 mResources = Collections.unmodifiableList(handler.mResources); in StringResourceMap() 77 for (final StringResource res : mResources) { in StringResourceMap() 84 return mResources; in getResources() 108 final ArrayList<StringResource> mResources = new ArrayList<>(); field in StringResourceMap.StringResourceHandler 153 mResources.add(new StringResource(mName, value, comment)); in endElement()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvViewUiManager.java | 66 private final Resources mResources; field in TvViewUiManager 132 mResources = mContext.getResources(); in TvViewUiManager() 146 mTvViewShrunkenStartMargin = mResources in TvViewUiManager() 149 mResources.getDimensionPixelOffset(R.dimen.shrunken_tvview_margin_end) in TvViewUiManager() 150 + mResources.getDimensionPixelSize(R.dimen.side_panel_width); in TvViewUiManager() 282 mTvView.fadeIn(mResources.getInteger(R.integer.tvview_fade_in_duration), in updateTvAspectRatio() 292 mTvView.fadeIn(mResources.getInteger(R.integer.tvview_fade_in_duration), in fadeInTvView() 302 mTvView.fadeOut(mResources.getInteger(R.integer.tvview_fade_out_duration), in fadeOutTvView() 427 mTvViewAnimator.setDuration(mResources.getInteger(R.integer.tvview_anim_duration)); in initTvAnimatorIfNeeded() 471 .setDuration(mResources.getInteger(R.integer.tvactivity_background_anim_duration)); in initBackgroundAnimatorIfNeeded() [all …]
|
D | ChannelBannerView.java | 100 private final Resources mResources; field in ChannelBannerView 187 mResources = getResources(); in ChannelBannerView() 191 mShowDurationMillis = mResources.getInteger( in ChannelBannerView() 193 mChannelLogoImageViewWidth = mResources.getDimensionPixelSize( in ChannelBannerView() 195 mChannelLogoImageViewHeight = mResources.getDimensionPixelSize( in ChannelBannerView() 197 mChannelLogoImageViewMarginStart = mResources.getDimensionPixelSize( in ChannelBannerView() 199 mProgramDescriptionTextViewWidth = mResources.getDimensionPixelSize( in ChannelBannerView() 201 mChannelBannerTextColor = mResources.getColor(R.color.channel_banner_text_color, null); in ChannelBannerView() 202 mChannelBannerDimTextColor = mResources.getColor(R.color.channel_banner_dim_text_color, in ChannelBannerView() 204 mResizeAnimDuration = mResources.getInteger(R.integer.channel_banner_fast_anim_duration); in ChannelBannerView() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterBorder.java | 33 private Resources mResources = null; field in ImageFilterBorder 77 if (mResources != resources) { in setResources() 78 mResources = resources; in setResources() 85 if (drawable == null && mResources != null && rsc != 0) { in getDrawable() 86 … drawable = new BitmapDrawable(mResources, BitmapFactory.decodeResource(mResources, rsc)); in getDrawable()
|
D | ImageFilterFx.java | 28 private Resources mResources = null; field in ImageFilterFx 60 if (getParameters() == null || mResources == null) { in apply() 77 mFxBitmap = BitmapFactory.decodeResource(mResources, mFxBitmapId, o); in apply() 108 mResources = resources; in setResources()
|
/packages/apps/TV/src/com/android/tv/parental/ |
D | ContentRatingsParser.java | 63 private Resources mResources; field in ContentRatingsParser 97 mResources = mContext.getPackageManager().getResourcesForApplication(domain); in parse() 100 mResources = mContext.getResources(); in parse() 198 mResources.getString(parser.getAttributeResourceValue(i, 0))); in parseRatingSystemDefinition() 254 mResources.getString(parser.getAttributeResourceValue(i, 0))); in parseRatingDefinition() 258 mResources.getDrawable(parser.getAttributeResourceValue(i, 0), null)); in parseRatingDefinition() 316 mResources.getString(parser.getAttributeResourceValue(i, 0))); in parseSubRatingDefinition() 320 mResources.getDrawable(parser.getAttributeResourceValue(i, 0), null)); in parseSubRatingDefinition() 432 return mResources.getString(titleResId); in getTitle()
|
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/ |
D | RecurrencePickerDialog.java | 271 private Resources mResources; field in RecurrencePickerDialog 660 mResources = getResources(); in onCreateView() 699 mEndNeverStr = mResources.getString(R.string.recurrence_end_continously); in onCreateView() 700 mEndDateLabel = mResources.getString(R.string.recurrence_end_date_label); in onCreateView() 701 mEndCountLabel = mResources.getString(R.string.recurrence_end_count_label); in onCreateView() 753 mMonthRepeatByDayOfWeekStrs[0] = mResources.getStringArray(R.array.repeat_by_nth_sun); in onCreateView() 754 mMonthRepeatByDayOfWeekStrs[1] = mResources.getStringArray(R.array.repeat_by_nth_mon); in onCreateView() 755 mMonthRepeatByDayOfWeekStrs[2] = mResources.getStringArray(R.array.repeat_by_nth_tues); in onCreateView() 756 mMonthRepeatByDayOfWeekStrs[3] = mResources.getStringArray(R.array.repeat_by_nth_wed); in onCreateView() 757 mMonthRepeatByDayOfWeekStrs[4] = mResources.getStringArray(R.array.repeat_by_nth_thurs); in onCreateView() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImplTest.java | 82 private Resources mResources; field in EnterprisePrivacyFeatureProviderImplTest 94 mResources = ShadowApplication.getInstance().getApplicationContext().getResources(); in setUp() 97 mPackageManagerWrapper, mUserManager, mConnectivityManger, mResources); in setUp() 133 disclosure.append(mResources.getString(R.string.do_disclosure_generic)); in testGetDeviceOwnerDisclosure() 134 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more_separator)); in testGetDeviceOwnerDisclosure() 135 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more), in testGetDeviceOwnerDisclosure() 142 disclosure.append(mResources.getString(R.string.do_disclosure_with_name, in testGetDeviceOwnerDisclosure() 144 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more_separator)); in testGetDeviceOwnerDisclosure() 145 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more), in testGetDeviceOwnerDisclosure()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 564 protected final Resources mResources; field in DayView 658 mResources = context.getResources(); in DayView() 659 mCreateNewEventString = mResources.getString(R.string.event_create); in DayView() 660 mNewEventHintString = mResources.getString(R.string.day_view_new_event_hint); in DayView() 663 DATE_HEADER_FONT_SIZE = (int) mResources.getDimension(R.dimen.date_header_text_size); in DayView() 664 DAY_HEADER_FONT_SIZE = (int) mResources.getDimension(R.dimen.day_label_text_size); in DayView() 665 ONE_DAY_HEADER_HEIGHT = (int) mResources.getDimension(R.dimen.one_day_header_height); in DayView() 666 DAY_HEADER_BOTTOM_MARGIN = (int) mResources.getDimension(R.dimen.day_header_bottom_margin); in DayView() 667 EXPAND_ALL_DAY_BOTTOM_MARGIN = (int) mResources.getDimension(R.dimen.all_day_bottom_margin); in DayView() 668 HOURS_TEXT_SIZE = (int) mResources.getDimension(R.dimen.hours_text_size); in DayView() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | StringConcatenator.java | 30 private final Resources mResources; field in StringConcatenator 33 mResources = resources; in StringConcatenator() 52 return mResources.getString(R.string.join_two_items, items.get(0), items.get(1)); in join() 57 result = mResources.getString( // not the fastest, but good enough in join() 61 result = mResources.getString(R.string.join_many_items_last, result, items.get(count - 1)); in join()
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 47 private final Resources mResources; field in EnterprisePrivacyFeatureProviderImpl 59 mResources = resources; in EnterprisePrivacyFeatureProviderImpl() 103 disclosure.append(mResources.getString(R.string.do_disclosure_with_name, in getDeviceOwnerDisclosure() 106 disclosure.append(mResources.getString(R.string.do_disclosure_generic)); in getDeviceOwnerDisclosure() 108 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more_separator)); in getDeviceOwnerDisclosure() 109 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more), in getDeviceOwnerDisclosure()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | ComponentContextFixture.java | 204 return mResources; in getResources() 407 return mResources; 418 private final Resources mResources = mock(Resources.class); 438 when(mResources.getConfiguration()).thenReturn(mResourceConfiguration); 511 when(mResources.getText(eq(id))).thenReturn(value); 512 when(mResources.getString(eq(id))).thenReturn(value); 513 when(mResources.getString(eq(id), any())).thenAnswer(new Answer<String>() { 523 when(mResources.getBoolean(eq(id))).thenReturn(value);
|
/packages/apps/TV/src/com/android/tv/util/ |
D | Partner.java | 68 private final Resources mResources; field in Partner 92 mResources = res; in Partner() 145 if (mResources != null && !TextUtils.isEmpty(mPackageName)) { in getInputsOrderMap() 147 final int resId = mResources.getIdentifier(INPUTS_ORDER, TYPE_ARRAY, mPackageName); in getInputsOrderMap() 149 inputsArray = mResources.getStringArray(resId); in getInputsOrderMap()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | ResourceHelper.java | 32 private final Resources mResources; field in ResourceHelper 40 mResources = mContext.getResources(); in ResourceHelper() 42 mAccountColorArray = mResources.obtainTypedArray(R.array.combined_view_account_colors); in ResourceHelper() 43 mAccountColors = mResources.getIntArray(R.array.combined_view_account_colors); in ResourceHelper()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
D | ResourceWallpaperInfo.java | 15 private final Resources mResources; field in ResourceWallpaperInfo 20 mResources = res; in ResourceWallpaperInfo() 28 new BitmapRegionTileSource.InputStreamSource(mResources, mResId, a); in onClick() 53 a.cropImageAndSetWallpaper(mResources, mResId, true /* shouldFadeOutOnFinish */); in onSave()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | DashboardAdapterTest.java | 88 private Resources mResources; field in DashboardAdapterTest 114 when(mContext.getResources()).thenReturn(mResources); in setUp() 115 when(mResources.getQuantityString(any(int.class), any(int.class), any())) in setUp() 425 when(data.getResources()).thenReturn(mResources); in testSuggestionDismissed_notOnlySuggestion_updateSuggestionOnly() 427 when(mResources.getDisplayMetrics()).thenReturn(mock(DisplayMetrics.class)); in testSuggestionDismissed_notOnlySuggestion_updateSuggestionOnly() 545 when(data.getResources()).thenReturn(mResources); in testBindConditionAndSuggestion_shouldSetSuggestionAdapterAndNoCrash() 547 when(mResources.getDisplayMetrics()).thenReturn(mock(DisplayMetrics.class)); in testBindConditionAndSuggestion_shouldSetSuggestionAdapterAndNoCrash() 576 when(data.getResources()).thenReturn(mResources); in testBindConditionAndSuggestion_emptySuggestion_shouldSetConditionAdpater() 578 when(mResources.getDisplayMetrics()).thenReturn(mock(DisplayMetrics.class)); in testBindConditionAndSuggestion_emptySuggestion_shouldSetConditionAdpater()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | BlockedListSearchAdapter.java | 30 private Resources mResources; field in BlockedListSearchAdapter 35 mResources = context.getResources(); in BlockedListSearchAdapter() 49 final int textColor = mResources.getColor(R.color.blocked_number_block_color); in setViewBlocked() 57 final int textColor = mResources.getColor(R.color.dialer_secondary_text_color); in setViewUnblocked()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | PhoneSearchIndexablesProviderTest.java | 46 @Mock private Resources mResources; field in PhoneSearchIndexablesProviderTest 75 when(mResources.getString(com.android.phone.R.string.carrier_settings_euicc)) in setUp() 77 when(mResources.getString(com.android.phone.R.string.keywords_carrier_settings_euicc)) in setUp() 82 when(mContext.getResources()).thenReturn(mResources); in setUp()
|