Home
last modified time | relevance | path

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

12345

/development/ndk/platforms/android-3/include/sys/
Dtime.h56 #define timeradd(a, b, res) \ argument
58 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
59 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
60 if ((res)->tv_usec >= 1000000) { \
61 (res)->tv_usec -= 1000000; \
62 (res)->tv_sec += 1; \
66 #define timersub(a, b, res) \ argument
68 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
69 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
70 if ((res)->tv_usec < 0) { \
[all …]
/development/ndk/platforms/android-14/samples/native-media/jni/
Dnative-media-jni.c112 XAresult res; in AndroidBufferQueueCallback() local
128 res = (*playerBQItf)->Clear(playerBQItf); in AndroidBufferQueueCallback()
129 assert(XA_RESULT_SUCCESS == res); in AndroidBufferQueueCallback()
173 res = (*caller)->Enqueue(caller, NULL /*pBufferContext*/, in AndroidBufferQueueCallback()
178 assert(XA_RESULT_SUCCESS == res); in AndroidBufferQueueCallback()
186 res = (*caller)->Enqueue(caller, (void *)&kEosBufferCntxt /*pBufferContext*/, in AndroidBufferQueueCallback()
190 assert(XA_RESULT_SUCCESS == res); in AndroidBufferQueueCallback()
219 XAresult res; in StreamChangeCallback() local
221 res = (*caller)->QueryStreamType(caller, streamIndex, &domain); in StreamChangeCallback()
222 assert(XA_RESULT_SUCCESS == res); in StreamChangeCallback()
[all …]
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DLatinKeyboard.java20 import android.content.res.Resources;
21 import android.content.res.XmlResourceParser;
41 protected Key createKeyFromXml(Resources res, Row parent, int x, int y, in createKeyFromXml() argument
43 Key key = new LatinKey(res, parent, x, y, parser); in createKeyFromXml()
56 void setImeOptions(Resources res, int options) { in setImeOptions() argument
65 mEnterKey.label = res.getText(R.string.label_go_key); in setImeOptions()
70 mEnterKey.label = res.getText(R.string.label_next_key); in setImeOptions()
73 mEnterKey.icon = res.getDrawable(R.drawable.sym_keyboard_search); in setImeOptions()
79 mEnterKey.label = res.getText(R.string.label_send_key); in setImeOptions()
82 mEnterKey.icon = res.getDrawable(R.drawable.sym_keyboard_return); in setImeOptions()
[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/AppLimits/src/com/example/android/applimits/
DGetRestrictionsReceiver.java25 import android.content.res.Resources;
52 public static void populateCustomEntry(Resources res, RestrictionEntry entry) { in populateCustomEntry() argument
54 entry.setTitle(res.getString(R.string.custom_or_not_title)); in populateCustomEntry()
57 public static void populateChoiceEntry(Resources res, RestrictionEntry reSingleChoice) { in populateChoiceEntry() argument
58 String[] choiceEntries = res.getStringArray(R.array.choice_entry_entries); in populateChoiceEntry()
59 String[] choiceValues = res.getStringArray(R.array.choice_entry_values); in populateChoiceEntry()
63 reSingleChoice.setTitle(res.getString(R.string.choice_entry_title)); in populateChoiceEntry()
69 public static void populateMultiEntry(Resources res, RestrictionEntry reMultiSelect) { in populateMultiEntry() argument
70 String[] multiEntries = res.getStringArray(R.array.multi_entry_entries); in populateMultiEntry()
71 String[] multiValues = res.getStringArray(R.array.multi_entry_values); in populateMultiEntry()
[all …]
/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/samples/Support7Demos/
DAndroid.mk31 $(LOCAL_PATH)/res \
32 frameworks/support/v7/appcompat/res \
33 frameworks/support/v7/gridlayout/res \
34 frameworks/support/v7/mediarouter/res
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/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
121 BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
133 return BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
/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/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/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/ndk/samples/hello-neon/jni/
Dhelloneon.c37 struct timespec res; in now_ms() local
38 clock_gettime(CLOCK_REALTIME, &res); in now_ms()
39 return 1000.0*res.tv_sec + (double)res.tv_nsec/1e6; in now_ms()
/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/ndk/platforms/android-9/arch-mips/include/asm/
Ddiv64.h25res, high, low, base) ({ unsigned long __quot32, __mod32; unsigned long __cf, __tmp, __tmp2, _… argument
Dmipsregs.h719res; res = read_c0_##name(); res |= set; write_c0_##name(res); return res; } stati…
/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/host/windows/usb/api/
Dadb_interface.cpp57 int res = WideCharToMultiByte(CP_ACP, in GetInterfaceName() local
65 return (res != 0); in GetInterfaceName()
Dadb_legacy_endpoint_object.cpp79 BOOL res = TRUE; in CommonAsyncReadWrite() local
82 res = is_read ? ReadFile(usb_handle(), in CommonAsyncReadWrite()
99 res = DeviceIoControl(usb_handle(), in CommonAsyncReadWrite()
113 if (!res && (ERROR_IO_PENDING != error)) { in CommonAsyncReadWrite()
/development/host/windows/usb/winusb/
Dadb_winusb_endpoint_object.cpp73 BOOL res = TRUE; in CommonAsyncReadWrite() local
75 res = is_read ? in CommonAsyncReadWrite()
93 if (!res && (ERROR_IO_PENDING != error)) { in CommonAsyncReadWrite()
/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 …]
/development/apps/BuildWidget/src/com/android/buildwidget/
DBuildWidget.java26 import android.content.res.Resources;
63 Resources res = context.getResources(); in buildUpdate() local

12345