Home
last modified time | relevance | path

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

1234567891011

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DSystemBarConfigsTest.java67 private Resources mResources; field in SystemBarConfigsTest
77 mSystemBarConfigs = new SystemBarConfigs(mResources); in onInit_allSystemBarsEnabled_eachHasUniqueBarTypes_doesNotThrowException()
82 when(mResources.getInteger(R.integer.config_topSystemBarType)).thenReturn(0); in onInit_allSystemBarsEnabled_twoBarsHaveDuplicateType_throwsRuntimeException()
83 when(mResources.getInteger(R.integer.config_bottomSystemBarType)).thenReturn(0); in onInit_allSystemBarsEnabled_twoBarsHaveDuplicateType_throwsRuntimeException()
85 mSystemBarConfigs = new SystemBarConfigs(mResources); in onInit_allSystemBarsEnabled_twoBarsHaveDuplicateType_throwsRuntimeException()
90 mSystemBarConfigs = new SystemBarConfigs(mResources); in onInit_allSystemBarsEnabled_systemBarSidesSortedByZOrder()
103 when(mResources.getInteger(R.integer.config_topSystemBarZOrder)).thenReturn(33); in onInit_intersectingBarsHaveSameZOrder_throwsRuntimeException()
104 when(mResources.getInteger(R.integer.config_leftSystemBarZOrder)).thenReturn(33); in onInit_intersectingBarsHaveSameZOrder_throwsRuntimeException()
106 mSystemBarConfigs = new SystemBarConfigs(mResources); in onInit_intersectingBarsHaveSameZOrder_throwsRuntimeException()
111 when(mResources.getBoolean(R.bool.config_hideBottomSystemBarForKeyboard)).thenReturn(false); in onInit_hideBottomSystemBarForKeyboardValueDoNotSync_throwsRuntimeException()
[all …]
/packages/apps/Settings/src/com/android/settings/development/tare/
DTareFactorController.java59 private final Resources mResources; field in TareFactorController
69 mResources = context.getResources(); in TareFactorController()
101 new TareFactorData(mResources.getString(R.string.tare_min_balance_exempted), in initAlarmManagerMap()
105 new TareFactorData(mResources.getString(R.string.tare_min_balance_headless_app), in initAlarmManagerMap()
109 new TareFactorData(mResources.getString(R.string.tare_min_balance_other_app), in initAlarmManagerMap()
113 new TareFactorData(mResources.getString(R.string.tare_max_satiated_balance), in initAlarmManagerMap()
117 new TareFactorData(mResources.getString(R.string.tare_initial_consumption_limit), in initAlarmManagerMap()
121 new TareFactorData(mResources.getString(R.string.tare_hard_consumption_limit), in initAlarmManagerMap()
125 new TareFactorData(mResources.getString(R.string.tare_top_activity), in initAlarmManagerMap()
129 new TareFactorData(mResources.getString(R.string.tare_top_activity), in initAlarmManagerMap()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiApConfigStoreTest.java109 private MockResources mResources; field in WifiApConfigStoreTest
124 mResources = new MockResources(); in setUp()
125 mResources.setString(R.string.config_wifiSoftap2gChannelList, in setUp()
127 mResources.setString(R.string.wifi_tether_configure_ssid_default, in setUp()
129 mResources.setString(R.string.wifi_localhotspot_configure_ssid_default, in setUp()
131 mResources.setBoolean(R.bool.config_wifiSoftapPassphraseAsciiEncodableCheck, true); in setUp()
136 when(mContext.getResources()).thenReturn(mResources); in setUp()
145 mResources.setBoolean(R.bool.config_wifi_ap_mac_randomization_supported, true); in setUp()
146 mResources.setBoolean( in setUp()
151 mResources.setBoolean(R.bool.config_wifi24ghzSupport, 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 mResources.setBoolean(R.bool.config_wifiSaveFactoryMacToWifiConfigStore, true); in setUp()
56 when(mContext.getResources()).thenReturn(mResources); in setUp()
65 mResources.setInteger(R.integer.config_wifiPollRssiIntervalMilliseconds, 6000); in testPollRssiIntervalIsSetCorrectly()
67 mResources.setInteger(R.integer.config_wifiPollRssiIntervalMilliseconds, 7000); in testPollRssiIntervalIsSetCorrectly()
99 mResources.setBoolean(R.bool.config_wifiSaeH2eSupported, false); in testSaeH2eSupportOverlay()
103 mResources.setBoolean(R.bool.config_wifiSaeH2eSupported, true); in testSaeH2eSupportOverlay()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java154 @Mock Resources mResources; field in ApConfigUtilTest
171 when(mResources.getBoolean(R.bool.config_wifi24ghzSupport)).thenReturn(true); in setUp()
172 when(mResources.getBoolean(R.bool.config_wifi5ghzSupport)).thenReturn(true); in setUp()
173 when(mResources.getBoolean(R.bool.config_wifiSoftap24ghzSupported)).thenReturn(true); in setUp()
174 when(mResources.getBoolean(R.bool.config_wifiSoftap5ghzSupported)).thenReturn(true); in setUp()
323 mCoexManager, mResources, new SoftApCapability(0)); in chooseApChannel2GBandWithNoAllowedChannel()
335 when(mResources.getString(R.string.config_wifiSoftap2gChannelList)) in chooseApChannel2GBandWithAllowedChannels()
340 mCoexManager, mResources, mCapability); in chooseApChannel2GBandWithAllowedChannels()
349 when(mResources.getString(R.string.config_wifiSoftap5gChannelList)) in chooseApChannel5GBandWithAllowedChannels()
354 mCoexManager, mResources, mCapability); in chooseApChannel5GBandWithAllowedChannels()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiStringResourceWrapperTest.java51 @Mock Resources mResources; field in WifiStringResourceWrapperTest
94 .thenReturn(mResources); in setUp()
96 when(mResources.getIdentifier(eq(RES_NAME_1), eq("string"), any())).thenReturn(RES_ID_1); in setUp()
97 when(mResources.getString(eq(RES_ID_1), any())).thenReturn(RES_STRING_VAL_1); in setUp()
98 when(mResources.getIdentifier(eq(RES_NAME_1 + CARRIER_ID_RESOURCE_NAME_SUFFIX), in setUp()
120 when(mResources.getIdentifier(eq(RES_NAME_1 + CARRIER_ID_RESOURCE_NAME_SUFFIX), in testCarrierIdWithBaseNoOverride()
122 when(mResources.getStringArray(eq(RES_ID_2))).thenReturn(RES_STRING_ARRAY_VAL_2); in testCarrierIdWithBaseNoOverride()
128 when(mResources.getIdentifier(eq(RES_NAME_1 + CARRIER_ID_RESOURCE_NAME_SUFFIX), in testCarrierIdAvailable()
130 when(mResources.getStringArray(eq(RES_ID_2))).thenReturn(RES_STRING_ARRAY_VAL_3); in testCarrierIdAvailable()
136 when(mResources.getIdentifier(eq(RES_NAME_1 + CARRIER_ID_RESOURCE_NAME_SUFFIX), in testCarrierIdAvailableEmptyMessage()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DSystemBarConfigs.java86 private final Resources mResources; field in SystemBarConfigs
98 mResources = resources; in SystemBarConfigs()
205 mTopNavBarEnabled = mResources.getBoolean(R.bool.config_enableTopSystemBar); in readConfigs()
206 mBottomNavBarEnabled = mResources.getBoolean(R.bool.config_enableBottomSystemBar); in readConfigs()
207 mLeftNavBarEnabled = mResources.getBoolean(R.bool.config_enableLeftSystemBar); in readConfigs()
208 mRightNavBarEnabled = mResources.getBoolean(R.bool.config_enableRightSystemBar); in readConfigs()
214 .setGirth(mResources.getDimensionPixelSize( in readConfigs()
216 .setBarType(mResources.getInteger(R.integer.config_topSystemBarType)) in readConfigs()
217 .setZOrder(mResources.getInteger(R.integer.config_topSystemBarZOrder)) in readConfigs()
218 .setHideForKeyboard(mResources.getBoolean( in readConfigs()
[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/unit/src/com/android/settings/display/
DScreenSaverPreferenceControllerTest.java42 private final Resources mResources = mContext.getResources(); field in ScreenSaverPreferenceControllerTest
56 when(mContext.getResources()).thenReturn(mResources); in setup()
62 when(mResources.getBoolean( in isAvailable_dreamsEnabledForAllUsers_shouldBeTrueForSystemUser()
64 when(mResources.getBoolean( in isAvailable_dreamsEnabledForAllUsers_shouldBeTrueForSystemUser()
73 when(mResources.getBoolean( in isAvailable_dreamsEnabledForAllUsers_shouldBeTrueForNonSystemUser()
75 when(mResources.getBoolean( in isAvailable_dreamsEnabledForAllUsers_shouldBeTrueForNonSystemUser()
84 when(mResources.getBoolean( in isAvailable_dreamsDisabled_shouldBeFalseForSystemUser()
86 when(mResources.getBoolean( in isAvailable_dreamsDisabled_shouldBeFalseForSystemUser()
95 when(mResources.getBoolean( in isAvailable_dreamsOnlyEnabledForSystemUser_shouldBeTrueForSystemUser()
97 when(mResources.getBoolean( in isAvailable_dreamsOnlyEnabledForSystemUser_shouldBeTrueForSystemUser()
[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 …]
DPowerMenuPreferenceControllerTest.java40 private Resources mResources; field in PowerMenuPreferenceControllerTest
48 mResources = spy(mContext.getResources()); in setUp()
51 when(mContext.getResources()).thenReturn(mResources); in setUp()
52 when(mResources.getBoolean( in setUp()
56 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in setUp()
62 when(mResources.getBoolean( in getAvailabilityStatus_settingsAvailable_returnsAvailable()
66 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in getAvailabilityStatus_settingsAvailable_returnsAvailable()
75 when(mResources.getBoolean( in getAvailabilityStatus_settingsNotAvailable_returnsNotAvailable()
79 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in getAvailabilityStatus_settingsNotAvailable_returnsNotAvailable()
88 when(mResources.getBoolean( in getAvailabilityStatus_longPressPowerSettingNotAvailable_returnsNotAvailable()
[all …]
DPowerMenuSettingsUtilsTest.java40 private Resources mResources; field in PowerMenuSettingsUtilsTest
45 mResources = mock(Resources.class); in setUp()
46 when(mContext.getResources()).thenReturn(mResources); in setUp()
48 when(mResources.getBoolean( in setUp()
70 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerForAssistantEnabled_valueNotSet_defaultToAssistant_returnsTrue()
78 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerForAssistantEnabled_valueNotSet_defaultToPowerMenu_returnsFalse()
86 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerSettingAvailable_defaultToAssistant_returnsTrue()
93 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerSettingAvailable_defaultToPowerMenu_returnsTrue()
101 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerSettingAvailable_defaultToPowerOff_returnsFalse()
109 when(mResources.getBoolean( in isLongPressPowerSettingAvailable_settingDisabled_returnsFalse()
[all …]
DLongPressPowerSensitivityPreferenceControllerTest.java51 private Resources mResources; field in LongPressPowerSensitivityPreferenceControllerTest
59 mResources = mock(Resources.class); in setUp()
60 when(mContext.getResources()).thenReturn(mResources); in setUp()
62 when(mResources.getIntArray( in setUp()
65 when(mResources.getBoolean( in setUp()
69 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in setUp()
83 when(mResources.getInteger( in getSliderPosition_returnsDefaultValue()
139 when(mResources.getBoolean( in longPressPowerSettingNotAvailable_notAvailable_isHidden()
153 when(mResources.getIntArray( in sensitivityValuesAreNull_notAvailable_isHidden()
168 when(mResources.getIntArray( in sensitivityValuesArrayTooShort_notAvailable_isHidden()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringConfigurationTest.java99 @Mock private Resources mResources; field in TetheringConfigurationTest
132 return mResources; in getResources()
174 when(mResources.getStringArray(R.array.config_tether_dhcp_range)).thenReturn( in setUp()
176 when(mResources.getInteger(R.integer.config_tether_offload_poll_interval)).thenReturn( in setUp()
178 when(mResources.getStringArray(R.array.config_tether_usb_regexs)) in setUp()
180 when(mResources.getStringArray(R.array.config_tether_wifi_regexs)) in setUp()
182 when(mResources.getStringArray(R.array.config_tether_bluetooth_regexs)).thenReturn( in setUp()
184 when(mResources.getIntArray(R.array.config_tether_upstream_types)).thenReturn(new int[0]); in setUp()
185 when(mResources.getStringArray(R.array.config_mobile_hotspot_provision_app)) in setUp()
187 when(mResources.getBoolean(R.bool.config_tether_enable_legacy_dhcp_server)).thenReturn( in setUp()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/
DUserItemsCombinerTest.java71 private final Resources mResources = field in UserItemsCombinerTest
86 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_empty()
94 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_currentIsPersonal_personalItemsOnly()
105 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_currentIsWork_personalItemsOnly()
117 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_currentIsPersonal_workItemsOnly()
128 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_currentIsWork_workItemsOnly()
140 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_currentIsPersonal_personalAndWorkItems()
145 expected.add(new HeaderItem(mResources.getString(R.string.personal_tab))); in testCreatePresentableList_currentIsPersonal_personalAndWorkItems()
147 expected.add(new HeaderItem(mResources.getString(R.string.work_tab))); in testCreatePresentableList_currentIsPersonal_personalAndWorkItems()
158 mCombiner = new UserItemsCombiner(mResources, mDpm, mState) in testCreatePresentableList_currentIsWork_personalAndWorkItems()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapConfigTest.java45 Resources mResources; field in BluetoothPbapConfigTest
50 when(mContext.getResources()).thenReturn(mResources); in setUp()
55 when(mResources.getBoolean(R.bool.pbap_use_profile_for_owner_vcard)) in testInit_whenUseProfileForOwnerVcardIsTrue()
64 when(mResources.getBoolean(R.bool.pbap_use_profile_for_owner_vcard)) in testInit_whenUseProfileForOwnerVcardIsFalse()
73 when(mResources.getBoolean(R.bool.pbap_use_profile_for_owner_vcard)) in testInit_whenUseProfileForOwnerVcardThrowsException()
82 when(mResources.getBoolean(R.bool.pbap_include_photos_in_vcard)) in testInit_whenIncludePhotosInVcardIsTrue()
91 when(mResources.getBoolean(R.bool.pbap_include_photos_in_vcard)) in testInit_whenIncludePhotosInVcardIsFalse()
100 when(mResources.getBoolean(R.bool.pbap_include_photos_in_vcard)) in testInit_whenIncludePhotosInVcardThrowsException()
/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/apps/Settings/tests/robotests/src/com/android/settings/security/
DSimLockPreferenceControllerTest.java72 private Resources mResources; field in SimLockPreferenceControllerTest
85 mResources = spy(mContext.getResources()); in setUp()
86 when(mContext.getResources()).thenReturn(mResources); in setUp()
96 when(mResources.getBoolean(R.bool.config_show_sim_info)).thenReturn(false); in isAvailable_notShowSimUi_false()
104 when(mResources.getBoolean(R.bool.config_show_sim_info)).thenReturn(true); in isAvailable_notAdmin_false()
113 when(mResources.getBoolean(R.bool.config_show_sim_info)).thenReturn(true); in isAvailable_simIccNotReady_false()
145 when(mResources.getBoolean(R.bool.config_show_sim_info)).thenReturn(true); in displayPreference_simReady_enablePreference()
162 when(mResources.getBoolean(R.bool.config_show_sim_info)).thenReturn(true); in getPreferenceKey_whenGivenValue_returnsGivenValue()
169 when(mResources.getBoolean(R.bool.config_show_sim_info)).thenReturn(true); in setupMockIcc()
180 when(mResources.getBoolean(R.bool.config_show_sim_info)).thenReturn(true); in setupMockSimReady()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiStringResourceWrapper.java55 private final Resources mResources; field in WifiStringResourceWrapper
73 mResources = getResourcesForSubId(); in WifiStringResourceWrapper()
82 if (mResources == null) return null; in getString()
83 int resourceId = mResources.getIdentifier(name, "string", in getString()
89 int arrayResourceId = mResources.getIdentifier(name + CARRIER_ID_RESOURCE_NAME_SUFFIX, in getString()
92 String[] carrierIdOverlays = mResources.getStringArray(arrayResourceId); in getString()
108 return mResources.getString(resourceId, args); in getString()
/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/apps/Settings/tests/robotests/src/com/android/settings/display/
DSmartAutoRotatePreferenceFragmentTest.java85 private Resources mResources; field in SmartAutoRotatePreferenceFragmentTest
103 mResources = spy(mContext.getResources()); in setUp()
104 when(mContext.getResources()).thenReturn(mResources); in setUp()
114 when(mActivity.getResources()).thenReturn(mResources); in setUp()
159 doReturn(false).when(mResources).getBoolean( in createHeader_faceDetectionNotEnabledByConfig_switchBarIsDisabled()
208 when(mResources.getStringArray( in enableDeviceStateSettableRotationStates()
211 when(mResources.getStringArray( in enableDeviceStateSettableRotationStates()
214 when(mResources.getBoolean(R.bool.config_auto_rotate_face_detection_available)).thenReturn( in enableDeviceStateSettableRotationStates()
218 .resetStateForTesting(mResources); in enableDeviceStateSettableRotationStates()
/packages/modules/Connectivity/framework/src/android/net/util/
DMultinetworkPolicyTracker.java69 private final ConnectivityResources mResources; field in MultinetworkPolicyTracker
116 mResources = new ConnectivityResources(ctx); in MultinetworkPolicyTracker()
177 final int id = mResources.get().getIdentifier("config_networkAvoidBadWifi", in configRestrictsAvoidBadWifi()
178 "integer", mResources.getResourcesContext().getPackageName()); in configRestrictsAvoidBadWifi()
196 mResources.getResourcesContext(), mActiveSubId); in getResourcesForActiveSubId()
237 final int id = mResources.get().getIdentifier("config_networkMeteredMultipathPreference", in configMeteredMultipathPreference()
238 "integer", mResources.getResourcesContext().getPackageName()); in configMeteredMultipathPreference()
239 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()

1234567891011