Home
last modified time | relevance | path

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

12

/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/tools/repo_diff/service/repodiff/interactors/
Dmanifest.go29 ret := make(map[string]cst.ProjectType, len(common)+len(distinct))
31 ret[k] = cst.Global
34 ret[k] = cst.DifferentialSpecific
36 return ret
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DShortcutListFragment.java87 final List<UserHandle> ret = new ArrayList<>(); in getTargetUsers() local
88 ret.add(arg); in getTargetUsers()
89 return ret; in getTargetUsers()
177 int ret = 0;
178 ret = getAppLabel(s1.getPackage()).compareTo(getAppLabel(s2.getPackage()));
179 if (ret != 0) return ret;
181 ret = s1.getUserHandle().hashCode() - s2.getUserHandle().hashCode();
182 if (ret != 0) return ret;
184 ret = s1.getId().compareTo(s2.getId());
185 if (ret != 0) return ret;
DBaseActivityListFragment.java78 int ret = 0;
79 ret = l1.getLabel().toString().compareTo(l2.getLabel().toString());
80 if (ret != 0) return ret;
83 ret = l1.getUser().hashCode() - l2.getUser().hashCode();
84 if (ret != 0) return ret;
/development/gsi/gsi_util/gsi_util/utils/
Ddebugfs.py72 ret = m.group(1)
73 logging.debug('get_type() returns \'%s\'', ret)
75 return ret
/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/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DExec.java84 final ArrayList<String> ret = new ArrayList<>(128); in runForStrings() local
92 ret.add(line); in runForStrings()
95 return ret.toArray(new String[ret.size()]); in runForStrings()
/development/samples/DeviceAdminWhitelistedAccount/src/com/example/android/app/admin/whitelistedaccount/
DMyMain.java38 protected void onPostExecute(Boolean ret) { in onCreate() argument
40 (ret ? "Account created" : "Account already exists"), in onCreate()
/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/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/
DShortcutPublisher.java136 int ret = 0;
137 ret = (s1.isDeclaredInManifest() ? 0 : 1) - (s2.isDeclaredInManifest() ? 0 : 1);
138 if (ret != 0) return ret;
140 ret = (s1.isDynamic() ? 0 : 1) - (s2.isDynamic() ? 0 : 1);
141 if (ret != 0) return ret;
143 ret = s1.getId().compareTo(s2.getId());
144 if (ret != 0) return ret;
/development/gsi/gsi_util/gsi_util/mounters/
Dimage_mounter.py94 ret = system_as_root and not system_without_root
99 ret)
100 return ret
Dbase_mounter.py129 ret = self._handle_prepare_file(filename_in_storage)
130 return ret if ret else MounterFile(None)
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DEncodedStringValue.java214 EncodedStringValue[] ret = new EncodedStringValue[temp.length]; in split() local
215 for (int i = 0; i < ret.length; ++i) { in split()
217 ret[i] = new EncodedStringValue(mCharacterSet, in split()
224 return ret; in split()
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DShortcutHelper.java91 final List<ShortcutInfo> ret = new ArrayList<>(); in getShortcuts() local
95 ret.add(shortcut); in getShortcuts()
100 ret.add(shortcut); in getShortcuts()
106 ret.add(shortcut); in getShortcuts()
110 return ret; in getShortcuts()
/development/scripts/
Dboardconfig_usage_analysis.py50 ret = []
57 ret.append(os.path.join(root, file))
59 return ret

12