Home
last modified time | relevance | path

Searched refs:mResources (Results 1 – 25 of 183) sorted by relevance

12345678

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DSystemBarConfigsTest.java64 private Resources mResources; field in SystemBarConfigsTest
74 mSystemBarConfigs = new SystemBarConfigs(mResources); in onInit_allSystemBarsEnabled_eachHasUniqueBarTypes_doesNotThrowException()
79 when(mResources.getInteger(R.integer.config_topSystemBarType)).thenReturn(0); in onInit_allSystemBarsEnabled_twoBarsHaveDuplicateType_throwsRuntimeException()
80 when(mResources.getInteger(R.integer.config_bottomSystemBarType)).thenReturn(0); in onInit_allSystemBarsEnabled_twoBarsHaveDuplicateType_throwsRuntimeException()
82 mSystemBarConfigs = new SystemBarConfigs(mResources); in onInit_allSystemBarsEnabled_twoBarsHaveDuplicateType_throwsRuntimeException()
87 mSystemBarConfigs = new SystemBarConfigs(mResources); in onInit_allSystemBarsEnabled_systemBarSidesSortedByZOrder()
100 when(mResources.getInteger(R.integer.config_topSystemBarZOrder)).thenReturn(33); in onInit_intersectingBarsHaveSameZOrder_throwsRuntimeException()
101 when(mResources.getInteger(R.integer.config_leftSystemBarZOrder)).thenReturn(33); in onInit_intersectingBarsHaveSameZOrder_throwsRuntimeException()
103 mSystemBarConfigs = new SystemBarConfigs(mResources); in onInit_intersectingBarsHaveSameZOrder_throwsRuntimeException()
108 when(mResources.getBoolean(R.bool.config_hideBottomSystemBarForKeyboard)).thenReturn(false); in onInit_hideBottomSystemBarForKeyboardValueDoNotSync_throwsRuntimeException()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiApConfigStoreTest.java101 private MockResources mResources; field in WifiApConfigStoreTest
116 mResources = new MockResources(); in setUp()
117 mResources.setString(R.string.config_wifiSoftap2gChannelList, in setUp()
119 mResources.setString(R.string.wifi_tether_configure_ssid_default, in setUp()
121 mResources.setString(R.string.wifi_localhotspot_configure_ssid_default, in setUp()
123 mResources.setBoolean(R.bool.config_wifiSoftapPassphraseAsciiEncodableCheck, true); in setUp()
128 when(mContext.getResources()).thenReturn(mResources); in setUp()
136 mResources.setBoolean(R.bool.config_wifi_ap_mac_randomization_supported, true); in setUp()
140 mResources.setBoolean(R.bool.config_wifi24ghzSupport, true); in setupAllBandsSupported()
141 mResources.setBoolean(R.bool.config_wifiSoftap24ghzSupported, true); in setupAllBandsSupported()
[all …]
DWifiGlobalsTest.java44 private MockResources mResources; field in WifiGlobalsTest
52 mResources = new MockResources(); in setUp()
53 mResources.setInteger(R.integer.config_wifiPollRssiIntervalMilliseconds, 3000); in setUp()
54 mResources.setInteger(R.integer.config_wifiClientModeImplNumLogRecs, 200); in setUp()
55 when(mContext.getResources()).thenReturn(mResources); in setUp()
64 mResources.setInteger(R.integer.config_wifiPollRssiIntervalMilliseconds, 6000); in testPollRssiIntervalIsSetCorrectly()
66 mResources.setInteger(R.integer.config_wifiPollRssiIntervalMilliseconds, 7000); in testPollRssiIntervalIsSetCorrectly()
98 mResources.setBoolean(R.bool.config_wifiSaeH2eSupported, false); in testSaeH2eSupportOverlay()
102 mResources.setBoolean(R.bool.config_wifiSaeH2eSupported, true); in testSaeH2eSupportOverlay()
112 mResources.setString(R.string.config_wifiP2pDeviceNamePrefix, customPrefix); in testP2pDeviceNameCustomization()
[all …]
DWifiBlocklistMonitorTest.java101 private MockResources mResources; field in WifiBlocklistMonitorTest
114 mResources = new MockResources(); in setup()
115 mResources.setInteger(R.integer.config_wifiBssidBlocklistMonitorBaseBlockDurationMs, in setup()
117 mResources.setInteger( in setup()
120 mResources.setInteger(R.integer.config_wifiBssidBlocklistMonitorFailureStreakCap, in setup()
122 mResources.setInteger(R.integer.config_wifiBssidBlocklistAbnormalDisconnectTimeWindowMs, in setup()
124 mResources.setInteger( in setup()
128 mResources.setInteger( in setup()
132 mResources.setInteger(R.integer.config_wifiBssidBlocklistMonitorWrongPasswordThreshold, in setup()
135 mResources.setInteger(R.integer.config_wifiBssidBlocklistMonitorEapFailureThreshold, in setup()
[all …]
DHostapdHalTest.java87 private MockResources mResources; field in HostapdHalTest
159 mResources = new MockResources(); in setUp()
160 mResources.setBoolean(R.bool.config_wifi_softap_acs_supported, false); in setUp()
161 mResources.setBoolean(R.bool.config_wifi_softap_ieee80211ac_supported, false); in setUp()
162 mResources.setBoolean(R.bool.config_wifiSoftapIeee80211axSupported, false); in setUp()
163 mResources.setBoolean(R.bool.config_wifiSoftap6ghzSupported, false); in setUp()
164 mResources.setBoolean(R.bool.config_wifiSoftapAcsIncludeDfs, false); in setUp()
165 mResources.setString(R.string.config_wifiSoftap2gChannelList, ""); in setUp()
166 mResources.setString(R.string.config_wifiSoftap5gChannelList, ""); in setUp()
167 mResources.setString(R.string.config_wifiSoftap6gChannelList, ""); in setUp()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DSystemBarConfigs.java83 private final Resources mResources; field in SystemBarConfigs
95 mResources = resources; in SystemBarConfigs()
202 mTopNavBarEnabled = mResources.getBoolean(R.bool.config_enableTopSystemBar); in readConfigs()
203 mBottomNavBarEnabled = mResources.getBoolean(R.bool.config_enableBottomSystemBar); in readConfigs()
204 mLeftNavBarEnabled = mResources.getBoolean(R.bool.config_enableLeftSystemBar); in readConfigs()
205 mRightNavBarEnabled = mResources.getBoolean(R.bool.config_enableRightSystemBar); in readConfigs()
211 .setGirth(mResources.getDimensionPixelSize( in readConfigs()
213 .setBarType(mResources.getInteger(R.integer.config_topSystemBarType)) in readConfigs()
214 .setZOrder(mResources.getInteger(R.integer.config_topSystemBarZOrder)) in readConfigs()
215 .setHideForKeyboard(mResources.getBoolean( in readConfigs()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java142 @Mock Resources mResources; field in ApConfigUtilTest
296 mCoexManager, mResources); in chooseApChannel2GBandWithNoAllowedChannel()
306 when(mResources.getString(R.string.config_wifiSoftap2gChannelList)) in chooseApChannel2GBandWithAllowedChannels()
312 mCoexManager, mResources); in chooseApChannel2GBandWithAllowedChannels()
321 when(mResources.getString(R.string.config_wifiSoftap5gChannelList)) in chooseApChannel5GBandWithAllowedChannels()
327 SoftApConfiguration.BAND_5GHZ, mWifiNative, mCoexManager, mResources); in chooseApChannel5GBandWithAllowedChannels()
336 when(mResources.getString(R.string.config_wifiSoftap60gChannelList)) in chooseApChannel60GBandWithAllowedChannels()
342 SoftApConfiguration.BAND_60GHZ, mWifiNative, mCoexManager, mResources); in chooseApChannel60GBandWithAllowedChannels()
355 mCoexManager, mResources)); in chooseApChannel5GBandWithNoAllowedChannels()
363 when(mResources.getString(R.string.config_wifiSoftap2gChannelList)) in chooseApChannelWillHighBandPrefer()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DMediaViewTest.java41 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/Settings/tests/robotests/src/com/android/settings/gestures/
DPreventRingingParentPreferenceControllerTest.java55 private Resources mResources; field in PreventRingingParentPreferenceControllerTest
68 when(mContext.getResources()).thenReturn(mResources); in setUp()
69 when(mResources.getInteger( in setUp()
80 when(mResources.getBoolean( in isAvailable_configIsTrueAndKeyChordMute_shouldAvailableUnSearchable()
87 when(mContext.getResources()).thenReturn(mResources); in getAvailabilityStatus_configIsTrueAndKeyNotMute_shouldReturnDisabledDependent()
88 when(mResources.getBoolean( in getAvailabilityStatus_configIsTrueAndKeyNotMute_shouldReturnDisabledDependent()
90 when(mResources.getBoolean( in getAvailabilityStatus_configIsTrueAndKeyNotMute_shouldReturnDisabledDependent()
93 when(mResources.getInteger( in getAvailabilityStatus_configIsTrueAndKeyNotMute_shouldReturnDisabledDependent()
101 when(mContext.getResources()).thenReturn(mResources); in getAvailabilityStatus_configIsTrueLppDisabled_shouldReturnUnsupportedOnDevice()
102 when(mResources.getBoolean( in getAvailabilityStatus_configIsTrueLppDisabled_shouldReturnUnsupportedOnDevice()
[all …]
DLongPressPowerButtonPreferenceControllerTest.java51 private Resources mResources; field in LongPressPowerButtonPreferenceControllerTest
58 mResources = mock(Resources.class); in setUp()
59 when(mContext.getResources()).thenReturn(mResources); in setUp()
60 when(mResources.getString(anyInt())).thenAnswer((Answer<String>) invocation -> { in setUp()
64 when(mResources.getBoolean( in setUp()
75 when(mResources.getBoolean( in isAvailable_configIsTrue_shouldReturnTrue()
84 when(mResources.getBoolean( in isAvailable_configIsFalse_shouldReturnFalse()
104 when(mResources.getInteger( in preferenceUnchecked_keyChordEnabled_powerMenuHintTextShown()
119 when(mResources.getBoolean( in preferenceChecked_hushGestureEnabled_powerMenuHintTextIncludesHushHint()
137 when(mResources.getInteger( in preferenceUnchecked_keyChordDisabled_powerMenuHintTextHidden()
[all …]
DPowerMenuPreferenceControllerTest.java39 private Resources mResources; field in PowerMenuPreferenceControllerTest
48 mResources = mock(Resources.class); in setUp()
49 when(mResources.getBoolean( in setUp()
52 when(mContext.getResources()).thenReturn(mResources); in setUp()
58 when(mResources.getBoolean( in getAvailabilityStatus_assistAvailable_available()
68 when(mResources.getBoolean( in getAvailabilityStatus_assistUnavailable_unavailable()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringConfigurationTest.java92 @Mock private Resources mResources; field in TetheringConfigurationTest
125 return mResources; in getResources()
167 when(mResources.getStringArray(R.array.config_tether_dhcp_range)).thenReturn( in setUp()
169 when(mResources.getInteger(R.integer.config_tether_offload_poll_interval)).thenReturn( in setUp()
171 when(mResources.getStringArray(R.array.config_tether_usb_regexs)) in setUp()
173 when(mResources.getStringArray(R.array.config_tether_wifi_regexs)) in setUp()
175 when(mResources.getStringArray(R.array.config_tether_bluetooth_regexs)).thenReturn( in setUp()
177 when(mResources.getIntArray(R.array.config_tether_upstream_types)).thenReturn(new int[0]); in setUp()
178 when(mResources.getStringArray(R.array.config_mobile_hotspot_provision_app)) in setUp()
180 when(mResources.getBoolean(R.bool.config_tether_enable_legacy_dhcp_server)).thenReturn( in setUp()
[all …]
DEntitlementManagerTest.java97 @Mock private Resources mResources; field in EntitlementManagerTest
120 return mResources; in getResources()
209 when(mResources.getStringArray(R.array.config_tether_dhcp_range)) in setUp()
211 when(mResources.getStringArray(R.array.config_tether_usb_regexs)) in setUp()
213 when(mResources.getStringArray(R.array.config_tether_wifi_regexs)) in setUp()
215 when(mResources.getStringArray(R.array.config_tether_bluetooth_regexs)) in setUp()
217 when(mResources.getIntArray(R.array.config_tether_upstream_types)) in setUp()
219 when(mResources.getBoolean(R.bool.config_tether_enable_legacy_dhcp_server)).thenReturn( in setUp()
221 when(mResources.getString(R.string.config_wifi_tether_enable)).thenReturn(""); in setUp()
242 when(mResources.getStringArray(R.array.config_mobile_hotspot_provision_app)) in setupForRequiredProvisioning()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/
DUserItemsCombinerTest.java70 private final Resources mResources = field in UserItemsCombinerTest
82 mCombiner = new UserItemsCombiner(mResources, mState) in testCreatePresentableList_empty()
90 mCombiner = new UserItemsCombiner(mResources, mState) in testCreatePresentableList_currentIsPersonal_personalItemsOnly()
101 mCombiner = new UserItemsCombiner(mResources, mState) in testCreatePresentableList_currentIsWork_personalItemsOnly()
113 mCombiner = new UserItemsCombiner(mResources, mState) in testCreatePresentableList_currentIsPersonal_workItemsOnly()
124 mCombiner = new UserItemsCombiner(mResources, mState) in testCreatePresentableList_currentIsWork_workItemsOnly()
136 mCombiner = new UserItemsCombiner(mResources, mState) in testCreatePresentableList_currentIsPersonal_personalAndWorkItems()
141 expected.add(new HeaderItem(mResources.getString(R.string.personal_tab))); in testCreatePresentableList_currentIsPersonal_personalAndWorkItems()
143 expected.add(new HeaderItem(mResources.getString(R.string.work_tab))); in testCreatePresentableList_currentIsPersonal_personalAndWorkItems()
154 mCombiner = new UserItemsCombiner(mResources, mState) in testCreatePresentableList_currentIsWork_personalAndWorkItems()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/preference/
DContactsPreferencesTest.java43 @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/apps/Settings/tests/unit/src/com/android/settings/accessibility/
DReduceBrightColorsIntensityPreferenceControllerTest.java42 private Resources mResources; field in ReduceBrightColorsIntensityPreferenceControllerTest
48 mResources = spy(mContext.getResources()); in setUp()
49 when(mContext.getResources()).thenReturn(mResources); in setUp()
58 doReturn(true).when(mResources).getBoolean( in isAvailable_configuredRbcAvailable_enabledRbc_shouldReturnTrue()
66 doReturn(true).when(mResources).getBoolean( in isAvailable_configuredRbcAvailable_disabledRbc_shouldReturnTrue()
74 doReturn(false).when(mResources).getBoolean( in isAvailable_configuredRbcUnavailable_enabledRbc_shouldReturnFalse()
92 when(mResources.getInteger( in rangeOfSlider_staysWithinValidRange()
94 when(mResources.getInteger( in rangeOfSlider_staysWithinValidRange()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java140 @Mock Resources mResources; field in NetworkNotificationManagerTest
165 when(mCtx.getResources()).thenReturn(mResources); in setUp()
175 when(mResources.getColor(anyInt(), any())).thenReturn(0xFF607D8B); in setUp()
176 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics); in setUp()
183 when(mResources.getStringArray(R.array.network_switch_type_name)) in setUp()
185 when(mResources.getBoolean(R.bool.config_autoCancelNetworkNotifications)).thenReturn(true); in setUp()
202 verify(mResources, times(1)).getString(eq(title), eq(TEST_EXTRA_INFO)); in verifyTitleByNetwork()
204 verify(mResources, times(1)).getString(title); in verifyTitleByNetwork()
206 verify(mResources, times(1)).getString(eq(R.string.private_dns_broken_detailed)); in verifyTitleByNetwork()
213 clearInvocations(mResources); in testTitleOfPrivateDnsBroken()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java101 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/modules/Connectivity/framework/src/android/net/util/
DMultinetworkPolicyTracker.java67 private final ConnectivityResources mResources; field in MultinetworkPolicyTracker
112 mResources = new ConnectivityResources(ctx); in MultinetworkPolicyTracker()
173 final int id = mResources.get().getIdentifier("config_networkAvoidBadWifi", in configRestrictsAvoidBadWifi()
174 "integer", mResources.getResourcesContext().getPackageName()); in configRestrictsAvoidBadWifi()
192 mResources.getResourcesContext(), mActiveSubId); in getResourcesForActiveSubId()
233 final int id = mResources.get().getIdentifier("config_networkMeteredMultipathPreference", in configMeteredMultipathPreference()
234 "integer", mResources.getResourcesContext().getPackageName()); in configMeteredMultipathPreference()
235 return mResources.get().getInteger(id); in configMeteredMultipathPreference()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterBorder.java33 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/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DStringResourceMap.java41 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/Settings/tests/robotests/src/com/android/settings/display/
DScreenTimeoutSettingsTest.java71 private Resources mResources; field in ScreenTimeoutSettingsTest
102 mResources = spy(mContext.getResources()); in setup()
113 doReturn(TIMEOUT_ENTRIES).when(mResources).getStringArray(R.array.screen_timeout_entries); in setup()
114 doReturn(TIMEOUT_VALUES).when(mResources).getStringArray(R.array.screen_timeout_entries); in setup()
115 doReturn(true).when(mResources).getBoolean( in setup()
119 doReturn(mResources).when(mContext).getResources(); in setup()
121 doReturn(mResources).when(mSettings).getResources(); in setup()
162 doReturn(false).when(mResources).getBoolean( in updateCandidates_screenAttentionNotAvailable_doNotShowAdaptiveSleepPreference()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java90 private Resources mResources; field in CarProjectionServiceTest
199 when(mContext.getResources()).thenReturn(mResources); in getProjectionOptions_defaults()
202 when(mResources.getInteger(com.android.car.R.integer.config_projectionUiMode)) in getProjectionOptions_defaults()
204 when(mResources.getString(com.android.car.R.string.config_projectionConsentActivity)) in getProjectionOptions_defaults()
206 when(mResources.getInteger(com.android.car.R.integer.config_projectionActivityDisplayId)) in getProjectionOptions_defaults()
208 when(mResources.getIntArray(com.android.car.R.array.config_projectionActivityLaunchBounds)) in getProjectionOptions_defaults()
221 when(mContext.getResources()).thenReturn(mResources); in getProjectionOptions_nonDefaults()
227 when(mResources.getInteger(com.android.car.R.integer.config_projectionUiMode)) in getProjectionOptions_nonDefaults()
229 when(mResources.getString(com.android.car.R.string.config_projectionConsentActivity)) in getProjectionOptions_nonDefaults()
231 when(mResources.getInteger(com.android.car.R.integer.config_projectionActivityDisplayId)) in getProjectionOptions_nonDefaults()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java145 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/
DComponentContextFixture.java267 return mResources; in getResources()
498 return mResources;
510 private final Resources mResources = mock(Resources.class);
541 when(mResources.getConfiguration()).thenReturn(mResourceConfiguration);
542 when(mResources.getString(anyInt())).thenReturn("");
543 when(mResources.getStringArray(anyInt())).thenReturn(new String[0]);
544 when(mResources.newTheme()).thenReturn(mResourcesTheme);
545 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics);
612 when(mResources.getBoolean(eq(R.bool.grant_location_permission_enabled))).thenReturn(false);
689 when(mResources.getText(eq(id))).thenReturn(value);
[all …]

12345678