Searched refs:res (Results 26 - 50 of 877) sorted by relevance

1234567891011>>

/packages/apps/Launcher2/src/com/android/launcher2/
H A DAddAdapter.java20 import android.content.res.Resources;
54 public ListItem(Resources res, int textResourceId, int imageResourceId, int actionTag) { argument
55 text = res.getString(textResourceId);
57 image = res.getDrawable(imageResourceId);
71 Resources res = launcher.getResources();
73 mItems.add(new ListItem(res, R.string.group_wallpapers,
H A DUserInitializeReceiver.java28 import android.content.res.Resources;
64 int res = resources.getIdentifier(extra, "drawable", packageName);
65 if (res != 0) {
66 outList.add(res);
/packages/services/Telecomm/src/com/android/server/telecom/
H A DQuickResponseUtils.java22 import android.content.res.Resources;
65 final Resources res = context.getResources();
75 String cannedResponse1 = res.getString(R.string.respond_via_sms_canned_response_1);
76 String cannedResponse2 = res.getString(R.string.respond_via_sms_canned_response_2);
77 String cannedResponse3 = res.getString(R.string.respond_via_sms_canned_response_3);
78 String cannedResponse4 = res.getString(R.string.respond_via_sms_canned_response_4);
/packages/apps/Camera/src/com/android/camera/
H A DIconListPreference.java20 import android.content.res.Resources;
21 import android.content.res.TypedArray;
38 Resources res = context.getResources();
41 mIconIds = getIds(res, a.getResourceId(
43 mLargeIconIds = getIds(res, a.getResourceId(
45 mImageIds = getIds(res, a.getResourceId(
82 private int[] getIds(Resources res, int iconsRes) { argument
84 TypedArray array = res.obtainTypedArray(iconsRes);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DIconListPreference.java20 import android.content.res.Resources;
21 import android.content.res.TypedArray;
39 Resources res = context.getResources();
42 mIconIds = getIds(res, a.getResourceId(
44 mLargeIconIds = getIds(res, a.getResourceId(
46 mImageIds = getIds(res, a.getResourceId(
75 private int[] getIds(Resources res, int iconsRes) { argument
77 TypedArray array = res.obtainTypedArray(iconsRes);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DSpacingAndPunctuations.java19 import android.content.res.Resources;
44 public SpacingAndPunctuations(final Resources res) { argument
47 res.getString(R.string.symbols_preceded_by_space));
50 res.getString(R.string.symbols_followed_by_space));
52 res.getString(R.string.symbols_clustering_together));
55 res.getString(R.string.symbols_word_connectors));
57 res.getString(R.string.symbols_word_separators));
58 mSentenceSeparator = res.getInteger(R.integer.sentence_separator);
61 mCurrentLanguageHasSpaces = res.getBoolean(R.bool.current_language_has_spaces);
62 final Locale locale = res
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DDefaultSoftKeyboard.java27 import android.content.res.*;
638 Resources res = mWnn.getResources();
644 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_off));
645 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off));
646 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default));
647 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default));
650 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_on));
651 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off));
652 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default));
653 text2.setBackgroundColor(res
[all...]
/packages/apps/Dialer/src/com/android/dialer/util/
H A DOrientationUtil.java20 import android.content.res.Configuration;
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DSettingsParser.java41 boolean res = false;
50 res = true;
53 res = false;
61 return res;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageItemPreference.java20 import android.content.res.Resources;
44 final Resources res = context.getResources();
45 final int width = res.getDimensionPixelSize(R.dimen.device_memory_usage_button_width);
46 final int height = res.getDimensionPixelSize(R.dimen.device_memory_usage_button_height);
/packages/apps/TvSettings/QuickSettings/
H A DAndroid.mk13 frameworks/support/v17/leanback/res \
14 $(LOCAL_PATH)/res
/packages/inputmethods/LatinIME/tools/make-keyboard-text/
H A DAndroid.mk21 LOCAL_JAVA_RESOURCE_DIRS := res
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DViewPagerTabStrip.java20 import android.content.res.Resources;
43 final Resources res = context.getResources();
46 res.getDimensionPixelSize(R.dimen.tab_selected_underline_height);
47 int underlineColor = res.getColor(R.color.tab_selected_underline_color);
48 int backgroundColor = res.getColor(R.color.actionbar_background_color);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DIconUtilities.java19 import android.content.res.Resources;
36 public static Bitmap getFXBitmap(Resources res, int id) { argument
42 return BitmapFactory.decodeResource(res, id, o);
47 public static Bitmap loadBitmap(Resources res, int resource) { argument
52 res,
/packages/apps/Nfc/src/com/android/nfc/handover/
H A DConfirmConnectActivity.java24 import android.content.res.Resources;
39 Resources res = getResources();
41 String confirmString = String.format(res.getString(R.string.confirm_pairing), deviceName);
44 .setPositiveButton(res.getString(R.string.pair_yes),
53 .setNegativeButton(res.getString(R.string.pair_no),
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
H A DViewUtil.java19 import android.content.res.Resources;
72 * @param res The resources file.
74 public static void setupFloatingActionButton(View view, Resources res) { argument
77 res.getDimensionPixelSize(R.dimen.floating_action_button_translation_z));
85 * @param res valid resources object
87 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { argument
88 final int fabPadding = res.getDimensionPixelSize(
/packages/apps/UnifiedEmail/
H A DAndroid.mk17 # Include res dir from chips
18 chips_dir := ../../../frameworks/opt/chips/res
20 #Include res dir from libraries
21 appcompat_dir := ../../../prebuilts/sdk/current/support/v7/appcompat/res
22 photo_dir := ../../../frameworks/opt/photoviewer/res ../../../frameworks/opt/photoviewer/activity/res
23 gridlayout_dir := ../../../prebuilts/sdk/current/support/v7/gridlayout/res
24 bitmap_dir := ../../../frameworks/opt/bitmap/res
25 datetimepicker_dir := ../../../frameworks/opt/datetimepicker/res
26 res_dirs := res
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/print/
H A DPrintUtils.java22 import android.content.res.Resources;
122 final Resources res = context.getResources();
125 appendSingleMessageHtml(context, res, message, addressCache, templates, dateBuilder);
144 final Resources res = context.getResources();
145 appendSingleMessageHtml(context, res, message, addressCache, templates, dateBuilder);
156 private static void appendSingleMessageHtml(Context context, Resources res, argument
164 renderRecipients(res, addressCache, message), message.getBodyAsHtml(),
165 renderAttachments(context, res, message));
172 private static String renderRecipients(Resources res, argument
177 final String replyTo = renderEmailList(res, messag
212 buildEmailDiv(Resources res, StringBuilder recipients, String emailList, String divStart, String divEnd, int headingId) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DBogusMoveEventDetector.java19 import android.content.res.Resources;
39 public static void init(final Resources res) { argument
45 final int screenMetrics = res.getInteger(R.integer.config_screen_metrics);
48 final int densityDpi = res.getDisplayMetrics().densityDpi;
52 final int sw = res.getConfiguration().smallestScreenWidthDp;
/packages/apps/Settings/src/com/android/settings/net/
H A DDataUsageMeteredSettings.java25 import android.content.res.Resources;
160 final Resources res = context.getResources();
164 data.title = res.getString(R.string.data_usage_menu_metered);
165 data.screenTitle = res.getString(R.string.data_usage_menu_metered);
170 data.title = res.getString(R.string.data_usage_metered_body);
171 data.screenTitle = res.getString(R.string.data_usage_menu_metered);
177 data.title = res.getString(R.string.data_usage_metered_mobile);
178 data.screenTitle = res.getString(R.string.data_usage_menu_metered);
185 data.screenTitle = res.getString(R.string.data_usage_menu_metered);
191 data.title = res
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
H A DContactInteractionUtilTest.java20 import android.content.res.Configuration;
21 import android.content.res.Resources;
133 Resources res = getContext().getResources();
134 Configuration config = res.getConfiguration();
136 res.updateConfiguration(config, res.getDisplayMetrics());
/packages/apps/Mms/
H A DAndroid.mk5 # Include res dir from chips
6 chips_dir := ../../../frameworks/opt/chips/res
7 res_dirs := $(chips_dir) res
/packages/apps/Settings/src/com/android/settings/
H A DScreenPinningSettings.java22 import android.content.res.Resources;
101 final Resources res = context.getResources();
105 data.title = res.getString(R.string.screen_pinning_title);
106 data.screenTitle = res.getString(R.string.screen_pinning_title);
111 data.title = res.getString(R.string.screen_pinning_description);
112 data.screenTitle = res.getString(R.string.screen_pinning_title);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DLocaleUtils.java19 import android.content.res.Configuration;
20 import android.content.res.Resources;
166 * @param res the resources to use. Pass current resources.
170 public static Locale setSystemLocale(final Resources res, final Locale newLocale) { argument
171 final Configuration conf = res.getConfiguration();
174 res.updateConfiguration(conf, res.getDisplayMetrics());
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DResourceUtils.java19 import android.content.res.Resources;
20 import android.content.res.TypedArray;
69 public static String getDeviceOverrideValue(final Resources res, final int overrideResId, argument
71 final int orientation = res.getConfiguration().orientation;
77 final String[] overrideArray = res.getStringArray(overrideResId);
82 + " resource="+ res.getResourceEntryName(overrideResId)
184 public static int getDefaultKeyboardWidth(final Resources res) { argument
185 final DisplayMetrics dm = res.getDisplayMetrics();
189 public static int getDefaultKeyboardHeight(final Resources res) { argument
190 final DisplayMetrics dm = res
228 getFloatFromFraction(final Resources res, final int fractionResId) argument
[all...]

Completed in 779 milliseconds

1234567891011>>