Home
last modified time | relevance | path

Searched refs:getResources (Results 1 – 25 of 1275) sorted by relevance

12345678910>>...51

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoringParams.java242 mVal.rssi2[EXIT] = context.getResources().getInteger( in loadResources()
244 mVal.rssi2[ENTRY] = context.getResources().getInteger( in loadResources()
246 mVal.rssi2[SUFFICIENT] = context.getResources().getInteger( in loadResources()
248 mVal.rssi2[GOOD] = context.getResources().getInteger( in loadResources()
250 mVal.rssi5[EXIT] = context.getResources().getInteger( in loadResources()
252 mVal.rssi5[ENTRY] = context.getResources().getInteger( in loadResources()
254 mVal.rssi5[SUFFICIENT] = context.getResources().getInteger( in loadResources()
256 mVal.rssi5[GOOD] = context.getResources().getInteger( in loadResources()
258 mVal.rssi6[EXIT] = context.getResources().getInteger( in loadResources()
260 mVal.rssi6[ENTRY] = context.getResources().getInteger( in loadResources()
[all …]
DConnectionFailureNotificationBuilder.java69 String title = mContext.getResources().getString( in buildNoMacRandomizationSupportNotification()
71 String content = mContext.getResources().getString( in buildNoMacRandomizationSupportNotification()
91 .setColor(mContext.getResources().getColor( in buildNoMacRandomizationSupportNotification()
105 .setTitle(mContext.getResources().getString( in buildChangeMacRandomizationSettingDialog()
107 .setMessage(mContext.getResources().getString( in buildChangeMacRandomizationSettingDialog()
110 mContext.getResources().getString( in buildChangeMacRandomizationSettingDialog()
DWifiApConfigStore.java172 || mContext.getResources().getBoolean( in resetToDefaultForUnsupportedConfig()
182 || mContext.getResources().getBoolean( in resetToDefaultForUnsupportedConfig()
198 if (mContext.getResources().getBoolean(R.bool.config_wifiSoftapResetChannelConfig) in resetToDefaultForUnsupportedConfig()
208 if (!mContext.getResources().getBoolean(R.bool.config_wifi6ghzSupport) in resetToDefaultForUnsupportedConfig()
214 if (!mContext.getResources().getBoolean(R.bool.config_wifi5ghzSupport) in resetToDefaultForUnsupportedConfig()
227 if (mContext.getResources().getBoolean(R.bool.config_wifiSoftapResetHiddenConfig) in resetToDefaultForUnsupportedConfig()
233 if (mContext.getResources().getBoolean( in resetToDefaultForUnsupportedConfig()
276 configBuilder.setSsid(mContext.getResources().getString( in getDefaultApConfiguration()
294 return context.getResources().getString( in generateLohsSsid()
338 if (config.getBssid() == null && context.getResources().getBoolean( in randomizeBssidIfUnset()
DBssidBlocklistMonitor.java144 failureStreak = Math.min(failureStreak, mContext.getResources().getInteger( in getBlocklistDurationWithExponentialBackoff()
250 mContext.getResources().getInteger( in getFailureThresholdForReason()
253 mContext.getResources().getInteger(R.integer in getFailureThresholdForReason()
256 mContext.getResources().getInteger( in getFailureThresholdForReason()
259 mContext.getResources().getInteger( in getFailureThresholdForReason()
262 mContext.getResources().getInteger( in getFailureThresholdForReason()
265 mContext.getResources().getInteger( in getFailureThresholdForReason()
268 mContext.getResources().getInteger( in getFailureThresholdForReason()
271 mContext.getResources().getInteger( in getFailureThresholdForReason()
274 mContext.getResources().getInteger( in getFailureThresholdForReason()
[all …]
/frameworks/base/core/java/android/hardware/display/
DAmbientDisplayConfiguration.java43 mAlwaysOnByDefault = mContext.getResources().getBoolean(R.bool.config_dozeAlwaysOnEnabled); in AmbientDisplayConfiguration()
77 return mContext.getResources().getBoolean(R.bool.config_dozePulsePickup); in dozePickupSensorAvailable()
104 return mContext.getResources() in wakeScreenGestureAvailable()
122 return mContext.getResources().getInteger(R.integer.config_dozeWakeLockScreenDebounce); in getWakeLockScreenDebounce()
127 return mContext.getResources().getString(R.string.config_dozeDoubleTapSensorType); in doubleTapSensorType()
132 return mContext.getResources().getString(R.string.config_dozeTapSensorType); in tapSensorType()
137 return mContext.getResources().getString(R.string.config_dozeLongPressSensorType); in longPressSensorType()
184 return mContext.getResources().getString(R.string.config_dozeComponent); in ambientDisplayComponent()
203 return mContext.getResources().getBoolean(R.bool.config_dozeAlwaysOnDisplayAvailable); in alwaysOnDisplayAvailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java87 int resourceId = context.getResources().getIdentifier("config_rounded_mask_size_bottom", in getCornerRadiusBottom()
90 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusBottom()
106 int resourceId = context.getResources().getIdentifier("config_rounded_mask_size_top", in getCornerRadiusTop()
109 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusTop()
121 int resourceId = context.getResources().getIdentifier("config_rounded_mask_size", in getCornerRadiusDefault()
124 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusDefault()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java53 final Configuration config = mContext.getResources().getConfiguration(); in getMaxActionButtons()
77 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
84 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs); in hasEmbeddedTabs()
89 final Configuration configuration = mContext.getResources().getConfiguration(); in hasEmbeddedTabs()
101 Resources r = mContext.getResources(); in getTabContainerHeight()
120 return mContext.getResources().getDimensionPixelSize( in getStackedTabMaxWidth()
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
DWirelessChargingLayout.java84 final long chargingAnimationFadeStartOffset = (long) context.getResources().getInteger( in init()
86 final long chargingAnimationFadeDuration = (long) context.getResources().getInteger( in init()
88 final float batteryLevelTextSizeStart = context.getResources().getFloat( in init()
90 final float batteryLevelTextSizeEnd = context.getResources().getFloat( in init()
97 textSizeAnimator.setDuration((long) context.getResources().getInteger( in init()
103 textOpacityAnimator.setDuration((long) context.getResources().getInteger( in init()
105 textOpacityAnimator.setStartDelay((long) context.getResources().getInteger( in init()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java73 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference()
78 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference()
87 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences()
94 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences()
103 Resources resources1 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl()
108 Resources resources2 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl()
120 Resources resources1 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
125 Resources resources2 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
133 Resources resources3 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
166 Resources resources1 = mResourcesManager.getResources( in testTwoActivitiesWithIdenticalParametersShareImpl()
[all …]
DConfigurationBoundResourceCacheTest.java45 final Resources res = getActivity().getResources(); in testGetEmpty()
52 final Resources res = getActivity().getResources(); in testSetGet()
61 final Resources res = getActivity().getResources(); in testSetGetThemed()
71 final Resources res = getActivity().getResources(); in testMultiThreadPutGet()
83 final Resources res = getActivity().getResources(); in testVoidConfigChange()
104 final Resources res = getActivity().getResources(); in testEffectiveConfigChange()
127 final Resources res = getActivity().getResources(); in testConfigChangeMultipleResources()
162 final Resources res = getActivity().getResources(); in testConfigChangeMultipleThemes()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DHelpUtilsTest.java78 when(mContext.getResources().getString(R.string.config_helpPackageNameKey)) in setUp()
80 when(mContext.getResources().getString(R.string.config_helpPackageNameValue)) in setUp()
82 when(mContext.getResources().getString(R.string.config_helpIntentExtraKey)) in setUp()
84 when(mContext.getResources().getString(R.string.config_helpIntentNameKey)) in setUp()
86 when(mContext.getResources().getString(R.string.config_feedbackIntentExtraKey)) in setUp()
88 when(mContext.getResources().getString(R.string.config_feedbackIntentNameKey)) in setUp()
95 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentTrue()
113 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentFalse()
127 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentTrue()
141 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentFalse()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleIconFactory.java45 super(context, context.getResources().getConfiguration().densityDpi, in BubbleIconFactory()
46 context.getResources().getDimensionPixelSize(R.dimen.individual_bubble_size)); in BubbleIconFactory()
50 return mContext.getResources().getDimensionPixelSize( in getBadgeSize()
61 int density = context.getResources().getConfiguration().densityDpi; in getBubbleDrawable()
91 float ringStrokeWidth = mContext.getResources().getDimensionPixelSize( in getBadgeBitmap()
93 int importantConversationColor = mContext.getResources().getColor( in getBadgeBitmap()
122 new BitmapDrawable(mContext.getResources(), badge.icon)); in getBubbleBitmap()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DResourcesThemePerfTest.java52 mTheme = mContext.getResources().newTheme(); in setUp()
58 Resources.Theme destTheme = mContext.getResources().newTheme(); in applyStyle()
67 Resources.Theme destTheme = mContext.getResources().newTheme(); in rebase()
78 Resources.Theme destTheme = mContext.getResources().newTheme(); in setToSameAssetManager()
97 Resources destResources = resourcesManager.getResources(null, ai.sourceDir, in setToDifferentAssetManager()
99 c, mContext.getResources().getCompatibilityInfo(), null, null); in setToDifferentAssetManager()
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java65 app.getResources().setCompatibilityInfo(new CompatibilityInfo(ai, in init()
66 getResources().getConfiguration().screenLayout, in init()
67 getResources().getConfiguration().smallestScreenWidthDp, false)); in init()
170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); in addBitmapDrawable()
171 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); in addBitmapDrawable()
182 final Drawable d = getResources().getDrawable(resource); in addResourceDrawable()
204 final Drawable d = getResources().getDrawable(resource); in addNinePatchResourceDrawable()
217 bitmap = BitmapFactory.decodeResource(getResources(), id); in loadAndPrintDpi()
221 bitmap = BitmapFactory.decodeResource(getResources(), id, opts); in loadAndPrintDpi()
237 final DisplayMetrics metrics = getResources().getDisplayMetrics(); in onMeasure()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/restore/
DPerformAdbRestoreTaskTest.java53 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull()
65 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull()
77 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull()
89 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull()
/frameworks/base/tests/net/common/java/android/net/apf/
DApfCapabilitiesTest.java81 final int resId = mContext.getResources().getIdentifier("config_apfDrop802_3Frames", in testGetApfDrop8023Frames()
83 final boolean shouldDrop8023Frames = mContext.getResources().getBoolean(resId); in testGetApfDrop8023Frames()
92 final int resId = mContext.getResources().getIdentifier("config_apfEthTypeBlackList", in testGetApfEtherTypeBlackList()
94 final int[] blacklistedEtherTypeArray = mContext.getResources().getIntArray(resId); in testGetApfEtherTypeBlackList()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageTrackerHelperImpl.java50 return mContext.getResources().getBoolean(R.bool.config_timeZoneRulesUpdateTrackingEnabled); in isTrackingEnabled()
55 return mContext.getResources().getString(R.string.config_timeZoneRulesUpdaterPackage); in getUpdateAppPackageName()
60 Resources resources = mContext.getResources(); in getDataAppPackageName()
66 return mContext.getResources().getInteger( in getCheckTimeAllowedMillis()
72 return mContext.getResources().getInteger(R.integer.config_timeZoneRulesCheckRetryCount); in getFailedCheckRetryCount()
/frameworks/base/core/tests/coretests/src/android/debug/
DAdbNotificationsTest.java48 CharSequence title = mContext.getResources().getText( in testCreateNotification_UsbTransportType()
50 CharSequence message = mContext.getResources().getText( in testCreateNotification_UsbTransportType()
68 CharSequence title = mContext.getResources().getText( in testCreateNotification_WifiTransportType()
70 CharSequence message = mContext.getResources().getText( in testCreateNotification_WifiTransportType()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/dataconnection/
DVendorDcTracker.java139 if (mPhone.getContext().getResources().getBoolean( in setupDataOnConnectableApn()
151 boolean isPdpRejectConfigEnabled = mPhone.getContext().getResources().getBoolean( in onDataSetupComplete()
168 if (mPhone.getContext().getResources().getBoolean( in onDataSetupCompleteError()
188 delay = mPhone.getContext().getResources().getInteger( in onDataSetupCompleteError()
306 String title = mPhone.getContext().getResources(). in displayPopup()
310 message = mPhone.getContext().getResources(). in displayPopup()
313 message = mPhone.getContext().getResources().getString( in displayPopup()
316 message = mPhone.getContext().getResources().getString( in displayPopup()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DFood.java37 TypedArray icons = context.getResources().obtainTypedArray(R.array.food_icons); in getIcon()
49 sNames = context.getResources().getStringArray(R.array.food_names); in getName()
55 return context.getResources().getIntArray(R.array.food_intervals)[mType]; in getInterval()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DSplitDisplayLayout.java72 mDisplayLayout.rotateTo(mContext.getResources(), newRotation); in rotateTo()
94 Resources res = mContext.getResources(); in updateResources()
102 switch (mDisplayLayout.getNavigationBarPosition(mContext.getResources())) { in getPrimarySplitSide()
118 mSnapAlgorithm = new DividerSnapAlgorithm(mContext.getResources(), in getSnapAlgorithm()
129 mMinimizedSnapAlgorithm = new DividerSnapAlgorithm(mContext.getResources(), in getMinimizedSnapAlgorithm()
228 int dividerSize = DockedDividerUtils.getDividerSize(context.getResources(), in getSmallestWidthDpForBounds()
229 DockedDividerUtils.getDividerInsets(context.getResources())); in getSmallestWidthDpForBounds()
242 tmpDL.rotateTo(context.getResources(), rotation); in getSmallestWidthDpForBounds()
279 rotationContext.getResources(), dl.width(), dl.height(), dividerSize, in initSnapAlgorithmForRotation()
/frameworks/base/core/java/android/view/
DContextThemeWrapper.java127 public Resources getResources() { in getResources() method in ContextThemeWrapper
134 mResources = super.getResources(); in getResourcesInternal()
137 mResources = resContext.getResources(); in getResourcesInternal()
210 mTheme = getResources().newTheme(); in initializeTheme()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java173 String shareLabel = getResources().getString(R.string.screenrecord_share_label); in onStartCommand()
240 Resources res = getResources(); in createRecordingNotification()
261 .setContentText(getResources().getString(R.string.screenrecord_stop_text)) in createRecordingNotification()
264 .setColor(getResources().getColor(R.color.GM2_red_700)) in createRecordingNotification()
275 Resources res = getApplicationContext().getResources(); in createProcessingNotification()
287 getResources().getString(R.string.screenrecord_background_processing_label)) in createProcessingNotification()
302 getResources().getString(R.string.screenrecord_share_label), in createSaveNotification()
312 getResources().getString(R.string.screenrecord_delete_label), in createSaveNotification()
322 getResources().getString(R.string.screenrecord_name)); in createSaveNotification()
326 .setContentTitle(getResources().getString(R.string.screenrecord_save_message)) in createSaveNotification()
/frameworks/base/core/java/com/android/internal/widget/
DConversationLayout.java203 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in onFinishInflate()
207 mAvatarSize = getResources().getDimensionPixelSize(R.dimen.messaging_avatar_size); in onFinishInflate()
214 mMinTouchSize = 48 * getResources().getDisplayMetrics().density; in onFinishInflate()
269 mExpandButtonExpandedTopMargin = getResources().getDimensionPixelSize( in onFinishInflate()
271 mNotificationHeaderExpandedPadding = getResources().getDimensionPixelSize( in onFinishInflate()
273 mContentMarginEnd = getResources().getDimensionPixelSize( in onFinishInflate()
275 mBadgedSideMargins = getResources().getDimensionPixelSize( in onFinishInflate()
277 mConversationAvatarSize = getResources().getDimensionPixelSize( in onFinishInflate()
279 mConversationAvatarSizeExpanded = getResources().getDimensionPixelSize( in onFinishInflate()
281 mConversationIconTopPaddingExpandedGroup = getResources().getDimensionPixelSize( in onFinishInflate()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DSystemActionPerformer.java122 mContext.getResources().getString( in SystemActionPerformer()
126 mContext.getResources().getString( in SystemActionPerformer()
130 mContext.getResources().getString( in SystemActionPerformer()
134 mContext.getResources().getString( in SystemActionPerformer()
138 mContext.getResources().getString( in SystemActionPerformer()
142 mContext.getResources().getString( in SystemActionPerformer()
146 mContext.getResources().getString( in SystemActionPerformer()
150 mContext.getResources().getString( in SystemActionPerformer()

12345678910>>...51