/development/host/windows/usb/api/ |
D | adb_api.cpp | 46 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 …]
|
D | adb_object_handle.cpp | 55 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 …]
|
D | adb_legacy_interface.cpp | 127 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 …]
|
D | adb_legacy_endpoint_object.cpp | 76 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 …]
|
D | adb_helper_routines.cpp | 89 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()
|
D | adb_legacy_io_completion.cpp | 52 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()
|
D | adb_api_instance.h | 87 LONG ret = InterlockedDecrement(&ref_count_); in Release() local 88 if (0 == ret) in Release() 91 return ret; in Release()
|
D | adb_interface_enum.cpp | 45 bool ret = EnumerateDeviceInterfaces(class_id, in InitializeEnum() local 53 if (ret) in InitializeEnum() 56 return ret; in InitializeEnum()
|
/development/host/windows/usb/winusb/ |
D | adb_winusb_endpoint_object.cpp | 39 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 …]
|
D | adb_winusb_io_completion.cpp | 38 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()
|
D | adb_winusb_interface.cpp | 45 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/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
D | ShortcutListFragment.java | 87 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;
|
D | BaseActivityListFragment.java | 78 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/host/windows/usb/adb_winapi_test/ |
D | adb_winapi_test.cpp | 144 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/tools/repo_diff/service/repodiff/interactors/ |
D | manifest.go | 29 ret := make(map[string]cst.ProjectType, len(common)+len(distinct)) 31 ret[k] = cst.Global 34 ret[k] = cst.DifferentialSpecific 36 return ret
|
/development/vendor_snapshot/ |
D | update.py | 77 ret = [] 80 ret.append(path) 84 return ret 107 ret = {} 110 ret['name'] = module_name 122 ret[JSON_TO_BP[key]] = prop[key] 127 return ret
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeySourceNetwork.java | 422 MonkeyCommandReturn ret = deferredCommand.translateCommand(parts, queue); in translateCommand() local 423 deferredReturn = new DeferredReturn(eventId, ret, timeout); in translateCommand() 662 MonkeyCommandReturn ret = command.translateCommand(parts, commandQueue); in translateCommand() local 663 handleReturn(ret); in translateCommand() 668 private void handleReturn(MonkeyCommandReturn ret) { in handleReturn() argument 669 if (ret.wasSuccessful()) { in handleReturn() 670 if (ret.hasMessage()) { in handleReturn() 671 returnOk(ret.getMessage()); in handleReturn() 676 if (ret.hasMessage()) { in handleReturn() 677 returnError(ret.getMessage()); in handleReturn() [all …]
|
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/ |
D | Exec.java | 84 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/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/ |
D | ShortcutPublisher.java | 136 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/utils/ |
D | debugfs.py | 72 ret = m.group(1) 73 logging.debug('get_type() returns \'%s\'', ret) 75 return ret
|
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/ |
D | ShortcutHelper.java | 91 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/samples/TtsEngine/src/com/example/android/ttsengine/ |
D | CheckVoiceData.java | 102 ArrayList<String> ret = new ArrayList<String>(); in getCheckVoiceDataFor() local 106 ret.add(lang); in getCheckVoiceDataFor() 110 return ret; in getCheckVoiceDataFor()
|
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/ |
D | EncodedStringValue.java | 214 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/gsi/gsi_util/gsi_util/mounters/ |
D | base_mounter.py | 129 ret = self._handle_prepare_file(filename_in_storage) 130 return ret if ret else MounterFile(None)
|
D | image_mounter.py | 94 ret = system_as_root and not system_without_root 99 ret) 100 return ret
|