/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
D | ThumbsBarTest.java | 54 assertEquals(mBar.mThumbHeightInPixel, mContext.getResources().getDimensionPixelSize( in checkThumbsBarInitialize() 56 assertEquals(mBar.mThumbWidthInPixel, mContext.getResources().getDimensionPixelSize( in checkThumbsBarInitialize() 58 assertEquals(mBar.mHeroThumbHeightInPixel, mContext.getResources().getDimensionPixelSize( in checkThumbsBarInitialize() 60 assertEquals(mBar.mHeroThumbWidthInPixel, mContext.getResources().getDimensionPixelSize( in checkThumbsBarInitialize() 137 mContext.getResources().getDimensionPixelSize( in checkSetThumbSize() 140 mContext.getResources().getDimensionPixelSize( in checkSetThumbSize() 175 mContext.getResources().getDimensionPixelSize( in checkSetHeroThumbSize() 178 mContext.getResources().getDimensionPixelSize( in checkSetHeroThumbSize() 230 (int) (240 * mContext.getResources().getDisplayMetrics().density); in checkCalculateNumberOfThumbs1() 232 (int) (240 * mContext.getResources().getDisplayMetrics().density); in checkCalculateNumberOfThumbs1() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | LegacyConnectedScore.java | 70 mThresholdMinimumRssi5 = context.getResources().getInteger( in LegacyConnectedScore() 72 mThresholdQualifiedRssi5 = context.getResources().getInteger( in LegacyConnectedScore() 74 mThresholdSaturatedRssi5 = context.getResources().getInteger( in LegacyConnectedScore() 76 mThresholdMinimumRssi24 = context.getResources().getInteger( in LegacyConnectedScore() 78 mThresholdQualifiedRssi24 = context.getResources().getInteger( in LegacyConnectedScore() 80 mThresholdSaturatedRssi24 = context.getResources().getInteger( in LegacyConnectedScore() 82 mBadLinkSpeed24 = context.getResources().getInteger( in LegacyConnectedScore() 84 mBadLinkSpeed5 = context.getResources().getInteger( in LegacyConnectedScore() 86 mGoodLinkSpeed24 = context.getResources().getInteger( in LegacyConnectedScore() 88 mGoodLinkSpeed5 = context.getResources().getInteger( in LegacyConnectedScore()
|
D | SavedNetworkEvaluator.java | 59 mRssiScoreSlope = context.getResources().getInteger( in SavedNetworkEvaluator() 61 mRssiScoreOffset = context.getResources().getInteger( in SavedNetworkEvaluator() 63 mSameBssidAward = context.getResources().getInteger( in SavedNetworkEvaluator() 65 mSameNetworkAward = context.getResources().getInteger( in SavedNetworkEvaluator() 67 mLastSelectionAward = context.getResources().getInteger( in SavedNetworkEvaluator() 69 mSecurityAward = context.getResources().getInteger( in SavedNetworkEvaluator() 71 mBand5GHzAward = context.getResources().getInteger( in SavedNetworkEvaluator() 73 mThresholdSaturatedRssi24 = context.getResources().getInteger( in SavedNetworkEvaluator() 75 mThresholdSaturatedRssi5 = context.getResources().getInteger( in SavedNetworkEvaluator()
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | MusicItem.java | 56 return getResourceUri(context, context.getResources() in getMediaSourceUri() 85 return context.getResources() in getMediaAlbumArtResId() 99 + context.getResources().getResourcePackageName(resID) in getResourceUri() 101 + context.getResources().getResourceTypeName(resID) in getResourceUri() 103 + context.getResources().getResourceEntryName(resID)); in getResourceUri()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | HelpUtilsTest.java | 74 when(mContext.getResources().getString(R.string.config_helpPackageNameKey)) in setUp() 76 when(mContext.getResources().getString(R.string.config_helpPackageNameValue)) in setUp() 78 when(mContext.getResources().getString(R.string.config_helpIntentExtraKey)) in setUp() 80 when(mContext.getResources().getString(R.string.config_helpIntentNameKey)) in setUp() 82 when(mContext.getResources().getString(R.string.config_feedbackIntentExtraKey)) in setUp() 84 when(mContext.getResources().getString(R.string.config_feedbackIntentNameKey)) in setUp() 93 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentTrue() 111 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(true); in addIntentParameters_configTrue_argumentFalse() 125 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentTrue() 139 when(mContext.getResources().getBoolean(R.bool.config_sendPackageName)).thenReturn(false); in addIntentParameters_configFalse_argumentFalse() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 71 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() 76 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() 85 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 92 Resources newResources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 101 Resources resources1 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() 106 Resources resources2 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() 117 Resources resources1 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 122 Resources resources2 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 130 Resources resources3 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() 163 Resources resources1 = mResourcesManager.getResources( in testTwoActivitiesWithIdenticalParametersShareImpl() [all …]
|
D | ConfigurationBoundResourceCacheTest.java | 44 final Resources res = getActivity().getResources(); in testGetEmpty() 51 final Resources res = getActivity().getResources(); in testSetGet() 60 final Resources res = getActivity().getResources(); in testSetGetThemed() 70 final Resources res = getActivity().getResources(); in testMultiThreadPutGet() 82 final Resources res = getActivity().getResources(); in testVoidConfigChange() 103 final Resources res = getActivity().getResources(); in testEffectiveConfigChange() 126 final Resources res = getActivity().getResources(); in testConfigChangeMultipleResources() 161 final Resources res = getActivity().getResources(); in testConfigChangeMultipleThemes()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 48 final Configuration config = mContext.getResources().getConfiguration(); in getMaxActionButtons() 70 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 76 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs); in hasEmbeddedTabs() 81 final Configuration configuration = mContext.getResources().getConfiguration(); in hasEmbeddedTabs() 92 Resources r = mContext.getResources(); in getTabContainerHeight() 110 return mContext.getResources().getDimensionPixelSize( in getStackedTabMaxWidth()
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
D | Utils.java | 30 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel() 54 context.getResources().getResourcePackageName(resID) + '/' + in getResourceUri() 55 context.getResources().getResourceTypeName(resID) + '/' + in getResourceUri() 56 context.getResources().getResourceEntryName(resID)); in getResourceUri()
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
D | ActionBarPolicy.java | 55 final Configuration configuration = mContext.getResources().getConfiguration(); in getMaxActionButtons() 85 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 89 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs); in hasEmbeddedTabs() 96 Resources r = mContext.getResources(); in getTabContainerHeight() 114 return mContext.getResources().getDimensionPixelSize( in getStackedTabMaxWidth()
|
D | ContextThemeWrapper.java | 123 public Resources getResources() { in getResources() method in ContextThemeWrapper 130 mResources = super.getResources(); in getResourcesInternal() 133 mResources = resContext.getResources(); in getResourcesInternal() 194 mTheme = getResources().newTheme(); in initializeTheme() 206 return getResources().getAssets(); in getAssets()
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 65 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/support/v7/appcompat/src/android/support/v7/widget/ |
D | TintContextWrapper.java | 78 || context.getResources() instanceof TintResources in shouldWrap() 79 || context.getResources() instanceof VectorEnabledTintResources) { in shouldWrap() 96 mResources = new VectorEnabledTintResources(this, base.getResources()); in TintContextWrapper() 100 mResources = new TintResources(this, base.getResources()); in TintContextWrapper() 120 public Resources getResources() { in getResources() method in TintContextWrapper
|
/frameworks/base/core/java/com/android/internal/hardware/ |
D | AmbientDisplayConfiguration.java | 62 return mContext.getResources().getBoolean(R.bool.config_dozePulsePickup) in pulseOnPickupAvailable() 80 return mContext.getResources().getString(R.string.config_dozeDoubleTapSensorType); in doubleTapSensorType() 84 return mContext.getResources().getString(R.string.config_dozeLongPressSensorType); in longPressSensorType() 111 return mContext.getResources().getString(R.string.config_dozeComponent); in ambientDisplayComponent() 123 return mContext.getResources().getBoolean(R.bool.config_dozeAlwaysOnDisplayAvailable); in alwaysOnDisplayAvailable()
|
/frameworks/support/wear/src/android/support/wear/internal/widget/ |
D | ResourcesUtil.java | 36 return context.getResources().getDisplayMetrics().widthPixels; in getScreenWidthPx() 43 return context.getResources().getDisplayMetrics().heightPixels; in getScreenHeightPx() 51 float marginPercent = context.getResources().getFraction(resId, 1, 1); in getFractionOfScreenPx()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardStatusBarView.java | 105 lp.width = lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged() 110 lp.width = getResources().getDimensionPixelSize( in onConfigurationChanged() 112 lp.setMarginEnd(getResources().getDimensionPixelSize( in onConfigurationChanged() 117 lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged() 119 lp.setMarginStart(getResources().getDimensionPixelSize( in onConfigurationChanged() 124 getResources().getDimensionPixelSize(R.dimen.system_icons_keyguard_padding_end), in onConfigurationChanged() 128 lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged() 134 getResources().getDimensionPixelSize( in onConfigurationChanged() 138 getResources().getDimensionPixelSize(R.dimen.keyguard_carrier_text_margin)); in onConfigurationChanged() 142 lp.height = getResources().getDimensionPixelSize( in onConfigurationChanged() [all …]
|
D | DozeParameters.java | 69 return "fallback: " + mContext.getResources().getBoolean( in dumpPickupSubtypePerformsProxCheck() 81 return mContext.getResources().getBoolean(R.bool.doze_suspend_display_state_supported); in getDozeSuspendDisplayStateSupported() 127 return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); in getBoolean() 131 int value = SystemProperties.getInt(propName, mContext.getResources().getInteger(resId)); in getInt() 145 return mContext.getResources().getBoolean(R.bool.doze_pickup_performs_proximity_check); in getPickupSubtypePerformsProxCheck() 161 return mContext.getResources().getBoolean(R.bool.doze_double_tap_reports_touch_coordinates); in doubleTapReportsTouchCoordinates()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/restore/ |
D | PerformAdbRestoreTaskTest.java | 52 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull() 64 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull() 76 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull() 88 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull()
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | PackageTrackerHelperImpl.java | 50 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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | DetailsParallaxDrawable.java | 106 int verticalMovementMax = -context.getResources().getDimensionPixelSize( in DetailsParallaxDrawable() 132 return context.getResources().getColor(outValue.resourceId); in getDefaultBackgroundColor() 134 return context.getResources().getColor(R.color.lb_default_brand_color_dark); in getDefaultBackgroundColor() 175 final int fromValue = context.getResources() in connect() 177 final int toValue = context.getResources() in connect()
|
D | AbstractDetailsDescriptionPresenter.java | 63 final int titleAscent = view.getResources().getDimensionPixelSize( in ViewHolder() 68 mUnderTitleBaselineMargin = view.getResources().getDimensionPixelSize( in ViewHolder() 70 mUnderSubtitleBaselineMargin = view.getResources().getDimensionPixelSize( in ViewHolder() 73 mTitleLineSpacing = view.getResources().getDimensionPixelSize( in ViewHolder() 75 mBodyLineSpacing = view.getResources().getDimensionPixelSize( in ViewHolder() 78 mBodyMaxLines = view.getResources().getInteger( in ViewHolder() 80 mBodyMinLines = view.getResources().getInteger( in ViewHolder()
|
/frameworks/base/core/java/android/view/ |
D | ContextThemeWrapper.java | 120 public Resources getResources() { in getResources() method in ContextThemeWrapper 127 mResources = super.getResources(); in getResourcesInternal() 130 mResources = resContext.getResources(); in getResourcesInternal() 192 mTheme = getResources().newTheme(); in initializeTheme()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | Food.java | 36 TypedArray icons = context.getResources().obtainTypedArray(R.array.food_icons); in getIcon() 48 sNames = context.getResources().getStringArray(R.array.food_names); in getName() 54 return context.getResources().getIntArray(R.array.food_intervals)[mType]; in getInterval()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | TarBackupReaderTest.java | 95 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata() 112 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata() 130 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() 168 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupEncrypted_correctlyParsesAppManifest() 189 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest() 210 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_signaturesIsNull_returnsIgnore() 227 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk() 251 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore() 278 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndDoesNotAllowApks_returnsIgnore() 298 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/ |
D | GridTaskView.java | 44 mHeaderHeight = context.getResources().getDimensionPixelSize( in GridTaskView() 61 return new AnimateableGridViewBounds(this, mContext.getResources().getDimensionPixelSize( in createOutlineProvider() 68 mHeaderHeight = mContext.getResources().getDimensionPixelSize( in onConfigurationChanged()
|