/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
D | LatinKeyboard.java | 20 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/ |
D | GetRestrictionsReceiver.java | 24 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/ |
D | DirectoryEntry.java | 19 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/ |
D | AddRssItem.java | 47 Intent res = new Intent("Accepted"); 48 res.putExtra(RssContentProvider.TITLE, title); 49 res.putExtra(RssContentProvider.URL, url); 50 res.putExtra(RssContentProvider.LAST_UPDATED, 0); 51 … res.putExtra(RssContentProvider.CONTENT, "<html><body><h2>Not updated yet.</h2></body></html>"); 52 setResult(RESULT_OK, res);
|
/development/vndk/tools/definition-tool/tests/ |
D | test_elf.py | 164 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/ |
D | string_utils.cpp | 56 std::vector<std::string_view> res; in Split() local 66 res.push_back(s.substr(pos)); in Split() 70 res.push_back(s.substr(pos, end - pos)); in Split() 73 return res; in Split() 84 long int res = ::strtol(start, &endptr, 10); in ParseInt() local 89 return static_cast<int>(res); in ParseInt()
|
/development/samples/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/ |
D | MainActivity.java | 20 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/ |
D | Android.mk | 39 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 40 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res 65 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 66 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
|
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/ |
D | BackgroundPickers.java | 20 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/ |
D | findunusedresources | 35 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]-.*')"
|
D | findunusedstrings | 28 if [ -d $app/res ] 32 …for i in $(grep -Rs "\(string\|plurals\) name=" res | sed 's/.*string name=\"//' | sed 's/.*plural…
|
D | removeunusedresources | 39 find res | grep -w $LINE | { 53 grep -Rwl $LINE res | {
|
/development/samples/ShortcutDemo/launcher/ |
D | Android.mk | 35 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 36 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res 64 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 65 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../common/res
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
D | RecyclingBitmapDrawable.java | 19 import android.content.res.Resources; 40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) { in RecyclingBitmapDrawable() argument 41 super(res, bitmap); in RecyclingBitmapDrawable()
|
D | ImageResizer.java | 21 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/ |
D | readme.txt | 34 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/ |
D | ResourcesSample.java | 25 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/ShortcutSample/ |
D | Android.bp | 35 resource_dirs: ["res"], 51 resource_dirs: ["res"], 67 resource_dirs: ["res"], 84 resource_dirs: ["res"], 101 resource_dirs: ["res"],
|
/development/samples/training/testingfun/app/ |
D | build.gradle | 19 res.srcDirs = ['res']
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
D | WordWidget.java | 29 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/ |
D | remove_dt_needed.py | 201 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/ |
D | ResourceHelper.java | 22 import android.content.res.Resources; 23 import android.content.res.TypedArray;
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
D | NinePatchLab.java | 23 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/ |
D | WordWidget.java | 29 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/ |
D | LunarView.java | 20 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 …]
|