Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 127) sorted by relevance

123456

/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DLatinKeyboard.java20 import android.content.res.Resources;
21 import android.content.res.XmlResourceParser;
65 protected Key createKeyFromXml(Resources res, Row parent, int x, int y, in createKeyFromXml() argument
67 Key key = new LatinKey(res, parent, x, y, parser); in createKeyFromXml()
74 mSavedModeChangeKey = new LatinKey(res, parent, x, y, parser); in createKeyFromXml()
77 mSavedLanguageSwitchKey = new LatinKey(res, parent, x, y, parser); in createKeyFromXml()
109 void setImeOptions(Resources res, int options) { in setImeOptions() argument
118 mEnterKey.label = res.getText(R.string.label_go_key); in setImeOptions()
123 mEnterKey.label = res.getText(R.string.label_next_key); in setImeOptions()
126 mEnterKey.icon = res.getDrawable(R.drawable.sym_keyboard_search); in setImeOptions()
[all …]
/development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/
DGetRestrictionsReceiver.java24 import android.content.res.Resources;
57 public static void populateBooleanEntry(Resources res, RestrictionEntry entry) { in populateBooleanEntry() argument
59 entry.setTitle(res.getString(R.string.boolean_entry_title)); in populateBooleanEntry()
63 public static void populateChoiceEntry(Resources res, RestrictionEntry reSingleChoice) { in populateChoiceEntry() argument
64 String[] choiceEntries = res.getStringArray(R.array.choice_entry_entries); in populateChoiceEntry()
65 String[] choiceValues = res.getStringArray(R.array.choice_entry_values); in populateChoiceEntry()
69 reSingleChoice.setTitle(res.getString(R.string.choice_entry_title)); in populateChoiceEntry()
76 public static void populateMultiEntry(Resources res, RestrictionEntry reMultiSelect) { in populateMultiEntry() argument
77 String[] multiEntries = res.getStringArray(R.array.multi_entry_entries); in populateMultiEntry()
78 String[] multiValues = res.getStringArray(R.array.multi_entry_values); in populateMultiEntry()
[all …]
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DDirectoryEntry.java19 import android.content.res.Resources;
37 public Drawable getDrawable(Resources res) { in getDrawable() argument
38 return res.getDrawable(resID); in getDrawable()
41 public Bitmap getBitmap(Resources res) { in getBitmap() argument
42 return BitmapFactory.decodeResource(res, resID); in getBitmap()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DAddRssItem.java47 Intent res = new Intent("Accepted");
48 res.putExtra(RssContentProvider.TITLE, title);
49 res.putExtra(RssContentProvider.URL, url);
50 res.putExtra(RssContentProvider.LAST_UPDATED, 0);
51res.putExtra(RssContentProvider.CONTENT, "<html><body><h2>Not updated yet.</h2></body></html>");
52 setResult(RESULT_OK, res);
/development/vndk/tools/definition-tool/tests/
Dtest_elf.py164 def check_parse_dump_file_result(res): argument
165 self.assertEqual(ELF.ELFCLASS64, res.ei_class)
166 self.assertEqual(ELF.ELFDATA2LSB, res.ei_data)
167 self.assertEqual(183, res.e_machine)
168 self.assertEqual(90, res.file_size)
169 self.assertEqual(18, res.ro_seg_file_size)
170 self.assertEqual(24, res.ro_seg_mem_size)
171 self.assertEqual(42, res.rw_seg_file_size)
172 self.assertEqual(81, res.rw_seg_mem_size)
173 self.assertEqual(['rpath_1', 'rpath_2'], res.dt_rpath)
[all …]
/development/vndk/tools/header-checker/src/utils/
Dstring_utils.cpp54 std::vector<std::string_view> res; in Split() local
64 res.push_back(s.substr(pos)); in Split()
68 res.push_back(s.substr(pos, end - pos)); in Split()
71 return res; in Split()
82 long int res = ::strtol(start, &endptr, 10); in ParseInt() local
87 return static_cast<int>(res); in ParseInt()
/development/samples/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/
DMainActivity.java20 import android.content.res.Resources;
34 final Resources res = getResources(); in onCreate() local
43 int rowMargin = res.getDimensionPixelOffset(R.dimen.page_row_margin); in onCreate()
44 int colMargin = res.getDimensionPixelOffset(round ? in onCreate()
/development/samples/ShortcutDemo/publisher/
DAndroid.mk37 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
38 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
61 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
62 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
/development/samples/ShortcutSample/
DAndroid.mk37 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
61 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
85 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
110 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
135 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
/development/samples/ShortcutDemo/launcher/
DAndroid.mk33 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
34 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
60 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
61 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
DBackgroundPickers.java20 import android.content.res.Resources;
60 Resources res = mContainer.getResources(); in generatePickers() local
64 label.setText(String.format(res.getString(R.string.bg_picker_label), i+1)); in generatePickers()
99 Integer[] res = new Integer[mPickers.size()]; in getRes() local
101 res[i] = getRes(i); in getRes()
103 return res; in getRes()
/development/tools/findunused/
Dfindunusedresources35 if [ -d $app/res ]
40 …for res in $(echo $app/res/* $(find $ANDROID_BUILD_TOP/vendor -type d -wholename $ANDROID_BUILD_TO…
42 … resources="$resources $(echo $res | grep -v '\-mcc\|[a-z]*-[a-z][a-z]$\|[a-z]*-[a-z][a-z]-.*')"
Dfindunusedstrings28 if [ -d $app/res ]
32 …for i in $(grep -Rs "\(string\|plurals\) name=" res | sed 's/.*string name=\"//' | sed 's/.*plural…
Dremoveunusedresources39 find res | grep -w $LINE | {
53 grep -Rwl $LINE res | {
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DRecyclingBitmapDrawable.java19 import android.content.res.Resources;
40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) { in RecyclingBitmapDrawable() argument
41 super(res, bitmap); in RecyclingBitmapDrawable()
DImageResizer.java21 import android.content.res.Resources;
115 public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, in decodeSampledBitmapFromResource() argument
122 BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
135 return BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
/development/samples/SkeletonApp/
Dreadme.txt34 res/*
39 res/layout/skeleton_activity.xml
41 The res/layout/ directory contains XML files describing user interface
48 res/drawable/violet.png
50 The res/drawable/ directory contains images and other things that can be
58 res/values/colors.xml
59 res/values/strings.xml
60 res/values/styles.xml
/development/samples/ApiDemos/src/com/example/android/apis/content/
DResourcesSample.java25 import android.content.res.Resources;
76 Resources res = context.getResources(); in onCreate() local
79 cs = res.getText(R.string.styled_text); in onCreate()
/development/samples/training/testingfun/app/
Dbuild.gradle19 res.srcDirs = ['res']
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DWordWidget.java29 import android.content.res.Resources;
69 Resources res = context.getResources(); in buildUpdate() local
70 String[] monthNames = res.getStringArray(R.array.month_names); in buildUpdate()
77 String pageName = res.getString(R.string.template_wotd_title, in buildUpdate()
105 String definePage = res.getString(R.string.template_define_url, in buildUpdate()
/development/vndk/tools/definition-tool/tools/
Dremove_dt_needed.py201 res = buf[0:dynamic_off]
206 res += buf[ent_off:ent_off + ent_size]
207 for ent_off in range(len(res), dynamic_end, ent_size):
208 res += dt_null_ent
209 res += buf[dynamic_end:]
210 return res
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DResourceHelper.java22 import android.content.res.Resources;
23 import android.content.res.TypedArray;
/development/apps/NinePatchLab/src/com/android/ninepatch/
DNinePatchLab.java23 import android.content.res.Resources;
96 Resources res = context.getResources(); in NPView() local
99 mButtons[i] = res.getDrawable(ids[i]); in NPView()
102 mBGs[i] = res.getDrawable(bgs[i]); in NPView()
107 mScale = res.getDisplayMetrics().density; in NPView()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DWordWidget.java29 import android.content.res.Resources;
80 Resources res = context.getResources(); in buildUpdate() local
81 String[] monthNames = res.getStringArray(R.array.month_names); in buildUpdate()
88 String pageName = res.getString(R.string.template_wotd_title, in buildUpdate()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java20 import android.content.res.Resources;
223 Resources res = context.getResources(); in LunarThread() local
234 mBackgroundImage = BitmapFactory.decodeResource(res, in LunarThread()
487 Resources res = mContext.getResources(); in setState() local
490 str = res.getText(R.string.mode_ready); in setState()
492 str = res.getText(R.string.mode_pause); in setState()
494 str = res.getText(R.string.mode_lose); in setState()
496 str = res.getString(R.string.mode_win_prefix) in setState()
498 + res.getString(R.string.mode_win_suffix); in setState()
758 Resources res = mContext.getResources(); in updatePhysics() local
[all …]

123456