Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 33) sorted by relevance

12

/development/ndk/sources/android/ndk_helper/
Dvecmath.cpp65 Mat4 ret; in operator *() local
66 ret.f_[0] = f_[0] * rhs.f_[0] + f_[4] * rhs.f_[1] + f_[8] * rhs.f_[2] in operator *()
68 ret.f_[1] = f_[1] * rhs.f_[0] + f_[5] * rhs.f_[1] + f_[9] * rhs.f_[2] in operator *()
70 ret.f_[2] = f_[2] * rhs.f_[0] + f_[6] * rhs.f_[1] + f_[10] * rhs.f_[2] in operator *()
72 ret.f_[3] = f_[3] * rhs.f_[0] + f_[7] * rhs.f_[1] + f_[11] * rhs.f_[2] in operator *()
75 ret.f_[4] = f_[0] * rhs.f_[4] + f_[4] * rhs.f_[5] + f_[8] * rhs.f_[6] in operator *()
77 ret.f_[5] = f_[1] * rhs.f_[4] + f_[5] * rhs.f_[5] + f_[9] * rhs.f_[6] in operator *()
79 ret.f_[6] = f_[2] * rhs.f_[4] + f_[6] * rhs.f_[5] + f_[10] * rhs.f_[6] in operator *()
81 ret.f_[7] = f_[3] * rhs.f_[4] + f_[7] * rhs.f_[5] + f_[11] * rhs.f_[6] in operator *()
84 ret.f_[8] = f_[0] * rhs.f_[8] + f_[4] * rhs.f_[9] + f_[8] * rhs.f_[10] in operator *()
[all …]
Dvecmath.h81 Vec2 ret; variable
82 ret.x_ = x_ * rhs.x_;
83 ret.y_ = y_ * rhs.y_;
84 return ret;
89 Vec2 ret; variable
90 ret.x_ = x_ / rhs.x_;
91 ret.y_ = y_ / rhs.y_;
92 return ret;
97 Vec2 ret; variable
98 ret.x_ = x_ + rhs.x_;
[all …]
DgestureDetector.cpp152 GESTURE_STATE ret = GESTURE_STATE_NONE; in Detect() local
171 ret = GESTURE_STATE_START; in Detect()
202 ret = GESTURE_STATE_START | GESTURE_STATE_END; in Detect()
214 ret = GESTURE_STATE_MOVE; in Detect()
222 return ret; in Detect()
267 GESTURE_STATE ret = GESTURE_STATE_NONE; in Detect() local
279 ret = GESTURE_STATE_START; in Detect()
286 ret = GESTURE_STATE_END; in Detect()
309 ret = GESTURE_STATE_START; in Detect()
319 ret = GESTURE_STATE_MOVE; in Detect()
[all …]
DperfMonitor.h55 double ret = time.tv_sec + time.tv_usec * 1.0 / 1000000.0; in GetCurrentTime() local
56 return ret; in GetCurrentTime()
/development/host/windows/usb/api/
Dadb_object_handle.cpp55 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
56 ATLASSERT(ret >= 0); in Release()
57 if (0 == ret) { in Release()
61 return ret; in Release()
65 ADBAPIHANDLE ret = NULL; in CreateHandle() local
77 ret = reinterpret_cast<ADBAPIHANDLE>(next_adb_handle_value); in CreateHandle()
80 the_map[ret] = this; in CreateHandle()
83 adb_handle_ = ret; in CreateHandle()
86 ret = NULL; in CreateHandle()
96 return ret; in CreateHandle()
[all …]
Dadb_api.cpp46 ADBAPIHANDLE ret = NULL; in AdbEnumInterfaces() local
57 ret = enum_obj->CreateHandle(); in AdbEnumInterfaces()
66 return ret; in AdbEnumInterfaces()
84 bool ret = adb_ienum_object->Next(info, size); in AdbNextInterface() local
88 return ret; in AdbNextInterface()
99 bool ret = adb_ienum_object->Reset(); in AdbResetInterfaceEnum() local
103 return ret; in AdbResetInterfaceEnum()
109 ADBAPIHANDLE ret = NULL; in AdbCreateInterfaceByName() local
131 ret = obj->CreateHandle(); in AdbCreateInterfaceByName()
139 return ret; in AdbCreateInterfaceByName()
[all …]
Dadb_legacy_interface.cpp127 BOOL ret = DeviceIoControl(usb_device_handle, in GetSerialNumber() local
135 ULONG error = ret ? NO_ERROR : GetLastError(); in GetSerialNumber()
192 BOOL ret = DeviceIoControl(usb_device_handle, in GetEndpointInformation() local
198 ATLASSERT(!ret || (sizeof(AdbEndpointInformation) == ret_bytes)); in GetEndpointInformation()
201 ULONG error = ret ? NO_ERROR : GetLastError(); in GetEndpointInformation()
209 return ret ? true : false; in GetEndpointInformation()
272 ADBAPIHANDLE ret = adb_endpoint->CreateHandle(endpoint_path.c_str(), in OpenEndpoint() local
278 return ret; in OpenEndpoint()
284 BOOL ret = DeviceIoControl(usb_device_handle, in CacheUsbDeviceDescriptor() local
291 ATLASSERT(!ret || (sizeof(USB_DEVICE_DESCRIPTOR) == ret_bytes)); in CacheUsbDeviceDescriptor()
[all …]
Dadb_legacy_endpoint_object.cpp76 ADBAPIHANDLE ret = adb_io_completion->CreateHandle(); in CommonAsyncReadWrite() local
78 if (NULL != ret) { in CommonAsyncReadWrite()
117 ret = NULL; in CommonAsyncReadWrite()
125 return ret; in CommonAsyncReadWrite()
150 BOOL ret = TRUE; in CommonSyncReadWrite() local
154 ret = is_read ? in CommonSyncReadWrite()
165 ret = DeviceIoControl(usb_handle(), in CommonSyncReadWrite()
175 if (!ret && (ERROR_IO_PENDING != GetLastError())) { in CommonSyncReadWrite()
182 ret = GetOverlappedResult(usb_handle(), &overlapped, &transferred, TRUE); in CommonSyncReadWrite()
183 if (ret && (NULL != bytes_transferred)) { in CommonSyncReadWrite()
[all …]
Dadb_helper_routines.cpp89 bool ret = false; in EnumerateDeviceInterfaces() local
129 ret = true; in EnumerateDeviceInterfaces()
139 if (ret) in EnumerateDeviceInterfaces()
142 return ret; in EnumerateDeviceInterfaces()
156 bool ret = false; in EnumerateDeviceInterfaces() local
160 ret = EnumerateDeviceInterfaces(hardware_dev_info, in EnumerateDeviceInterfaces()
167 ULONG error_to_report = ret ? NO_ERROR : GetLastError(); in EnumerateDeviceInterfaces()
175 return ret; in EnumerateDeviceInterfaces()
263 BOOL ret = DeviceIoControl(usb_device_handle, in IsLegacyInterface() local
273 return ret ? true : false; in IsLegacyInterface()
Dadb_legacy_io_completion.cpp52 bool ret = GetOverlappedResult(parent_legacy_io_object()->usb_handle(), in GetOvelappedIoResult() local
64 if (wait && ret && (0 == transfer) && (0 != expected_transfer_size_) && in GetOvelappedIoResult()
68 ret = GetOverlappedResult(parent_legacy_io_object()->usb_handle(), in GetOvelappedIoResult()
74 if (!ret || (0 != transfer) || in GetOvelappedIoResult()
89 return ret; in GetOvelappedIoResult()
Dadb_api_instance.h87 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
88 if (0 == ret) in Release()
91 return ret; in Release()
Dadb_interface_enum.cpp45 bool ret = EnumerateDeviceInterfaces(class_id, in InitializeEnum() local
53 if (ret) in InitializeEnum()
56 return ret; in InitializeEnum()
/development/host/windows/usb/winusb/
Dadb_winusb_io_completion.cpp38 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
39 ATLASSERT(ret >= 0); in Release()
40 if (0 == ret) { in Release()
44 return ret; in Release()
60 bool ret = WinUsb_GetOverlappedResult( in GetOvelappedIoResult() local
72 if (wait && ret && (0 == transfer) && (0 != expected_transfer_size_) && in GetOvelappedIoResult()
76 ret = WinUsb_GetOverlappedResult( in GetOvelappedIoResult()
82 if (!ret || (0 != transfer) || in GetOvelappedIoResult()
97 return ret; in GetOvelappedIoResult()
Dadb_winusb_endpoint_object.cpp39 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
40 ATLASSERT(ret >= 0); in Release()
41 if (0 == ret) { in Release()
45 return ret; in Release()
122 ADBAPIHANDLE ret = adb_io_completion->CreateHandle(); in CommonAsyncReadWrite() local
124 if (NULL != ret) { in CommonAsyncReadWrite()
149 ret = NULL; in CommonAsyncReadWrite()
157 return ret; in CommonAsyncReadWrite()
193 BOOL ret = TRUE; in CommonSyncReadWrite() local
196 ret = is_read ? in CommonSyncReadWrite()
[all …]
Dadb_winusb_interface.cpp45 LONG ret = InterlockedDecrement(&ref_count_); in Release() local
46 ATLASSERT(ret >= 0); in Release()
47 if (0 == ret) { in Release()
51 return ret; in Release()
211 bool ret = true; in GetSerialNumber() local
222 ret = false; in GetSerialNumber()
234 return ret; in GetSerialNumber()
335 ADBAPIHANDLE ret = adb_endpoint->CreateHandle(); in OpenEndpoint() local
339 return ret; in OpenEndpoint()
/development/perftests/panorama/feature_mos/src/mosaic/
DMosaic.cpp124 int ret = addFrame(imageYVU); in addFrameRGB() local
131 return ret; in addFrameRGB()
144 int ret = MOSAIC_RET_ERROR; in addFrame() local
161 ret = MOSAIC_RET_OK; in addFrame()
165 ret = MOSAIC_RET_FEW_INLIERS; in addFrame()
168 ret = MOSAIC_RET_LOW_TEXTURE; in addFrame()
171 ret = MOSAIC_RET_ERROR; in addFrame()
178 return ret; in addFrame()
199 int ret = Blend::BLEND_RET_ERROR; in createMosaic() local
204 ret = blender->runBlend((MosaicFrame **) frames, (MosaicFrame **) rframes, in createMosaic()
[all …]
DImageUtils.cpp286 ImageType ret = IMAGE_TYPE_NOIMAGE; in readBinaryPPM() local
291 return ret; in readBinaryPPM()
297 return ret; in readBinaryPPM()
302 ret = allocateImage(width, height, IMAGE_TYPE_NUM_CHANNELS); in readBinaryPPM()
303 eret = fread(ret, sizeof(ImageTypeBase), IMAGE_TYPE_NUM_CHANNELS*width*height, imgin); in readBinaryPPM()
307 return ret; in readBinaryPPM()
/development/ndk/platforms/android-21/include/linux/
Dfsl_hypervisor.h24 __u32 ret; member
29 __u32 ret; member
35 __u32 ret; member
42 __u32 ret; member
47 __u32 ret; member
59 __u32 ret; member
64 __u32 ret; member
/development/ndk/platforms/android-3/arch-arm/include/asm/
Dlocks.h19ret; __asm__ __volatile__( "@ down_op_ret\n" "1: ldrex lr, [%1]\n" " sub lr, lr, %2\n" " st…
38ret; __asm__ __volatile__( "@ down_op_ret\n" " mrs ip, cpsr\n" " orr lr, ip, #128\n" " msr …
/development/ndk/platforms/android-9/arch-x86/include/asm/
Dlinkage_32.h25 #define prevent_tail_call(ret) __asm__ ("" : "=r" (ret) : "0" (ret)) argument
/development/host/windows/usb/adb_winapi_test/
Dadb_winapi_test.cpp144 bool ret = true; in TestEnumInterfaces() local
147 ret = false; in TestEnumInterfaces()
152 ret = false; in TestEnumInterfaces()
155 return ret; in TestEnumInterfaces()
159 bool ret = true; in TestInterfaces() local
167 ret = false; in TestInterfaces()
185 ret = false; in TestInterfaces()
190 ret = false; in TestInterfaces()
194 return ret; in TestInterfaces()
218 bool ret = true; in TestInterfaceName() local
[all …]
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetwork.java421 MonkeyCommandReturn ret = deferredCommand.translateCommand(parts, queue); in translateCommand() local
422 deferredReturn = new DeferredReturn(eventId, ret, timeout); in translateCommand()
660 MonkeyCommandReturn ret = command.translateCommand(parts, commandQueue); in translateCommand() local
661 handleReturn(ret); in translateCommand()
666 private void handleReturn(MonkeyCommandReturn ret) { in handleReturn() argument
667 if (ret.wasSuccessful()) { in handleReturn()
668 if (ret.hasMessage()) { in handleReturn()
669 returnOk(ret.getMessage()); in handleReturn()
674 if (ret.hasMessage()) { in handleReturn()
675 returnError(ret.getMessage()); in handleReturn()
[all …]
/development/samples/TtsEngine/src/com/example/android/ttsengine/
DCheckVoiceData.java102 ArrayList<String> ret = new ArrayList<String>(); in getCheckVoiceDataFor() local
106 ret.add(lang); in getCheckVoiceDataFor()
110 return ret; in getCheckVoiceDataFor()
/development/ndk/platforms/android-3/include/linux/
Dseqlock.h41 …etry_irqrestore(lock, iv, flags) ({ int ret = read_seqretry(lock, iv); local_irq_restore(fla…
/development/ndk/platforms/android-8/samples/bitmap-plasma/jni/
Dplasma.c367 int ret; in Java_com_example_plasma_PlasmaView_renderPlasma() local
377 if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { in Java_com_example_plasma_PlasmaView_renderPlasma()
378 LOGE("AndroidBitmap_getInfo() failed ! error=%d", ret); in Java_com_example_plasma_PlasmaView_renderPlasma()
387 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) { in Java_com_example_plasma_PlasmaView_renderPlasma()
388 LOGE("AndroidBitmap_lockPixels() failed ! error=%d", ret); in Java_com_example_plasma_PlasmaView_renderPlasma()

12