/development/ndk/platforms/android-3/include/sys/ |
H A D | time.h | 56 #define timeradd(a, b, res) \ 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) \ 68 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 69 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ 70 if ((res) [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
H A D | DirectoryEntry.java | 19 import android.content.res.Resources; 37 public Drawable getDrawable(Resources res) { argument 38 return res.getDrawable(resID); 41 public Bitmap getBitmap(Resources res) { argument 42 return BitmapFactory.decodeResource(res, resID);
|
/development/tools/emulator/system/camera/ |
H A D | PreviewWindow.cpp | 54 status_t res = NO_ERROR; local 66 res = window->set_usage(window, GRALLOC_USAGE_SW_WRITE_OFTEN); 67 if (res == NO_ERROR) { 72 res = -res; // set_usage returns a negative errno. 74 __FUNCTION__, res, strerror(res)); 79 return res; 108 int res; local 123 res [all...] |
H A D | EmulatedFakeCamera.cpp | 50 status_t res = mFakeCameraDevice.Initialize(); local 51 if (res != NO_ERROR) { 52 return res; 64 res = EmulatedCamera::Initialize(); 65 if (res != NO_ERROR) { 66 return res;
|
H A D | EmulatedQemuCameraDevice.cpp | 53 status_t res = mQemuClient.connectClient(connect_str); local 54 if (res != NO_ERROR) { 55 return res; 59 res = EmulatedCameraDevice::Initialize(); 60 if (res == NO_ERROR) { 68 return res; 91 const status_t res = mQemuClient.queryConnect(); local 92 if (res == NO_ERROR) { 101 return res; 121 const status_t res local 152 status_t res = EmulatedCameraDevice::commonStartDevice(width, height, pix_fmt); local 197 status_t res = mQemuClient.queryStop(); local 237 WorkerThread::SelectRes res = local [all...] |
H A D | EmulatedCameraDevice.cpp | 95 const status_t res = startWorkerThread(one_burst); local 96 ALOGE_IF(res != NO_ERROR, "%s: startWorkerThread failed", __FUNCTION__); 97 return res; 109 const status_t res = stopWorkerThread(); local 110 ALOGE_IF(res != NO_ERROR, "%s: startWorkerThread failed", __FUNCTION__); 111 return res; 256 const status_t res = getWorkerThread()->startThread(one_burst); local 257 ALOGE_IF(res != NO_ERROR, "%s: Unable to start worker thread", __FUNCTION__); 258 return res; 270 const status_t res local 310 status_t res = EINVAL; local 364 int res = TEMP_FAILURE_RETRY(select(fd_num, fds, NULL, NULL, tvp)); local [all...] |
H A D | EmulatedQemuCamera.cpp | 54 status_t res = mQemuCameraDevice.Initialize(device_name); local 55 if (res != NO_ERROR) { 56 return res; 60 res = EmulatedCamera::Initialize(); 61 if (res != NO_ERROR) { 62 return res;
|
H A D | EmulatedFakeCamera2.cpp | 106 status_t res; local 111 res = constructStaticInfo(&mCameraInfo, true); 112 if (res != OK) { 114 __FUNCTION__, strerror(-res), res); 115 return res; 117 res = constructStaticInfo(&mCameraInfo, false); 118 if (res != OK) { 120 __FUNCTION__, strerror(-res), res); 140 status_t res; local 170 status_t res; local 238 status_t res; local 681 status_t res; local 688 status_t res; local 780 status_t res; local 911 status_t res; local 1013 status_t res; local 1111 status_t res; local 1182 status_t res; local 1389 status_t res; local 1548 status_t res; local [all...] |
H A D | EmulatedCameraFactory.cpp | 47 status_t res; local 94 res = mEmulatedCameras[camera_id]->Initialize(); 95 if (res != NO_ERROR) { 97 __FUNCTION__, camera_id, strerror(-res), res); 146 res = mEmulatedCameras[camera_id]->Initialize(); 147 if (res != NO_ERROR) { 149 __FUNCTION__, camera_id, strerror(-res), res); 279 status_t res local [all...] |
H A D | QemuClient.cpp | 342 status_t res = sendMessage(query->mQuery, strlen(query->mQuery) + 1); local 343 if (res == NO_ERROR) { 345 res = receiveMessage(reinterpret_cast<void**>(&query->mReplyBuffer), 347 if (res == NO_ERROR) { 352 __FUNCTION__, query->mQuery, strerror(res)); 356 __FUNCTION__, query->mQuery, strerror(res)); 360 const status_t res1 = query->completeQuery(res); 361 ALOGE_IF(res1 != NO_ERROR && res1 != res, 452 const status_t res = query.getCompletionStatus(); local 453 ALOGE_IF(res ! 465 const status_t res = query.getCompletionStatus(); local 483 const status_t res = query.getCompletionStatus(); local 496 const status_t res = query.getCompletionStatus(); local 521 const status_t res = query.getCompletionStatus(); local [all...] |
H A D | EmulatedCamera.cpp | 194 status_t res = EINVAL; local 200 res = getCameraDevice()->connectDevice(); 201 if (res == NO_ERROR) { 206 return -res; 339 status_t res; local 391 res = camera_dev->startDevice(width, height, org_fmt); 392 if (res != NO_ERROR) { 396 return res; 402 res = camera_dev->startDeliveringFrames(true); 403 if (res ! 545 status_t res = mPreviewWindow.startPreview(); local 627 status_t res = NO_ERROR; local 650 status_t res = NO_ERROR; local [all...] |
/development/tools/emulator/opengl/system/OpenglSystemCommon/ |
H A D | QemuPipeStream.cpp | 90 size_t res = len; 93 while (res > 0) { 94 ssize_t stat = ::write(m_sock, (const char *)(buf) + (len - res), res); 96 res -= stat; 123 size_t res = len; local 124 while (res > 0) { 125 ssize_t stat = ::read(m_sock, (char *)(buf) + len - res, len); 138 res -= stat; 171 int res local [all...] |
/development/ndk/platforms/android-14/samples/native-media/jni/ |
H A D | native-media-jni.c | 112 XAresult res; local 128 res = (*playerBQItf)->Clear(playerBQItf); 129 assert(XA_RESULT_SUCCESS == res); 173 res = (*caller)->Enqueue(caller, NULL /*pBufferContext*/, 178 assert(XA_RESULT_SUCCESS == res); 186 res = (*caller)->Enqueue(caller, (void *)&kEosBufferCntxt /*pBufferContext*/, 190 assert(XA_RESULT_SUCCESS == res); 219 XAresult res; local 221 res = (*caller)->QueryStreamType(caller, streamIndex, &domain); 222 assert(XA_RESULT_SUCCESS == res); 247 XAresult res; local 303 XAresult res; local 332 XAresult res; local 440 XAresult res; local 506 XAresult res; local [all...] |
/development/tools/emulator/opengl/shared/OpenglCodecCommon/ |
H A D | SocketStream.cpp | 95 size_t res = size; 98 while (res > 0) { 99 ssize_t stat = ::send(m_sock, (const char *)buffer + (size - res), res, 0); 107 res -= stat; 120 size_t res = len; local 121 while (res > 0) { 122 ssize_t stat = ::recv(m_sock, (char *)(buf) + len - res, res, 0); 124 res 157 int res = 0; local [all...] |
H A D | Win32PipeStream.cpp | 182 size_t res = size; 185 while (res > 0) { 187 if (! ::WriteFile(m_pipe, (const char *)m_buf + (size - res), res, &written, NULL)) { 192 res -= written; 208 size_t res = len; local 209 while (res > 0) { 211 if (! ::ReadFile(m_pipe, (char *)buf + (len - res), res, &readcount, NULL) || readcount == 0) { 215 res [all...] |
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
H A D | LatinKeyboard.java | 20 import android.content.res.Resources; 21 import android.content.res.XmlResourceParser; 41 protected Key createKeyFromXml(Resources res, Row parent, int x, int y, argument 43 Key key = new LatinKey(res, parent, x, y, parser); 56 void setImeOptions(Resources res, int options) { argument 65 mEnterKey.label = res.getText(R.string.label_go_key); 70 mEnterKey.label = res.getText(R.string.label_next_key); 73 mEnterKey.icon = res.getDrawable(R.drawable.sym_keyboard_search); 79 mEnterKey.label = res.getText(R.string.label_send_key); 82 mEnterKey.icon = res 96 LatinKey(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser) argument [all...] |
/development/tools/emulator/system/camera/fake-pipeline2/ |
H A D | JpegCompressor.cpp | 57 status_t res; local 58 res = run("EmulatedFakeCamera2::JpegCompressor"); 59 if (res != OK) { 61 __FUNCTION__, strerror(-res), res); 64 return res; 165 status_t res; local 167 res = s.ops->enqueue_buffer(s.ops, mCaptureTime, mJpegBuffer.buffer); 168 if (res != OK) { 170 __FUNCTION__, mJpegBuffer.buffer, strerror(-res), re 199 status_t res = OK; local 220 status_t res; local [all...] |
H A D | Sensor.cpp | 123 int res; local 125 res = run("EmulatedFakeCamera2::Sensor", 128 if (res != OK) { 129 ALOGE("Unable to start up sensor capture thread: %d", res); 131 return res; 137 int res; local 138 res = requestExitAndWait(); 139 if (res != OK) { 140 ALOGE("Unable to shut down sensor capture thread: %d", res); 142 return res; 173 int res; local 190 int res; local [all...] |
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
H A 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/samples/ApiDemos/src/com/example/android/apis/content/ |
H A D | ResourcesSample.java | 25 import android.content.res.Resources; 46 // See res/any/layout/resources.xml for this view layout definition. 76 Resources res = context.getResources(); 79 cs = res.getText(R.string.styled_text);
|
/development/tools/findunused/ |
H A D | findunusedresources | 35 if [ -d $app/res ] 40 for res in $(echo $app/res/* $(find $ANDROID_BUILD_TOP/vendor -type d -wholename $ANDROID_BUILD_TOP/vendor/*/$appname/res | grep overlay)) 42 resources="$resources $(echo $res | grep -v '\-mcc\|[a-z]*-[a-z][a-z]$\|[a-z]*-[a-z][a-z]-.*')"
|
H A D | findunusedstrings | 28 if [ -d $app/res ] 32 for i in $(grep -Rs "\(string\|plurals\) name=" res | sed 's/.*string name=\"//' | sed 's/.*plurals name=\"//'|sed 's/".*$//'|sort -u)
|
H A D | removeunusedresources | 39 find res | grep -w $LINE | { 53 grep -Rwl $LINE res | {
|
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/ |
H A D | ImageResizer.java | 20 import android.content.res.Resources; 104 * @param res The resources object containing the image data 111 public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, argument 117 BitmapFactory.decodeResource(res, resId, options); 124 return BitmapFactory.decodeResource(res, resId, options);
|
/development/host/windows/usb/api/ |
H A D | adb_interface.cpp | 57 int res = WideCharToMultiByte(CP_ACP,
local 65 return (res != 0);
|