/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | MediaViewTest.java | 41 private TestResources mResources; field in MediaViewTest 51 mResources = TestResources.create(); in setUp() 53 mResources.strings.put(R.string.metadata_dimensions_format, "%d x %d, %.1fMP"); in setUp() 54 mResources.strings.put(R.string.metadata_aperture_format, "f/%.1f"); in setUp() 55 mResources.strings.put(R.string.metadata_coordinates_format, "%.3f, %.3f"); in setUp() 56 mResources.strings.put(R.string.metadata_camera_format, "%s %s"); in setUp() 70 mResources.strings.put(R.string.metadata_focal_format, "%.2f mm"); in testShowExifData() 71 mResources.strings.put(R.string.metadata_iso_format, "ISO %d"); in testShowExifData() 73 MediaView.showExifData(mTable, mResources, TestEnv.FILE_JPG, exif, null, mGeo); in testShowExifData() 99 MediaView.showExifData(mTable, mResources, TestEnv.FILE_JPG, mMetadata, null, mGeo); in testShowExifData_PartialGpsTags() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/preference/ |
D | ContactsPreferencesTest.java | 43 @Mock private Resources mResources; field in ContactsPreferencesTest 55 Mockito.when(mContext.getResources()).thenReturn(mResources); in setUp() 56 Mockito.when(mResources.getString(Mockito.anyInt())) in setUp() 77 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetSortOrderDefault() 86 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetSortOrder() 96 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetDisplayOrderDefault() 105 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetDisplayOrder() 115 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetPhoneticNameDisplayDefault() 124 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testGetPhoneticNameDisplay() 135 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( in testRefreshPhoneticNameDisplay() [all …]
|
/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/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiInfoPreferenceControllerTest.java | 70 private Resources mResources; field in WifiInfoPreferenceControllerTest 88 when(mContext.getResources()).thenReturn(mResources); in setUp() 124 when(mResources.getBoolean( in updateWifiInfo_nullWifiInfoWithMacRandomizationOff_setMacUnavailable() 137 when(mResources.getBoolean( in updateWifiInfo_nullMacWithMacRandomizationOff_setMacUnavailable() 150 when(mResources.getBoolean( in updateWifiInfo_defaultMacWithMacRandomizationOff_setMacUnavailable() 163 when(mResources.getBoolean( in updateWifiInfo_validMacWithMacRandomizationOff_setValidMac() 176 when(mResources.getBoolean( in updateWifiInfo_nullWifiInfoWithMacRandomizationOn_setMacUnavailable() 189 when(mResources.getBoolean( in updateWifiInfo_nullMacWithMacRandomizationOn_setMacUnavailable() 202 when(mResources.getBoolean( in updateWifiInfo_defaultMacWithMacRandomizationOn_setMacRandomized() 215 when(mResources.getBoolean( in updateWifiInfo_validMacWithMacRandomizationOn_setValidMac()
|
/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/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | ComponentContextFixture.java | 223 return mResources; in getResources() 433 return mResources; 444 private final Resources mResources = mock(Resources.class); 466 when(mResources.getConfiguration()).thenReturn(mResourceConfiguration); 467 when(mResources.getString(anyInt())).thenReturn(""); 468 when(mResources.getStringArray(anyInt())).thenReturn(new String[0]); 506 when(mResources.getBoolean(eq(R.bool.grant_location_permission_enabled))).thenReturn(false); 557 when(mResources.getText(eq(id))).thenReturn(value); 558 when(mResources.getString(eq(id))).thenReturn(value); 559 when(mResources.getString(eq(id), any())).thenAnswer(new Answer<String>() { [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/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()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarProjectionServiceTest.java | 96 private Resources mResources; field in CarProjectionServiceTest 205 when(mContext.getResources()).thenReturn(mResources); in getProjectionOptions_defaults() 208 when(mResources.getInteger(com.android.car.R.integer.config_projectionUiMode)) in getProjectionOptions_defaults() 210 when(mResources.getString(com.android.car.R.string.config_projectionConsentActivity)) in getProjectionOptions_defaults() 212 when(mResources.getInteger(com.android.car.R.integer.config_projectionActivityDisplayId)) in getProjectionOptions_defaults() 214 when(mResources.getIntArray(com.android.car.R.array.config_projectionActivityLaunchBounds)) in getProjectionOptions_defaults() 227 when(mContext.getResources()).thenReturn(mResources); in getProjectionOptions_nonDefaults() 233 when(mResources.getInteger(com.android.car.R.integer.config_projectionUiMode)) in getProjectionOptions_nonDefaults() 235 when(mResources.getString(com.android.car.R.string.config_projectionConsentActivity)) in getProjectionOptions_nonDefaults() 237 when(mResources.getInteger(com.android.car.R.integer.config_projectionActivityDisplayId)) in getProjectionOptions_nonDefaults() [all …]
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 48 private final Resources mResources; field in EnterprisePrivacyFeatureProviderImpl 60 mResources = resources; in EnterprisePrivacyFeatureProviderImpl() 92 disclosure.append(mResources.getString(R.string.do_disclosure_with_name, in getDeviceOwnerDisclosure() 95 disclosure.append(mResources.getString(R.string.do_disclosure_generic)); in getDeviceOwnerDisclosure() 97 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more_separator)); in getDeviceOwnerDisclosure() 98 disclosure.append(mResources.getString(R.string.learn_more), in getDeviceOwnerDisclosure() 281 new Intent(mResources.getString(R.string.config_work_policy_info_intent_action)) in getWorkPolicyInfoIntentDO() 305 new Intent(mResources.getString(R.string.config_work_policy_info_intent_action)) in getWorkPolicyInfoIntentPO()
|
/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/TV/src/com/android/tv/ui/ |
D | TvViewUiManager.java | 65 private final Resources mResources; field in TvViewUiManager 134 mResources = mContext.getResources(); in TvViewUiManager() 149 mResources.getDimensionPixelOffset(R.dimen.shrunken_tvview_margin_start); in TvViewUiManager() 151 mResources.getDimensionPixelOffset(R.dimen.shrunken_tvview_margin_end) in TvViewUiManager() 152 + mResources.getDimensionPixelSize(R.dimen.side_panel_width); in TvViewUiManager() 283 mResources.getInteger(R.integer.tvview_fade_in_duration), in updateTvAspectRatio() 293 mResources.getInteger(R.integer.tvview_fade_in_duration), in fadeInTvView() 303 mResources.getInteger(R.integer.tvview_fade_out_duration), in fadeOutTvView() 446 mTvViewAnimator.setDuration(mResources.getInteger(R.integer.tvview_anim_duration)); in initTvAnimatorIfNeeded() 489 mResources.getInteger(R.integer.tvactivity_background_anim_duration)); in initBackgroundAnimatorIfNeeded() [all …]
|
D | ChannelBannerView.java | 114 private final Resources mResources; field in ChannelBannerView 224 mResources = getResources(); in ChannelBannerView() 234 mShowDurationMillis = mResources.getInteger(R.integer.channel_banner_show_duration); in ChannelBannerView() 236 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_width); in ChannelBannerView() 238 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_height); in ChannelBannerView() 240 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_margin_start); in ChannelBannerView() 242 mResources.getDimensionPixelSize(R.dimen.channel_banner_program_description_width); in ChannelBannerView() 243 mChannelBannerTextColor = mResources.getColor(R.color.channel_banner_text_color, null); in ChannelBannerView() 245 mResources.getColor(R.color.channel_banner_dim_text_color, null); in ChannelBannerView() 246 mResizeAnimDuration = mResources.getInteger(R.integer.channel_banner_fast_anim_duration); in ChannelBannerView() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/ |
D | SimSelectNotificationTest.java | 83 private Resources mResources; field in SimSelectNotificationTest 123 when(mContext.getResources()).thenReturn(mResources); in setUp() 125 when(mResources.getText(R.string.enable_sending_mms_notification_title)) in setUp() 127 when(mResources.getText(R.string.enable_mms_notification_channel_title)) in setUp() 129 when(mResources.getString(R.string.enable_mms_notification_summary, in setUp() 132 when(mResources.getText(R.string.dual_cdma_sim_warning_notification_channel_title)) in setUp() 134 when(mResources.getText(R.string.sim_combination_warning_notification_title)) in setUp() 136 when(mResources.getString(R.string.dual_cdma_sim_warning_notification_summary, in setUp()
|
/packages/apps/TV/src/com/android/tv/parental/ |
D | ContentRatingsParser.java | 61 private Resources mResources; field in ContentRatingsParser 95 mResources = mContext.getPackageManager().getResourcesForApplication(domain); in parse() 98 mResources = mContext.getResources(); in parse() 205 mResources.getString(parser.getAttributeResourceValue(i, 0))); in parseRatingSystemDefinition() 276 mResources.getString(parser.getAttributeResourceValue(i, 0))); in parseRatingDefinition() 280 mResources.getDrawable(parser.getAttributeResourceValue(i, 0), null)); in parseRatingDefinition() 346 mResources.getString(parser.getAttributeResourceValue(i, 0))); in parseSubRatingDefinition() 350 mResources.getDrawable(parser.getAttributeResourceValue(i, 0), null)); in parseSubRatingDefinition() 479 return mResources.getString(titleResId); in getTitle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wallpaper/ |
D | StyleSuggestionActivityTest.java | 44 private Resources mResources; field in StyleSuggestionActivityTest 51 when(mContext.getResources()).thenReturn(mResources); in setUp() 57 when(mResources.getBoolean(com.android.internal.R.bool.config_enableWallpaperService)) in wallpaperServiceEnabled_no_shouldReturnTrue() 65 when(mResources.getBoolean(com.android.internal.R.bool.config_enableWallpaperService)) in hasStyleSet_yes_shouldReturnTrue() 76 when(mResources.getBoolean(com.android.internal.R.bool.config_enableWallpaperService)) in hasStyleSet_no_shouldReturnFalse()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 559 protected final Resources mResources; field in DayView 649 mResources = context.getResources(); in DayView() 650 mNewEventHintString = mResources.getString(R.string.day_view_new_event_hint); in DayView() 653 DATE_HEADER_FONT_SIZE = (int) mResources.getDimension(R.dimen.date_header_text_size); in DayView() 654 DAY_HEADER_FONT_SIZE = (int) mResources.getDimension(R.dimen.day_label_text_size); in DayView() 655 ONE_DAY_HEADER_HEIGHT = (int) mResources.getDimension(R.dimen.one_day_header_height); in DayView() 656 DAY_HEADER_BOTTOM_MARGIN = (int) mResources.getDimension(R.dimen.day_header_bottom_margin); in DayView() 657 EXPAND_ALL_DAY_BOTTOM_MARGIN = (int) mResources.getDimension(R.dimen.all_day_bottom_margin); in DayView() 658 HOURS_TEXT_SIZE = (int) mResources.getDimension(R.dimen.hours_text_size); in DayView() 659 AMPM_TEXT_SIZE = (int) mResources.getDimension(R.dimen.ampm_text_size); in DayView() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | PreventRingingGesturePreferenceControllerTest.java | 45 private Resources mResources; field in PreventRingingGesturePreferenceControllerTest 55 mResources = mock(Resources.class); in setUp() 56 when(mContext.getResources()).thenReturn(mResources); in setUp() 57 when(mResources.getBoolean(com.android.internal.R.bool.config_volumeHushGestureEnabled)) in setUp() 67 when(mResources.getBoolean( in testIsAvailable_configIsTrue_shouldReturnTrue() 75 when(mResources.getBoolean( in testIsAvailable_configIsFalse_shouldReturnFalse()
|
D | PreventRingingSwitchPreferenceControllerTest.java | 54 private Resources mResources; field in PreventRingingSwitchPreferenceControllerTest 61 mResources = mock(Resources.class); in setUp() 62 when(mContext.getResources()).thenReturn(mResources); in setUp() 63 when(mResources.getBoolean(com.android.internal.R.bool.config_volumeHushGestureEnabled)) in setUp() 71 when(mResources.getBoolean( in testIsAvailable_configIsTrue_shouldReturnTrue() 79 when(mResources.getBoolean( in testIsAvailable_configIsFalse_shouldReturnFalse()
|
D | PreventRingingParentPreferenceControllerTest.java | 49 private Resources mResources; field in PreventRingingParentPreferenceControllerTest 63 when(mContext.getResources()).thenReturn(mResources); in testIsAvailable_configIsTrue_shouldAvailableUnSearchable() 64 when(mResources.getBoolean( in testIsAvailable_configIsTrue_shouldAvailableUnSearchable() 72 when(mContext.getResources()).thenReturn(mResources); in testIsAvailable_configIsFalse_shouldReturnFalse() 73 when(mResources.getBoolean( in testIsAvailable_configIsFalse_shouldReturnFalse()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImplTest.java | 87 private Resources mResources; field in EnterprisePrivacyFeatureProviderImplTest 99 mResources = RuntimeEnvironment.application.getResources(); in setUp() 102 mPackageManager, mUserManager, mConnectivityManger, mResources); in setUp() 138 disclosure.append(mResources.getString(R.string.do_disclosure_generic)); in testGetDeviceOwnerDisclosure() 139 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more_separator)); in testGetDeviceOwnerDisclosure() 140 disclosure.append(mResources.getString(R.string.learn_more), in testGetDeviceOwnerDisclosure() 147 disclosure.append(mResources.getString(R.string.do_disclosure_with_name, in testGetDeviceOwnerDisclosure() 149 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more_separator)); in testGetDeviceOwnerDisclosure() 150 disclosure.append(mResources.getString(R.string.learn_more), in testGetDeviceOwnerDisclosure() 426 new Intent(mResources.getString(R.string.config_work_policy_info_intent_action)); in addWorkPolicyInfoIntent()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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.learn_more), in getDeviceOwnerDisclosure()
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
D | ThemeBundledWallpaperInfo.java | 65 private Resources mResources; field in ThemeBundledWallpaperInfo 166 if (mResources != null) { in getPackageResources() 167 return mResources; in getPackageResources() 171 mResources = context.getPackageManager().getResourcesForApplication(mPackageName); in getPackageResources() 175 return mResources; in getPackageResources()
|
/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/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()
|