Home
last modified time | relevance | path

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

12345678910>>...47

/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()
198 return mContext.getResources().getBoolean(R.bool.config_dozeAlwaysOnDisplayAvailable); in alwaysOnDisplayAvailable()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DHelpUtilsTest.java73 when(mContext.getResources().getString(R.string.config_helpPackageNameKey)) in setUp()
75 when(mContext.getResources().getString(R.string.config_helpPackageNameValue)) in setUp()
77 when(mContext.getResources().getString(R.string.config_helpIntentExtraKey)) in setUp()
79 when(mContext.getResources().getString(R.string.config_helpIntentNameKey)) in setUp()
81 when(mContext.getResources().getString(R.string.config_feedbackIntentExtraKey)) in setUp()
83 when(mContext.getResources().getString(R.string.config_feedbackIntentNameKey)) in setUp()
90 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentTrue()
108 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentFalse()
122 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentTrue()
136 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentFalse()
[all …]
/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/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()
119 Resources resources1 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
124 Resources resources2 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
132 Resources resources3 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers()
165 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/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/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/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleIconFactory.java30 super(context, context.getResources().getConfiguration().densityDpi, in BubbleIconFactory()
31 context.getResources().getDimensionPixelSize(R.dimen.individual_bubble_size)); in BubbleIconFactory()
35 return mContext.getResources().getDimensionPixelSize( in getBadgeSize()
/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/opt/telephony/src/java/com/android/internal/telephony/vendor/dataconnection/
DVendorDcTracker.java124 if (mPhone.getContext().getResources().getBoolean( in setupDataOnConnectableApn()
136 boolean isPdpRejectConfigEnabled = mPhone.getContext().getResources().getBoolean( in onDataSetupComplete()
153 if (mPhone.getContext().getResources().getBoolean( in onDataSetupCompleteError()
173 delay = mPhone.getContext().getResources().getInteger( in onDataSetupCompleteError()
291 String title = mPhone.getContext().getResources(). in displayPopup()
295 message = mPhone.getContext().getResources(). in displayPopup()
298 message = mPhone.getContext().getResources().getString( in displayPopup()
301 message = mPhone.getContext().getResources().getString( in displayPopup()
/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeParameters.java98 return mContext.getResources().getBoolean(R.bool.doze_suspend_display_state_supported); in getDozeSuspendDisplayStateSupported()
106 return mContext.getResources().getInteger( in getScreenBrightnessDoze()
176 return FORCE_BLANKING || !FORCE_NO_BLANKING && mContext.getResources().getBoolean( in getDisplayNeedsBlanking()
198 return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); in getBoolean()
202 int value = SystemProperties.getInt(propName, mContext.getResources().getInteger(resId)); in getInt()
215 return mContext.getResources().getBoolean(R.bool.doze_double_tap_reports_touch_coordinates); in doubleTapReportsTouchCoordinates()
DKeyguardStatusBarView.java130 lp.width = lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged()
136 lp.width = getResources().getDimensionPixelSize( in onConfigurationChanged()
138 lp.setMarginEnd(getResources().getDimensionPixelSize( in onConfigurationChanged()
144 lp.setMarginStart(getResources().getDimensionPixelSize( in onConfigurationChanged()
149 getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end), in onConfigurationChanged()
154 getResources().getDimensionPixelSize( in onConfigurationChanged()
158 getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin)); in onConfigurationChanged()
162 lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged()
168 Resources res = getResources(); in loadDimens()
173 mCutoutSideNudge = getResources().getDimensionPixelSize( in loadDimens()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSavedNetworkEvaluator.java70 mRssiScoreSlope = context.getResources().getInteger( in SavedNetworkEvaluator()
72 mRssiScoreOffset = context.getResources().getInteger( in SavedNetworkEvaluator()
74 mSameBssidAward = context.getResources().getInteger( in SavedNetworkEvaluator()
76 mSameNetworkAward = context.getResources().getInteger( in SavedNetworkEvaluator()
78 mLastSelectionAward = context.getResources().getInteger( in SavedNetworkEvaluator()
80 mSecurityAward = context.getResources().getInteger( in SavedNetworkEvaluator()
82 mBand5GHzAward = context.getResources().getInteger( in SavedNetworkEvaluator()
DSarManager.java197 mSupportSarTxPowerLimit = mContext.getResources().getBoolean( in readSarConfigs()
211 mSupportSarSoftAp = mContext.getResources().getBoolean( in readSarConfigs()
214 mSupportSarSensor = mContext.getResources().getBoolean( in readSarConfigs()
219 mSarSensorEventFreeSpace = mContext.getResources().getInteger( in readSarConfigs()
221 mSarSensorEventNearBody = mContext.getResources().getInteger( in readSarConfigs()
223 mSarSensorEventNearHand = mContext.getResources().getInteger( in readSarConfigs()
225 mSarSensorEventNearHead = mContext.getResources().getInteger( in readSarConfigs()
519 String sensorType = mContext.getResources().getString( in register()
DScoringParams.java217 mVal.rssi2[EXIT] = context.getResources().getInteger( in loadResources()
219 mVal.rssi2[ENTRY] = context.getResources().getInteger( in loadResources()
221 mVal.rssi2[SUFFICIENT] = context.getResources().getInteger( in loadResources()
223 mVal.rssi2[GOOD] = context.getResources().getInteger( in loadResources()
225 mVal.rssi5[EXIT] = context.getResources().getInteger( in loadResources()
227 mVal.rssi5[ENTRY] = context.getResources().getInteger( in loadResources()
229 mVal.rssi5[SUFFICIENT] = context.getResources().getInteger( in loadResources()
231 mVal.rssi5[GOOD] = context.getResources().getInteger( in loadResources()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DCornerHandleView.java122 return dp * ((float) context.getResources().getDisplayMetrics().densityDpi in convertDpToPixel()
128 / ((float) context.getResources().getDisplayMetrics().densityDpi); in convertPixelToDp()
154 int radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
157 radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
161 radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
/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/legacy/recents/src/com/android/systemui/recents/views/grid/
DGridTaskView.java44 mHeaderHeight = context.getResources().getDimensionPixelSize( in GridTaskView()
61 return new AnimateableGridViewBounds(this, mContext.getResources().getDimensionPixelSize( in createOutlineProvider()
68 mHeaderHeight = mContext.getResources().getDimensionPixelSize( in onConfigurationChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java104 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
121 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
139 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
178 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
199 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()
220 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_signaturesIsNull_returnsIgnore()
238 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk()
263 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore()
291 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndDoesNotAllowApks_returnsIgnore()
312 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore()
[all …]
/frameworks/base/core/java/android/content/
DSyncActivityTooManyDeletes.java63 getResources().getText(R.string.sync_really_delete), in onCreate()
64 getResources().getText(R.string.sync_undo_deletes), in onCreate()
65 getResources().getText(R.string.sync_do_nothing) in onCreate()
80 getResources().getText(R.string.sync_too_many_deletes_desc); in onCreate()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationActionListLayout.java265 int paddingTop = getResources().getDimensionPixelSize( in updateHeights()
268 int paddingBottom = getResources().getDimensionPixelSize( in updateHeights()
270 mEmphasizedHeight = paddingBottom + paddingTop + getResources().getDimensionPixelSize( in updateHeights()
272 mRegularHeight = getResources().getDimensionPixelSize( in updateHeights()
286 int paddingTop = getResources().getDimensionPixelSize( in setEmphasizedMode()
289 int paddingBottom = getResources().getDimensionPixelSize( in setEmphasizedMode()
292 int buttonPaddingInternal = getResources().getDimensionPixelSize( in setEmphasizedMode()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DCompareActivity.java58 ResourceModifiers.init(getResources()); in onCreateCommon()
65 int width = getResources().getDimensionPixelSize(R.dimen.layer_width); in onCreateCommon()
66 int height = getResources().getDimensionPixelSize(R.dimen.layer_height); in onCreateCommon()
70 mErrorCalculator = new ErrorCalculator(getApplicationContext(), getResources()); in onCreateCommon()

12345678910>>...47