Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 1696) sorted by relevance

12345678910>>...68

/external/brotli/c/include/brotli/
Dport.h28 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \ argument
29 (BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
31 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0) argument
50 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0) argument
52 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument
53 (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
55 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument
56 (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
58 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument
73 #define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) \ argument
[all …]
/external/libchrome/libchrome_tools/patches/
Dpatches7 dbus-Add-TryRegisterFallback.patch
10 dbus-Remove-LOG-ERROR-in-ObjectProxy.patch
13 Fix-Wdefaulted-function-deleted-warning-in-MessageLo.patch
16 dbus-Make-Bus-is_connected-mockable.patch
19 Mojo-Check-if-dispatcher-is-null-in-Core-UnwrapPlatf.patch
22 Add-base-NoDestructor-T.patch
25 dbus-Support-UnexportMethod-from-an-exported-object.patch
28 Refactor-AlarmTimer-to-report-error-to-the-caller.patch
31 # TODO(crbug.com/909719): Remove this patch after clients are updated.
32 libchrome-Add-EmptyResponseCallback-for-backward-com.patch
[all …]
/external/python/cpython3/Lib/test/
Dtest_getpass.py17 @mock.patch('os.environ')
39 with mock.patch('os.getuid') as uid, \
40 mock.patch('pwd.getpwuid') as getpw:
62 with mock.patch('sys.stderr') as stderr:
66 @mock.patch('sys.stdin')
72 @mock.patch('sys.stdin')
98 with mock.patch('os.open') as open, \
99 mock.patch('io.FileIO') as fileio, \
100 mock.patch('io.TextIOWrapper') as textio:
112 with mock.patch('os.open') as open, \
[all …]
/external/pdfium/third_party/libopenjpeg20/
DREADME.pdfium12 0003-dwt-decode.patch: Check array bounds for opj_dwt_decode_1() and friends.
13 0005-jp2_apply_pclr.patch: Fix out of bounds access.
14 0006-tcd_init_tile.patch: Fix a divide by zero bug in opj_tcd_init_tile().
15 0007-jp2_read_cmap.patch: Fix wrong rendering on greyscale images with index colorspace.
16 0009-opj_pi_next.patch: Fix potential bad precno value in opj_pi_next* functions.
17 0011-j2k_update_image_data.patch: Prevent bad signed -> unsigned casting.
18 0012-mct_sse.patch: Don't use SSE intrinsics in 32-bit builds.
19 0014-opj_jp2_read_ihdr_leak.patch: Memory leak in opj_jp2_read_ihdr().
20 0015-read_SPCod_SPCoc_overflow.patch: Prevent a buffer overflow in opj_j2k_read_SPCod_SPCoc.
21 0016-read_SQcd_SQcc_overflow.patch: Prevent a buffer overflow in opj_j2k_read_SQcd_SQcc.
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py16 MagicMock, Mock, NonCallableMagicMock, patch, _patch,
101 @patch.object(Something, 'attribute', sentinel.Patched)
112 patch.object('Something', 'do_something')
118 @patch.object(Something, 'attribute', None)
132 @patch.object(Something, 'attribute', sentinel.Patched)
133 @patch.object(Something, 'next_attribute', sentinel.Patched2)
150 @patch('%s.something' % __name__, sentinel.Something2)
163 @patch('%s.something' % __name__, sentinel.Something2)
172 @patch('%s.something' % __name__, sentinel.Something2)
173 @patch('%s.something_else' % __name__, sentinel.SomethingElse)
[all …]
Dtestwith.py5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call
19 with patch('%s.something' % __name__, sentinel.Something2):
26 with patch('%s.something' % __name__, sentinel.Something2):
33 with patch('%s.something' % __name__) as mock_something:
44 with patch.object(Foo, 'something'):
51 …with patch('%s.something' % __name__) as mock_something, patch('%s.something_else' % __name__) as …
61 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
90 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
93 with patch('%s.something' % __name__) as mock_again:
103 with patch('%s.something' % __name__) as mock_something:
[all …]
/external/bsdiff/
Dpatch_writer_unittest.cc62 test_utils::BsdiffPatchFile patch; in TEST_F() local
63 EXPECT_TRUE(patch.LoadFromFile(patch_file_.filename())); in TEST_F()
64 EXPECT_TRUE(patch.IsValid()); in TEST_F()
67 EXPECT_EQ(sizeof(kCompressedEmpty), static_cast<uint64_t>(patch.diff_len)); in TEST_F()
68 EXPECT_EQ(sizeof(kCompressedEmpty), patch.extra_len); in TEST_F()
79 test_utils::BsdiffPatchFile patch; in TEST_F() local
80 EXPECT_TRUE(patch.LoadFromFile(patch_file_.filename())); in TEST_F()
81 EXPECT_TRUE(patch.IsValid()); in TEST_F()
82 EXPECT_EQ(patch.bz2_diff, in TEST_F()
85 EXPECT_EQ(patch.bz2_extra, in TEST_F()
[all …]
/external/tensorflow/third_party/gpus/
Dfind_rocm_config.py53 def _get_composite_version_number(major, minor, patch): argument
54 return 10000 * major + 100 * minor + patch
82 patch = int(version_numbers[2].split("-")[0])
83 return major, minor, patch
85 major, minor, patch = rocm_version_numbers(rocm_install_path)
88 "rocm_version_number": _get_composite_version_number(major, minor, patch)
125 patch = _get_header_version(version_file, "MIOPEN_VERSION_PATCH")
126 return major, minor, patch
128 major, minor, patch = miopen_version_numbers(rocm_install_path)
132 _get_composite_version_number(major, minor, patch)
[all …]
/external/python/mock/mock/tests/
Dtestpatch.py15 NonCallableMock, CallableMixin, patch, sentinel,
104 @patch.object(Something, 'attribute', sentinel.Patched)
117 @patch.object(Something, 'attribute', None)
131 @patch.object(Something, 'attribute', sentinel.Patched)
132 @patch.object(Something, 'next_attribute', sentinel.Patched2)
149 @patch('%s.something' % __name__, sentinel.Something2)
162 @patch('%s.something' % __name__, sentinel.Something2)
171 @patch('%s.something' % __name__, sentinel.Something2)
172 @patch('%s.something_else' % __name__, sentinel.SomethingElse)
194 @patch('%s.open' % builtin_string, mock)
[all …]
Dtestwith.py10 from mock import MagicMock, Mock, patch, sentinel, mock_open, call
23 with patch('%s.something' % __name__, sentinel.Something2):
30 with patch('%s.something' % __name__, sentinel.Something2):
37 with patch('%s.something' % __name__) as mock_something:
48 with patch.object(Foo, 'something'):
55 with patch('%s.something' % __name__) as mock_something:
56 with patch('%s.something_else' % __name__) as mock_something_else:
66 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
95 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
98 with patch('%s.something' % __name__) as mock_again:
[all …]
/external/toolchain-utils/llvm_tools/
Dauto_llvm_bisection_unittest.py29 @mock.patch.object(chroot, 'VerifyOutsideChroot', return_value=True)
32 @mock.patch.object(time, 'sleep')
35 @mock.patch.object(traceback, 'print_exc')
38 @mock.patch.object(llvm_bisection, 'main')
40 @mock.patch.object(os.path, 'isfile', return_value=False)
44 @mock.patch.object(
50 @mock.patch.object(
83 @mock.patch.object(subprocess, 'call', return_value=0)
86 @mock.patch.object(chroot, 'VerifyOutsideChroot', return_value=True)
89 @mock.patch.object(time, 'sleep')
[all …]
Dupdate_chromeos_llvm_hash_unittest.py35 @mock.patch.object(os.path, 'isfile', return_value=False)
53 @mock.patch.object(os.path, 'isfile', return_value=True)
81 @mock.patch.object(os.path, 'isfile', return_value=True)
106 @mock.patch.object(os.path, 'isfile', return_value=True)
107 @mock.patch.object(subprocess, 'check_output', return_value=None)
143 @mock.patch.object(os.path, 'isfile', return_value=True)
144 @mock.patch.object(subprocess, 'check_output', return_value=None)
182 @mock.patch.object(os.path, 'islink', return_value=False)
196 @mock.patch.object(os.path, 'islink', return_value=False)
210 @mock.patch.object(os.path, 'islink', return_value=True)
[all …]
Dllvm_patch_management_unittest.py29 @mock.patch.object(os.path, 'isdir', return_value=False)
46 @mock.patch.object(os.path, 'isdir', return_value=True)
47 @mock.patch.object(subprocess_helpers, 'ChrootRunCommand')
48 @mock.patch.object(llvm_patch_management, '_GetRelativePathOfChrootPath')
103 @mock.patch.object(os.path, 'isfile', return_value=False)
120 @mock.patch.object(os.path, 'isfile', return_value=True)
135 @mock.patch.object(os.path, 'isfile')
149 @mock.patch.object(
153 @mock.patch.object(get_llvm_hash, 'CreateTempLLVMRepo')
156 @mock.patch.object(llvm_patch_management, '_MoveSrcTreeHEADToGitHash')
[all …]
/external/pdfium/third_party/lcms/
DREADME.pdfium12 0000-cmserr-changes.patch: change LCMS memory management methods to use PDFium's.
13 0001-fix-include.patch: fix include in lcms2_internal.h.
14 0002-old-performance-fix.patch: https://codereview.chromium.org/534363002/
15 0003-old-uninitialized-in-LUTevalFloat.patch: https://codereview.chromium.org/380293002/
16 0004-old-uninitialized-in-LUTeval16.patch: https://codereview.chromium.org/387273002/
17 0005-old-fix-e-with-tilde.patch: like https://codereview.chromium.org/2411123003/ but better.
18 0006-tag-type-confusion.patch: Fix a type confusion.
19 0008-infinite-loop-GrowNamedColorList.patch: Fix infinite loop when calling GrowNamedColorList.
20 0019-utf8.patch: Encode source files as utf-8.
21 0026-more-unsupported-characters.patch: remove other unsupported characters.
[all …]
/external/mesa3d/src/vulkan/util/
Dvk_extensions.py31 self.patch = int(split[2])
33 self.patch = None
38 assert self.patch is None or self.patch < 4096
43 if self.patch is not None:
44 ver_list.append(str(self.patch))
48 patch = self.patch if self.patch is not None else 0
49 ver_list = [str(self.major), str(self.minor), str(patch)]
54 patch = self.patch if self.patch is not None else 0
55 return (self.major << 22) | (self.minor << 12) | patch
60 if (self.patch is None) != (other.patch is None):
[all …]
Dvk_util.c36 int patch = patch_string ? atoi(patch_string + 1) : 0; in vk_get_driver_version() local
38 if (patch == 0) { in vk_get_driver_version()
39 patch = 99; in vk_get_driver_version()
46 --patch; in vk_get_driver_version()
48 return VK_MAKE_VERSION(major, minor, patch); in vk_get_driver_version()
62 int patch = patch_str ? atoi(patch_str + 1) : 0; in vk_get_version_override() local
65 if (major < 1 || minor < 0 || patch < 0 || minor > 1023 || patch > 4095) in vk_get_version_override()
68 return VK_MAKE_VERSION(major, minor, patch); in vk_get_version_override()
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_extensions.py106 self.patch = int(split[2])
108 self.patch = None
113 assert self.patch is None or self.patch < 4096
118 if self.patch is not None:
119 ver_list.append(str(self.patch))
123 patch = self.patch if self.patch is not None else 0
124 ver_list = [str(self.major), str(self.minor), str(patch)]
129 patch = self.patch if self.patch is not None else 0
130 return (self.major << 22) | (self.minor << 12) | patch
135 if (self.patch is None) != (other.patch is None):
[all …]
/external/autotest/server/cros/crosperf/
Ddevice_setup_utils_unittest.py161 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
173 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
191 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
211 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
232 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
253 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
263 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
297 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
318 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
326 @mock.patch.object(device_setup_utils, 'run_command_on_dut')
[all …]
/external/toolchain-utils/rust_tools/
Drust_uprev_test.py25 obj = rust_uprev.RustVersion(major=1, minor=2, patch=3)
29 expected = rust_uprev.RustVersion(major=1, minor=2, patch=3)
34 expected = rust_uprev.RustVersion(major=1, minor=2, patch=3)
55 @mock.patch.object(
59 @mock.patch.object(rust_uprev, 'get_command_output')
67 @mock.patch.object(
71 @mock.patch.object(rust_uprev, 'get_command_output')
79 @mock.patch.object(os.path, 'exists')
80 @mock.patch.object(rust_uprev, 'get_command_output')
91 @mock.patch.object(os.path, 'exists')
[all …]
/external/toolchain-utils/heatmaps/
Dheat_map_test.py46 @mock.patch('shutil.copy2')
47 @mock.patch('tempfile.mkdtemp')
60 @mock.patch('shutil.copy2')
61 @mock.patch('tempfile.mkdtemp', fake_mkdtemp)
71 @mock.patch.object(command_executer.CommandExecuter, 'ChrootRunCommand')
85 @mock.patch.object(heatmap_generator, 'HeatmapGenerator')
91 @mock.patch.object(heat_map.HeatMapProducer, '_EnsureFileInChroot')
92 @mock.patch.object(heat_map.HeatMapProducer, '_GeneratePerfReport')
93 @mock.patch.object(heat_map.HeatMapProducer, '_GetHeatMap')
94 @mock.patch.object(heat_map.HeatMapProducer, '_RemoveFiles')
[all …]
/external/skia/site/docs/dev/contrib/
Dpatch.md7 externally-submitted patch, this is how to do it. (This technique is useful in
8 other situations too, like if you just want to try out somebody else's patch
14 patch into your local checkout: https://codereview.appspot.com/6201055/
16 there is no standard Windows "patch" tool.
19 …velopers/contributing-code#TOC-Instructions-for-Reviewer:-Checking-in-the-patch-for-a-non-committe…
24 git cl patch 6201055
29 1. Prepare your local workspace to accept the patch.
32 want to apply the patch.
34 enough" for your purposes). If the codereview patch was against an old
38 2. Download the raw patch set.
[all …]
/external/skqp/site/dev/contrib/
Dpatch.md5 externally-submitted patch, this is how to do it. (This technique is useful in
6 other situations too, like if you just want to try out somebody else's patch
12 to patch into your local checkout: https://codereview.appspot.com/6201055/
14 because there is no standard Windows "patch" tool.
17 …velopers/contributing-code#TOC-Instructions-for-Reviewer:-Checking-in-the-patch-for-a-non-committe…
22 git cl patch 6201055
27 1. Prepare your local workspace to accept the patch.
30 want to apply the patch.
32 clean enough" for your purposes). If the codereview patch was against
36 2. Download the raw patch set.
[all …]
/external/python/httplib2/tests/
Dtest_cacerts_from_env.py32 @mock.patch("httplib2.certs.certifi_available", False)
33 @mock.patch("httplib2.certs.custom_ca_locater_available", False)
38 @mock.patch("httplib2.certs.certifi_available", False)
39 @mock.patch("httplib2.certs.custom_ca_locater_available", False)
50 @mock.patch("httplib2.certs.certifi_where", mock.MagicMock(return_value=CERTIFI_CERTS_FILE))
51 @mock.patch("httplib2.certs.certifi_available", True)
52 @mock.patch("httplib2.certs.custom_ca_locater_available", False)
57 @mock.patch("httplib2.certs.certifi_available", False)
58 @mock.patch("httplib2.certs.custom_ca_locater_available", True)
59 @mock.patch("httplib2.certs.custom_ca_locater_where", mock.MagicMock(return_value=CUSTOM_CA_CERTS))
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_locked_file.py82 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
94 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
104 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
108 with mock.patch('os.open') as mock_os_open:
113 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
114 @mock.patch('oauth2client.contrib.locked_file.logger')
115 @mock.patch('time.time')
121 with mock.patch('os.open') as mock_os_open:
128 @mock.patch('oauth2client.contrib.locked_file.open', create=True)
129 @mock.patch('oauth2client.contrib.locked_file.logger')
[all …]
/external/python/oauth2client/tests/
Dtest_tools.py74 @mock.patch.object(sys, 'argv', ['ignored', '--noauth_local_webserver'])
75 @mock.patch('oauth2client.tools.logging')
76 @mock.patch('oauth2client.tools.input')
90 @mock.patch('oauth2client.tools.logging')
91 @mock.patch('oauth2client.tools.input')
105 @mock.patch('oauth2client.tools.logging')
106 @mock.patch('oauth2client.tools.input')
119 @mock.patch('oauth2client.tools.logging')
120 @mock.patch('oauth2client.tools.ClientRedirectServer')
121 @mock.patch('webbrowser.open')
[all …]

12345678910>>...68