/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 23 import android.content.res.Resources; 124 private Resources mRes; 180 protected SettingsValues job(final Resources res) { in loadSettings() 199 public static int readScreenMetrics(final Resources res) { in readScreenMetrics() 205 final Resources res) { in readKeypressSoundEnabled() 211 final Resources res) { in readVibrationEnabled() 218 final Resources res) { in readAutoCorrectEnabled() 222 public static float readPlausibilityThreshold(final Resources res) { in readPlausibilityThreshold() 227 final Resources res) { in readBlockPotentiallyOffensive() 232 public static boolean readFromBuildConfigIfGestureInputEnabled(final Resources res) { in readFromBuildConfigIfGestureInputEnabled() [all …]
|
D | AdvancedSettingsFragment.java | 21 import android.content.res.Resources; 49 final Resources res = getResources(); in onCreate() 106 final Resources res = getResources(); in onSharedPreferenceChanged() 119 final Resources res = getResources(); in refreshEnablingsOfKeypressSoundAndVibrationSettings() 133 final Resources res = getResources(); in setupKeypressVibrationDurationSettings() 177 final Resources res = getResources(); in setupKeypressSoundVolumeSettings() 228 final Resources res = getResources(); in setupKeyLongpressTimeoutSettings()
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
D | OverlayThemeExtractor.java | 12 import android.content.res.Resources; 13 import android.content.res.Resources.NotFoundException; 171 Resources system = Resources.getSystem(); in addSystemDefaultShape() 183 Resources system = Resources.getSystem(); in addSystemDefaultColor() 196 Resources system = Resources.getSystem(); in addSystemDefaultFont() 212 Resources overlayRes = mContext.getPackageManager() in loadTypeface() 223 Resources overlayRes = mContext.getPackageManager() in loadColor() 232 Resources overlayRes = in loadString() 242 Resources overlayRes = in loadDimen() 252 Resources overlayRes = in loadBoolean() [all …]
|
D | ThemeBundledWallpaperInfo.java | 22 import android.content.res.Resources; 65 private Resources mResources; 101 Resources res = getPackageResources(context); in getAttributions() 125 Resources res = getPackageResources(context); in getAsset() 165 private Resources getPackageResources(Context context) { in getPackageResources()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | SettingsShadowResources.java | 6 import android.content.res.Resources; 7 import android.content.res.Resources.NotFoundException; 23 @Implements(value = Resources.class) 27 public Resources realResources; 36 final Resources res = application.getResources(); in overrideResource() 39 throw new Resources.NotFoundException("Cannot override \"" + name + "\""); in overrideResource() 55 return directlyOn(realResources, Resources.class).getIntArray(id); in getIntArray() 65 realResources, Resources.class, "getString", ClassParameter.from(int.class, id)); in getString() 75 realResources, Resources.class, "getInteger", ClassParameter.from(int.class, id)); in getInteger() 84 return directlyOn(realResources, Resources.class, "getBoolean", in getBoolean()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultPartnerProvider.java | 24 import android.content.res.Resources; 37 private final Resources mResources; 40 Pair<String, Resources> apkInfo = findSystemApk(ctx.getPackageManager()); in DefaultPartnerProvider() 57 private static Pair<String, Resources> findSystemApk(PackageManager pm) { in findSystemApk() 64 final Resources res = pm.getResourcesForApplication(packageName); in findSystemApk() 75 public Resources getResources() { in getResources() 82 Resources res = getResources(); in getLegacyWallpaperDirectory() 99 Resources res = getResources(); in shouldHideDefaultWallpaper()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | Util.java | 23 import android.content.res.Resources; 49 Resources resources = packageContext.getResources(); in getResourceUri() 51 } catch (Resources.NotFoundException e) { in getResourceUri() 59 Resources resources = context.getPackageManager().getResourcesForApplication(appInfo); in getResourceUri() 64 } catch (Resources.NotFoundException e) { in getResourceUri() 70 private static Uri getResourceUri(Resources resources, String appPkg, int res) in getResourceUri() 71 throws Resources.NotFoundException { in getResourceUri()
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/ |
D | ColorOptionsProvider.java | 31 import android.content.res.Resources; 32 import android.content.res.Resources.NotFoundException; 96 Resources overlayRes = getOverlayResources(overlayPackage); in loadOptions() 118 Resources system = Resources.getSystem(); in addDefault() 120 Resources r = getOverlayResources(mDefaultThemePackage); in addDefault() 146 Resources overlayRes = getOverlayResources(packageName); in loadIconPreviewDrawable() 154 Resources r = getOverlayResources(packageName); in loadShape()
|
D | FontOptionsProvider.java | 26 import android.content.res.Resources; 27 import android.content.res.Resources.NotFoundException; 53 Resources overlayRes = getOverlayResources(overlayPackage); in loadOptions() 71 Resources system = Resources.getSystem(); in addDefault() 83 private String getFontFamily(String overlayPackage, Resources overlayRes, String configName) { in getFontFamily()
|
D | ShapeOptionsProvider.java | 27 import android.content.res.Resources; 28 import android.content.res.Resources.NotFoundException; 87 Resources system = Resources.getSystem(); in addDefault() 123 private Path loadPath(Resources overlayRes, String packageName) { in loadPath() 137 Resources overlayRes = in loadCornerRadius()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | ResourceAsset.java | 19 import android.content.res.Resources; 35 protected final Resources mRes; 46 public ResourceAsset(Resources res, int resId, RequestOptions requestOptions) { in ResourceAsset() 56 public ResourceAsset(Resources res, int resId) { in ResourceAsset() 99 Resources getResources() { in getResources() 122 public PackageResourceKey(Resources res, int resId) { in PackageResourceKey()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Partner.java | 22 import android.content.res.Resources; 64 Pair<String, Resources> apkInfo = findSystemApk(ACTION_PARTNER_CUSTOMIZATION, pm); in get() 74 private final Resources mResources; 76 private Partner(String packageName, Resources res) { in Partner() 85 public Resources getResources() { in getResources() 143 } catch (Resources.NotFoundException ex) { in applyInvariantDeviceProfileOverrides()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicensesPreferenceControllerTest.java | 33 import android.content.res.Resources; 94 Resources resources = mock(Resources.class); in displayPreference_alphabeticalOrder() 126 Resources resources = mock(Resources.class); in displayPreference_includeOnlyModulesWithLicenseFile() 136 Resources resources2 = mock(Resources.class); in displayPreference_includeOnlyModulesWithLicenseFile()
|
D | ModuleLicensesListPreferenceControllerTest.java | 32 import android.content.res.Resources; 63 Resources resources = mock(Resources.class); in getAvailabilityStatus_validLicenses_returnsAvailable() 104 Resources resources = mock(Resources.class); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | PartnerWallpaperInfo.java | 20 import android.content.res.Resources; 54 private Resources mPartnerResources; 76 final Resources partnerRes = partnerProvider.getResources(); in getAll() 109 private Resources getPartnerResources(Context context) { in getPartnerResources() 127 Resources partnerRes = getPartnerResources(context); in getAsset() 136 Resources partnerRes = getPartnerResources(context); in getThumbAsset()
|
D | AppResourceWallpaperInfo.java | 22 import android.content.res.Resources; 56 private Resources mResources; 86 Resources resources = context.getPackageManager().getResourcesForApplication(appInfo); in getAll() 107 private Resources getPackageResources(Context ctx) { in getPackageResources() 123 Resources res = getPackageResources(context); in getAsset() 132 Resources res = getPackageResources(context); in getThumbAsset()
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallTypeIconsView.java | 47 private static Resources resources; 48 private static Resources largeResouces; 69 resources = new Resources(context, false); in CallTypeIconsView() 72 largeResouces = new Resources(context, true); in CallTypeIconsView() 169 Resources resources = useLargeIcons ? largeResouces : CallTypeIconsView.resources; in getCallTypeDrawable() 198 Resources resources = useLargeIcons ? largeResouces : CallTypeIconsView.resources; in onDraw() 242 private static class Resources { class in CallTypeIconsView 287 public Resources(Context context, boolean largeIcons) { in Resources() method in CallTypeIconsView.Resources 288 final android.content.res.Resources r = context.getResources(); in Resources()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | CellularFallbackPreferenceControllerTest.java | 28 import android.content.res.Resources; 63 final Resources resources = mock(Resources.class); in isAvailable_avoidBadWifiConfigIsFalse_shouldReturnTrue() 77 final Resources resources = mock(Resources.class); in isAvailable_avoidBadWifiConfigIsTrue_shouldReturnFalse()
|
/packages/apps/ThemePicker/src/com/google/android/apps/wallpaper/asset/ |
D | ThemeBundleThumbAsset.java | 19 import android.content.res.Resources; 34 private final Resources mRes; 38 public ThemeBundleThumbAsset(Resources res, int resId) { in ThemeBundleThumbAsset() 73 private final Resources mResources; 77 public LoadThumbnailTask(Resources res, int resId, DrawableLayerResolver resolver, in LoadThumbnailTask()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | DbTestUtils.java | 23 import android.content.res.Resources; 51 private Resources resources; 54 FakeContext(ContentResolver contentResolver, Resources resources) { in FakeContext() 65 public Resources getResources() { in getResources() 177 public DbTestUtils(Resources resources) { in DbTestUtils()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | SubtypeLocaleUtilsTests.java | 25 import android.content.res.Resources; 52 private Resources mRes; 243 protected Void job(final Resources res) { in testPredefinedSubtypesInEnglishSystemLocale() 285 protected Void job(final Resources res) { in testAdditionalSubtypesInEnglishSystemLocale() 345 protected Void job(final Resources res) { in testPredefinedSubtypesInFrenchSystemLocale() 387 protected Void job(final Resources res) { in testAdditionalSubtypesInFrenchSystemLocale() 429 protected Void job (final Resources res) { in testHinglishSubtypesInHindiSystemLocale() 457 protected Void job (final Resources res) { in testSerbianLatinSubtypesInSerbianSystemLocale()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | LocaleTestUtils.java | 21 import android.content.res.Resources; 89 mSavedSystemLocale = setResourcesLocale(Resources.getSystem(), locale); in setLocale() 103 setResourcesLocale(Resources.getSystem(), mSavedSystemLocale); in restoreLocale() 114 private Locale setResourcesLocale(Resources resources, Locale locale) { in setResourcesLocale()
|
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/ |
D | ShadowApplicationPackageManager.java | 23 import android.content.res.Resources; 34 private static Resources sResources = null; 49 protected Resources getResourcesForApplication(String appPackageName) in getResourcesForApplication() 54 public static void setResources(Resources resources) { in setResources()
|
/packages/apps/PermissionController/src/android/support/wearable/view/ |
D | WearableDialogHelper.java | 21 import android.content.res.Resources; 45 @VisibleForTesting /* package */ Resources mResources; 46 @VisibleForTesting /* package */ Resources.Theme mTheme; 60 public WearableDialogHelper(@NonNull Resources resources, @NonNull Resources.Theme theme) { in WearableDialogHelper()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardTextsSet.java | 20 import android.content.res.Resources; 39 private Resources mResources; 45 final Resources res = context.getResources(); in setLocale() 53 public void setLocale(final Locale locale, final Resources res, in setLocale() 142 protected String job(final Resources res) { in expandReference()
|